Skip to content

Tidy mobile prompt rows and the thread info panel - #4470

Merged
brsbl merged 30 commits into
mainfrom
bb/can-you-take-this-work-over-archive-the-other-ag-thr_pspxvua656
Oct 1, 2026
Merged

brsbl merged 30 commits into
mainfrom
bb/can-you-take-this-work-over-archive-the-other-ag-thr_pspxvua656

Conversation

@brsbl

@brsbl brsbl commented Sep 28, 2026 •

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

  • On phones the thread page hid everything under the prompt box, so the permission mode and context usage were unreachable.
  • On the new-thread page the environment picker was cut to "Pro…" because the project, environment and branch pickers didn't fit next to Auto.
  • In the right panel on phones, rows were cramped and the Environment row truncated. With more than one machine, the machine name squeezed the environment down to "Pro…".
  • The right panel didn't say which project the thread belongs to.

What changed

  • Thread page, phones: when the composer is focused, a 44px row under it shows the branch (or the environment when there is no branch) on the left, and Auto ▾ plus the context ring on the right. Tapping the branch or environment opens the right panel's Info tab.
  • Context ring, phones: the used percentage ("4%") sits beside the ring inside the same tap target. It uses tabular digits and the ring's color, so it turns to warning and then destructive at 75% and 90%. At low usage the bare ring read like a loading spinner. Desktop stays ring-only.
  • New-thread page, phones: main's pickers and carets are kept.
    • The row padding now matches the prompt box.
    • When a branch or reuse picker sits beside the environment picker, the environment shows as an icon. Project and branch keep their names.
    • Controls are 44px tall.
  • Right panel (thread info):
    • Adds a Project row.
    • Moves the machine out of the Environment row into its own Machine row when more than one machine is connected.
    • Environment keeps its type icon: worktree for a worktree, folder for a project checkout or personal workspace.
    • Directory uses an open-folder icon so it is distinct from Project.
    • On phones: 40px rows (matching the sidebar and settings lists), 16px icons, and a wider label column.
  • Project checkout icon: the project-checkout environment provider now uses the folder icon instead of the laptop. The laptop now always means a machine, so the Environment and Machine rows no longer share an icon. This also shows in the new-thread environment picker, the recents rows and the desktop composer footer.
  • On desktop, the panel also gets the Project/Machine rows.
  • This is frontend-only, with no server, daemon, CLI or SDK changes.

How you verified

  • Branch web app in headless Chrome for Testing (BB Browser Automation) at 390×844 (phone) and 1440×900 (desktop), 2× density.
  • Fixtures: two connected machines (MacBook Air and a second daemon named Mac mini) and five threads covering a project checkout and a worktree on each machine plus a personal workspace.
  • Before: merge base 9f1490c6b9. After: head 07cf471dcb. Relative times in the recents list differ because the sets were captured minutes apart.
  • Thread page: every control is 44px tall. Tapping the label opens the Info tab. With a long worktree branch or machine name, the left label truncates and the percentage stays visible.
  • New-thread page: no truncation for demo-app / main, and all controls are 44px tall.
  • Right panel: every row is 40px with 16px icons and vertically centered labels.

Screenshots

State Viewport Before After
New-thread page Phone Before: New-thread page After: New-thread page
New-thread environment picker open Phone Before: New-thread environment picker open After: New-thread environment picker open
Project checkout · MacBook Air — thread page Phone Before: Project checkout · MacBook Air — thread page After: Project checkout · MacBook Air — thread page
Project checkout · MacBook Air — right panel Phone Before: Project checkout · MacBook Air — right panel After: Project checkout · MacBook Air — right panel
Project checkout · Mac mini — thread page Phone Before: Project checkout · Mac mini — thread page After: Project checkout · Mac mini — thread page
Project checkout · Mac mini — right panel Phone Before: Project checkout · Mac mini — right panel After: Project checkout · Mac mini — right panel
Worktree · MacBook Air — thread page Phone Before: Worktree · MacBook Air — thread page After: Worktree · MacBook Air — thread page
Worktree · MacBook Air — right panel Phone Before: Worktree · MacBook Air — right panel After: Worktree · MacBook Air — right panel
Worktree · Mac mini — thread page Phone Before: Worktree · Mac mini — thread page After: Worktree · Mac mini — thread page
Worktree · Mac mini — right panel Phone Before: Worktree · Mac mini — right panel After: Worktree · Mac mini — right panel
Personal workspace · MacBook Air — thread page Phone Before: Personal workspace · MacBook Air — thread page After: Personal workspace · MacBook Air — thread page
Personal workspace · MacBook Air — right panel Phone Before: Personal workspace · MacBook Air — right panel After: Personal workspace · MacBook Air — right panel
New-thread page Desktop Before: New-thread page After: New-thread page
New-thread environment picker open Desktop Before: New-thread environment picker open After: New-thread environment picker open
Project checkout · MacBook Air — thread with right panel Desktop Before: Project checkout · MacBook Air — thread with right panel After: Project checkout · MacBook Air — thread with right panel
Project checkout · Mac mini — thread with right panel Desktop Before: Project checkout · Mac mini — thread with right panel After: Project checkout · Mac mini — thread with right panel
Worktree · MacBook Air — thread with right panel Desktop Before: Worktree · MacBook Air — thread with right panel After: Worktree · MacBook Air — thread with right panel
Worktree · Mac mini — thread with right panel Desktop Before: Worktree · Mac mini — thread with right panel After: Worktree · Mac mini — thread with right panel
Personal workspace · MacBook Air — thread with right panel Desktop Before: Personal workspace · MacBook Air — thread with right panel After: Personal workspace · MacBook Air — thread with right panel

BB-Thread-ID: thr_nefp8h4g4r

AGENT GENERATED

🤖 Generated with Claude Code

brsbl and others added 20 commits September 28, 2026 14:08
The narrow-composer rule hid the footer (environment, machine, permission
picker, context usage) even while the composer was expanded, so on phones the
permission picker was unreachable and taps collapsed the composer.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
On compact viewports the follow-up composer footer shows project, machine
and branch as icons only. Tapping them opens the responsive drawer with the
full project, machine, environment and branch names, branch copy and
"New thread in this environment". The drawer names the thread's machine
even when only one machine is enrolled.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Project, machine and branch are icon-only buttons that open the
thread environment drawer; permission mode keeps its label and caret.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The new-thread-in-environment action moves out of the drawer into an
icon button beside it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Thread page: Env. and New thread in env. New-thread page: Project, Env.
and Branch pickers keep their carets with generic labels.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Generic labels hid what was selected. The row now shows compact values
and wraps to a second line instead of truncating.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Restore the compact-container footer hiding for desktop panes and inline
editors, and drop native title tooltips that duplicated aria-label.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@brsbl brsbl changed the title Redesign the mobile row under the prompt box Show mobile environment controls under the prompt box Sep 28, 2026
brsbl and others added 3 commits September 29, 2026 23:52
…anel

Phones show only the permission picker and context ring under the thread
composer; environment details live in the right panel, which gains a
Project row, 44px rows, a wider label column, and coarse-pointer icons.
The new-thread row keeps its pickers and carets but shows the environment
as an icon when a branch or reuse picker sits beside it, so labels stop
truncating to a single letter.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…work-over-archive-the-other-ag-thr_pspxvua656
@brsbl brsbl changed the title Show mobile environment controls under the prompt box Tidy mobile prompt rows and the thread info panel Sep 30, 2026
@brsbl
brsbl merged commit 5559414 into main Oct 1, 2026
20 checks passed
@brsbl
brsbl deleted the bb/can-you-take-this-work-over-archive-the-other-ag-thr_pspxvua656 branch October 1, 2026 18:46
ymichael added a commit that referenced this pull request Oct 5, 2026
## Human comments

## What was wrong

On phones the thread Info tab's sections overlapped: commit rows ran
into "Committed", changed files into "Thread storage", and "Show N more"
became unclickable under the next section. #4470 (5559414) added
`max-md:[&>div]:min-h-10 max-md:[&>div:not(.items-center)]:pt-2.5` plus
`max-md:gap-0` to the Info list so label/value rows would be 40px. The
selector matched every direct child, including the divider and the
vertical Commits, changed-files and Thread storage sections. An explicit
`min-height` replaces a flex item's content-based minimum, so when the
panel overflowed, flex shrink squeezed each section to 40px and its
content spilled into the next. It also stretched the 1px divider to
40px, and the 40px label/value rows no longer matched the 26px commit
and file rows below them.

## What changed

`ThreadMetadataCard` in
`apps/app/src/components/secondary-panel/ThreadMetadataContent.tsx`
drops the phone row-height rule and the phone gap override, so rows use
the desktop rhythm on phones too. That means 30px label/value rows and
26px commit and file rows, and the panel scrolls when content overflows.
#4470's wider phone label column (7.5rem) and tighter panel padding
stay. Desktop classes are unchanged. Frontend-only, one class string.

## How you verified

- `pnpm exec turbo run typecheck lint test --filter=@bb/app` passed on
cad9d7c (569 test files passed, 2 skipped).
- Ladle with a temporary story (not committed) rendering
`ThreadMetadataContent` with fixture data, base db9777f vs head
cad9d7c. Phone cases used a 393px viewport (`max-md`, fine pointer);
desktop used a 1280px viewport with a 360px panel.

| Case | Base db9777f | Head cad9d7c |
| --- | --- | --- |
| 7 commits, 10 files, storage, 640px panel | Commits and Committed
clipped, overlapping; divider 40px; panel 640/652 | No overlap or
clipping; panel scrolls 640/761 |
| Same, click "Show 2 more" | Click lands on the overlapping section;
list stays collapsed | Expands to 7 commits and "Show less"; panel
scrolls 640/813 |
| 3 commits, 3 files, storage, 520px panel | Clipped and overlapping;
panel cannot scroll (520/520) | No overlap; scrolls 520/605 |
| 2 commits, 2 files, everything fits | Info rows 40px vs commit rows
26px; divider 40px | Info 30px, commit 26px, divider 1px |
| No commits, files, storage or PR | Info rows 40px | Info rows 30px,
nothing clipped |
| Desktop width | Info 30px, commit 26px, panel 760/777 | Identical |

No regression test: this is flex layout, which jsdom does not compute.

> AGENT GENERATED

Co-authored-by: Claude Opus 5.5 <[email protected]>
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