Skip to content

RED-86: Add stateful onboarding progress system#160

Open
fs21co049adityawaghule wants to merge 8 commits into
mainfrom
feature/RED-86-stateful-onboarding-progress
Open

RED-86: Add stateful onboarding progress system#160
fs21co049adityawaghule wants to merge 8 commits into
mainfrom
feature/RED-86-stateful-onboarding-progress

Conversation

@fs21co049adityawaghule
Copy link
Copy Markdown
Contributor

Summary

  • Implements persistent onboarding progress that survives page refresh
  • Users can resume onboarding from where they left off
  • Adds API routes for GET/PATCH onboarding progress
  • Client-side Zustand store syncs with backend state
  • Auto-redirects completed users to dashboard

Changes

  • src/app/api/onboarding/route.ts - New API routes for onboarding progress
  • src/stores/onboardingStore.ts - Zustand store for client-side state
  • src/components/onboarding/OnboardingStateSync.tsx - Component for auto-resume logic
  • Updated OnboardingFlowHeader, create-project, connect-reddit pages to sync progress
  • Updated RoadmapGenerateForm to track roadmap completion
  • Added OnboardingStateSync to app layout

Testing

  • Lint passes
  • All 438 unit tests pass

Linked Issue

RED-86

Aditya and others added 8 commits February 18, 2026 14:51
- Added workspaceId to all analytics functions (funnel.ts, validation.ts)
- All SQL queries now scoped by workspace_id
- Added date validation via resolveDateRange (returns 400 on invalid)
- Routes pass session.workspaceId to analytics functions
- Enforced ordered stage progression in funnel paths
- Resolved conflicts with origin/feature/LIN-55-comment-first-mode
- Kept ttfv functionality and dateRange tests
- Redesigned homepage with Problem → Workflow → Proof → CTA hierarchy
- Created modular components: HeroSection, ProblemSection, WorkflowSection, ProofSection, FeaturesSection, CTASection
- Added outcome-first headline: Find Viral Reddit Content in Minutes
- Added SEO metadata (title, description, openGraph)
- Included metrics and testimonials for social proof
@linear
Copy link
Copy Markdown

linear Bot commented Feb 28, 2026

RED-86 UX-3: Stateful onboarding progress

Replace static onboarding checklist with data-backed progress.

Required:

  • Derive completion states from real workspace data (project/account/roadmap)
  • Show step status badges and blocked reasons
  • Deep-link to exact next action

DoD:

  • Onboarding reflects true workspace state
    • Continue path is explicit and deterministic
  • Empty/error states are actionable

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.

2 participants