Skip to main content
A new signed-in web user gets a short welcome at /onboarding: three steps and a closing screen, in the Sorbet design, in English and Vietnamese. It lives in apps/web/src/app/[locale]/(auth)/onboarding (the (auth) group keeps the Sorbet scope and the /onboarding URL) and never gates product access.

Decisions

The post-sign-in landing has no onboarding-aware hook (the callback, hand-off and return-URL code is frozen), so the web reaches the welcome through the workspace-home banner and the /onboarding link, not through a sign-in redirect.

Regression coverage

  • apps/web/src/lib/onboarding/welcome-gate.test.ts: signed out, not completed, completed, skipped and replay decisions; the banner’s account-age window.
  • apps/web/src/app/[locale]/(auth)/onboarding/welcome-runtime.test.tsx: the /onboarding gate end to end and the resumable ?step=.
  • apps/web/src/app/[locale]/(auth)/onboarding/welcome-flow.test.tsx: skip at every step persists the skip, the product news switch is disabled, off and never written, workspace errors show inline, no second workspace on retry, invitations, interests saved as goals and the education mode; step changes move focus and announce; saved progress survives a remount.
  • apps/web/src/components/notifications/notification-preferences-table.test.tsx (and the apps/workspace copy): the marketing email switch is off, disabled and described by the note; other switches stay enabled; no save on click; Enable all, Disable all and first-load creation never write that pair.
  • apps/web/src/app/[locale]/(auth)/onboarding/actions.test.ts: the limit error code reaches the UI.
  • apps/web/src/app/[locale]/(dashboard)/[wsId]/(dashboard)/welcome-nudge.test.tsx: the banner links to the flow and dismissing records a skip.
  • packages/ui/src/components/ui/custom/__tests__/onboarding-settings-panel.test.tsx: restart opens the welcome flow in replay mode and replaying an app guide is unchanged.