From 34e5cab73334a6a5c4290b7b03c2f6e7bf67b00b Mon Sep 17 00:00:00 2001 From: Rotimi Best Date: Sat, 8 Nov 2025 18:47:53 +0100 Subject: [PATCH] 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. --- ai/prompts/lms-context.md | 12 ++++++++++++ .../components/PricingSection.svelte | 4 ++-- apps/dashboard/src/routes/+layout.svelte | 3 --- 3 files changed, 14 insertions(+), 5 deletions(-) create mode 100644 ai/prompts/lms-context.md diff --git a/ai/prompts/lms-context.md b/ai/prompts/lms-context.md new file mode 100644 index 00000000..0c670219 --- /dev/null +++ b/ai/prompts/lms-context.md @@ -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 +``` diff --git a/apps/dashboard/src/lib/components/CourseLandingPage/components/PricingSection.svelte b/apps/dashboard/src/lib/components/CourseLandingPage/components/PricingSection.svelte index b4dd6aa1..76b9ef81 100644 --- a/apps/dashboard/src/lib/components/CourseLandingPage/components/PricingSection.svelte +++ b/apps/dashboard/src/lib/components/CourseLandingPage/components/PricingSection.svelte @@ -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; diff --git a/apps/dashboard/src/routes/+layout.svelte b/apps/dashboard/src/routes/+layout.svelte index 6fe8a7a9..a33d44c0 100644 --- a/apps/dashboard/src/routes/+layout.svelte +++ b/apps/dashboard/src/routes/+layout.svelte @@ -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();