Repository navigation
Raise Needs You and Done above Pinned in the Projects sidebar - #222
Merged
Merged
Conversation
…ttention # Conflicts: # web/src/projects.test.ts
…ttention # Conflicts: # web/src/sidebar.tsx
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
Agents that need the operator, and finished unread agents, now sit at the top of the Projects sidebar, so nothing has to be unfolded to find them.
This builds the existing contract in
docs/status-model.md(Projects raises Needs You and Done above the tree), which the web shell never drew.projectRowsnow returnsNeeds You · NandDone · Nsections abovePinned, each holding the core'sneeds_you/doneagents whose pane a listed project owns.Each raised row is the Agents list's own row with its place line. It is always folded with its descendant badge, and opening it opens the agent.
The agent also stays in its checkout tree. An ⌥ hold shows its number once: on the raised row, or else on its row under the checkout that owns its pane.
Review
keyboard.ts.web/src/sidebar.tsx(ProjectList, the high-frequency path): rows, places and numbers are memoized so a snapshot does not rebuild the memoized agent rows.web/src/projects.tsnow imports fromnavigation.ts, which importsprojects.tsback. The cycle is only used at call time.Evidence
projects-sidebar.spec.ts, isolated Herdr and hided) Needs You and Done are drawn above Pinned and the agent stays in its tree. The raised row survives a folded checkout and project and names its place. It sends onefocus_panewhen opened, and the section goes away when the question is answered.digit-shortcuts.spec.ts, a real Electron window) an ⌥ hold in Projects shows exactly 2 keycaps:1on the raised row, none on its tree row, and2on the other agent's tree row.projectRowsraised rows (order, drawn-pane filter, forced fold, empty section) andprojectListNumbers.scripts/verify-web.shandcheck-design-contract.mjspass.design/hide-screens.penstill shows the sidebar without raised sections. This PR adds no new part: the rows reuse the section header and the agent row.More evidence
Raised rows stay while the project is folded:
Desktop app, ⌥ held in Projects: one number per agent:
Follow-ups from the review: the pane-to-owning-checkout scan now exists in four places and could become one helper.
sidebar.tsxandnavigation.tseach hold anagentTreethat has to keep the same order.AI tooling: Mostly AI tooling. I checked the behavior by hand against the e2e screenshots and the status-model contract.