Repository navigation
Smooth post-registration onboarding and progressive learner dashboard - #331
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Makes the post-registration experience calmer and more focused for new learners instead of hitting them with streak modals, zeroed gamification bars, password prompts, quests, and leagues on their first visit.
What changed
No Day-0 streak popup or pre-signup "missed" days
shouldShowStreakPopupnow stays hidden for learners with no recorded study activity yet and on their registration day (joinedOn === today).buildStreakWeekmarks days prior to the learner's signup date (createdAt) asinactive("before you joined") instead ofmissed, rendered calmly in bothDailyStreakPopupandStreakPopover.DailyStreakPopupavoids stacking on top of another open dialog, skips the celebration sound whenstreakCount <= 0, and hides "Share streak" until the learner has an active streak.server/src/shared→frontend/src/shared.Quieter first-load chrome & overlays
AccountSetupPromptno longer interrupts Google sign-in users (who already have a name) with a password-creation modal on minute 1, and adds a "Not now" option when a name is requested.LearnerStatStripstays hidden (shouldShowStatStrip) until the learner earns their first streak day, XP, or credits."coming-soon"dead-end areas from the primary desktop sidebar (they remain reachable on/learn).Progressive learner home screen (
choose_course→first_lesson→building_habit→established)choose_course): InlineStarterOnboardingwith topic filter chips and curated starter courses (free & beginner-friendly first) offering a 1-tap "Start lesson 1" link via/enroll/[slug].first_lesson): Focused "Your first lesson" card without quests, league cards, empty charts, or study-goal modals.building_habit): Shows "This week" alongside Continue learning and offers a calm, dismissible 1-tapQuickGoalNudge(5 / 10 / 20 min / day).established): Flips the dashboard hierarchy so Continue learning and This week always sit above Weekly quests and Weekly league.Verification
server:pnpm sync-shared:check,tsc --noEmit, and Vitest (31/31passed acrossstreak-popup.test.ts,dashboard-model.test.ts,load-mentee-dashboard.test.ts).frontend:pnpm typecheck, Vitest (22/22passed acrossstreak-popup.test.tsand newlearner-onboarding.test.ts), and ESLint (0 errors, 0 warnings on all touched/new files).