Public: anyone can read this; the crew can change it.
Review: one clean page where the owner decides - each item says what, why it needs you, the crew's recommendation, and the buttons to act #3254
/review is now one page where the owner decides: each item says what it is, why it needs a person, the crew's recommendation and the evidence, with buttons to act. I fixed the design check that failed on pull #3253 and pushed the fix.
stopped parked by the crew deploy 9611dbe
/review is now one page where the owner decides: each item says what it is, why it needs a person, the crew's recommendation and the evidence, with buttons to act. I fixed the design check that failed on pull #3253 and pushed the fix. I ran bun x tsc --noEmit and bun test on this change's tests plus the cross files (design-lint, hollow, reserved-names, studio, shards, check-list, asks); 180 pass and none fail. I haven't seen the forge's own check on the new push.
Why it failed. The first version gave /review four classes of its own (.review, .review-act, .review-item, .review-shot). docs/DESIGN.md §5d only lets that list shrink, and test/design-lint.test.ts failed on them. I didn't add them to §5d.
The fix.
- Styling. The page is styled by
#reviewand attribute selectors, so it defines no class. - Scripts and tests. The keyboard script and the test now find items and buttons by
data-review-item,button[value=merge]and the like, not by class. - Edited files.
src/web/studio/review_page.ts,src/web/studio/style.tsandtest/review.test.ts.
What changed
- Items.
/reviewlists, newest first, only what a person must settle:- a pull request handed over after three rounds of requested changes;
- a pull request the crew stopped;
- a pull request waiting on a person's review;
- a green pull request waiting more than 24 hours;
- a question the crew put (a parked issue or a declined direction).
- Each item shows:
- title, repository, author and wait time;
- one sentence on why it needs a person;
- the crew's recommendation (approve, change or reply) with its reason;
- evidence: check result, diff stat (read for the first ten items only), preview link and the preview's picture.
- Actions. Merge (through
mergePull, the landing gate), Close, Request changes and Reply, with a text box. After an action the page comes back to the next item. - Keys.
j/kmove,mmerges,ccloses,rfocuses the box, Ctrl/Cmd+Enter sends. - Safety. Every action re-checks that the item is still waiting on the viewer. The POST is same-origin only.
- Home. It shows one line, "N waiting on you, oldest Xh", linking to
/review, and nothing at zero.reviewis now a reserved name. - Tests.
test/review.test.tsseeds a handed-over pull, a stale green pull, a question and a fresh green pull. It checks/reviewlists exactly the first three and that home says "3 waiting on you, oldest 30h". It then runs reply, request changes, close and a real merge, and checks that a non-waiting item and a foreign origin change nothing.
What I left out
- Streaming. The page renders whole. It reports
items,evidenceandrenderin Server-Timing, but I haven't measured them. - Screenshots. I couldn't run a browser here, so there are no before/after screenshots. The page shows the preview's current picture only.
- Held releases. I didn't wire in a release held for a person; no existing ask covers it.
- Other asks. Proposals, settings and ceiling pauses stay on
/asks. - Home flow card. The existing "stuck" card on home still names a handed-over pull. It's a separate piece of home, and I left it.
- Asks API. I haven't changed
GET /api/v1/asks, and I haven't checked whether the two pulls from the probe now appear on/review.
Try it. Sign in as the owner and open /review, or follow the "N waiting on you" line on home. bun test test/review.test.ts.
🤖 Generated with Claude Code
Parked by the crew: the check failed ("every top-level page has an entry in the audit") and the decider saw no point in another try
/reviewis now one page where the owner decides: each item says what it is, why it needs a person, the crew's recommendation and the evidence, with buttons to act. I fixed the design check that failed on pull #3253 and pushed the fix. I ranbun x tsc --noEmitandbun teston this change's tests plus the cross files (design-lint,hollow,reserved-names,studio,shards,check-list,asks); 180 pass and none fail. I haven't seen the forge's own check on the new push.Why it failed. The first version gave
/reviewfour classes of its own (.review,.review-act,.review-item,.review-shot).docs/DESIGN.md§5d only lets that list shrink, andtest/design-lint.test.tsfailed on them. I didn't add them to §5d.The fix.
#reviewand attribute selectors, so it defines no class.data-review-item,button[value=merge]and the like, not by class.src/web/studio/review_page.ts,src/web/studio/style.tsandtest/review.test.ts.What changed
/reviewlists, newest first, only what a person must settle:mergePull, the landing gate), Close, Request changes and Reply, with a text box. After an action the page comes back to the next item.j/kmove,mmerges,ccloses,rfocuses the box, Ctrl/Cmd+Enter sends./review, and nothing at zero.reviewis now a reserved name.test/review.test.tsseeds a handed-over pull, a stale green pull, a question and a fresh green pull. It checks/reviewlists exactly the first three and that home says "3 waiting on you, oldest 30h". It then runs reply, request changes, close and a real merge, and checks that a non-waiting item and a foreign origin change nothing.What I left out
items,evidenceandrenderin Server-Timing, but I haven't measured them./asks.GET /api/v1/asks, and I haven't checked whether the two pulls from the probe now appear on/review.Try it. Sign in as the owner and open
/review, or follow the "N waiting on you" line on home.bun test test/review.test.ts.🤖 Generated with Claude Code
Closes #3247