chore: [FIXED] clean up console logs in layout and pricing components, add context prompt for ClassroomIO

This point I have fixed 2 major issues
1. After signing in with Google auth, join a course and going to the course, when you click the back button in the page nav, it takes you to admin instead of lms

2. When you open a course landing page, click enroll, it redirects to 404 instead of the invite page.
This commit is contained in:
Rotimi Best
2025-11-08 18:47:53 +01:00
parent b3d5f291f0
commit 34e5cab733
3 changed files with 14 additions and 5 deletions
+12
View File
@@ -0,0 +1,12 @@
# Prompt
This prompt is used to give any AI chat bot context about ClassroomIO
```txt
I am building a LMS for teachers and students to collaborate on a course. Students can enroll in a course or be giving access to a course. Teachers can be invited into an org by an admin to create courses and manage students. For auth we support Email/Password and Google.
The tech stack is
- Sveltekit - dashboard (teacher view) and lms (student view)
- Supabase - Auth, DB requests, Storage
- Hono - API for long running processes like video uploads
```
@@ -37,10 +37,10 @@
course_cost: courseData.cost,
course_free: isFree
});
console.log('$currentOrg', $currentOrg);
if (isFree) {
const link = getStudentInviteLink(courseData, $currentOrg.siteName, $currentOrgDomain);
console.log('link', link);
goto(link);
} else {
openModal = true;
-3
View File
@@ -68,7 +68,6 @@
$globalStore.orgSiteName = data.orgSiteName;
$globalStore.isOrgSite = data.isOrgSite;
console.log('Setting current org to', data.org);
currentOrg.set(data.org);
// Setup internal analytics
@@ -77,8 +76,6 @@
setTheme(data.org?.theme);
}
$: console.log('Current org', $currentOrg);
onMount(() => {
pageSetup();