Skip to content

[FE-14] Build /onboarding page — first-time setup guide for new users #826

Description

@mftee

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

  • Onboarding shown automatically to new users with zero documents
  • Never shown again after completion or skip
  • Step progress indicator shows current step
  • Upload card in Step 2 calls the real POST /api/documents/upload endpoint
  • Back and Next navigation between steps

Metadata

Metadata

Assignees

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions