feat(mobile,ui-native): resolve and reopen a pull request's review thread on iOS
Merged
DA
4d ago+174+174+012345678901234567890123456789-21-21-01234567890123456789
What
The first of the conversation writes on iOS: resolve and reopen a review thread. Desktop already does this.
ThreadRowtakesacts, a list of row acts thatRowFrameshows on a trailing swipe and in the long-press menu.- The page gives each thread one act:
- Resolve: green "done" tone,
GLYPH.RESOLVED, sendsRESOLVE_THREAD. - Reopen: shown once the thread is resolved, neutral tone,
GLYPH.RESTORE, sendsUNRESOLVE_THREAD.
- Resolve: green "done" tone,
- Both send
{ threadId }through the page's singleusePullRequestWrites, as the member. That means GitHub's refusal shows in the write note under the heading, and the page reads its parts again once GitHub answers. - A thread the read gives no
idfor gets no act. Acts are dimmed while any change is out. THREAD_ACT_WORDS(Reply, Resolve, Reopen and their in-progress forms) moves into@repo/features/pull-request-model. The panel'spull-request-thread-actions.tsxreads it from there.- Fixture: the failing PR's thread gets an id (
PRRT_expiry). The Inbox fixture keeps the threads a run resolved or reopened (threadResolveOf,ThreadResolves, laid over the conversation throughpullRequestPartsAppState), the same way it keeps a PR's moves. - Flow:
pull-request.yamllong-presses the thread and taps Resolve (pull-request-thread-resolved), checks that the head's "unresolved conversation" line goes, then Reopens and checks that "1 unresolved conversation" comes back.
Stacked on #10585, then #10557.
Checks
turbo run typecheck --filter=@repo/mobile --filter=@repo/panelpasses.vitest run packages/host/src/fixture-pull-requests.test.tspasses.- biome and oxlint are clean.
- JS-only. The new flow steps get their frames in the Mac queue's next
pull-requestpass.
š¤ Generated with Claude Code