Skip to content

Onboarding: capability-derived provider step and skip paths#550

Merged
Sheldenshi merged 1 commit into
mainfrom
feat/onboarding-provider-step
Jul 8, 2026
Merged

Onboarding: capability-derived provider step and skip paths#550
Sheldenshi merged 1 commit into
mainfrom
feat/onboarding-provider-step

Conversation

@Sheldenshi

Copy link
Copy Markdown
Collaborator

Summary

  • The onboarding wizard gains a provider step, shown only when no LLM provider is configured and the deployment isn't managed: ProviderPicker in the wizard frame with "Skip for now". Saving advances and kicks the Gmail scan; skipping leads to a friendly "connect a model" state on the profile step instead of a failed scan.
  • The sign-in step gains a quiet "Skip for now" (self-host only) that completes onboarding minimally — a user without Google still reaches a working app.
  • Steps are now name-addressed (onboardingSteps(withProviderStep)) so the capability-derived step can join the sequence without re-labeling progress dots; the five product dots stay deployment-stable.
  • The proxy setup gate now passes through to the wizard while onboarding is explicitly incomplete, so fresh installs reach the funnel (and its provider step) instead of bouncing to /setup; completed-but-unconfigured instances keep the /setup bounce.
  • ADR web-onboarding-flow.md documents the capability-derived steps and skip paths.

Test plan

  • bun run typecheck; bun run test — main 4803 pass / 0 fail, web 657 pass / 0 fail with coverage gate
  • Browser-verified live on fresh instances: sign-in skip → usable home; provider step render, skip, and save paths; managed mode shows no skips and no provider step; completed+unconfigured still bounces to /setup

🤖 Generated with Claude Code

Self-hosted deployments with no model provider configured get a provider
step in the first-run wizard, between sign-in and the wizard proper: the
shared ProviderPicker (the exact /setup surface) in the wizard frame, with
its own always-visible "Skip for now". A save advances, refreshes the
setup-status cache, and kicks the Gmail profile scan; skipping defers the
scan entirely and the profile step degrades to a connect-a-model state
(no eternal spinner, no doomed "Try again"). Managed deployments never see
the step (ADR managed-deployment-mode.md).

The wizard's step sequence is now capability-derived and held by NAME
(onboardingSteps / OnboardingStep in lib.ts) — the provider step can join
the sequence after mount when the setup-status probe resolves, and a
numeric position could silently re-label the step the user is on. Sign-in
and the provider step are dotless prerequisites; the five product dots
stay stable for every deployment.

The sign-in step gains a quiet "Skip for now" (withheld when managed)
that completes onboarding minimally — PATCH {completed:true} plus the
browser timezone — so a user without a Google account still reaches the
app.

The proxy setup gate yields to an incomplete funnel: when unconfigured
and self-hosted it now probes GET /api/onboarding, and only an explicit
completed:false passes through (to /onboarding, whose provider step
replaces the /setup detour). Completed instances, unexpected payloads,
and failed probes keep the /setup bounce, and grandfathering keeps
existing installs out of the funnel. /setup invalidates the shared
setup-status cache on save so a funnel entered afterwards never shows a
spurious provider step.

useManagedMode's query is generalized to useSetupStatus (managed +
providerConfigured from the same probe); existing consumers unchanged.

Tests: step-sequence + needsProviderStep + profileCardView units,
StepProvider save/skip wiring, sign-in skip render/fire/pending, profile
connect-a-model state, proxy onboarding-probe decision table. ADR
web-onboarding-flow.md documents the capability-derived steps and skip
paths.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@Sheldenshi
Sheldenshi merged commit 4d24c67 into main Jul 8, 2026
8 checks passed
@Sheldenshi
Sheldenshi deleted the feat/onboarding-provider-step branch July 8, 2026 02:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant