Repository navigation
Add hover tooltips to diff toolbar buttons - #5829
Merged
Merged
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
brsbl
force-pushed
the
bb/add-tooltips-to-diff-toolbar-thr_jhxbj8dvuh
branch
from
October 20, 2026 22:26
5cfa5e6 to
2ab6679
Compare
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
Diff toolbar icon buttons exposed accessible labels but no visible hover text, making their actions hard to identify.
What changed
aria-pressed; the checkbox retainsaria-checked. Markdown now also has a bottom tooltip with a 300ms provider.aria-pressedindicating state. View labels are Unified view / Split view.How you verified
Final loading-label follow-up PASS on
5cfa5e69aa5b554f0130a08a709e47e2ff702036: full remote CI passed. Bounded real-flow QA held the actual diff-files GET; while loading, the disabled button, focusable wrapper accessible name and bottom hover/focus tooltip all said Collapse all files, with toolbar and three card skeletons visible. Pointer click, Enter and Space were inert; continuing the same request loaded the three fixture files, and enabled collapse/expand worked. Console/page errors: none.Remote CI passed on
0ea5f7209after retrying a packages dependency-install timeout; no code changes were needed. Bounded disabled-reason QA PASS: all three real reasons showed matching wrapper names and bottom tooltips on hover and keyboard focus; pointer click, Enter and Space were inert. The real held diff-files GET resumed unchanged to three files, and enabled collapse/expand still worked.Remote CI passed on prior head
85b3625e0: lint, typecheck, all test shards and SDK guard (18 successful checks, 10 skipped). Coverage includes fixed wrap labels and pressed/checked states, plus both disabled expand/collapse tooltip labels.Original full Slop Cop and real-flow QA passed on
0c8e9c5, with no P0/P1 findings. Convention QA on8e89a6a5cverified bottom placement and provider delay/skip-delay. Later copy checks onb2ccdcef2and compact checkbox P1 validation onaad63b1d8are retained as history; no new full review was run for this copy follow-up.Disabled-state QA passed on
38ec3b127: zero-filter hover/keyboard tooltip, inert disabled click/Enter/Space, and enabled collapse/expand across three files.Bounded real-flow QA PASS on
85b3625e0in isolated dev bb, Chrome for Testing 155.0.8059.79: all four Wrap lines controls keep their names through off/on, with matching pressed/checked states and visibly working wrapping. Filter files remains constant through closed/open/closed with pressed false/true/false.The real Markdown Preview code block shows the new bottom Wrap lines tooltip in both states;
aria-pressedfalse/true andpre/pre-wrapagree. Console/page errors: none. Synthetic fixture restored after capture.Final labels
Diff toolbar hover states
Before:
7e4232ef241b5cdfb7d272cee044fe6f82702c70. After: wrap and active-filter rows85b3625e04c56dca53d3e7f3fe01ada2c33b2ae7; unchanged rows retain actual captures from8e89a6a5c20d56e31916937cf2e969a860f18b21.Same fixture, route, light theme and 1440×900 viewport at 2× (2880×1800 PNGs). Original baseline has no diff hover tooltip.
FilePreview wrap states
Before: original
7e4232efbaseline. After: header and compact checkbox85b3625e04c56dca53d3e7f3fe01ada2c33b2ae7; same 2× viewport as above. Header uses the maximized 1120px pane; File actions uses the actual compact layout in a 560px pane. Each pair matches pane size and wrap state.Disabled collapse tooltip
Before:
7e4232ef241b5cdfb7d272cee044fe6f82702c70· After:38ec3b127307920b84d1a96bc08acc02f7af3c03. Same synthetic fixture, route, filter (no-match-5828), light theme and 1440×900 viewport at 2×. Zero matches naturally displays Collapse all files. Keyboard comparison uses Tab from the filter button: baseline skips the disabled button to line wrap; final head focuses the tooltip wrapper.Markdown code-block wrap tooltip
Before:
7e4232ef241b5cdfb7d272cee044fe6f82702c70· After:85b3625e04c56dca53d3e7f3fe01ada2c33b2ae7. Samebeta.mdfenced-code fixture, route, 560px pane and 1440×900 viewport at 2×. Baseline has no hover tooltip.Collapse all: every state
Rows 1–6 and 6b remain captures from
85b3625e04c56dca53d3e7f3fe01ada2c33b2ae7; rows 7 and 9 remain captures from0ea5f7209d174879f0bb3a57525bbf71d87e5b78; row 8 was refreshed on5cfa5e69aa5b554f0130a08a709e47e2ff702036. Real diff panel at the retained synthetic thread route, light theme, 1440×900 CSS / 2880×1800 PNG (2×). State-specific repository contents below were invented in the isolated fixture; all UI states were reached with ordinary pointer/keyboard controls. No product files changed.Collapse all/Expand alllabels and enabled state, visible card counts, and outcome are recorded per row.0ea5f7209d174879f0bb3a57525bbf71d87e5b78GET /api/v1/environments/env_diff5828/diff/files?target=all&mergeBaseBranch=mainbefore response and continued it unchanged; all three real fixture files loaded afterward, and enabled collapse/expand worked. Expected disabled action label during loading; matched. · captured on5cfa5e69aa5b554f0130a08a709e47e2ff7020360ea5f7209d174879f0bb3a57525bbf71d87e5b78Fixes #5828
BB-Thread-ID: thr_mjt6n8jguk