Repository navigation
Labs: top bar and quick switcher layout - #43
Closed
sean-brydon wants to merge 7 commits into
Closed
sean-brydon wants to merge 7 commits into
sean-brydon wants to merge 7 commits into
Conversation
A small registry of layouts (components/layouts/registry.ts): each says what replaces the sidebar, what bar goes across the top, what replaces the status bar, and what overlay it mounts. Settings › Labs › Layout picks one; prefs keep its id (?layout=<id> in the mock). The sidebar stays the default and is untouched. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Settings › Labs › Layout › Top bar: Home, the project you're in (a menu of every project's worktrees), the worktrees you have open as tabs, what needs you, and the places across the top. ⌃⇥ held shows every agent as a card with the last lines of its screen, ⌘-Tab style; ⌃1–⌃9 go to a worktree tab. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
After a critic's pass on screenshots: the project crumb opens a list of every worktree to filter by name or task (with each project's counts and the boxes, away ones too); the bar counts agents working and done beside what needs you; worktree tabs show just their name and shrink gracefully; the switcher groups agents by what they need with one ring for the pick; narrow windows fold places into More instead of bare icons; the tab strip drops its repeated breadcrumb under the top bar. Axe scenes for all three. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…needs you Second and third critic passes: a stable Projects ⌘E button that opens on the worktree in front, with what needs you from every project at the top and open tabs marked; counts as one labelled chip (2 working · 4 done); Review keeps its label down to 1280px; New task in words when there's room; compact pill tabs whose × overlays on hover; the switcher starts on the worktree you were in before, in two columns with the newest two done and recent; the status bar leaves out what the bar already says. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
It opened under a resting pointer, which took the pick from the keyboard and showed the worktree you were in rather than the one before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d keeps tab names whole Fourth critic pass: places other than Review fold into ⋯ until there's room for their names; the finder preselects the next agent that needs you (or the worktree before), names every row, marks open and here, has the boxes on a line of their own and teaches ⌃⇥; tab × shows on hover so names keep their room; the counts chip turns to glyphs when narrow; the finder is a proper combobox for screen readers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Collaborator
Author
|
Stashed: not going ahead with this layout for now. The branch stays for later. |
This branch was successfully deployed
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.
Settings › Labs › Layout lets you try other ways to lay out the window. The sidebar stays the default and doesn't change. This branch adds the choice and a small registry for it, plus one direction: Top bar and quick switcher. Other branches add the other directions to the same registry.
The registry
app/src/components/layouts/registry.tsholds one entry per layout. An entry says:side, ornullfor nothing);top);bottom);overlay).App.tsx draws the layout from its entry. The prefs keep the layout's id (
prefs.layout), and?layout=<id>picks one in the mock. An id this Shipyard doesn't know shows the sidebar.Top bar
There's no sidebar. The way around runs across the top, and the work gets the window's full width.
The tab strip underneath is unchanged and picks the agent. The status bar leaves out what the bar already says.
Directions explored
Grouped by the question each answers first:
Scores
Each round, a fresh critic subagent scored the screenshots: 1440×900 and 1100×750, dark and light, 32 in all. I fixed what each round found before the next.
My own baseline score is 7. Screenshots undersell how familiar the sidebar is, and that its tree keeps every worktree's state on screen.
Recommendation
Checks
pnpm typecheck:plugins,check:titles,check:csp,check:themes,testandbuildpass.tsc -p e2epasses.e2e/layout-topbar.spec.ts(8 tests), passed 3 times over with--repeat-each=3. It covers opening a worktree, starting a task, reaching Settings, ⌃⇥, ⌘E and closing a tab.cargo checkand the docs build pass.go vetpasses, andgo test -racepasses.internal/wirefailed once and passed on a rerun.internal/boxneeded-timeout 25mon a busy machine. Neither has Go changes on this branch.settings-boxesfails with alistviolation. This branch doesn't touch that screen.🤖 Generated with Claude Code