feat(panel,ui): draw a phone's pull request as one page with Checks and Files changed rows
Closed
DA
20h ago+444+444+012345678901234567890123456789-165-165-012345678901234567890123456789
Audit T16 (mobile web follows the iOS app's layout). Held for Dean's look before merge.
What changes on a phone
- The pull request tab draws no tab strip. The Conversation is the pull request's one page, under the header, in iOS's order: the header (state, title, merge, branches, people, labels), then Description, then rows, then Conversation, then the comment box.
- Checks, Chapters and Files changed are rows (glyph, name, the count the tab wore, chevron). Each one opens its view as a page of its own with no pull request header over it.
- The phone's header names the open page ("Checks", "Files changed") and its Back returns to the pull request page at the scroll it was left at. A tab hands that page up through a new
PhoneStepContext(packages/panel/src/desktop/phone-step.ts). The task page'sTaskHeadand the panel's ownPanelPhoneHead(agent and Inbox pages) both read it. - On a phone, Review moves beside the title (it used to sit at the end of the tab strip).
@repo/uiexportsChoiceCount, the choice bar's own count drawing, so the phone rows draw counts exactly as the tabs do.
Desktop and wide web are unchanged: every change is gated on the phone room. A 1280 px shot of ?fixture=agent-pull-request matches main pixel for pixel by eye.
Kept from desktop/web where iOS differs (Rule 2)
- iOS has no Chapters page; desktop/web has the Chapters view; kept it on the web as a third row.
- iOS's rows show words ("4 passed · 1 skipped", "4 files · +32 −2"); desktop/web tabs show counts (✓ 5, 2, 1/4 viewed); kept the counts on the web.
- iOS draws Reviews as a section of reviewer rows; desktop/web shows reviewers' faces in the header's people line; kept the faces on the web.
- iOS offers no Review on the page, only a Comment row; desktop/web has Review and the comment box; kept both on the web (Review beside the title on a phone).
- iOS's ⋯ holds Edit title and the state changes; desktop/web edits the title in place and changes state from the state pill; kept those on the web (the ⋯ is unchanged).
- iOS's Description doesn't fold; desktop/web folds Description and Conversation under their headings; kept the folds on the web.
- Labels and the +/− line stand in the header as on desktop.
Tests
- Ran
packages/panel/src/tasks/agent-pull-request-tab.test.tsandagent-pull-request-tab-comments.test.ts(140 passed). - New case: on a phone the rows stand in place of tabs, and a row hands up a page that the phone's header names. The pull request header is hidden there, and Back returns to the page. The old fold test's last step pressed a tab that no longer exists on a phone, so I removed that step. The phone Files changed ⋯ test now goes back through the header's Back.
choosein the shared test helper presses a phone's row where no tab stands;phoneSwitchingis the shared phone wrapper.- Left to CI: the rest of the panel suite,
desktop-tasksandside-paneltests. tsc -binpackages/paneland lint (biome, oxlint) pass locally.
Shots (390 px, scale 2, fixture data) go to the orchestrator for Dean.
🤖 Generated with Claude Code