Repository navigation
fix(github): show pull request status for anchors and subpages - #2055
Conversation
Co-authored-by: Carl <acda9e433d19dcd0e6b6840f7f4b98f3a56f1fab98049d444c087019e6d36560@feedback.communities.buzz.xyz> Signed-off-by: Taylor Ho <[email protected]>
|
🤖 Adversarial review by Princess Donut, an AI agent, posted from Taylor's GitHub account on Taylor's behalf. Reviewed head: What I checked
Noted, no change needed
ValidationI read the code and traced the call paths at this head. I didn't rerun the suites: Carl's recorded run covered 320 tests across the GitHub plugin, message links and panel service, and CI is running the full suite. |
kalvinnchau
left a comment
There was a problem hiding this comment.
🤖 Reviewed 400d7b8. No actionable findings. Canonical PR badge state preserves authored link destinations; parser, component, and isolated Chromium/WebKit checks passed. An oversized-message WebKit pointer issue at narrow width/enlarged text remains unattributed; live GitHub/relay and native integration were not exercised.
Picks up the month-boundary StatusEditor test fix (#2064). Co-Authored-By: Claude Opus 5.5 <[email protected]> * origin/main: (56 commits) perf(sidebar): subscribe to selected live and list facts (#1966) feat(desktop): align the sign-in callback page with web branding (#2038) Show linked PRs in Solo headers and move idle huddles to Chat actions (#1968) feat(messages): mark edited messages with "(edited)" (#2020) feat(desktop): bundle the buzz CLI in every package (#2027) feat(plugins): open a plugin page from buzz://plugin links (#2053) feat(plugins): managed plugin sources (#2052) test(browser): prevent sampled clock pause races (#1955) test: fix month-boundary and Sonner mount races in StatusEditor and RelayStaff tests (#2064) test: stop tests leaving temp dirs and a flake-check fixture behind (#1977) fix(messages): release Virtua's held range when scrolling stops (#2032) test(mcp): allow protection checks in bundled help fixture (#2061) fix(emoji): recover transient image failures without reopening chats (#2000) test: wait for dialog focus, reach a reading position, re-sign pair() (#1975) feat(plugins): sign builderlab in through the native fi session in fi builds (#1461) feat(agents): offer bundled Buzz help (#2033) fix(github): show pull request status for anchors and subpages (#2055) fix(dialogs): focus safe controls and task inputs (#2021) fix(composer): truncate workspace names at narrow widths (#2043) AIDA-2287: Refresh public channel search incrementally (#2023) ... Signed-off-by: Alex Rosenzweig <[email protected]>
Category: fix
User Impact: Pull request links show their status icon even when the URL includes an anchor or a pull request subpage.
Problem: Links such as
https://github.com/block/buzz-app/pull/2043#topfell back to the generic GitHub icon. Links to/commits,/checks,/changes, and/fileshad the same problem.Solution: Recognize the parent pull request for badge rendering and share its status lookup across URL variants. Keep the complete authored URL for navigation and preserve the panel's existing handling of destinations it cannot display.
File changes
src/bundled/github/references.ts
Add an opt-in mode that identifies a parent pull request from anchors and subpages, retaining existing URL validation and default panel matching.
src/bundled/github/index.tsx
Use parent pull request recognition when selecting the status badge renderer.
src/bundled/github/PullLink.tsx
Subscribe to the canonical pull request's state while retaining the authored link's destination and label.
src/bundled/github/references.test.ts
Cover anchors, queries, nested subpages, invalid hosts and PR numbers, and unchanged panel matching.
src/bundled/github/PullLink.test.tsx
Verify that URL variants render the PR badge, share one status request, and pass their complete URL through on click.
Reproduction steps
#top,/commits,/checks?check_run_id=1, and/changes#diff-123.Validation
At
400d7b8ddcd88acc561bf61553ba9731201bdfe2:bin/pnpm exec vitest run src/bundled/github src/features/conversation/MessageLink.test.tsx src/features/panels/service.test.tsx— 320 tests passed in 21 files.bin/pnpm typecheckpassed; commit hooks passed.Screenshot
Cropped from the author's real-app test capture to show the anchored link and its status icon.
#top