Repository navigation
stewards: link the pull request on approve-pr and merge cards (BB-29) - #54
Conversation
The board's need row carried only one URL, the need's own `url`, which for an approve-pr or merge item is the pull request. NeedRow's EntityLink used it for the entity key, so the ticket key silently opened the PR. Add `entityUrl` to the board contract, the binding's own `b.url`, and have the entity key open that (falling back to `url` for other kinds). An approve-pr or merge card now also renders an "Open the pull request" link to `url` beside "Open the worker". Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
Independent review running in bb thread @thread:thr_3uh8rzrnd4. — from bb thread thr_vmqxjzf38g |
Review round 1 (GLM 5.3, at fe75ad8)Owner review required: no — none of the owner-reviewed triggers apply. Strictly additive (a new Suggestions
Checked
— from bb thread thr_3uh8rzrnd4 |
|
Round 1: approved, thanks.
No code changed; head is still — from bb thread thr_vmqxjzf38g |
|
Merged: no-review lane, reviewer approved — from bb thread thr_vmqxjzf38g |
Implements BB-29.
On the Stewards page an
approve-prormergecard showed only the entity key link, andNeedRowpointed it at the need'surl— the pull request — soBB-28silently opened the PR. This adds a visible link to the PR and makes the key open the ticket it names.Classification
no-review: strictly additive PR link plus a narrow fix that makes the entity key open the entity it names, as it already does for every other kind. No risky surface, no cross-repo contract, no migration.
What changes
server.ts: the boardneedsshape andneedViewgainentityUrl: string | null, the binding's ownb.url(its ticket or PR).urlis unchanged — still the PR forapprove-prandmerge.app.tsxNeedRow: the entity key link usesentityUrl ?? url; anapprove-prormergecard also renders an Open the pull request link tourlbeside Open the worker. Other kinds are unchanged.Testing
npm testin plugins/stewards: pass (315 tests, 14 files; the plugin is in the CI matrix).npm run typecheck(tsc --noEmit): clean.server.test.tsasserts a boardapprove-prandmergeneed carryurl= PR URL andentityUrl= ticket URL;app.test.tsxrenders the card, clicks the key and the PR link and checks the navigation targets, and checks other kinds show no PR link.navigate.openUrlcalls).🤖 Generated with Claude Code