feat(mobile,ui-native): resolve and reopen a pull request's review thread on iOS

Merged
DA
4d ago
+174-21

What

The first of the conversation writes on iOS: resolve and reopen a review thread. Desktop already does this.

  • ThreadRow takes acts, a list of row acts that RowFrame shows on a trailing swipe and in the long-press menu.
  • The page gives each thread one act:
    • Resolve: green "done" tone, GLYPH.RESOLVED, sends RESOLVE_THREAD.
    • Reopen: shown once the thread is resolved, neutral tone, GLYPH.RESTORE, sends UNRESOLVE_THREAD.
  • Both send { threadId } through the page's single usePullRequestWrites, 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 id for 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's pull-request-thread-actions.tsx reads 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 through pullRequestPartsAppState), the same way it keeps a PR's moves.
  • Flow: pull-request.yaml long-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/panel passes.
  • vitest run packages/host/src/fixture-pull-requests.test.ts passes.
  • biome and oxlint are clean.
  • JS-only. The new flow steps get their frames in the Mac queue's next pull-request pass.

šŸ¤– Generated with Claude Code