Repository navigation
Make GitHub PR diff headers clickable across the row - #5901
Merged
ymichael merged 4 commits intoOct 20, 2026
Merged
Conversation
ymichael
deleted the
bb/fix-dead-clicks-on-onboarding-plugin-cards-thr_n58ze336fz
branch
October 20, 2026 19:32
alexandre-vl
added a commit
to alexandre-vl/bb
that referenced
this pull request
Oct 21, 2026
Port get-bb#5901 to the Files tab's rows: the toggle stretches over the header with a positioned pseudo-element, the file link stays above it, and repeated clicks no longer select text.
This was referenced Oct 21, 2026
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
The GitHub PR file diff header highlighted its entire padded row on hover, but only the small expand glyph toggled the diff. Real clicks on the padding, filename text, and addition/deletion counts did nothing. This is the same hit-area mismatch addressed for other rows in #5891.
What changed
Stretch the existing toggle button over the highlighted header using the established positioned pseudo-element pattern. Keep the workspace filename link above that area so its file-opening action remains available. Expose the toggle state with
aria-expandedand prevent accidental text selection on repeated clicks.Regenerate the lockfile after syncing main to restore the missing TypeScript 7 package entries introduced by #5640. CI previously stopped at frozen dependency installation before running any code checks. Bump the SDK patch version for the same upstream change’s updated bundled contract declarations, as required by the npm version guard.
How you verified
Reproduced before the change with real Chromium clicks: top/left padding, counts, and filename did nothing; the glyph expanded the diff.
Verified after the change with real clicks on all four padding edges, counts, filename, and glyph for modified, removed, and oversized-diff fixture files. Each expands and collapses; Enter and Space also work.
Confirmed padding clicks on a
pnpm start:worktreebuild with local synthetic PR data.pnpm exec turbo run typecheck lint test --filter=bb-plugin-githubpassed, including all 44 tests.pnpm exec turbo run build --filter=bb-plugin-githubpassed.pnpm install --frozen-lockfile --ignore-scriptspassed after regenerating the lockfile.