Improve the UX and UI of the onboarding steps

This commit is contained in:
Urtzi Alfaro
2025-08-11 07:50:24 +02:00
parent c4d4aeb449
commit 652a850d0f
4 changed files with 703 additions and 408 deletions

View File

@@ -1,39 +0,0 @@
# Onboarding Router Test Cases
## Dashboard Access for Completed Users
### Test Case 1: Training Completed
**Given**: User has completed training (`current_step: "training_completed"`)
**When**: User logs in
**Expected**: `nextAction: "dashboard"`
**Message**: "Great! Your AI model is ready. Welcome to your dashboard!"
### Test Case 2: Dashboard Accessible
**Given**: User has reached dashboard accessible step (`current_step: "dashboard_accessible"`)
**When**: User logs in
**Expected**: `nextAction: "dashboard"`
**Message**: "Welcome back! You're ready to use your AI-powered dashboard."
### Test Case 3: High Completion Percentage
**Given**: User has `completion_percentage >= 80` but step may not be final
**When**: User logs in
**Expected**: `nextAction: "dashboard"`
### Test Case 4: Fully Completed
**Given**: User has `fully_completed: true`
**When**: User logs in
**Expected**: `nextAction: "dashboard"`
### Test Case 5: In Progress User
**Given**: User has `current_step: "sales_data_uploaded"`
**When**: User logs in
**Expected**: `nextAction: "onboarding_data"`
**Should**: Continue onboarding flow
## Manual Testing
1. Complete onboarding flow for a user
2. Log out
3. Log back in
4. Verify user goes directly to dashboard (not onboarding)
5. Check welcome message shows completion status