Skip to content

Commit ca7cf39

Browse files
Removed uneccessary unused console logs.
1 parent 7d543f5 commit ca7cf39

42 files changed

Lines changed: 65 additions & 528 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎apps/codebility/app/(marketing)/_components/MarketingNavigation.tsx‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,8 +294,6 @@ const Navigation = () => {
294294
.eq("id", user.id)
295295
.single();
296296

297-
console.log("User Row:", userRow);
298-
299297
if (fetchError) {
300298
console.error("Error fetching codev:", fetchError.message);
301299
setUserData(null);

‎apps/codebility/app/(marketing)/_components/landing/LandingIntern-CodevCard.tsx‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ function Avatar({
103103
onError={() => setImgError(true)}
104104
onLoad={() => {
105105
setImgLoaded(true);
106-
console.log('Image loaded:', person.name);
107106
}}
108107
className={`absolute top-1/2 left-1/2 object-cover transition-opacity duration-200 ${
109108
imgLoaded ? 'opacity-100' : 'opacity-0'

‎apps/codebility/app/(marketing)/profiles/page.tsx‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,6 @@ export default async function Profiles() {
3434
// Prioritize by: Active projects > No projects, Available > Unavailable
3535
const sortedCodevs = prioritizeCodevs(qualifiedCodevs);
3636

37-
// Debug logging in development
38-
if (process.env.NODE_ENV === "development") {
39-
console.log("📊 PROFILES PAGE STATS:");
40-
console.log(` Total codevs fetched: ${codevsArray.length}`);
41-
console.log(` Qualified codevs: ${qualifiedCodevs.length}`);
42-
console.log(` Final displayed: ${sortedCodevs.length}`);
43-
}
44-
4537
return (
4638
<>
4739
<Section

‎apps/codebility/app/(marketing)/services/_components/layout/ServiceDetailModal.tsx‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,6 @@ export const ServiceDetailModal = ({
9696
},
9797
enabled: !!service?.id && isOpen,
9898
});
99-
100-
console.log('Service in Modal:', service);
10199

102100
// Get image URL for display
103101
const getImageUrl = () => {

‎apps/codebility/app/api/all-active-interns-codev-prioritized/route.ts‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,6 @@ export async function GET() {
149149
};
150150
});
151151

152-
console.log(`Prioritized ${TEAM_MEMBERS.length} team members`);
153-
154152
return NextResponse.json({ TEAM_MEMBERS });
155153
} catch (err) {
156154
console.error("Unexpected error in /api/all-active-interns-codev-prioritized:", err);

‎apps/codebility/app/api/all-active-interns-codev/route.ts‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ export async function GET() {
3535
);
3636
}
3737

38-
console.log("Debug - Raw data from Supabase:", data); // Add this to debug
39-
4038
const INTERNS: Intern[] = (data ?? []).map((row: any) => {
4139
const name = `${row.first_name ?? ""} ${row.last_name ?? ""}`.trim();
4240
const role = row.roles?.name ?? "Intern";
@@ -48,8 +46,6 @@ export async function GET() {
4846
};
4947
});
5048

51-
console.log("Debug - Processed INTERNS:", INTERNS); // Add this to debug
52-
5349
return NextResponse.json({ INTERNS });
5450
} catch (err) {
5551
console.error("Unexpected error in /api/interns:", err);

‎apps/codebility/app/api/send-email/route.ts‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,6 @@ export async function POST(request: Request) {
2828
const { recipient, subject, content, firstName, ndaLink, isNdaEmail } =
2929
(await request.json()) as EmailRequest;
3030

31-
// Log the email details
32-
/* console.log("Email request received:");
33-
console.log("To:", recipient);
34-
console.log("Subject:", subject); */
35-
3631
let html = content;
3732

3833
// If it's an NDA email, use the React Email template

‎apps/codebility/app/applicant/waiting/_components/applicantStep2.tsx‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@ function PostReadInstructions({
149149
const onSubmit = async (data: any) => {
150150
setLoading(true);
151151
try {
152-
console.log("Submitting fork URL:", data.fork_url);
153152

154153
/* if non ui/ux role */
155154
if (user?.display_position.includes("UI/UX Designer") === false) {
@@ -282,7 +281,6 @@ function PostSubmitted({
282281
const onSubmit = async (data: any) => {
283282
setLoading(true);
284283
try {
285-
console.log("Submitting fork URL:", data.fork_url);
286284

287285
/* if non ui/ux role */
288286
if (user?.display_position.includes("UI/UX Designer") === false) {

‎apps/codebility/app/auth/actions.ts‎

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -193,10 +193,7 @@ export const signupUser = async (formData: FormData) => {
193193
nda_document = ndaUploadResult.documentUrl;
194194
nda_signed_at = new Date().toISOString();
195195
ndaProcessedWithStorage = true;
196-
197-
console.log(`NDA stored in Supabase Storage:
198-
- Signature: ${ndaUploadResult.signatureUrl}
199-
- Document: ${ndaUploadResult.documentUrl}`);
196+
200197
} else {
201198
console.error("Failed to upload NDA to storage:", ndaUploadResult.error);
202199

@@ -280,12 +277,6 @@ export const signupUser = async (formData: FormData) => {
280277
? "Account created successfully! NDA files securely stored. Redirecting to sign-in page..."
281278
: "Account created successfully! Redirecting to sign-in page...";
282279

283-
console.log(`Signup completed for ${email_address}:
284-
- User ID: ${user.id}
285-
- NDA Status: ${nda_status}
286-
- NDA Storage Method: ${ndaProcessedWithStorage ? 'Supabase Storage' : 'Database'}
287-
- Profile Image: ${image_url ? 'Uploaded' : 'None'}`);
288-
289280
return {
290281
success: true,
291282
data: user,

‎apps/codebility/app/auth/password-reset/action.ts‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,10 @@ import { headers } from "next/headers";
55

66
export const resetUserPassword = async (email: string) => {
77
try {
8-
console.log("Starting password reset for:", email);
98

109
const supabase = await createClientServerComponent();
1110
const headersList = await headers();
1211
const origin = headersList.get("origin") || process.env.NEXT_PUBLIC_APP_BASE_URL;
13-
14-
console.log("Origin determined as:", origin);
1512

1613
// check the user of the email
1714
const { data, error: userError } = await supabase
@@ -30,14 +27,10 @@ export const resetUserPassword = async (email: string) => {
3027
throw new Error("User not found");
3128
}
3229

33-
console.log("User found:", { name: data.first_name, status: data.availability_status });
34-
3530
const url = data.availability_status === "passed"
3631
? `${origin}/auth/callback?redirect_to=/home/settings/account-settings`
3732
: `${origin}/auth/callback?redirect_to=/applicant/account-settings`;
3833

39-
console.log("Redirect URL:", url);
40-
4134
/*
4235
* Send password reset email using Supabase
4336
* The redirectTo URL is where the user will be redirected after clicking the link in the email

0 commit comments

Comments
 (0)