Skip to content

Smooth post-registration onboarding and progressive learner dashboard - #331

Merged
AQIB-NAWAB merged 1 commit into
mainfrom
feat/smooth-new-user-onboarding
Nov 28, 2026
Merged

AQIB-NAWAB merged 1 commit into
mainfrom
feat/smooth-new-user-onboarding

Conversation

@AQIB-NAWAB

Copy link
Copy Markdown
Collaborator

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

  1. No Day-0 streak popup or pre-signup "missed" days

    • shouldShowStreakPopup now stays hidden for learners with no recorded study activity yet and on their registration day (joinedOn === today).
    • buildStreakWeek marks days prior to the learner's signup date (createdAt) as inactive ("before you joined") instead of missed, rendered calmly in both DailyStreakPopup and StreakPopover.
    • DailyStreakPopup avoids stacking on top of another open dialog, skips the celebration sound when streakCount <= 0, and hides "Share streak" until the learner has an active streak.
    • Synced server/src/shared → frontend/src/shared.
  2. Quieter first-load chrome & overlays

    • AccountSetupPrompt no 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.
    • LearnerStatStrip stays hidden (shouldShowStatStrip) until the learner earns their first streak day, XP, or credits.
    • Hidden "coming-soon" dead-end areas from the primary desktop sidebar (they remain reachable on /learn).
  3. Progressive learner home screen (choose_course → first_lesson → building_habit → established)

    • 0 courses (choose_course): Inline StarterOnboarding with topic filter chips and curated starter courses (free & beginner-friendly first) offering a 1-tap "Start lesson 1" link via /enroll/[slug].
    • Enrolled, 0 progress (first_lesson): Focused "Your first lesson" card without quests, league cards, empty charts, or study-goal modals.
    • After first chapter (building_habit): Shows "This week" alongside Continue learning and offers a calm, dismissible 1-tap QuickGoalNudge (5 / 10 / 20 min / day).
    • Established learners (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/31 passed across streak-popup.test.ts, dashboard-model.test.ts, load-mentee-dashboard.test.ts).
  • frontend: pnpm typecheck, Vitest (22/22 passed across streak-popup.test.ts and new learner-onboarding.test.ts), and ESLint (0 errors, 0 warnings on all touched/new files).

@AQIB-NAWAB
AQIB-NAWAB merged commit 7808d0d into main Nov 28, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant