Repository navigation
Add native Plane task tracker integration - #14692
ugoenyioha wants to merge 12 commits into
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (11)
💤 Files with no reviewable changes (1)
🚧 Files skipped from review as they are similar to previous changes (5)
Included review availability: Your plan includes up to 10 reviews per rolling hour; 8 remain after this review. 📝 Walkthrough<hidden_new_layer> Completes Plane command wiring, renderer integration, mobile source handling, API validation, pagination, caching, and test coverage.range_bb2fdf87a158 range_cb65de568736 range_8902042e15b1 range_ead313cef4d9 range_620b28763f8f range_49a4f5b2dcca range_9ac127849fa3 range_f84e4dfe50d3 range_db94e19df9ef range_9880473a0d78 range_2006a0760974 range_fa0883728682 range_d82a7976759f range_ebd994730314 range_27d0e3f8a080 range_5b0dae173920 range_8b5b89fe5f33 range_5e3195d3b904 range_3936ed48d175 range_44246f47fa07 range_668a015601cc range_6752b01f6103 range_dce4fe0d7b48 range_dd056b5429e5 range_1252ed4680d6 range_3c1470113ab4 range_c42dd72d8e0b range_c8272e45384d range_45bbe69de2b8 range_f49d31bf1320 range_99c485edca98 range_272a537ef59e range_5c797e9f9b1a range_e764265da8ef range_cdfb16507092 range_c32b8ca0a54c range_346cc8c4eebf range_6ab6bcb7cda1 range_f64b4d5ed766 range_b95661cab87e range_de79d05160fb range_1529ba39591b range_1fc28fe56243 range_8cb0dc54bc7c range_c3dd0d1b9c5c range_007a57f66a9e range_0c70d8e5193c range_0cd67d4647dd range_c8632f654e6e range_d1fd30e7738e range_3b01481f7270 range_87e80e3118fa range_e7fc54b99cfb range_c03c9938741c range_cd143fe3520a range_40f92d641a09 range_f7d727493f1d range_af7fe330a4f4 range_c8a5a9e1abf7 range_2ec7db7951e5 range_6979fa8e53db range_9dd646dd2402 range_39fb6173858e range_b99b9cd53069 range_85864d4ebc97 range_5ef6e832e479 range_b281a5ea1118 range_f6f75f7e5227 range_0b0996900ff6 range_ca1dc2e37aa7 range_003a9ef3cc88 range_9577379a62da range_c3ada6e552d4 range_7c25e73bfafd range_ace4069fb60e range_e7ba92c92a9a range_e7cb380094b3 range_19cee2676c52 range_b60b2357f2a0 range_9d945ce8223d range_0e285071a6cb range_a5b722f47b1f range_6d5cc68c12c8 range_e47ca614d9a5 range_d1f81504af0e range_cb10f9d0110e range_788beb0978fa range_a7ca8ac48be1 range_6c90dfdd873c range_73b35da6f0b2 range_bf99a85e25e4 range_75cdab4bb728 range_3770ccad2902 range_4402666a2c6b range_41e5a66a9325 range_2edce3c5ed79 range_2bb174174db0 range_44ed97959075 range_9589d2d6b308 range_eb6a0d87f9d9 range_344ab0dd726c range_89c6f1290c82 range_673d665d810d range_b39298f627b2 range_200ba7d65e2a range_a0cea1928095 range_abca695b798d range_18fcbd8ca9da range_59d586856ad2 range_45bbe0322a98 range_33bf21fd665a range_27b6115f2b50 range_861bc8590c07 range_b034b428999e range_5ee194ab084e range_19bbc25a62cb range_532932be29a4 range_f073e9534566 range_38dd6238b964 range_7d2d499e5b5c range_4edb72dcfe28 range_c93987effd95 range_6f7149a9418c range_ae69064d964e range_838f7085d00e range_bb1c97164989 range_ee2137f70089 range_a121e4850fdf range_280d8f251f02 range_a027b0e0ba8a range_07a314652f75 range_17e09f7f1bfc range_3212deba739b range_0c5120f7cba4 range_5a848d0044db range_eb3a51e45ba9 range_4906165f1931 range_f41b82cb9d59 range_54b0c620067d range_3740d9e635ee range_8b170f96e89f range_028aebca0c78 range_ebd039bd33fb range_988fc923224f range_f4d3962f130d range_fadf2d761074 range_f84ad31fc80d range_1a22a22479ab range_92aa41eb8733 range_5a237bcb5ac0 range_50ab3b96125d range_6fc5c47a27b8 range_6fa56c56f42c range_3beba4f3b1b8 range_ed86ce88e9c8 range_7ff0346d8022 range_328fffe08832 range_067d5ecf8da4 range_8c45b7085cc9 range_08ea7ba42b77 range_79dee8578071 range_1f22cc92bea6 range_bef628e8bddb range_b1dd2af80f60 range_ffa0fa60063b range_6a574110a015 range_f9739849cf5c range_158768432ea3 range_7b116ad21e0a range_4685c94e1db6 range_600a5a95959d range_112d0dc44801 range_8e0fa1d167cc range_51bd39e01987 range_a5808a3c2e77 range_721f35456bfb range_74aff593a1ff range_6e45511332b1 range_6286367e7379 range_fa42e7b2d435 range_5160d8654257 range_f70ddd8723c2 range_72204e3051bd range_1771938bb886 range_a65950786fb8 range_b424e6d58d50 range_8033339bc63f range_af3912920b24 range_078781676a73 range_3fd9c839d961 range_8cf010b183e6 range_6c6ddd029187 range_5bcd7106325f range_b88c6b9bb91d range_5ada2db48fc3 range_8d3000191673 range_bc0b28676e6c range_7ca20bbeee28 range_be58d952af10 range_7c80a29d5859 range_8f77bf806a3e range_afe7d35c6596 range_d336eef2a692 range_a01727579b52 range_c2ed9dadf974 range_337d1328fde6 range_726be4000387 range_c45a01c3f56d range_3a9d1009a761Merge Risk: 🟠 High · up to The Plane integration can leave users unable to connect, load, search, or update work items reliably: settings may stay stuck loading, multi-instance results can be incomplete or misrouted, expired OAuth sessions may fail without a useful recovery path, documented links may not open, and provider visibility changes may not persist. These current issues create a high merge-readiness risk and should be resolved before release. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 15
🧹 Nitpick comments (2)
src/shared/issue-link-input.ts (1)
6-7: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueRemove or shorten this comment.
The comment is two lines and explains an obvious provider-list decision. It also refers to Jira in this Plane change.
As per coding guidelines: “Comments must be concise, non-obvious, and brief—prefer one line; do not explain obvious behavior or walk through code.”
Source: Coding guidelines
src/preload/index.ts (1)
2006-2099: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick winType the Plane bridge against
PlaneApi.
PreloadApi.planedeclares concrete shared result types, but theplaneobject is not checked against that contract. Addsatisfies PreloadApi['plane']and replace theunknownreturn types with the correspondingPlaneApitypes.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 0187e036-ae20-48ba-ae0e-8e51e8797880
📥 Commits
Reviewing files that changed from the base of the PR and between e570cad and f0dbee70df263fb692103cf39cbe0c15b1a74eb4.
📒 Files selected for processing (81)
mobile/src/components/NewWorktreeModal.tsxmobile/src/components/SmartWorkspaceSourceDrawer.tsxmobile/src/components/SmartWorkspaceSourceField.tsxmobile/src/components/SmartWorkspaceSourceRow.tsxmobile/src/components/TaskProviderLogo.tsxmobile/src/tasks/composer-linked-work-item.test.tsmobile/src/tasks/composer-linked-work-item.tsmobile/src/tasks/mobile-composer-source-types.tsmobile/src/tasks/mobile-smart-source-modes.tsmobile/src/tasks/mobile-task-providers.tsmobile/src/tasks/smart-source-fan-out.test.tsmobile/src/tasks/smart-source-fan-out.tsmobile/src/tasks/smart-source-search-requests.tsmobile/src/tasks/source-workspace-create.tsmobile/src/tasks/use-mobile-composer-source.tsmobile/src/tasks/use-smart-workspace-source.tsmobile/src/tasks/workspace-create-params.test.tsmobile/src/tasks/workspace-create-params.tssrc/cli/args.tssrc/cli/handler-group-manifest.tssrc/cli/handlers/plane.tssrc/cli/specs/index.tssrc/cli/specs/plane.tssrc/main/ipc/plane.tssrc/main/ipc/register-core-handlers.tssrc/main/plane/client.tssrc/main/plane/issues.test.tssrc/main/plane/issues.tssrc/main/plane/response-mappers.tssrc/main/plane/storage-paths.tssrc/main/runtime/orca-runtime.tssrc/main/runtime/rpc/methods/index.tssrc/main/runtime/rpc/methods/plane.tssrc/preload/api-types.tssrc/preload/api/plane-api.tssrc/preload/index.tssrc/renderer/src/components/NewWorkspaceComposerCard.tsxsrc/renderer/src/components/automations/automation-source-display.tssrc/renderer/src/components/automations/automation-target-availability.tssrc/renderer/src/components/feature-wall/ConnectIntegrationsList.tsxsrc/renderer/src/components/feature-wall/use-feature-wall-task-source-presentation.tssrc/renderer/src/components/feature-wall/use-integration-connection-status.test.tssrc/renderer/src/components/feature-wall/use-integration-connection-status.tssrc/renderer/src/components/icons/PlaneIcon.tsxsrc/renderer/src/components/new-workspace/SmartWorkspaceNameField.tsxsrc/renderer/src/components/new-workspace/smart-workspace-localized-options.tsxsrc/renderer/src/components/plane-api-key-dialog.tsxsrc/renderer/src/components/settings/IntegrationsPane.tsxsrc/renderer/src/components/settings/TasksPane.test.tsxsrc/renderer/src/components/settings/TasksPane.tsxsrc/renderer/src/components/settings/task-provider-integration-section-ids.tssrc/renderer/src/components/settings/task-source-setup-state.test.tssrc/renderer/src/components/settings/task-tracker-integration-cards.tsxsrc/renderer/src/components/settings/use-task-source-provider-readiness.tssrc/renderer/src/components/setup-guide/use-setup-guide-progress.tssrc/renderer/src/components/sidebar/worktree-meta-updates.tssrc/renderer/src/components/task-page-list-chrome-visibility.tssrc/renderer/src/components/task-source-context-summary.tssrc/renderer/src/hooks/useComposerState.tssrc/renderer/src/runtime/runtime-plane-client.tssrc/renderer/src/store/index.tssrc/renderer/src/store/slices/plane.tssrc/renderer/src/store/slices/store-test-helpers.tssrc/renderer/src/store/slices/ui.tssrc/renderer/src/store/types.tssrc/shared/integration-credential-errors.tssrc/shared/issue-link-input.tssrc/shared/new-workspace/smart-workspace-command-value.tssrc/shared/new-workspace/smart-workspace-source-results.tssrc/shared/new-workspace/work-item-lookup-text.tssrc/shared/new-workspace/workspace-source.tssrc/shared/plane/links.test.tssrc/shared/plane/links.tssrc/shared/plane/types.tssrc/shared/task-provider-identity.tssrc/shared/task-providers.tssrc/shared/task-source-context.tssrc/shared/workspace-linked-item-source-context.tssrc/shared/workspace-linked-item.tssrc/shared/workspace-name.tssrc/shared/worktree/types.ts
There was a problem hiding this comment.
Actionable comments posted: 2
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 4f560279-fb20-474c-8b35-28ed24ed95e0
📥 Commits
Reviewing files that changed from the base of the PR and between f0dbee70df263fb692103cf39cbe0c15b1a74eb4 and e72faf73df2ba1164bfbd7e05350d44a9f092851.
📒 Files selected for processing (17)
mobile/src/components/NewWorktreeModal.tsxmobile/src/components/SmartWorkspaceSourceDrawer.tsxsrc/main/ipc/plane.tssrc/main/plane/client.tssrc/main/plane/issue-activity.tssrc/main/plane/issues.test.tssrc/main/plane/issues.tssrc/main/plane/project-resources.tssrc/main/plane/response-mappers.tssrc/main/runtime/orca-runtime.tssrc/renderer/src/components/new-workspace/SmartWorkspaceNameField.tsxsrc/renderer/src/components/plane-api-key-dialog.tsxsrc/renderer/src/components/settings/task-tracker-integration-cards.tsxsrc/renderer/src/runtime/runtime-plane-client.tssrc/shared/integration-credential-errors.tssrc/shared/plane/links.test.tssrc/shared/plane/links.ts
🚧 Files skipped from review as they are similar to previous changes (13)
- src/shared/integration-credential-errors.ts
- src/renderer/src/components/plane-api-key-dialog.tsx
- src/shared/plane/links.ts
- mobile/src/components/SmartWorkspaceSourceDrawer.tsx
- src/shared/plane/links.test.ts
- src/renderer/src/components/settings/task-tracker-integration-cards.tsx
- mobile/src/components/NewWorktreeModal.tsx
- src/main/runtime/orca-runtime.ts
- src/main/plane/response-mappers.ts
- src/main/plane/issues.test.ts
- src/main/plane/issues.ts
- src/renderer/src/runtime/runtime-plane-client.ts
- src/renderer/src/components/new-workspace/SmartWorkspaceNameField.tsx
There was a problem hiding this comment.
Actionable comments posted: 6
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 84072fab-ce47-44d5-b6a1-e6d060f494c3
📥 Commits
Reviewing files that changed from the base of the PR and between b80c37ac3dee6a047ee8fa56231216531f26a71e and f95b6b755779bbe8b86a816d3244e29867f7d75a.
📒 Files selected for processing (17)
src/main/ipc/plane-normalizers.tssrc/main/ipc/plane.tssrc/main/plane/api-request.test.tssrc/main/plane/api-request.tssrc/main/plane/client.test.tssrc/main/plane/client.tssrc/main/plane/instance-storage.tssrc/main/plane/issues.test.tssrc/main/plane/oauth.tssrc/main/runtime/orca-runtime.tssrc/main/runtime/rpc/methods/plane.tssrc/preload/api/plane-api.tssrc/preload/index.tssrc/renderer/src/components/plane-api-key-dialog.tsxsrc/renderer/src/runtime/runtime-plane-client.tssrc/renderer/src/store/slices/plane.tssrc/shared/plane/types.ts
🚧 Files skipped from review as they are similar to previous changes (8)
- src/preload/index.ts
- src/main/ipc/plane.ts
- src/main/runtime/orca-runtime.ts
- src/main/plane/client.test.ts
- src/renderer/src/runtime/runtime-plane-client.ts
- src/preload/api/plane-api.ts
- src/renderer/src/store/slices/plane.ts
- src/main/plane/issues.test.ts
|
@coderabbitai review |
✅ Action performedReview finished.
|
|
@coderabbitai review |
|
There was a problem hiding this comment.
Actionable comments posted: 2
🧹 Nitpick comments (4)
src/main/plane/oauth.ts (1)
143-150: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winSurface the provider error from the callback query.
Plane redirects with
erroranderror_descriptionwhen the user denies access. The handler reportsPlane OAuth callback was invalidfor that case, so the user sees no cause. Readerrorfrom the query and include it in the rejection message.♻️ Proposed change
const url = new URL(req.url ?? '/', redirectUri) const code = url.searchParams.get('code') const receivedState = url.searchParams.get('state') + const providerError = url.searchParams.get('error') if (url.pathname !== '/plane/oauth/callback' || !code || receivedState !== state) { res.writeHead(400).end('Plane OAuth failed. You can close this window.') - reject(new Error('Plane OAuth callback was invalid')) + reject(new Error(providerError ? `Plane OAuth failed: ${providerError}` : 'Plane OAuth callback was invalid')) return }src/main/plane/api-request.test.ts (1)
81-114: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winAdd coverage for the OAuth refresh failure paths.
The suite covers only a successful refresh. Two error paths in
currentAuthandrefreshOAuthTokenstay untested: an expired token without arefreshToken, and a non-okrefresh response. Both produce user-facing reconnect errors. Add cases for them.src/main/plane/client.test.ts (1)
105-128: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winRename this test to match its assertion.
The test asserts that
getClient()throwsPlane OAuth client credentials are missing. The name says it returns bearer clients, and it duplicates the name of the next test. Rename it, for example tothrows when stored OAuth credentials lack client credentials.src/main/plane/oauth.test.ts (1)
8-16: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winExercise the callback request handler.
onis a barevi.fn(), so no test runshandleCallback. The state comparison in the callback is the CSRF defense of this flow, and it is untested. Capture the registeredrequestlistener in the mock and invoke it with a matching state, a mismatched state, and a wrong path.♻️ Proposed mock change
+const listeners = vi.hoisted(() => new Map<string, (...args: unknown[]) => void>()) + vi.mock('node:http', () => ({ createServer: () => ({ address: () => ({ port: 18181 }), close: closeMock, listen: (_port: number, _host: string, callback: () => void) => callback(), - on: vi.fn(), + on: (event: string, listener: (...args: unknown[]) => void) => listeners.set(event, listener), once: vi.fn() }) }))
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 1a995273-3609-4378-b171-12dc6125a11c
📥 Commits
Reviewing files that changed from the base of the PR and between b80c37ac3dee6a047ee8fa56231216531f26a71e and 2eaca7a90fa3ed29500b87f276a55cfdeb0527e1.
📒 Files selected for processing (18)
src/main/ipc/plane-normalizers.tssrc/main/ipc/plane.tssrc/main/plane/api-request.test.tssrc/main/plane/api-request.tssrc/main/plane/client.test.tssrc/main/plane/client.tssrc/main/plane/instance-storage.tssrc/main/plane/issues.test.tssrc/main/plane/oauth.test.tssrc/main/plane/oauth.tssrc/main/runtime/orca-runtime.tssrc/main/runtime/rpc/methods/plane.tssrc/preload/api/plane-api.tssrc/preload/index.tssrc/renderer/src/components/plane-api-key-dialog.tsxsrc/renderer/src/runtime/runtime-plane-client.tssrc/renderer/src/store/slices/plane.tssrc/shared/plane/types.ts
🚧 Files skipped from review as they are similar to previous changes (13)
- src/main/ipc/plane.ts
- src/main/runtime/rpc/methods/plane.ts
- src/renderer/src/store/slices/plane.ts
- src/shared/plane/types.ts
- src/renderer/src/runtime/runtime-plane-client.ts
- src/preload/api/plane-api.ts
- src/preload/index.ts
- src/main/runtime/orca-runtime.ts
- src/main/ipc/plane-normalizers.ts
- src/main/plane/client.ts
- src/renderer/src/components/plane-api-key-dialog.tsx
- src/main/plane/issues.test.ts
- src/main/plane/instance-storage.ts
|
@coderabbitai resume |
✅ Action performedReviews resumed. |
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
src/main/plane/api-request.test.ts (1)
135-150: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick winAssert the refreshed bearer token for both API requests.
The mock returns success for API requests with any headers. A broken deduplication path can make one refresh request but send
expired-tokenfor one concurrent API request. Assert that both/api/v1/users/me/calls useAuthorization: Bearer fresh-token.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 40cb8f1c-8816-4735-b523-55aefb612610
📥 Commits
Reviewing files that changed from the base of the PR and between 2eaca7a90fa3ed29500b87f276a55cfdeb0527e1 and 33f6b96dc0f7628c946109cbb583b01d1b8a748c.
📒 Files selected for processing (5)
src/main/plane/api-request.test.tssrc/main/plane/api-request.tssrc/main/plane/client.test.tssrc/main/plane/oauth.test.tssrc/main/plane/oauth.ts
🚧 Files skipped from review as they are similar to previous changes (3)
- src/main/plane/client.test.ts
- src/main/plane/oauth.ts
- src/main/plane/api-request.ts
|
@coderabbitai summary |
✅ Action performedSummary regeneration triggered. |
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
d883a6b to
b7e8f6f
Compare
|
Too many files changed for review (105 files, 100 file limit). Bypass the limit by tagging |
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
There was a problem hiding this comment.
Actionable comments posted: 8
🧹 Nitpick comments (1)
src/shared/task-providers.ts (1)
68-68: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value
planeConnectedis never read.
isTaskProviderAvailablereturnstruefor'plane'unconditionally, so the newplaneConnectedfield onTaskProviderAvailabilityhas no effect.TaskPage.tsxline 3230 still computes and passes it, andrestoreAvailableDefaultTaskProviderlists it as a dependency. Remove the field, or use it if a future gate is intended.Also applies to: 119-123
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 8d403fa4-9753-4763-bcdf-d4aee10590f0
📒 Files selected for processing (102)
mobile/src/components/NewWorktreeModal.tsxmobile/src/components/SmartWorkspaceSourceDrawer.tsxmobile/src/components/SmartWorkspaceSourceField.tsxmobile/src/components/SmartWorkspaceSourceRow.tsxmobile/src/components/TaskProviderLogo.tsxmobile/src/tasks/composer-linked-work-item.test.tsmobile/src/tasks/composer-linked-work-item.tsmobile/src/tasks/mobile-composer-source-types.tsmobile/src/tasks/mobile-smart-source-modes.tsmobile/src/tasks/mobile-task-providers.tsmobile/src/tasks/smart-source-fan-out.test.tsmobile/src/tasks/smart-source-fan-out.tsmobile/src/tasks/smart-source-search-requests.tsmobile/src/tasks/source-workspace-create.tsmobile/src/tasks/use-mobile-composer-source.tsmobile/src/tasks/use-smart-workspace-source.tsmobile/src/tasks/workspace-create-params.test.tsmobile/src/tasks/workspace-create-params.tssrc/cli/args.tssrc/cli/handler-group-manifest.tssrc/cli/handlers/plane.tssrc/cli/specs/index.tssrc/cli/specs/plane.tssrc/main/ipc/plane-normalizers.tssrc/main/ipc/plane.tssrc/main/ipc/register-core-handlers.tssrc/main/plane/api-request.test.tssrc/main/plane/api-request.tssrc/main/plane/client.test.tssrc/main/plane/client.tssrc/main/plane/instance-storage.tssrc/main/plane/issue-activity.test.tssrc/main/plane/issue-activity.tssrc/main/plane/issue-pages.tssrc/main/plane/issue-query.tssrc/main/plane/issues.test.tssrc/main/plane/issues.tssrc/main/plane/oauth.test.tssrc/main/plane/oauth.tssrc/main/plane/project-resource-mappers.tssrc/main/plane/project-resources.test.tssrc/main/plane/project-resources.tssrc/main/plane/response-mappers.tssrc/main/plane/storage-paths.tssrc/main/runtime/orca-runtime.tssrc/main/runtime/rpc/methods/index.tssrc/main/runtime/rpc/methods/plane.tssrc/main/runtime/runtime-rpc.tssrc/preload/api-types.tssrc/preload/api/plane-api.tssrc/preload/index.tssrc/renderer/src/components/NewWorkspaceComposerCard.tsxsrc/renderer/src/components/TaskPage.tsxsrc/renderer/src/components/automations/automation-source-display.tssrc/renderer/src/components/automations/automation-target-availability.tssrc/renderer/src/components/feature-wall/ConnectIntegrationsList.tsxsrc/renderer/src/components/feature-wall/use-feature-wall-task-source-presentation.tssrc/renderer/src/components/feature-wall/use-integration-connection-status.test.tssrc/renderer/src/components/feature-wall/use-integration-connection-status.tssrc/renderer/src/components/icons/PlaneIcon.tsxsrc/renderer/src/components/new-workspace/SmartWorkspaceNameField.tsxsrc/renderer/src/components/new-workspace/smart-workspace-localized-options.tsxsrc/renderer/src/components/plane-api-key-dialog.tsxsrc/renderer/src/components/settings/IntegrationsPane.tsxsrc/renderer/src/components/settings/TasksPane.test.tsxsrc/renderer/src/components/settings/TasksPane.tsxsrc/renderer/src/components/settings/task-provider-integration-section-ids.tssrc/renderer/src/components/settings/task-source-setup-state.test.tssrc/renderer/src/components/settings/task-tracker-integration-cards.tsxsrc/renderer/src/components/settings/use-task-source-provider-readiness.tssrc/renderer/src/components/setup-guide/use-setup-guide-progress.tssrc/renderer/src/components/sidebar/worktree-meta-updates.tssrc/renderer/src/components/task-page-list-chrome-visibility.tssrc/renderer/src/components/task-page-localized-options.tsxsrc/renderer/src/components/task-source-context-summary.tssrc/renderer/src/hooks/useComposerState.tssrc/renderer/src/runtime/runtime-plane-client.tssrc/renderer/src/store/index.tssrc/renderer/src/store/slices/plane-cache.tssrc/renderer/src/store/slices/plane-read-actions.tssrc/renderer/src/store/slices/plane.test.tssrc/renderer/src/store/slices/plane.tssrc/renderer/src/store/slices/store-test-helpers.tssrc/renderer/src/store/slices/ui.tssrc/renderer/src/store/types.tssrc/shared/integration-credential-errors.tssrc/shared/issue-link-input.tssrc/shared/new-workspace/smart-workspace-command-value.tssrc/shared/new-workspace/smart-workspace-source-results.tssrc/shared/new-workspace/work-item-lookup-text.tssrc/shared/new-workspace/workspace-source.tssrc/shared/plane/links.test.tssrc/shared/plane/links.tssrc/shared/plane/types.tssrc/shared/task-provider-identity.tssrc/shared/task-providers.test.tssrc/shared/task-providers.tssrc/shared/task-source-context.tssrc/shared/workspace-linked-item-source-context.tssrc/shared/workspace-linked-item.tssrc/shared/workspace-name.tssrc/shared/worktree/types.ts
🚧 Files skipped from review as they are similar to previous changes (86)
- src/shared/worktree/types.ts
- src/preload/api-types.ts
- src/shared/task-source-context.ts
- src/shared/plane/links.test.ts
- mobile/src/components/SmartWorkspaceSourceRow.tsx
- src/renderer/src/components/icons/PlaneIcon.tsx
- src/main/runtime/runtime-rpc.ts
- src/renderer/src/components/settings/IntegrationsPane.tsx
- src/renderer/src/components/automations/automation-target-availability.ts
- src/main/runtime/rpc/methods/index.ts
- mobile/src/tasks/source-workspace-create.ts
- src/renderer/src/store/types.ts
- src/shared/workspace-name.ts
- src/preload/api/plane-api.ts
- src/shared/integration-credential-errors.ts
- mobile/src/tasks/mobile-composer-source-types.ts
- mobile/src/components/SmartWorkspaceSourceField.tsx
- src/renderer/src/components/task-source-context-summary.ts
- src/renderer/src/components/setup-guide/use-setup-guide-progress.ts
- src/renderer/src/components/settings/TasksPane.test.tsx
- src/renderer/src/components/feature-wall/ConnectIntegrationsList.tsx
- src/shared/workspace-linked-item.ts
- src/shared/workspace-linked-item-source-context.ts
- src/renderer/src/components/sidebar/worktree-meta-updates.ts
- src/cli/specs/index.ts
- src/renderer/src/store/slices/ui.ts
- mobile/src/tasks/workspace-create-params.ts
- src/main/ipc/register-core-handlers.ts
- mobile/src/tasks/mobile-smart-source-modes.ts
- src/cli/args.ts
- src/main/plane/oauth.test.ts
- src/cli/handler-group-manifest.ts
- src/renderer/src/components/settings/TasksPane.tsx
- src/cli/handlers/plane.ts
- src/renderer/src/store/index.ts
- mobile/src/tasks/smart-source-fan-out.test.ts
- src/renderer/src/components/settings/use-task-source-provider-readiness.ts
- mobile/src/components/NewWorktreeModal.tsx
- mobile/src/tasks/use-smart-workspace-source.ts
- src/renderer/src/components/feature-wall/use-feature-wall-task-source-presentation.ts
- src/main/plane/storage-paths.ts
- src/main/ipc/plane.ts
- src/shared/issue-link-input.ts
- mobile/src/components/SmartWorkspaceSourceDrawer.tsx
- src/renderer/src/components/new-workspace/smart-workspace-localized-options.tsx
- src/shared/new-workspace/work-item-lookup-text.ts
- src/shared/new-workspace/smart-workspace-source-results.ts
- src/renderer/src/components/settings/task-tracker-integration-cards.tsx
- src/renderer/src/components/automations/automation-source-display.ts
- src/main/plane/client.test.ts
- src/renderer/src/components/task-page-list-chrome-visibility.ts
- src/shared/task-provider-identity.ts
- mobile/src/tasks/use-mobile-composer-source.ts
- src/renderer/src/components/plane-api-key-dialog.tsx
- src/renderer/src/components/settings/task-source-setup-state.test.ts
- src/shared/new-workspace/smart-workspace-command-value.ts
- src/renderer/src/components/settings/task-provider-integration-section-ids.ts
- src/renderer/src/hooks/useComposerState.ts
- mobile/src/tasks/smart-source-fan-out.ts
- mobile/src/tasks/smart-source-search-requests.ts
- src/main/runtime/rpc/methods/plane.ts
- mobile/src/tasks/mobile-task-providers.ts
- src/main/plane/instance-storage.ts
- src/cli/specs/plane.ts
- src/renderer/src/components/NewWorkspaceComposerCard.tsx
- mobile/src/components/TaskProviderLogo.tsx
- src/shared/new-workspace/workspace-source.ts
- src/renderer/src/components/feature-wall/use-integration-connection-status.ts
- src/renderer/src/store/slices/store-test-helpers.ts
- src/main/plane/response-mappers.ts
- mobile/src/tasks/workspace-create-params.test.ts
- src/main/plane/api-request.test.ts
- mobile/src/tasks/composer-linked-work-item.test.ts
- mobile/src/tasks/composer-linked-work-item.ts
- src/renderer/src/components/feature-wall/use-integration-connection-status.test.ts
- src/preload/index.ts
- src/main/plane/project-resource-mappers.ts
- src/main/plane/oauth.ts
- src/main/plane/project-resources.ts
- src/main/plane/client.ts
- src/main/runtime/orca-runtime.ts
- src/renderer/src/runtime/runtime-plane-client.ts
- src/main/plane/issue-activity.ts
- src/main/plane/issues.ts
- src/renderer/src/components/new-workspace/SmartWorkspaceNameField.tsx
- src/main/plane/api-request.ts
Included review availability: Your plan includes up to 10 reviews per rolling hour; 9 remain after this review.
There was a problem hiding this comment.
Actionable comments posted: 1
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (3)
src/main/plane/issues.ts (2)
20-76: 🎯 Functional Correctness | 🟠 Major | ⚡ Quick winLegacy
'all'-string path can undercounttotalResultson early return.Inside the per-project loop,
totalResultsaccumulatespage.totalResultsfor projects visited so far. Whenitems.length >= limitis reached andunvisitedProjectsistrue, the function returns this partial sum as the final total. The result understates the true total because it excludes totals from projects not yet visited.Only report
totalResultswhen every project has actually been visited (or omit it, matching thehasMoresemantics), rather than returning a partial sum as if it were the true total.
78-121: 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win
totalResultsis overwritten, not summed, across multiple Plane instances.
totalResults = page.totalResults(line 103) replaces the previous value on eachclientIndexiteration instead of accumulating it. WhengetClientsreturns multiple clients (the "All Plane instances" selection, exposed inTaskPage.tsx), the finaltotalResultsreflects only the last client processed without early return, or only the first client on early return — not the sum across instances. This directly affects the pagination totals this PR's commit message calls out ("Updated Plane task pagination to use server-provided totals"), and the wrong value flows straight intoTaskPage.tsx'sadvertisedPlaneIssueTotalPagescalculation.Accumulate
totalResults(andtotalPages, if it is meant to reflect all instances) across clients instead of overwriting.🐛 Proposed fix
let totalPages: number | undefined - let totalResults: number | undefined + let totalResults: number | undefined + let sawTotalResults = false for (let clientIndex = 0; clientIndex < clients.length; clientIndex += 1) { const client = clients[clientIndex] const project = await singleProjectForQuery(client, query) let cursor: string | null = null do { const pageCursor = cursor const page = await fetchWorkItemQueryPage( client, project, query, cursor, limit, WORK_ITEM_EXPAND ) cursor = nextPageCursor(pageCursor, page) if (page.totalResults !== undefined && pageCursor === null) { - totalResults = page.totalResults + totalResults = (totalResults ?? 0) + page.totalResults + sawTotalResults = true }src/renderer/src/components/TaskPage.tsx (1)
8153-8177: 🩺 Stability & Availability | 🔴 Critical | ⚡ Quick win
checkPlaneConnection()is never called; the Plane tab can be stuck loading forever.The status-refresh effect calls
refreshPreflightStatus,checkLinearConnection, andcheckJiraConnection, but nevercheckPlaneConnection.planeStatusReady(planeStatusCurrent && planeStatusChecked) staysfalseuntil something callscheckPlaneConnection. The "not ready" branch at line 11748 renders only a spinner, and the "Re-check Plane" / "Connect" button is only reachable onceplaneStatusReadyis alreadytrue. With no automatic call, a user who opens the Plane tab sees a permanent loading spinner with no way to reach the connect action.Call
checkPlaneConnection()from this effect when!planeStatusReady, mirroring the Linear and Jira checks.🐛 Proposed fix
useEffect(() => { if (!preflightStatusCurrent || !preflightStatusChecked) { void refreshPreflightStatus() } if (!linearStatusReady) { void checkLinearConnection() } if (!jiraStatusReady) { void checkJiraConnection() } + if (!planeStatusReady) { + void checkPlaneConnection() + } }, [ checkJiraConnection, checkLinearConnection, + checkPlaneConnection, expectedPreflightContextKey, jiraStatusContextKey, jiraStatusReady, linearStatusContextKey, linearStatusReady, + planeStatusReady, providerRuntimeContextKey, preflightStatusContextKey, preflightStatusChecked, preflightStatusCurrent, refreshPreflightStatus ])
♻️ Duplicate comments (2)
src/main/ipc/plane-normalizers.ts (1)
136-163: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick winSparse arrays still bypass validation in
optionalStringListandoptionalEnumList.
Array.prototype.everyskips holes in a sparse array, so a sparseassigneeIds,labelIds,stateGroups, etc. passes validation. InoptionalStringList,Array.prototype.mapthen preserves the hole, sonormalizedcontains anundefinedentry despite thestring[]return type. InoptionalEnumList, the function returnsvalue as T[]directly, so a hole surfaces as a literalundefinedin the returned list.Convert the input with
Array.frombefore validating, in both functions.🐛 Proposed fix for both helpers
function optionalStringList(value: unknown, fieldName: string): string[] | undefined { if (value === undefined) { return undefined } - if (!Array.isArray(value) || !value.every((item) => typeof item === 'string' && item.trim())) { + const items = Array.isArray(value) ? Array.from(value) : value + if (!Array.isArray(items) || !items.every((item) => typeof item === 'string' && item.trim())) { throw new Error(`Invalid ${fieldName}`) } - const normalized = value.map((item) => item.trim()) + const normalized = items.map((item) => item.trim()) return normalized.length > 0 ? normalized : undefined }function optionalEnumList<T extends string>( value: unknown, allowed: readonly T[], fieldName: string ): T[] | undefined { if (value === undefined) { return undefined } - if (!Array.isArray(value) || !value.every((item) => allowed.includes(item as T))) { + const items = Array.isArray(value) ? Array.from(value) : value + if (!Array.isArray(items) || !items.every((item) => allowed.includes(item as T))) { throw new Error(`Invalid ${fieldName}`) } - return value.length > 0 ? (value as T[]) : undefined + return items.length > 0 ? items : undefined }src/renderer/src/components/TaskPage.tsx (1)
10577-10593: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick winEstimate option ids can still be
"undefined"and collide.
id: String(point.value)produces the literal string"undefined"whenpoint.valueis nullish, and two estimates that share the same point value get the same id. This causes duplicateSelectItemkeys and an ambiguous selected value in the Estimate filter.Use
point.idfor the option id and keeppoint.valueonly in the label.🐛 Proposed fix
...planeEstimates.flatMap((estimate) => (estimate.points ?? []).map((point) => ({ - id: String(point.value), + id: point.id, label: `${estimate.name}: ${point.key ?? point.description ?? point.value ?? point.id}` })) )If the request payload needs the numeric point value, map the selected id back to its point before building
estimatePoint.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: acb11060-cf0f-4bf6-a200-56b8e2f181c3
📒 Files selected for processing (13)
src/main/ipc/plane-normalizers.tssrc/main/plane/issue-mutations.tssrc/main/plane/issue-pages.tssrc/main/plane/issue-query.tssrc/main/plane/issues.test.tssrc/main/plane/issues.tssrc/main/plane/project-resources.test.tssrc/main/plane/project-resources.tssrc/main/runtime/rpc/methods/plane-query-schema.tssrc/main/runtime/rpc/methods/plane.tssrc/renderer/src/components/TaskPage.tsxsrc/renderer/src/store/slices/plane-cache.tssrc/shared/plane/types.ts
🚧 Files skipped from review as they are similar to previous changes (5)
- src/main/plane/project-resources.test.ts
- src/main/plane/issue-pages.ts
- src/main/plane/issue-query.ts
- src/main/plane/project-resources.ts
- src/shared/plane/types.ts
Included review availability: Your plan includes up to 10 reviews per rolling hour; 9 remain after this review.
|
@coderabbitai resume |
|
✅ Action performedReview finished.
|
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (5)
src/renderer/src/components/TaskPage.tsx (5)
3515-3519: 🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick winNormalize the
"all"instance sentinel before Plane API calls.
selectedPlaneInstanceIdcan be"all". This code treats"all"as “no specific instance” when buildingselectedPlaneInstanceandplaneTaskSourceContext, but Lines [8899-8900], [8977-8982], and [9020-9021] pass"all"to Plane APIs as a real instance ID. Normalize"all"toundefinedand use that value for all Plane requests.Proposed fix
const selectedPlaneInstanceId = planeStatus.selectedInstanceId ?? planeStatus.activeInstanceId ?? planeStatus.instances[0]?.id ?? null + +const planeApiInstanceId = + selectedPlaneInstanceId && selectedPlaneInstanceId !== 'all' + ? selectedPlaneInstanceId + : undefined - listPlaneIssues(query, requestLimit, selectedPlaneInstanceId ?? undefined, { + listPlaneIssues(query, requestLimit, planeApiInstanceId, { sourceContext: planeTaskSourceContext, force: ... })Apply the same normalization to project, member, and resource requests.
5629-5664: 🚀 Performance & Scalability | 🟠 Major | ⚡ Quick winPrevent duplicate requests during Plane page expansion.
When the user requests another page, this code increases
planeIssueLimit. This effect runs before the later Plane fetch effect setsplaneLoadingtotrue. It can increase the limit a second time, so one page click starts two requests. The first request is then discarded as stale. SetplaneLoadingbefore changing the limit, or expand only after the current request completes.
8883-8889: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick winDo not parse the request signature with a user-controlled delimiter.
querySignaturecontains the free-text search. If the search contains::limit::,.split('::limit::')[0]truncates the signature before comparison. The component then treats every request as a new query, resets pagination, and can repeatedly reload the first page. StorequerySignatureseparately instead.
10562-10608: 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick winLocalize the Plane filter option labels.
All cycles,No cycle,All modules,No module,All types, andAll estimatesbypasstranslate(...)while the surrounding Plane UI uses localized keys. Generate locale keys for these renderer strings and pass translated labels into the option builders.Based on learnings: use the renderer localization workflow, which generates keys from the first 10 characters of the SHA-1 hash of
<filePath>:<text>and reuses keys for identical source text.Source: Learnings
11853-11864: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick winGuard the Plane row handler from child buttons.
The row opens
issue.urlon Enter or Space without checkingevent.target. When focus is on the nested Start workspace or Open in Plane button, the child action can also trigger the row handler and open the browser. Return whenevent.target !== event.currentTarget, as the Linear row handlers do.Proposed fix
onKeyDown={(e) => { + if (e.target !== e.currentTarget) { + return + } if (e.key === 'Enter' || e.key === ' ') { e.preventDefault() void window.api.shell.openUrl(issue.url) } }}
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: a73204d0-899c-4699-b60e-7b4b99c373e7
📒 Files selected for processing (2)
src/main/ipc/plane-normalizers.tssrc/renderer/src/components/TaskPage.tsx
🚧 Files skipped from review as they are similar to previous changes (1)
- src/main/ipc/plane-normalizers.ts
Included review availability: Your plan includes up to 10 reviews per rolling hour; 8 remain after this review.
|
@coderabbitai review |
✅ Action performedReview finished.
|
|
Any update on this? |
ELI5
Plane work items can now be used in Orca the same way Linear and Jira tasks are used: connect a Plane workspace, search or list work items, and create linked Orca workspaces from them. Plane can be connected with either a Personal Access Token or a Plane OAuth app.
What Changed
Why
Linked Issue
Visual Proof
Testing
npx [email protected] exec vitest run --config config/vitest.config.ts src/main/plane/api-request.test.ts src/main/plane/client.test.ts src/main/plane/issues.test.ts src/shared/plane/links.test.ts src/main/runtime/mobile-rpc-allowlist.test.ts src/cli/handler-group-manifest.test.ts src/renderer/src/components/settings/TasksPane.test.tsx src/renderer/src/components/settings/task-source-setup-state.test.ts src/renderer/src/components/feature-wall/use-integration-connection-status.test.tsnpx [email protected] exec tsc --noEmit -p config/tsconfig.node.jsonnpx [email protected] exec tsc --noEmit -p config/tsconfig.tc.cli.jsonnpx [email protected] exec tsc --noEmit -p config/tsconfig.tc.web.jsonAI Disclosure
Review
Checklist
Author