Skip to content

refactor: group worktree jump palette owners - #37265

Merged
nwparker merged 1 commit into
mainfrom
module-organization/d04-worktree-jump-m81ef1d24
Nov 2, 2026
Merged

nwparker merged 1 commit into
mainfrom
module-organization/d04-worktree-jump-m81ef1d24

Conversation

@nwparker

@nwparker nwparker commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

Keep the worktree jump palette and its tests together so changes are easier to follow. The palette behaves the same.

What Changed

  • Move 49 palette files into components/worktree-jump/ and update their consumers, shared lazy loader and test mocks.
  • Import forwarded symbols from their concrete defining owners. Keep the handler input contract in a dedicated type-only module; add no barrels or old-path shims.
  • Retarget test routing/baselines and timing keys while preserving values and historical reliability commands.

Why

This completes the palette as one coherent module boundary and reduces the number of serial cleanup PRs.

Linked Issue

Internal module-organization tracker (kept locally).

Visual Proof

N/A — file organization and type-only changes; no visual or interaction changes.

Testing

  • 112 existing tests across 11 focused suites pass on macOS.
  • Renderer typecheck, scoped lint/format, changed-code-quality, test routing, flaky-pattern and reliability gates pass.
  • Existing tests moved and their concrete mocks updated; no new behavior requiring new tests.
  • Two independent committed-head source audits approved at c129605e; applicable CI required before merge. No manual rendered UI test performed.

Risk

Level: Low. Incorrect path or mock retargeting could break palette loading or tests. Preserve the shared lazy identity, concrete owners, hook bodies and host/workspace behavior; audit against the actual merge parent before merge. Plain revert restores the previous organization.

Review

Two independent audits approved the final 100 outputs, 273 body pins, concrete owner identities, shared lazy loader, mock composition, and type-only contract extraction. Current-parent preservation and applicable CI remain merge gates.

Agent skill upstream boundary

  • Not applicable; no upstream skill-installer content is copied or translated.

Notes

No platform, persistence, wire-protocol or runtime behavior changes. Existing remote, folder-workspace and mobile contracts remain in their defining owners.

Checklist

  • One coherent palette boundary, batched as requested
  • Explained what changed and why
  • Risk and rollback stated
  • N/A visual proof explained
  • Self-reviewed for correctness and import ownership
  • Cross-platform, remote and folder-workspace scope considered
  • Focused local checks pass; full applicable CI required before merge

@coderabbitai

coderabbitai Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 2747d8f7-f5aa-4125-b4bf-7fdae0bd3497
Commits

Reviewing files that changed from the base of the PR and between 8fa8c9f and c129605.

Files selected for processing: 100
  • config/flaky-test-pattern-baseline.txt
  • config/focus-setting-read-baseline.txt
  • config/reliability-gates.jsonc
  • config/renderer-layout-writer-baseline.txt
  • config/scripts/ci-shard-timings.json
  • src/renderer/src/app-shell/worktree-jump-palette-preload.ts
  • src/renderer/src/components/browser-pane/history/BrowserHistoryDialog.tsx
  • src/renderer/src/components/cmd-j/task-search-activation.test.ts
  • src/renderer/src/components/cmd-j/task-search-requests.test.ts
  • src/renderer/src/components/native-chat/native-chat-header-ownership.test.tsx
  • src/renderer/src/components/native-chat/structured-chat-menu-lifetime.test.tsx
  • src/renderer/src/components/native-chat/use-native-chat-toggle-shortcut.keybindings.test.ts
  • src/renderer/src/components/right-sidebar/AiVaultSessionHistoryDialog.test.tsx
  • src/renderer/src/components/right-sidebar/ai-vault-panel-session-list-request.test.tsx
  • src/renderer/src/components/right-sidebar/ai-vault-session-resume-in-chat-workspace.test.ts
  • src/renderer/src/components/right-sidebar/source-control/review/use-create-pr-intent-jira-title.test.tsx
  • src/renderer/src/components/right-sidebar/source-control/review/use-pull-request-generation.test.tsx
  • src/renderer/src/components/right-sidebar/use-subagent-sessions.test.tsx
  • src/renderer/src/components/sidebar/kanban-empty-selection-prune-budget.test.tsx
  • src/renderer/src/components/sidebar/use-visible-workspace-kanban-worktree-ids.test.tsx
  • src/renderer/src/components/sidebar/worktree-list/drag/status-drop-twin-host.test.ts
  • src/renderer/src/components/sidebar/worktree-list/listing/host-status-isolation.test.tsx
  • src/renderer/src/components/sidebar/worktree-list/listing/host-status-test-fixtures.ts
  • src/renderer/src/components/sidebar/worktree-list/listing/use-order-hold.test.ts
  • src/renderer/src/components/sidebar/worktree-list/listing/use-sleeping-sweep-retention.main-parity.test.tsx
  • src/renderer/src/components/sidebar/worktree-list/listing/use-sort-order-stamps.test.tsx
  • src/renderer/src/components/sidebar/worktree-list/listing/use-sort-order.test.tsx
  • src/renderer/src/components/sidebar/worktree-list/listing/use-visible-worktrees-retention.test.tsx
  • src/renderer/src/components/sidebar/worktree-list/listing/use-visible-worktrees.test.tsx
  • src/renderer/src/components/sidebar/worktree-list/rows/repo-header-ssh-isolation.test.tsx
  • src/renderer/src/components/sidebar/worktree-list/viewport/header-folder-composition.test.tsx
  • src/renderer/src/components/sidebar/worktree-manual-order-store-write.test.ts
  • src/renderer/src/components/status-bar/resource-pty-view-model.test.ts
  • src/renderer/src/components/status-bar/resource-pty-virtualization.test.tsx
  • src/renderer/src/components/tab-bar/tab-session-history-switch.parity.test.ts
  • src/renderer/src/components/tab-bar/tab-session-history-switch.test.ts
  • src/renderer/src/components/task-page/linear/task-page-linear-refresh-writers.test.tsx
  • src/renderer/src/components/terminal-pane/terminal-worktree-path-link.test.ts
  • src/renderer/src/components/terminal-workspace-surface-ids.test.tsx
  • src/renderer/src/components/worktree-jump/WorktreeJumpPalette.linear-url.test.tsx
  • src/renderer/src/components/worktree-jump/WorktreeJumpPalette.mount-gating.test.tsx
  • src/renderer/src/components/worktree-jump/WorktreeJumpPalette.recent-tabs.behavior.test.tsx
  • src/renderer/src/components/worktree-jump/WorktreeJumpPalette.recent-tabs.test.tsx
  • src/renderer/src/components/worktree-jump/WorktreeJumpPalette.task-search.test.tsx
  • src/renderer/src/components/worktree-jump/WorktreeJumpPalette.test.tsx
  • src/renderer/src/components/worktree-jump/WorktreeJumpPalette.tsx
  • src/renderer/src/components/worktree-jump/use-worktree-jump-palette-browser-ownership.test.ts
  • src/renderer/src/components/worktree-jump/use-worktree-jump-palette-controller.ts
  • src/renderer/src/components/worktree-jump/use-worktree-jump-palette-create-action.ts
  • src/renderer/src/components/worktree-jump/use-worktree-jump-palette-filter.ts
  • src/renderer/src/components/worktree-jump/use-worktree-jump-palette-list-entries.ts
  • src/renderer/src/components/worktree-jump/use-worktree-jump-palette-local-state.ts
  • src/renderer/src/components/worktree-jump/use-worktree-jump-palette-open-tabs.ts
  • src/renderer/src/components/worktree-jump/use-worktree-jump-palette-project-targets.ts
  • src/renderer/src/components/worktree-jump/use-worktree-jump-palette-quick-actions.ts
  • src/renderer/src/components/worktree-jump/use-worktree-jump-palette-recent-tabs.ts
  • src/renderer/src/components/worktree-jump/use-worktree-jump-palette-sections.ts
  • src/renderer/src/components/worktree-jump/use-worktree-jump-palette-selection-actions.ts
  • src/renderer/src/components/worktree-jump/use-worktree-jump-palette-selection-lifecycle.ts
  • src/renderer/src/components/worktree-jump/use-worktree-jump-palette-store-state.ts
  • src/renderer/src/components/worktree-jump/use-worktree-jump-palette-task-search.test.tsx
  • src/renderer/src/components/worktree-jump/use-worktree-jump-palette-task-search.ts
  • src/renderer/src/components/worktree-jump/use-worktree-jump-palette-task-selection.ts
  • src/renderer/src/components/worktree-jump/use-worktree-jump-palette-task-url.ts
  • src/renderer/src/components/worktree-jump/use-worktree-jump-palette-worktrees.ts
  • src/renderer/src/components/worktree-jump/worktree-jump-palette-browser-navigation.test.tsx
  • src/renderer/src/components/worktree-jump/worktree-jump-palette-browser-simulator-rows.tsx
  • src/renderer/src/components/worktree-jump/worktree-jump-palette-create-worktree-input.ts
  • src/renderer/src/components/worktree-jump/worktree-jump-palette-create-worktree.ts
  • src/renderer/src/components/worktree-jump/worktree-jump-palette-document-index.ts
  • src/renderer/src/components/worktree-jump/worktree-jump-palette-empty-state.ts
  • src/renderer/src/components/worktree-jump/worktree-jump-palette-entry.tsx
  • src/renderer/src/components/worktree-jump/worktree-jump-palette-exit-animation.ts
  • src/renderer/src/components/worktree-jump/worktree-jump-palette-interleaved-sections.test.tsx
  • src/renderer/src/components/worktree-jump/worktree-jump-palette-model.ts
  • src/renderer/src/components/worktree-jump/worktree-jump-palette-open-tab-items.ts
  • src/renderer/src/components/worktree-jump/worktree-jump-palette-primitives.tsx
  • src/renderer/src/components/worktree-jump/worktree-jump-palette-project-action-rows.tsx
  • src/renderer/src/components/worktree-jump/worktree-jump-palette-quick-action-availability.test.tsx
  • src/renderer/src/components/worktree-jump/worktree-jump-palette-recent-inclusion.ts
  • src/renderer/src/components/worktree-jump/worktree-jump-palette-status-inputs.ts
  • src/renderer/src/components/worktree-jump/worktree-jump-palette-surface.tsx
  • src/renderer/src/components/worktree-jump/worktree-jump-palette-task-row.tsx
  • src/renderer/src/components/worktree-jump/worktree-jump-palette-task-search-status.tsx
  • src/renderer/src/components/worktree-jump/worktree-jump-palette-test-fixtures.ts
  • src/renderer/src/components/worktree-jump/worktree-jump-palette-workspace-tab-row.tsx
  • src/renderer/src/components/worktree-jump/worktree-jump-palette-worktree-maps.ts
  • src/renderer/src/components/worktree-jump/worktree-jump-palette-worktree-row.tsx
  • src/renderer/src/components/worktree-jump/worktree-jump-palette-worktrees-input.ts
  • src/renderer/src/lib/desktop-sidebar-feed.test.ts
  • src/renderer/src/lib/sidebar-pending-layer.test.ts
  • src/renderer/src/lib/sidebar-shadow/workspace-activity-shadow.test.ts
  • src/renderer/src/lib/workspace-activation-path-gate.test.ts
  • src/renderer/src/lib/workspace-browser-tab-open-placement.test.ts
  • src/renderer/src/lib/worktree-palette-attachment-urls.test.ts
  • src/renderer/src/store/folder-workspaces/folder-path-status-ownership.test.ts
  • src/renderer/src/store/settled-sort-epoch.test.ts
  • src/renderer/src/store/slices/workspace-cleanup-agent-stop-preflight.test.ts
  • src/renderer/src/store/slices/workspace-cleanup-plain-shell-visit.test.ts
  • src/renderer/src/store/slices/worktrees-always-force-delete.test.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 1 remain after this review.

Walkthrough

The Worktree Jump Palette and its related modules now use the worktree-jump directory. Imports in renderer code and tests, test fixture references, and path-based configuration entries were updated. The change also adds an exported create-worktree input type, removes a quick-action helper re-export, and separates Jira status and search mocks in a palette test.

Merge Risk: Minimal · up to c1296

The relocation is mergeable with normal checks; current imports and test routing resolve under the new directory.

Pre-merge checks: Passed 5
Check name Status Explanation
Title check Passed The title "refactor: group worktree jump palette owners" matches the main change. The PR moves 49 worktree jump palette files into components/worktree-jump/ and updates their consumers, imports, test …
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description check Passed The description follows the template's main structure: ELI5, What Changed, Why, Linked Issue, Visual Proof, Testing, Risk, Review, Agent skill upstream boundary, Notes, and Checklist are all present a…
Full details: Title check

Explanation

The title "refactor: group worktree jump palette owners" matches the main change. The PR moves 49 worktree jump palette files into components/worktree-jump/ and updates their consumers, imports, test mocks, and baselines. The title is concise and specific. It does not mention the import-ownership change, but it does not need to cover every detail.

Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 50 files. (39 skipped: 5 unsupported, 34 over the file limit.)

Full details: Description check

Explanation

The description follows the template's main structure: ELI5, What Changed, Why, Linked Issue, Visual Proof, Testing, Risk, Review, Agent skill upstream boundary, Notes, and Checklist are all present and mostly filled in. The change is a file reorganization that moves 49 worktree-jump palette files into components/worktree-jump/ and updates imports, test mocks, baselines, and timing keys. The Visual Proof N/A is justified. The Risk section gives a level and a rollback path. Gaps: the Linked Issue section names only an internal tracker kept locally, which does not satisfy the template's requirement for a linked issue (the 'Fixes #' line is not filled in). The Testing section does not state which platforms were tested beyond macOS, and the 'Automated tests added/updated' box is checked while the text says no new tests were added. The AI Disclosure section is empty. The 'Ensure no issues in' items are addressed only in general terms. The description is mostly complete, so the check passes, but the missing issue link should be fixed before merge.

Finishing Touches
Generate docstrings
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

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