Skip to content

feat(native): advance pull requests parity (PR-PAGE, PR-DETAIL, PR-LINK) - #417

Merged
rynfar merged 2 commits into
nativefrom
nw/e1-pull-requests
Nov 19, 2026
Merged

rynfar merged 2 commits into
nativefrom
nw/e1-pull-requests

Conversation

@rynfar

@rynfar rynfar commented Nov 19, 2026

Copy link
Copy Markdown
Owner

Advances native pull requests parity across PR-PAGE, PR-DETAIL, and PR-LINK for fork issues #248, #278, #294, and the PR items in #389.

Summary

  • Editable PR description task checkboxes (#278, pingdotgg/t3code#30704): Ported taskListMarkerOffset / setMarkdownTaskChecked (crates/core/src/pull_requests/tasks.rs) and DescriptionDraft save/readback lifetime + canEditPullRequestChangeRequest (crates/core/src/pull_requests/editing.rs), gated on source-control:write (SOURCE_CONTROL_WRITE_SCOPE), with interactive task checkboxes in Summary (summary.rs) saving via pullRequests.update.
  • PR repository preservation for GitHub media (#294, pingdotgg/t3code#21631): Wired MediaScope with source_control_media: true, source_control_media_repository: Some(detail.repository), workspace_root, and an attached MediaViewer on DetailView, passed through MarkdownStore::state_with_media_scope for PR description and comments/replies.
  • Cached paint from held data (#389, pingdotgg/t3code#27798): Added bounded LRU Held cache of recently opened Detail and Activity snapshots in detail.rs so reopening a PR paints immediately while refreshing in the background.
  • Immediate state updates from mutations (#389, pingdotgg/t3code#25761): Opted into replyWithSummary: true in action_input, decoded optional Summary replies (decode_summary), ported isStalePullRequestReply / patch_detail / patch_list_entry / list_accepts, and patched both list entries and open detail views immediately from action replies (re-reading only when the reply is absent or changes head SHA / reopens).
  • PR link anchor & commit-diff navigation (#389, pingdotgg/t3code#33989): Ported parsePullRequestAnchor, pullRequestAnchorMatchesUrl, resolvePullRequestReviewAnchor, pullRequestDiffPathMatches (SHA-256, MD5, SHA-1 without extra crate deps), and pullRequestLinkCommit in crates/core/src/pull_requests/anchor.rs; preserved clicked link URLs through Target -> PendingSelection -> DetailView::reveal to jump to Summary (top/description/checks), Timeline (commits, comments, bodyless review comments), or Code (file/line reveal via DiffPanel::reveal_file_path and commit-scoped diff with clearable banner).
  • Linked threads & pullRequests.subscribeLinkedThreadRefreshes (#389, pingdotgg/t3code#35865): Added linked-threads header count + thread switcher menu in detail.rs backed by pullRequests.linkedThreads and pullRequests.subscribeLinkedThreadRefreshes, with backoff reconnect on transient disconnects, clean stop on EnvironmentAuthorizationError, and 10s polling fallback for older servers.
  • Add PR comments to chat (#389, pingdotgg/t3code#30579): Ported readableBody, bounded, buildPullRequestContext, and buildPullRequestCommentContext (crates/core/src/pull_requests/chat_context.rs), adding an "Add to chat" action on comments and review/overview threads in both Summary and Timeline that attaches the PR context chip (deduped against AppState::review_comments) and the comment/thread chip to the active thread composer.
  • GitLab label editing, overview thread resolution, and PullRequestMergeQueueRemoval (#389, pingdotgg/t3code#30483, pingdotgg/t3code#30575): Added labelCandidates + setLabels picker in Summary with immediate apply_label_change updates and source-control:write + viewerPermissions.labels gating; decoded overviewThreads and per-thread canResolve, folded them into timeline & Summary Comments section with Resolve / Unresolve (setThreadResolution) gated on source-control:write; decoded MergeQueueRemoval on Detail.
  • Ledger (apps/native/parity/LEDGER.md): Updated PR-PAGE, PR-DETAIL, and PR-LINK rows only (kept partial under #248 with exact remaining gaps documented).

Verification (commit 756d8c078dbddc8bde96acad02a3d687cb5829bd)

  1. vp fmt --check apps/native/parity/LEDGER.md — pass
  2. cd apps/native && node scripts/gen-theme.ts --check && node --test parity/sync.test.ts && node conformance/generate.ts --check — pass (42/42)
  3. cd apps/native && cargo test -p t3-core -p t3-client — pass (1613 t3-core + 127 t3-client + 8 conformance, 0 failed)
  4. cd apps/native && cargo test -p t3-native --features snapshot -- pull_requests — pass (3 passed, 0 failed)
  5. cd apps/native && cargo clippy --workspace --all-targets -- -D warnings && cargo build -p t3-native — pass

Built with Antigravity (claude-opus-5-5-high + gemini-4-neon-high).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant