feat(mobile): reply to a pull request's review thread and comment on it from iOS

Merged
DA
4d ago
+374-5

What

The second of the conversation writes on iOS: reply to a review thread, and comment on the pull request. The screen follows the pattern task description threads already use.

  • Thread screen (new PullRequestThreadScreen, route …/pull/<ws>/<owner>/<name>/<number>/thread/<threadId>, built by iosPullRequestThreadRoute):
    • A thread row whose read carries GitHub's id now pushes this screen instead of opening in place. A thread with no id still opens in place.
    • It's a ThreadPage of the thread's comments, each with its GitHub author (via githubFace) and Markdown (markdown ?? body), headed by the file and lines.
    • Resolved threads show "Resolved" under the heading.
    • The bar has Resolve or Reopen.
    • A reply Composer is docked in a GlassDock. Sending is one REPLY_TO_THREAD through usePullRequestWrites, as the member. The field clears once GitHub took it, and GitHub's refusal shows in the field's head as an AskNote.
    • The screen follows only the PR and conversation parts, so it stays live.
  • Comment screen (new PullRequestCommentScreen, route …/comment, built by iosPullRequestCommentRoute):
    • The conversation now ends with a Comment row that pushes this screen.
    • The PR title heads the page, with a Composer docked under it. Sending is one COMMENT; the screen goes back once it went, and the page reads its conversation again.
  • Flow: pull-request.yaml opens the failing PR's thread (pull-request-thread), replies and checks the field clears, goes back, and later opens the new comment's field (pull-request-new-comment).

Stacked on #10586 ← #10585 ← #10557.

Checks

  • turbo run typecheck --filter=@repo/mobile passes, and biome and oxlint are clean.
  • JS-only. Frames for the new steps will come from the Mac queue's next pull-request pass.

šŸ¤– Generated with Claude Code