Skip to content

Center empty state agrees with the first-run tour and offers a next step - #427

Open
frenchie4111 wants to merge 2 commits into
mainfrom
first-run-empty-state
Open

frenchie4111 wants to merge 2 commits into
mainfrom
first-run-empty-state

Conversation

@frenchie4111

Copy link
Copy Markdown
Collaborator

Found in a new-user dogfood pass. Right after adding their first repo, the center pane said "Select a worktree to begin" while the tour popout said "This is your main workspace… Start something new". The two messages contradicted each other, and "worktree" is jargon at that point.

Change

New CenterEmptyState (src/renderer/components/CenterEmptyState.tsx) replaces the fallback text in App.tsx:

  • Tour on home (popout visible): "Your project is ready" plus Start something new. This button and the popout's now call the same handleTourStart callback, so the kickoff and tour progress behave the same from either one. The center button also gives a way forward if the popout hides because its row is scrolled out of view.
  • Repos but nothing selected: "Pick a project on the left, or start a new task" plus a New task button that opens the New worktree screen. It shows the user's newWorktree hotkey (⌘N by default).
  • No repos: "Add a project to get started" plus Open Repository.

No new slice state; the tour step already lives in the onboarding slice. Uses the canonical text-* / icon-* sizes from CLAUDE.md §11.

Before / after

Checked in the headless web client with a throwaway data dir and a sandbox repo. Both have been deleted.

Before After
Right after adding the first repo
Generic fallback (tour dismissed)

I also clicked New task and confirmed it opens the New worktree screen. I didn't click Start something new in the sandbox, because it would launch a real agent kickoff. It's the same handler the popout already used.

Verification

  • npm run typecheck ✅
  • npx electron-vite build ✅
  • npx vitest run: 2843 passed ✅

🤖 Generated with Claude Code

While the tour is on its home step the center pane now says the project is
ready and offers the same Start something new action as the popout (shared
handler). Otherwise it suggests picking a project or starting a new task,
with the New worktree hotkey, and the zero-repo case offers Open Repository.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@frenchie4111
frenchie4111 deployed to evidence-review-auto November 26, 2026 18:47 — with GitHub Actions Active
github-actions Bot added a commit that referenced this pull request Nov 26, 2026
@github-actions

Copy link
Copy Markdown

❔ Evidence review: inconclusive

I could not reach the center empty state in the fixture, so the PR's new copy and buttons were never seen on screen in either build. Every route left a workspace visible: a worktree with an open tab stays selected, and closing its Claude Code tab does nothing in either build. The PR's claims are untested, not disproven. Reaching this state probably needs a fixture with no open tabs, or a tour-home state that I could not set up.

Claim Evidence Notes
❔ Tour on home: the center shows 'Your project is ready' with a 'Start something new' button when the popout is hidden. E1 The fallback renders only when no workspace is visible (App.tsx showCenterFallback = !activeWorkspaceVisible). Failed routes: clicking the repo header; closing the Shell tab; Meta+w; clicking the Claude Code tab's x; middle-click on the tab; right-click on the Claude Code sidebar row; right-click on the repo group, which offers Remove project (destructive, not used); selecting fix/readme-typo and closing its tabs, where the Claude Code tab did not close. The tour-home state (first-run-tour.ts tourHomePath, onboarding.tour.step === 'home') was not confirmed in this fixture.
❔ Repos but nothing selected: 'Pick a project on the left, or start a new task' with a New task button showing the ⌘N chip, which opens New worktree. E1 Same blocker: the fallback never rendered, so the New task button and its kbd chip were not reached.
➖ No repos: 'Add a project to get started' with an 'Open Repository' button. The fixture always has acme-app. Removing it was not attempted because it is destructive.
Test plan
  • With the first-run tour on its home step and the popout dismissed/hidden, the center pane shows 'Your project is ready' with a 'Start something new' button (not the old 'Select a worktree to begin' text).: Fresh fixture state where tour is on home step; if popout is visible, check whether the center empty state shows (it only shows when no workspace is selected). May need to deselect worktree / hide popout. → Before: 'Select a worktree to begin' generic text. After: 'Your project is ready' + Start something new button.
  • With repos present but no worktree selected (tour done/dismissed), the center shows 'Pick a project on the left, or start a new task' with a 'New task' button showing ⌘N kbd chip, which opens the New worktree screen.: Dismiss the tour, deselect the active worktree (or start with no selection), observe center pane. Click New task. → Before: generic fallback. After: new copy + New task button with kbd; after click, New worktree screen appears.
  • With no repos, the center shows 'Add a project to get started' plus 'Open Repository'.: Hard to reach in fixture since fixture has repos; likely not reachable without removing repos. Attempt if feasible. → After shows the no-repos copy and button.

E1

Blocked state: the acme-app/main worktree with its Claude Code tab stays selected in both builds, so neither the old "Select a worktree to begin" fallback nor the new CenterEmptyState renders.

Before After
E1 before E1 after

Model anthropic/claude-haiku-5.5 · 34 actions · 714745 reviewer tokens · $0.0754 total (reviewer $0.0754, agents in app $0.0000 over 0 calls)

  • Re-run evidence review on the latest push

Automated evidence review of c60d5dde · run log + transcript

The zero-worktree branch only fired when repos existed but had no rows
yet (boot, remote connecting, missing dirs), where telling the user to
add a project points the wrong way; with no repos the welcome wizard owns
the screen. Mode selection is now a pure tested helper, and the tour's
Start something new button is shared with the center empty state so
styling and busy state can't drift.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch was successfully deployed

1 active (outdated) deployment
evidence-review-auto — c60d5dde Deployed Nov 26, 2026 by frenchie4111 via review #91
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