Skip to content

Make GitHub PR diff headers clickable across the row - #5901

Merged
ymichael merged 4 commits into
mainfrom
bb/fix-dead-clicks-on-onboarding-plugin-cards-thr_n58ze336fz
Oct 20, 2026
Merged

ymichael merged 4 commits into
mainfrom
bb/fix-dead-clicks-on-onboarding-plugin-cards-thr_n58ze336fz

Conversation

@ymichael

@ymichael ymichael commented Oct 20, 2026 •

Copy link
Copy Markdown
Collaborator

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-expanded and 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:worktree build with local synthetic PR data.

  • pnpm exec turbo run typecheck lint test --filter=bb-plugin-github passed, including all 44 tests.

  • pnpm exec turbo run build --filter=bb-plugin-github passed.

  • pnpm install --frozen-lockfile --ignore-scripts passed after regenerating the lockfile.

AGENT GENERATED

@ymichael
ymichael merged commit 2f4b5e3 into main Oct 20, 2026
48 checks passed
@ymichael
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.
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