Overview
First-time users land on a blank dashboard with no guidance. An onboarding flow explains what SMALDA does, walks users through uploading their first document, and sets expectations about the AI analysis and blockchain verification steps.
Background
File to create: frontend/app/(protected)/onboarding/page.tsx
Structure:
- Step 1: Welcome — what SMALDA does (explain AI risk scoring and Stellar verification in plain language)
- Step 2: Upload your first document — a simplified upload card with a drag-and-drop zone
- Step 3: Understand your results — explain what PENDING, ANALYZING, VERIFIED, FLAGGED statuses mean
- Step 4: Done — redirect to
/dashboard
Trigger: Show this page automatically for users whose account was created within the last 24 hours and who have zero documents. Store completion in localStorage or on the user profile so it is never shown twice.
A "Skip" button at any step should mark onboarding as complete and redirect to /dashboard.
Acceptance Criteria
Overview
First-time users land on a blank dashboard with no guidance. An onboarding flow explains what SMALDA does, walks users through uploading their first document, and sets expectations about the AI analysis and blockchain verification steps.
Background
File to create:
frontend/app/(protected)/onboarding/page.tsxStructure:
/dashboardTrigger: Show this page automatically for users whose account was created within the last 24 hours and who have zero documents. Store completion in
localStorageor on the user profile so it is never shown twice.A "Skip" button at any step should mark onboarding as complete and redirect to
/dashboard.Acceptance Criteria
POST /api/documents/uploadendpoint