Skip to content

Cap the width of changed-file folder hints - #5158

Merged
brsbl merged 3 commits into
mainfrom
bb/info-folder-hint-cap-thr_pkx7jnw5gf
Oct 8, 2026
Merged

brsbl merged 3 commits into
mainfrom
bb/info-folder-hint-cap-thr_pkx7jnw5gf

Conversation

@brsbl

@brsbl brsbl commented Oct 7, 2026 •

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

Changed-file rows show the file's full folder path as a hint. When the panel had room, a deeply nested file's hint ran most of the row's width (…s/design-system/src/components/navigation/sidebar/) while the other hints stayed short (src/, docs/). The one long hint broke the list's rhythm.

What changed

The Info row folder hint is capped at max-w-44 (11rem). Long paths still truncate from the left, so the nearest folders stay visible. Plugin names three or four folders above a file stay readable (plugins/navigation/app/ui/, …/provider-claude-code/src/bridge/). Short hints don't change, and the full path stays in the row's tooltip.

Widths were compared on real bb paths. At 7rem every plugin name was cut, and at 9rem provider-claude-code was still cut. At 13rem, long apps/ and packages/ hints began to sprawl across the row again.

Narrow panels already truncated the hint below this width, so phone-width layouts look the same.

How you verified

Captured from the branch web app at 2× in headless Chrome for Testing through the Browser Automation plugin. Both captures use the same fixture thread. Its uncommitted files use real bb paths from plugins/, apps/app/src/ and packages/shared-ui/.

Before: d18f6f2 (main) · After: 78cb136 (PR head) · Captured at 2×

Screen / state Viewport Before After
Uncommitted files / bb paths, list expanded Desktop · 1440×1800 Before: long hints run across the row After: hints capped at 11rem with plugin names visible

Remote CI runs on the PR. Tests, typecheck and lint were not run locally.

Follow-up to #5144.

BB-Thread: Thread storage viz design
BB-Thread-ID: thr_pkx7jnw5gf

AGENT GENERATED

🤖 Generated with Claude Code

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-07T23:36:31.047939Z 07d0681 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@brsbl
brsbl merged commit 86ac764 into main Oct 8, 2026
48 checks passed
@brsbl
brsbl deleted the bb/info-folder-hint-cap-thr_pkx7jnw5gf branch October 8, 2026 00:44
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