• Aryan Noshirvnai's avatar
    Add first-run onboarding: full-screen walkthrough + welcome Login tagline · 78a9a6a7
    Aryan Noshirvnai authored
    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: 's avatarClaude Sonnet 5 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
    78a9a6a7
RequireRole.test.tsx 3.58 KB