Skip to content

feat(native): close Pull Requests parity gaps (PR-LINK, PR-PAGE, PR-DETAIL) - #427

Merged
rynfar merged 3 commits into
nativefrom
nw/f3-pr-closeout
Nov 19, 2026
Merged

rynfar merged 3 commits into
nativefrom
nw/f3-pr-closeout

Conversation

@rynfar

@rynfar rynfar commented Nov 19, 2026

Copy link
Copy Markdown
Owner

Closes #248 and brings ## Diffs, git, pull requests in apps/native/parity/LEDGER.md to 8/8 done (100%).

What changed

  1. PR-LINK (done):

    • Hidden-tag filtering of linked threads: Added visible_linked_threads in crates/core/src/pull_requests/link.rs and wired it into DetailView::visible_linked_threads (crates/app/src/pull_requests/detail.rs) and CommandPalette::refilter() (crates/app/src/palette/mod.rs).
    • Command palette linked-thread search: Added LinkedThreadSearch / PendingLinkedThreadSearch handoff in crates/app/src/palette/mod.rs triggered by DetailView's linked-thread count button, populated PaletteThread.pull_requests via search_pull_requests, and extended fleet thread search terms with thread_pull_request_search_terms.
    • Inline thread-link picker: Added inline URL/#42 + cached open-PR quick-pick linker in crates/app/src/pull_requests/thread_panel.rs (plus stack-chain indentation via resolve_thread_pull_request_chains and watch/copy/open/unlink menu actions) and a thread link picker modal in crates/app/src/pull_requests/{detail.rs,interactions.rs}.
  2. PR-PAGE (done):

    • Persisted cold-start list & stats cache: Added PersistedListCache and PersistedStatsCache (crates/core/src/pull_requests/cache.rs, LRU-bounded and environment-scoped) hydrated via t3_client::store on cold start in crates/app/src/pull_requests/page.rs.
    • Hover intent prefetch: Added 150ms hover-intent detail + activity prefetch in crates/app/src/pull_requests/{page.rs,row.rs} seeding DetailView's Held cache (prefetch_into_held).
    • Link hover preview card: Added LinkPreviewController and render_preview_card (crates/app/src/pull_requests/preview.rs, 350ms open / 120ms close, pullRequests.preview + anchor activity fallback) wired into page.rs, row.rs, and thread_panel.rs.
    • Stacked project-assignment column: Ported pullRequestProjectAssignment.logic.ts into crates/core/src/pull_requests/assignment.rs and wired the project-assignment sidebar column into crates/app/src/pull_requests/page.rs.
  3. PR-DETAIL (done):

    • Guide tab: Ported reviewGuideTour.ts into crates/core/src/pull_requests/guide.rs and implemented GuideTab (crates/app/src/pull_requests/guide.rs: pullRequests.reviewGuide / generateReviewGuide, running/failed/stale banners, stop rail, code excerpts with lettered notes, j/k stepping, and clickable file jumps into the Code tab).
    • Review submission & inline comment composer: Added crates/core/src/pull_requests/review.rs and wired CodeTab (crates/app/src/pull_requests/code.rs) to DiffPanel::set_review_threads, DiffPanel::set_external_comment_handler, and DiffPanel::set_completion_scope, feeding DetailView's review submission panel (Approve / Request changes / Comment via pullRequests.submitReview).
    • Comment reply, edit, and reactions: Added crates/core/src/pull_requests/reactions.rs and wired optimistic reaction bars (pullRequests.setReaction), top-level comment composer (pullRequests.comment), inline comment editing (pullRequests.updateComment), and review-thread replies + pagination (pullRequests.replyToThread, pullRequests.threadComments) across detail.rs, summary.rs, timeline.rs, and interactions.rs.
    • Title & description text editor: Added inline title editing, description markdown editing (respecting DescriptionDraft), and maintainer-edits toggling (pullRequests.update).
    • Reviewer picker & stack popover: Added crates/core/src/pull_requests/reviewers.rs + debounced host search (pullRequests.reviewerCandidates, pullRequests.requestReviewers) and stack_popover on both DetailView and PullRequestsPage rows.
    • Files-viewed tracking: Wired CodeTab (pullRequests.filesViewed) into DiffPanel::set_viewed_target.
    • In-thread PR detail panel surface: Clicking a linked PR in ThreadPullRequestsPanel embeds DetailView::new_embedded directly inside the right panel with a back bar, pop-out shortcut to the Pull Requests page, stack layer navigation, and auto-reset on thread switch.

Verification

  • cargo test -p t3-core pull_requests — 112/112 passed
  • T3_NATIVE_HOME=$(mktemp -d) cargo test -p t3-native pull_requests -- --test-threads=1 — 8/8 passed
  • T3_NATIVE_HOME=$(mktemp -d) cargo test -p t3-native palette -- --test-threads=1 — 6/6 passed
  • T3_NATIVE_HOME=$(mktemp -d) cargo test -p t3-native --features snapshot palette -- --test-threads=1 — 15/15 passed
  • cargo clippy -p t3-core -p t3-client -p t3-native --all-targets -- -D warnings — 0 warnings, 0 errors
  • vp fmt --check apps/native/parity/LEDGER.md — pass
  • node apps/native/scripts/gen-theme.ts --check — pass

Built with Antigravity (f3-pr-closeout).

@rynfar
rynfar merged commit 3110634 into native Nov 19, 2026
@rynfar
rynfar deleted the nw/f3-pr-closeout branch November 19, 2026 10:41
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