Skip to content

stewards: sidebar approve-pr rows get Open, Approve and Details (BB-66) - #90

Merged
trotterdylan merged 2 commits into
mainfrom
bb/bb-66-sidebar-approve-pr-row-actions-thr_grbretcx5w
Oct 26, 2026
Merged

trotterdylan merged 2 commits into
mainfrom
bb/bb-66-sidebar-approve-pr-row-actions-thr_grbretcx5w

Conversation

@trotterdylan

Copy link
Copy Markdown
Collaborator

Implements BB-66. In the stewards sidebar's Needs you block, an approve-pr row now shows three actions — Open the pull request (navigate.openUrl on the item's url, no RPC), Approve (the page's stewardsNeedAction { action: "approve" }, no confirmation, the server's refusal shown in the row), and Details (the board at the project, what Open did) — and its text wraps so the repo, PR number and title are readable. Every other row's page button is renamed Details; choice buttons and the merge row are unchanged.

Merging to bb-plugins main moves the pin, builds a new bb-server image and stages a restart for every developer's server (at Restart now, or in the 03:00–05:00 ET quiet window).

Classification

no-review: strictly additive UI (a new action row) plus a label rename in a live plugin; no contract, no server change, no migration.

What changes

  • plugins/stewards/app.tsx SidebarNeedRow: an approve-pr need row renders "Open the pull request", "Approve" and "Details"; its text uses break-words instead of truncate. The approve write reuses the existing stewardsNeedAction RPC, shows a refusal message in the row, and calls onChanged on success. Every other row's page button now reads "Details".
  • plugins/stewards/app.test.tsx: the BB-46 sidebar block gains tests for the three buttons and wrapped text, the openUrl call with no RPC, the approve RPC arguments and refresh, the refusal message with re-enabled buttons, Details navigation, and the rename on every other row.
  • plugins/stewards/README.md, plugins/stewards/DESIGN.md: the BB-46 "Needs you block" paragraphs describe the three actions and the rename.

Testing

  • npm test in plugins/stewards: pass (529 tests, 18 files).
  • npm run typecheck in plugins/stewards: pass.
  • Not tested: no lint script exists in the plugin or its CI (.github/workflows/plugins.yaml runs install, typecheck and test only).

@trotterdylan

Copy link
Copy Markdown
Collaborator Author

Independent review running in bb thread @thread:thr_k7xi9yrda2.

— from bb thread thr_grbretcx5w

@trotterdylan

Copy link
Copy Markdown
Collaborator Author

Review round 1 (GLM 5.3, at 7e88511)

Owner review required: no — none of the owner-reviewed triggers apply. Strictly additive UI in a live plugin (a new action row reusing the page's existing stewardsNeedAction { action: "approve" } write; no new RPC, contract, setting or migration) plus a button-label rename, which is wording. The PR's Classification line matches.

Blockers

None.

Suggestions

  • plugins/stewards/DESIGN.md (~"The block adds no write path of its own."): that closing sentence now sits directly after a description of the sidebar making the approve write. It is still true in the sense meant (no write the page does not already make), but one clarifying word — e.g. "The block adds no write path the page does not already make." — would keep it from reading as a contradiction. Your call.
  • server.ts's approve-pr path records the closure as "Approved on the Stewards page" and comments Approved … from the Stewards page even when the click came from the sidebar. Out of scope here (the ticket says no server change), but worth a follow-up ticket if the provenance matters for steward wakes.

Checked

  • Ran: npm install --include=dev --legacy-peer-deps, npm run typecheck, npm test in plugins/stewards — pass (529 tests, 18 files). quality_checks (stewards) is in the CI matrix and also passes, so nothing I ran was CI-skipped; there is no lint script to run.
  • Verified against ticket:
    1. approve-pr row renders "Open the pull request", "Approve", "Details"; text uses break-words not truncate — met (app.tsx SidebarNeedRow; tested).
    2. "Open the pull request" calls navigate.openUrl(item.url), no RPC — met (button guarded on prUrl !== null; server.ts always files the need with pull.url ?? pull.key, so the guard is defensive only; tested).
    3. "Approve" calls stewardsNeedAction { action: "approve", note: null, choice: null }, no confirm dialog; ok: true → onChanged (refetch, verified to re-call stewardsSidebar); ok: false → server message in the row, disabled only while state === "running" so buttons re-enable — met; matches the page's act("approve") shape exactly.
    4. "Details" → toPluginPanel(BOARD_PATH, { subPath: projectId }), same as the old Open — met (tested).
    5. merge, provide-secret, configure, free-text decide/question rows show Details; no "Open" label remains anywhere in the sidebar components (grepped; only page surfaces keep "Open …" labels); choice buttons unchanged and still covered by the BB-46 choice tests — met.
    6. README.md and DESIGN.md "Needs you block" paragraphs describe the three actions and the rename — met.
  • Also checked: no source-contract.ts or other contract file touched; the refactor of choose into run preserves the question/decide write shapes byte for byte.

— from bb thread thr_k7xi9yrda2

@trotterdylan

Copy link
Copy Markdown
Collaborator Author

Round 1 addressed (pushed d35abcd, docs-only):

  • Suggestion 1 (DESIGN.md wording): fixed in d35abcd — "The block adds no write path the page does not already make."
  • Suggestion 2 (server.ts provenance "Approved … from the Stewards page" for a sidebar click): declined — the ticket scopes this PR to the sidebar app and explicitly excludes any server change; noting it here as a possible follow-up if the wake provenance matters.

No code changed since the approved sha; typecheck and the stewards suite are unaffected.

— from bb thread thr_grbretcx5w

@trotterdylan

Copy link
Copy Markdown
Collaborator Author

Review round 2 (GLM 5.3, at d35abcd)

Owner review required: no — none of the owner-reviewed triggers apply (unchanged from round 1).

Blockers

None.

Resolved since round 1

  • Suggestion 1 (DESIGN.md "no write path of its own" wording): resolved by d35abcd — now reads "The block adds no write path the page does not already make."
  • Suggestion 2 (server-side "from the Stewards page" provenance wording): declined with a valid reason — out of scope, the ticket allows no server change. Fine as a follow-up.

Checked

  • Diff 7e88511..d35abcd is one line in plugins/stewards/DESIGN.md, docs only; no code, tests or contracts touched, so no tests re-run and the round-1 approval stands on the new head. Merge when checks are green.

— from bb thread thr_k7xi9yrda2

@trotterdylan
trotterdylan merged commit e735d30 into main Oct 26, 2026
20 checks passed
@trotterdylan
trotterdylan deleted the bb/bb-66-sidebar-approve-pr-row-actions-thr_grbretcx5w branch October 26, 2026 14:26
@trotterdylan

Copy link
Copy Markdown
Collaborator Author

Merged: no-review lane, reviewer approved d35abcd, checks green. merge commit e735d30

This merge to bb-plugins main moves the pin, builds a new bb-server image and stages a restart for every developer's server (at Restart now, or in the 03:00–05:00 ET quiet window).

— from bb thread thr_grbretcx5w

trotterdylan added a commit that referenced this pull request Nov 13, 2026
…353)

Implements [BB-320](https://linear.app/bit-complete/issue/BB-320). Dependabot added alerts #86–#90 on `plugins/voice-transcription/package-lock.json` — five `hono` advisories (GHSA-3gg2-335m-rxc6, GHSA-h7mg-cq63-vhpq, GHSA-4m76-xfj5-7975, GHSA-4h7h-rv7c-7m2v, GHSA-46wx-v44x-9hh2), all fixed in 4.13.16. The lockfile was at 4.13.14; this raises the `hono` devDependency range to `^4.13.16` and re-resolves it to 4.13.18. PR #352 did the same for the other twelve manifests.

> **Restart note:** this merge to `bb-plugins` `main` moves the pin, builds a new `bb-server` image and stages a restart on every developer's server (at *Restart now*, or in the 03:00–05:00 ET quiet window).

## Classification
no-review: a lockfile-only patch security bump of an existing devDependency, with no behaviour change. No owner-reviewed trigger applies: the package is already a direct devDependency, and this touches no cross-repo contract, no migration, no production infrastructure and no identity or gate code.

## What changes
- `plugins/voice-transcription/package.json`: the `hono` devDependency range goes from `^4.13.13` to `^4.13.16`.
- `plugins/voice-transcription/package-lock.json`: the root `hono` range and `node_modules/hono` (4.13.14 → 4.13.18, the latest patch satisfying the new range) change; nothing else in the lockfile diff.

Out of scope and untouched: every other plugin, unrelated bumps, and all code.

## Testing
- `npm ci --legacy-peer-deps --no-audit --no-fund`: pass.
- `npm run --if-present typecheck`: pass.
- `npm test`: pass (99 tests, 6 files).
- `npm audit --legacy-peer-deps`: no vulnerabilities, no `hono` advisory.
- `git diff`: only the two files above; the lockfile diff is the root range and the `node_modules/hono` entry.
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