first-run-ux: welcome modal + first-run gate (PR-B of #1101)#1150
Merged
Conversation
Stacked on top of PR-A (feat/empty-states-foundation), which adds the
ModalWidget primitive and the `hasOnboarded` field. PR-B is the
user-facing flow that consumes both.
What ships:
- `widgets/onboarding/WelcomeModalWidget.ts` (new). Two short panels
wrapped in `<modal-widget>`:
1. Intro — what Continuum is, in one paragraph
2. Hand-off — "Helper AI is in General. Send a message there to
see the system in motion." Skip-keys note: optional cloud
providers in Settings.
Step indicator + Back/Next/Got-it buttons. Backdrop / Escape /
X dismissal is treated as "completed" so the modal doesn't nag
the user the next session.
- MainWidget gate. In `onFirstRender`, checks
`this.currentUser.hasOnboarded` (loaded by ReactiveWidget's
connectedCallback before onFirstRender runs). Falsy → open the
modal. On `welcome-complete`, persists `hasOnboarded: true` via
`data/update` and reflects the value on the in-memory entity so a
re-render doesn't re-open the modal. Persist failure is logged
but not surfaced — the worst-case is "modal shows again next
session."
- Seed: `SYSTEM_ROOM_UNIQUE_IDS` extended with `'general'`. Previous
set was `['settings', 'help', 'theme', 'canvas']`, so a fresh
install put Helper AI into support rooms only and left General
with no AI for users running with zero API keys. The welcome
modal's hand-off copy now matches what's actually in the room.
The constant is referenced from both the fresh-seed and
existing-rooms paths in seed-continuum.ts, so the change applies
in both flows.
Copy choices (per #1101 discussion):
- Skip the API-key step — local inference is enough out-of-box
after #336's model evaluation work; Settings is a follow-up, not a
blocker.
- Feature Helper AI specifically (not GeneralAI, which requires
ANTHROPIC_API_KEY and won't be seeded for no-key users).
- Tone: warm, brief, system-confident — three short paragraphs total
across both panels. Easy to edit at the strings in WelcomeModalWidget.
`npm run build:ts` is green. Not visually validated locally — flow gate
is in the test plan.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Refs #1126
Refs #1101
Supersedes the canary-intake portion of #1108.
Proof