Add first-run onboarding: full-screen walkthrough + welcome Login tagline
New OnboardingOverlay, shown once for an account with has_completed_onboarding === false - six full-screen steps (Upload, Telegram linking, Discovery, Social, Soundmarks, then a live Privacy step reusing Settings' real toggles), each with a small hand-authored Lottie animation via lottie-react's LottieLight (svg-only, no expression engine - the full build probes a canvas 2D context at import time, which jsdom doesn't implement). Gated in ProtectedRoute.tsx rather than a single page, so a new user reaches it no matter which protected route they land on first. Skip and the final "Start exploring" both call the new completeOnboarding() (optimistic local flip + fire-and-forget API call), so it never reappears - confirmed against a real fresh login, not just a reload. Extracted ToggleRow out of Settings.tsx into components/ui/ so the new privacy step and Settings share one implementation instead of duplicating it. Login.tsx gained a one-line welcome tagline (reusing the PWA manifest's own description) above the sign-in form. Co-Authored-By:Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
Showing
| ... | ... | @@ -19,6 +19,7 @@ |
| "class-variance-authority": "^0.7.1", | ||
| "cn": "^0.4.0", | ||
| "leaflet": "^1.9.4", | ||
| "lottie-react": "^3.1.2", | ||
| "lucide-react": "^1.31.0", | ||
| "react": "^19.2.8", | ||
| "react-dom": "^19.2.8", | ||
| ... | ... |
Please
register
or
sign in
to comment