feat(mobile,ui-native,features): offer Review beside a pull request's title, as the panel's phone
DA
1h ago+97+97+01234567890123456789-31-31-01234567890123456789
Item 25 of "iOS: match desktop where iOS diverged". Stacked on #10561 (9f4a848d's code-viewer stack), which adds the review screen this opens. Once #10561 is on main, I'll rebase this onto main and retarget it.
The panel offers Review on every pull request it holds (reviewable). On a phone it stands beside the title (#10939) and opens the panel where the review says Comment, Approve, or Request changes, submitted on GitHub as the member. iOS offered only a Comment row, and #10561's review screen could only be reached from the Files list's ⋯ while a pending review stood.
Checked first: no service or host change needed
- The iOS app writes through the same act as the panel,
PULL_REQUESTS_ACTION, whichclient-parity.tsmarks EVERYWHERE. It takes the full request union. - The service's
SUBMIT_REVIEWsubmits the member's pending review if they have one, else a new review (agent-pull-request-procedures.ts).
What changes
PullRequestHeadtakesreview. It stands a small bordered Review button beside the title, on the title's first baseline, and the title takes the rest of the row.- The pull request page offers Review once its pull request is read, opening
iosPullRequestReviewRoute. - The review screen (#10561's): with no pending comments, it now says what submitting does ("Submitted on GitHub as you."), the panel's own lead, instead of "You have no pending review on this pull request.", since it now opens for a fresh review too.
REVIEW_PANEL_WORDSgainsOPEN,openWithandlead, moved from the panel'spull-request-review.tsx, so both say the same. The panel now reads them from there.
Flow
In maestro/pull-request.yaml, on #128:
- Review is pressed, and the flow sees the review screen with the fixture's pending comment (
pull-request-review-open). - The capsule is switched to Approve (
pull-request-review-approve). - Send closes the screen back to the page.
Tests
- Ran
packages/panel/src/tasks/agent-pull-request-tab.test.ts(82 passed), which covers the review panel whose words moved. tsc --buildforapps/mobile. Its one error, infeatures/src/turn-run/tool-set.ts, is on the #10561 base without this change too: that base predatesmain's dependency update.- oxlint and Biome on the changed files.
- Before/after on the Mac is queued. Hold for Dean's look before merge.
🤖 Generated with Claude Code