Files
HealthLog/prisma/migrations/0030_onboarding_tour_completed/migration.sql
T
Marc-André BombeckandClaude Opus 4.7 db5a49d593 feat(db): User.onboardingTourCompleted flag
v1.4.15 Phase B5 — first commit. Adds a boolean column
`users.onboarding_tour_completed` (default false) to track whether the
user has finished or explicitly dismissed the new spotlight tour that
overlays the dashboard on first arrival.

This is *distinct* from the existing `onboarding_completed_at` column
which gates the 3-step wizard at `/onboarding`. The new tour runs
*after* the wizard, on the dashboard, walking new users through the
tile strip, quick-add menu, insights page, integrations, and (when
B4 ships) achievements. Flipped to `true` on tour completion or
explicit dismiss; users can replay the tour from
Settings → Account → "Restart onboarding tour".

Migration `0030_onboarding_tour_completed` is additive-only (column
default `false`), so no backfill is needed and existing users will
see the tour on next dashboard load — acceptable because the tour is
a 4-6 step tooltip overlay with a Skip button on every step, not a
forced flow.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-09 21:14:00 +02:00

15 lines
816 B
SQL

-- v1.4.15 Phase B5: track completion of the post-onboarding spotlight
-- tour that overlays the dashboard for first-time users.
--
-- Distinct from `onboarding_completed_at` (the 3-step wizard at
-- `/onboarding`). Once the wizard finishes the user lands on the
-- dashboard; this column tracks whether the spotlight tour that walks
-- the user through the tile strip / quick-add menu / insights /
-- integrations has been seen-or-dismissed. Default false so existing
-- users who never saw the tour will see it on next dashboard load
-- (acceptable: it's a 4-6 step tooltip overlay with a Skip button on
-- every step, not a forced flow). Users can replay it from
-- Settings → Account → "Restart onboarding tour".
ALTER TABLE "users"
ADD COLUMN "onboarding_tour_completed" BOOLEAN NOT NULL DEFAULT false;