Skip to content

Commit 93fab56

Browse files
Merge pull request #541 from CodebilityDev/console-logs/cleaning
Another part of cleaning up console logs.
2 parents c4df2d5 + 6185e21 commit 93fab56

37 files changed

Lines changed: 169 additions & 413 deletions

File tree

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,6 @@ const Navigation = () => {
278278
const { data: { user }, error: authError } = await supabase.auth.getUser();
279279

280280
if (authError) {
281-
console.log("Auth error:", authError.message);
282281
setUserData(null);
283282
return;
284283
}

‎apps/codebility/app/(marketing)/codevs/_components/CodevsProject.tsx‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,11 @@ export default async function ProjectSection() {
8484
// Validate the URL before adding to carousel
8585
try {
8686
new URL(imageUrl);
87-
console.log(`✅ Valid image URL for project ${project.name}:`, imageUrl);
8887
} catch (error) {
89-
console.warn(`❌ Invalid image URL for project ${project.name}:`, imageUrl);
9088
// Use fallback image for invalid URLs
9189
imageUrl = '/assets/images/index/projects-large.jpg';
9290
}
9391
} else {
94-
console.warn(`⚠️ No image found for project ${project.name}, using fallback`);
9592
// Use fallback image for projects without images
9693
imageUrl = '/assets/images/index/projects-large.jpg';
9794
}
@@ -132,4 +129,4 @@ export default async function ProjectSection() {
132129
)}
133130
</Section>
134131
);
135-
}
132+
}

‎apps/codebility/app/(marketing)/hire-a-codev/_components/CodevsProject.tsx‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,11 @@ export default async function ProjectSection() {
8484
// Validate the URL before adding to carousel
8585
try {
8686
new URL(imageUrl);
87-
console.log(`✅ Valid image URL for project ${project.name}:`, imageUrl);
8887
} catch (error) {
89-
console.warn(`❌ Invalid image URL for project ${project.name}:`, imageUrl);
9088
// Use fallback image for invalid URLs
9189
imageUrl = '/assets/images/index/projects-large.jpg';
9290
}
9391
} else {
94-
console.warn(`⚠️ No image found for project ${project.name}, using fallback`);
9592
// Use fallback image for projects without images
9693
imageUrl = '/assets/images/index/projects-large.jpg';
9794
}
@@ -132,4 +129,4 @@ export default async function ProjectSection() {
132129
)}
133130
</Section>
134131
);
135-
}
132+
}

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,6 @@ export const signupUser = async (formData: FormData) => {
170170
const signedAt = formData.get("ndaSignedAt") as string;
171171

172172
if (ndaSigned === "true" && signature && document) {
173-
console.log("NDA data found in form submission, processing with storage system...");
174173

175174
try {
176175
// **NEW: Upload NDA files to Supabase Storage instead of storing base64**
@@ -185,7 +184,6 @@ export const signupUser = async (formData: FormData) => {
185184
);
186185

187186
if (ndaUploadResult.success) {
188-
console.log("NDA files uploaded to storage successfully");
189187

190188
// Set the storage URLs instead of base64 data
191189
nda_status = true;
@@ -198,7 +196,6 @@ export const signupUser = async (formData: FormData) => {
198196
console.error("Failed to upload NDA to storage:", ndaUploadResult.error);
199197

200198
// **FALLBACK: Use base64 storage if storage upload fails**
201-
console.log("Falling back to base64 storage for NDA data");
202199
nda_status = true;
203200
nda_signature = signature;
204201
nda_document = document;
@@ -208,7 +205,6 @@ export const signupUser = async (formData: FormData) => {
208205
console.error("Error processing NDA with storage system:", ndaError);
209206

210207
// **FALLBACK: Use base64 storage if there's an error**
211-
console.log("Falling back to base64 storage due to error");
212208
nda_status = true;
213209
nda_signature = signature;
214210
nda_document = document;
@@ -357,7 +353,6 @@ export const signOut = async (): Promise<void> => {
357353
if (error) throw new Error(`Sign out error: ${error.message}`);
358354

359355
clearUser();
360-
console.log("User successfully signed out");
361356
// Redirect to the /codev page
362357
redirect("/codev");
363358
} catch (error) {

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ export const resetUserPassword = async (email: string) => {
4444
throw new Error(error.message || "Failed to send reset email");
4545
}
4646

47-
console.log("Password reset email sent successfully");
48-
4947
} catch (error) {
5048
console.error("Error resetting password:", error);
5149
throw new Error(`Failed to reset password: ${error instanceof Error ? error.message : 'Unknown error'}`);

‎apps/codebility/app/home/(dashboard)/_components/DashboardCurrentProjectModal.tsx‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ export default function DashboardCurrentProjectModal() {
8080
const projectIds = projectMemberships.map((pm: any) => pm.project_id);
8181

8282
if (!projectIds.includes(projectId)) {
83-
console.log("User is not a member of this project.");
8483
setTasks([]);
8584
return;
8685
}

‎apps/codebility/app/home/(dashboard)/actions.ts‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ export const startUserTimer = async (codevId: string) => {
4040
.eq("id", codevId)
4141
.select();
4242

43-
console.log("start user timer error ", error);
4443
};
4544

4645
const stopUserTimer = async (codevId: string) => {
@@ -53,7 +52,6 @@ const stopUserTimer = async (codevId: string) => {
5352
})
5453
.eq("id", codevId);
5554

56-
console.log(error);
5755
};
5856

5957
export const logUserTime = async (formData: FormData) => {

‎apps/codebility/app/home/_components/LeftSidebar.tsx‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ const LeftSidebar = () => {
5656

5757
// Filter out Codev Overflow from CODEVS section
5858
if (link.label === "Codev Overflow") {
59-
console.log("🚧 Codev Overflow feature not yet implemented - hiding from navigation");
6059
return false;
6160
}
6261

‎apps/codebility/app/home/account-settings/action.ts‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ export const updatePassword = async (formData: FormData) => {
1616
});
1717

1818
if (signInError) {
19-
console.log("error message: ", signInError.message);
2019
return { succes: false, error: signInError.message };
2120
}
2221

@@ -25,7 +24,6 @@ export const updatePassword = async (formData: FormData) => {
2524
});
2625

2726
if (updateError) {
28-
console.log("Error updating password: ", updateError.message);
2927
return { success: false, error: updateError.message };
3028
}
3129

‎apps/codebility/app/home/applicants/_components/ApplicantClientWrapper.tsx‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ export default function ApplicantClientWrapper({
4040
};
4141

4242
const closeModal = () => {
43-
console.log("🔒 Closing modal");
4443
setIsModalOpen(false);
4544
setSelectedApplicant(null);
4645
};

0 commit comments

Comments
 (0)