Skip to content

Onboarding: Board layout yields to the first-run hero#72

Merged
Ed-Barnes937 merged 1 commit into
mainfrom
board-onboarding-gap
Jul 21, 2026
Merged

Onboarding: Board layout yields to the first-run hero#72
Ed-Barnes937 merged 1 commit into
mainfrom
board-onboarding-gap

Conversation

@Ed-Barnes937

Copy link
Copy Markdown
Collaborator

Sixth (last) Refined-redesign deferred item — the board-mode onboarding gap found in Phase 3.

The gap

#app.board-mode hides #terminal-pane, which hosts the #onboarding hero. With zero projects and a persisted Board layout (fresh data dir, or deleting your last project while on the Board), the app showed a blank board instead of first-run guidance.

What changed

  • renderOnboarding forces Console whenever the hero should show (onboardingActive(): zero projects, nothing attached) — covers booting into a persisted Board layout and losing the last project while on the Board.
  • The Board segment is guarded during first-run: clicking it shows a toast ("Add a project first — the Board shows your sessions.") instead of switching to an empty surface.

Tests

  • 2 new firstRun.iwft.ts scenarios: the guarded segment (toast + hero stays + Console segment active), and a persisted cc-layout=board boot falling back to Console (localStorage seeded pre-boot via init script).
  • npm run typecheck clean · vitest 62/62 · iwft 106/106.

🤖 Generated with Claude Code

Found in Phase 3 of the Refined run and deferred: #app.board-mode hides
#terminal-pane, which hosts the #onboarding hero — so a user with a
persisted Board layout and zero projects (fresh data dir, or deleting the
last project while on the Board) saw a blank surface instead of first-run
guidance.

Two guards, both keyed on the same onboardingActive() state the hero
already uses (zero projects, nothing attached): renderOnboarding forces
the Console layout whenever the hero should show, and the title-bar Board
segment refuses the switch with a "Add a project first" toast instead of
navigating to an empty board.

firstRun.iwft.ts adds two scenarios: the guarded Board segment, and
booting with a persisted cc-layout=board falling back to Console.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@Ed-Barnes937
Ed-Barnes937 merged commit 9707c1d into main Jul 21, 2026
4 checks passed
@Ed-Barnes937 Ed-Barnes937 mentioned this pull request Jul 22, 2026
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