Repository navigation
Use one tap-to-open, chevron-row-to-close model for every composer banner - #4890
Merged
Merged
Conversation
…nner Composer banners (to-dos, background commands, goal, prompt mode, machine status, and the context banner's parent, child-thread, status, and changed-files sections) drop their header chevrons: the header opens the banner and a full-width up-chevron row at the bottom of the body closes it, with focus handed between the two. The collapse row, count pill, peek layers, and focus hand-off move into a shared-ui registry item so the core app and the workflows plugin share one definition. Collapsed bodies are now inert, and the workflow stack re-collapses when fewer than two workflows run and no longer carries its expanded state across threads. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
The context banner's changed-files and status sections and the machine status toggle now take the remaining width of their header row, so tapping anywhere outside the row's other controls opens them. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Collapsed composer banner headers show a down chevron at their right edge on hover or keyboard focus. It stays hidden at rest, on touch screens, and while the banner is open. Small icon-only section toggles keep their compact width and show no chevron. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Background commands and active child threads replace their "+N more" text with the same +N count pill the workflow stack uses. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The +N count pill now sits flush with the right edge of its banner header. On hover or keyboard focus the disclosure chevron takes its place instead of reserving its own space; touch screens keep the pill. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The hover chevron and +N pill sit in a 32px trailing slot at the header's right edge, centered on the same column as the Plan and Goal dismiss X. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The hover chevron keeps its own slot in the dismiss column instead of replacing the +N pill, so the count stays visible on hover and the pill sits immediately to the left of the chevron. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Grouped banners (workflow stack, background commands, active child threads) show only the +N pill, centered on the Plan/Goal dismiss column; the pill already signals that the banner opens. Banners without a count keep the hover chevron in that column. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…changes The stack-expanded reset ran after the banner's early return, so a stack that went from two runs straight to none stayed expanded for the next batch. Reset before returning and key the banner by thread so expanded state never carries across threads. Co-Authored-By: Claude Opus 5.5 <[email protected]>
useDisclosureFocusHandoff takes the toggle and returns the trigger and collapse-row handlers, replacing the per-banner wrappers and the context banner's sectionDisclosure helper. Unexport internal class strings, drop an unused prop and a one-use helper, and leave inert coverage to AnimatedBody. Co-Authored-By: Claude Opus 5.5 <[email protected]>
brsbl
added a commit
that referenced
this pull request
Oct 5, 2026
## Human comments ## What was wrong After #4890, banners without a `+N` count show their disclosure chevron only on hover. A single running workflow card has no count, so at rest nothing marked it as expandable, and on touch screens it never showed at all. ## What changed - New `PromptStackChevron` in the shared-ui `prompt-stack-disclosure` registry item: the same trailing slot as the hover chevron (aligned with the Plan/Goal dismiss X), visible at rest, hidden while open. - `ThreadWorkflowCard` and the workflows plugin's `WorkflowComposerCard` use it, so a single workflow card (and each card in an expanded stack) shows the chevron at rest. Grouped banners keep the `+N` pill; other banners keep the hover-only chevron. - Registry output regenerated with `build-registry.mjs`. ## How you verified Before: `52da28609e` (merge base) · After: `f526eead4d` · Captured at 2× in Chrome for Testing via Browser Automation, branch dev app, seeded thread with one running workflow | Screen / state | Viewport | Before | After | | --- | --- | --- | --- | | One workflow / at rest | Desktop · 1440×900 |  |  | | One workflow / at rest | Mobile · 390×844 |  |  | - Measured the card's chevron opacity at rest: 0 before, 1 after, on both viewports. - `ThreadWorkflowCard.test.tsx` now asserts the chevron is present while closed and absent while open. Run in remote CI only. BB-Thread: [Collapse or stack elements](https://brsbl.getbb.app/projects/proj_khiw2za95v/threads/thr_e2uq3rv44u) 🤖 Generated with [Claude Code](https://claude.com/claude-code) > AGENT GENERATED Co-authored-by: Claude Opus 5.5 <[email protected]>
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.
Human comments
What was wrong
After #4889 the workflow cards opened by tapping the card and closed from a full-width chevron row, but every other banner above the composer still toggled from a small rotating header chevron, and grouped banners described extra items with inline "+N more" text. Two expand/collapse models and two count treatments sat in the same stack, inline sections were only clickable on their short label, and the new disclosure pieces were copied between the app and the workflows plugin.
What changed
+Npill in that column instead of "+N more" text and no chevron.prompt-stack-disclosure(useDisclosureFocusHandoff,PromptStackCollapseRow,PromptStackHoverChevron,PromptStackCountSlot,PromptStackPeekLayers) used by the app banners and the workflows plugin. The app addsAnimatedDisclosureBody;PromptStackCardChevronis removed (no remaining users).inert, so hidden controls leave the tab order.Registry output regenerated with
build-registry.mjs. No wire, CLI, or SDK-export changes.How you verified
Before:
f6cd19aac5(merge base) · After:092c7fce5a· Captured at 2× in Chrome for Testing via Browser Automation, branch dev app, seeded thread with every banner kind (2 workflows, 2 background commands, plan mode, Goal, to-dos, 2 active child threads, parent link, 2 untracked files)ThreadWorkflowCard.test.tsx(open/close and focus hand-off);AnimatedBody.test.tsx(inertwhen collapsed);ThreadDetailPromptArea.test.tsx(stack re-collapses below two runs);plugins/workflows/src/app.test.tsx(stack 2 → 0 → 2 re-collapses,+N, peek layers, single-card focus,inert);ThreadPromptContextBanner.test.tsx(+1pill). Run in remote CI only.32e9255d47: security, performance, and code quality found no P0/P1; architecture found one P1 (plugin stack reset skipped when runs dropped to zero or the thread changed), fixed in073b972d7awith a 2 → 0 → 2 test. A follow-up slimming pass folded the toggle handlers into the shared hook without behavior changes.flex-1and may truncate first beside a long PR label and Merge button; two Ladle story hints still describe the old chevrons; focus tests for context-banner sections and Goal/Plan; the plugin card still hand-rolls the animated body markup; the trailing slot assumes 12px host padding.BB-Thread: Collapse or stack elements
🤖 Generated with Claude Code