Repository navigation
Conversation
Add ClickUp as a first-class task provider alongside Linear, including shared task models, encrypted Personal API token storage, workspace and list hierarchy discovery, task search and CRUD operations, comments, assignees, tags, priorities, statuses, and due dates. Expose the integration through IPC, RPC, local and remote runtimes, preload APIs, the web client, and the orca clickup CLI. Persist ClickUp links in local, SSH, relay, and folder worktrees, and support task-aware worktree creation plus --current CLI operations. Add the complete renderer experience: connection settings, provider visibility, task list and detail surfaces, task creation and editing, comments, Smart Workspace search, feature-wall detection, sidebar navigation, and Kanban status synchronization using the existing design system. Bundle the ClickUp agent skill and CLI guide, migrate provider defaults without overriding deliberate opt-outs, and add localized copy for every supported locale. Cover the client, RPC, CLI, persistence, provider migration, worktree metadata, SSH passthrough, renderer store, Smart Workspace, and board synchronization paths with tests. Add a fork-scoped GitHub Actions workflow that builds and uploads unsigned Apple Silicon and Intel DMG/ZIP artifacts only from luizeof/orca:clickup-issues.
📝 WalkthroughWalkthroughThis PR introduces ClickUp as a new task-tracker integration across the stack. It adds shared ClickUp types, a main-process API client with token/account storage, task/comment/workspace normalization and CRUD logic, IPC and RPC method surfaces, CLI commands (get/search/list/update/comment/create, worktree linking), and renderer UI including a task list/detail/create surface, settings integration card, composer/smart-name task selection, sidebar shortcuts, and a Zustand store slice with caching. Worktree and workspace metadata gain linkedClickUpTaskId/linkedClickUpWorkspaceId fields propagated through creation, merge, and RPC paths. Persistence migration defaults ClickUp visibility for existing profiles. A new skill guide and bundled documentation describe ClickUp CLI usage, with corresponding manifest/registry entries and tests. Localization strings were added across five locales, and a new macOS dev build GitHub Actions workflow was introduced. 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 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: 14
🧹 Nitpick comments (9)
src/cli/clickup-format.ts (1)
46-63: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winMaintain fixed column positions for predictable TSV parsing.
Using
.filter(Boolean)drops missing values (likelist.folder?.name), resulting in rows with variable column counts. This breaks column alignment and makes the TSV output difficult for automated tools and scripts to parse reliably by index.Consider mapping missing values to empty strings instead to guarantee a strict 5-column structure.
♻️ Proposed refactor
export function formatClickUpLists(lists: ClickUpList[]): string { if (lists.length === 0) { return 'No ClickUp Lists found.' } return lists .map((list) => [ list.id, list.workspaceName ?? list.workspaceId, - list.space?.name, - list.folder?.name, + list.space?.name ?? '', + list.folder?.name ?? '', list.name ] - .filter(Boolean) .join('\t') ) .join('\n') }src/main/clickup/tasks.ts (1)
32-48: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winDuplicate client-selection helpers across
tasks.tsandworkspace-directory.ts. Both files independently define near-identicalrequiredClient/getRequiredClientandselectedClientsfunctions that guard against zero connected clients with the same error message. Extracting a single shared helper intoclient.ts(e.g.requireClient(workspaceId)/requireClients(workspaceId)) would remove this duplication and keep the "Connect ClickUp and select a Workspace first." error message in one place.
src/main/clickup/tasks.ts#L32-L48: replacegetRequiredClient/selectedClientswith the shared helper exported from./client.src/main/clickup/workspace-directory.ts#L17-L33: replacerequiredClient/selectedClientswith the same shared helper.src/renderer/src/components/ClickUpTaskPageSurface.tsx (1)
265-328: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winDuplicated grid-column template.
The same
grid-cols-[110px_minmax(0,2fr)_140px_140px_110px_64px]literal is repeated at lines 265, 282, and 317. Extract a shared constant so the header, skeleton, and row layouts can't drift out of sync.♻️ Extract shared grid template
+const CLICKUP_TASK_ROW_GRID = 'grid-cols-[110px_minmax(0,2fr)_140px_140px_110px_64px]' + export function ClickUpTaskPageSurface({ ... }) { ... - <div className="grid grid-cols-[110px_minmax(0,2fr)_140px_140px_110px_64px] gap-3 border-b border-border bg-muted/35 px-3 py-2 text-[10px] font-medium uppercase tracking-[0.16em] text-muted-foreground"> + <div className={cn('grid gap-3 border-b border-border bg-muted/35 px-3 py-2 text-[10px] font-medium uppercase tracking-[0.16em] text-muted-foreground', CLICKUP_TASK_ROW_GRID)}>src/renderer/src/lib/worktree-creation-flow.ts (1)
130-172: 📐 Maintainability & Code Quality | 🔵 Trivial | 🏗️ Heavy liftConsider an options-object signature for
createWorktree.Given the growing positional-parameter list (now ~24 args), a single options object would eliminate the risk introduced by inserting bare
undefinedplaceholders and make future provider linkage fields (like ClickUp) additive and self-documenting.src/renderer/src/components/task-page-localized-options.tsx (1)
124-128: 📐 Maintainability & Code Quality | 🔵 TrivialSemantic locale key breaks the file's hash-key convention.
Every neighboring entry in this same
getSourceOptionsarray uses a 10-char hash key underauto.components.TaskPage.*; the newclickupentry uses a semantic key (clickupSource) instead. See consolidated comment for cross-file details.Source: Learnings
src/renderer/src/components/settings/clickup-integration-card.tsx (3)
64-186: 📐 Maintainability & Code Quality | 🔵 TrivialLocale keys use semantic naming instead of the established hash-based convention.
All new
translate()calls in this card useauto.components.settings.clickup.<semanticName>keys instead of theauto.components.settings.<ComponentFile>.<10-char-hash>convention used by other settings components. See consolidated comment for cross-file scope.Source: Learnings
70-74: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick winManual English pluralization won't localize correctly.
Appending a literal
's'viavalue1bakes English pluralization rules into the translated string. Other locales (or even English edge cases with irregular plurals) can't express this correctly through a plain interpolation; i18next supports plural-aware keys (e.g.countoption with_one/_othersuffixes) for this.
1-1: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winClickUp UI strings use semantic locale keys instead of the codebase's hash-based convention. All three sites add new translate() keys with readable names (
clickup.connectedDescription,clickupLabel,clickupSource) while sibling entries in the same files/arrays useauto.components.<Dir>.<ComponentFile>.<10-char-hash>keys, breaking the established convention used by the locale-catalog bootstrap/sync tooling.
src/renderer/src/components/settings/clickup-integration-card.tsx#L64-186: rename allauto.components.settings.clickup.*keys to hash-based keys and regenerate viapnpm bootstrap:locale-catalog.src/renderer/src/components/settings/TasksPane.tsx#L67-79: renameclickupLabel/clickupDescriptionto hash-based keys matching the otherTASK_PROVIDER_OPTIONS/section entries in this file.src/renderer/src/components/task-page-localized-options.tsx#L124-128: renameclickupSourceto a hash-based key matching the other four entries ingetSourceOptions.Based on learnings, "use hash-based locale keys with translate('auto.components.
..<10-char-hash>', 'Default English text')... then run pnpm bootstrap:locale-catalog so translations propagate to es/ja/ko/zh."Source: Learnings
src/renderer/src/components/settings/TasksPane.tsx (1)
67-79: 📐 Maintainability & Code Quality | 🔵 TrivialSemantic locale keys diverge from this file's hash-key convention.
The new
clickupentry'slabel/descriptionuse semantic keys (clickupLabel,clickupDescription) rather than the hash-based keys used by otherTasksPane.tsxtranslate() calls. See consolidated comment for cross-file scope.Source: Learnings
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: 674d553d-a294-40d3-9553-a6fb2f5660e5
📒 Files selected for processing (115)
.github/workflows/dev-macos-build.ymlconfig/scripts/generate-bundled-skill-guides.mjsconfig/scripts/orca-clickup-skill-guidance.test.mjsresources/skills/current-manifest.jsonresources/skills/snapshot-registry.jsonskill-guides/orca-clickup.mdskills/orca-clickup/SKILL.mdsrc/cli/bundled-skill-guides.tssrc/cli/clickup-format.tssrc/cli/dispatch.tssrc/cli/handlers/clickup.test.tssrc/cli/handlers/clickup.tssrc/cli/handlers/worktree-clickup-task-link.tssrc/cli/handlers/worktree.tssrc/cli/help.tssrc/cli/specs/clickup.tssrc/cli/specs/core.tssrc/cli/specs/index.tssrc/main/clickup/client.tssrc/main/clickup/connection-storage.tssrc/main/clickup/task-comments.tssrc/main/clickup/task-mapping.tssrc/main/clickup/tasks.test.tssrc/main/clickup/tasks.tssrc/main/clickup/workspace-directory.tssrc/main/codex-accounts/runtime-home-service.test.tssrc/main/codex-accounts/service.test.tssrc/main/ipc/clickup.tssrc/main/ipc/register-core-handlers.test.tssrc/main/ipc/register-core-handlers.tssrc/main/ipc/repos.tssrc/main/ipc/worktree-logic.test.tssrc/main/ipc/worktree-metadata-merge.tssrc/main/ipc/worktree-remote.tssrc/main/ipc/worktrees.tssrc/main/persistence.test.tssrc/main/persistence.tssrc/main/runtime/orca-runtime.test.tssrc/main/runtime/orca-runtime.tssrc/main/runtime/rpc/methods/automations.tssrc/main/runtime/rpc/methods/clickup.test.tssrc/main/runtime/rpc/methods/clickup.tssrc/main/runtime/rpc/methods/folder-workspace.tssrc/main/runtime/rpc/methods/index.tssrc/main/runtime/rpc/methods/worktree-schemas.tssrc/main/runtime/rpc/methods/worktree.tssrc/main/runtime/runtime-rpc.tssrc/main/ssh/ssh-remote-cli-host-passthrough.test.tssrc/preload/api-types.tssrc/preload/index.tssrc/renderer/src/components/ClickUpTaskDetailSheet.tsxsrc/renderer/src/components/ClickUpTaskPageSurface.tsxsrc/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/clickup-api-token-dialog.tsxsrc/renderer/src/components/clickup-create-task-dialog.tsxsrc/renderer/src/components/clickup-task-page-model.tssrc/renderer/src/components/feature-wall/ConnectIntegrationsList.tsxsrc/renderer/src/components/feature-wall/use-integration-connection-status.tssrc/renderer/src/components/icons/ClickUpIcon.tsxsrc/renderer/src/components/new-workspace/SmartWorkspaceNameField.tsxsrc/renderer/src/components/new-workspace/smart-workspace-localized-options.tsxsrc/renderer/src/components/new-workspace/smart-workspace-source-results.test.tssrc/renderer/src/components/settings/IntegrationsPane.tsxsrc/renderer/src/components/settings/TasksPane.tsxsrc/renderer/src/components/settings/clickup-integration-card.tsxsrc/renderer/src/components/settings/task-tracker-integration-cards.tsxsrc/renderer/src/components/settings/use-integration-provider-status-refresh.tssrc/renderer/src/components/sidebar/SidebarTaskNavButton.tsxsrc/renderer/src/components/sidebar/WorkspaceKanbanDrawer.tsxsrc/renderer/src/components/sidebar/WorkspaceKanbanSettingsMenu.tsxsrc/renderer/src/components/sidebar/folder-workspace-composer-helpers.tssrc/renderer/src/components/sidebar/workspace-board-clickup-status-sync.tssrc/renderer/src/components/sidebar/workspace-board-task-status-sync-request.tssrc/renderer/src/components/sidebar/workspace-board-task-status-sync.test.tssrc/renderer/src/components/sidebar/workspace-board-task-status-sync.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/i18n/locales/en.jsonsrc/renderer/src/i18n/locales/es.jsonsrc/renderer/src/i18n/locales/ja.jsonsrc/renderer/src/i18n/locales/ko.jsonsrc/renderer/src/i18n/locales/zh.jsonsrc/renderer/src/lib/pending-worktree-creation.tssrc/renderer/src/lib/worktree-creation-flow.tssrc/renderer/src/runtime/runtime-clickup-client.tssrc/renderer/src/store/index.tssrc/renderer/src/store/slices/clickup-task-cache-patch.tssrc/renderer/src/store/slices/clickup.test.tssrc/renderer/src/store/slices/clickup.tssrc/renderer/src/store/slices/diffComments.test.tssrc/renderer/src/store/slices/store-test-helpers.tssrc/renderer/src/store/slices/worktree-helpers.tssrc/renderer/src/store/slices/worktrees.tssrc/renderer/src/store/types.tssrc/renderer/src/web/web-preload-api.tssrc/shared/clickup-types.tssrc/shared/constants.tssrc/shared/folder-workspace-worktree.test.tssrc/shared/folder-workspace-worktree.tssrc/shared/folder-workspaces.tssrc/shared/integration-credential-errors.tssrc/shared/new-workspace/smart-workspace-command-value.tssrc/shared/new-workspace/smart-workspace-source-results.tssrc/shared/new-workspace/workspace-source.tssrc/shared/runtime-types.tssrc/shared/task-providers.test.tssrc/shared/task-providers.tssrc/shared/task-source-context.tssrc/shared/types.tssrc/shared/workspace-name.ts
|
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:
📝 WalkthroughWalkthroughAdds end-to-end ClickUp integration, including API connectivity, task CRUD/search, comments, workspace discovery, IPC/RPC and CLI access, renderer task management, settings integration, caching, worktree linking, provider migrations, localization, skill documentation, and a macOS development build workflow. 🚥 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: 10
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
src/cli/help.ts (1)
212-215: 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick winCommon Commands usage strings are stale vs.
specs/core.ts.
specs/core.ts(lines 89, 141) now includes--clickup-task/--clickup-workspacein theworktree create/worktree setusage strings, but the corresponding lines here inROOT_HELP_TEXTwere not updated, soorca --helpwill omit the new flags for these two commands (unlike the existing--linear-issueflag, which is shown).📝 Proposed fix
- orca worktree create --name <name> [--repo <selector>|--project <id> [--host <host-id>]|--project-host-setup <id>] [--agent <id>] [--prompt <text>] [--setup run|skip|inherit] [--base-branch <ref>] [--issue <number>] [--linear-issue <identifier-or-url>] [--comment <text>] [--parent-worktree <selector>] [--no-parent] [--run-hooks] [--activate] [--json] + orca worktree create --name <name> [--repo <selector>|--project <id> [--host <host-id>]|--project-host-setup <id>] [--agent <id>] [--prompt <text>] [--setup run|skip|inherit] [--base-branch <ref>] [--issue <number>] [--linear-issue <identifier-or-url>] [--clickup-task <id-or-url>] [--clickup-workspace <id>] [--comment <text>] [--parent-worktree <selector>] [--no-parent] [--run-hooks] [--activate] [--json] ... - orca worktree set --worktree <selector> [--display-name <name>] [--issue <number|null>] [--linear-issue <identifier-or-url|null>] [--comment <text>] [--workspace-status <id>] [--parent-worktree <selector>|--no-parent] [--json] + orca worktree set --worktree <selector> [--display-name <name>] [--issue <number|null>] [--linear-issue <identifier-or-url|null>] [--clickup-task <id-or-url|null>] [--clickup-workspace <id>] [--comment <text>] [--workspace-status <id>] [--parent-worktree <selector>|--no-parent] [--json]
🧹 Nitpick comments (5)
src/cli/handlers/clickup.ts (1)
48-52: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueAdd a brief "why" comment for the env-var precedence.
ORCA_WORKTREE_IDis checked before falling back toresolveCurrentWorktreeSelector, mirroring the agent-shell rationale documented inworktree.ts(lines 224-226), but no comment explains it here.As per path instructions:
**/*.{ts,tsx,js,jsx}: "When code is driven by a design document or non-obvious constraint, add a brief one- or two-line comment explaining why the behavior is necessary."Source: Path instructions
src/cli/handlers/clickup.test.ts (1)
1-107: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winTests accurately reflect handler behavior — priority mapping, worktree-linked task lookup, and create-task payload all check out.
Consider adding negative-path coverage (mutual exclusivity of task id and
--current, unlinked-worktree error, invalid--priority/--filter/--due-date) given how much validation logic lives inresolveTaskTarget,getPriority,getDueDate, andgetFilter.src/main/runtime/rpc/methods/clickup.ts (1)
23-25: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valuePrefer Zod's
.nullish()over union withz.null().Using
z.union([schema, z.null()]).optional()is equivalent toschema.nullish(), which is more concise and idiomatic in Zod.
src/main/runtime/rpc/methods/clickup.ts#L23-L25: refactorpriority,dueDate, andtimeEstimateto use.nullish().src/main/runtime/rpc/methods/clickup.ts#L94-L94: refactorpriorityto use.nullish().src/renderer/src/components/ClickUpTaskDetailSheet.tsx (1)
101-135: 🗄️ Data Integrity & Integration | 🔵 Trivial | ⚡ Quick winConsider patching the store caches after a successful save.
handleSaverefreshes the single-task cache viarefreshTask({ force: true, ... }), but doesn't call the store'spatchClickUpTaskaction, so other cachedclickUpSearchCache/clickUpListCacheentries containing the pre-edit task (e.g. the list view behind this sheet, or a different open list within the 60s TTL) keep showing stale data until they refetch.♻️ Proposed addition
const refreshed = await refreshTask(task.id, task.workspaceId, { force: true, sourceContext }).catch(() => null) setSaving(false) if (refreshed) { + useAppStore.getState().patchClickUpTask(task.id, refreshed, sourceContext) onTaskChanged(refreshed) }src/renderer/src/components/settings/clickup-integration-card.tsx (1)
40-62: 🩺 Stability & Availability | 🔵 Trivial | ⚡ Quick winClickUp connection calls (
testConnection,checkConnection,disconnect) have no client-side timeout.If the underlying IPC/network call hangs,
testingstaystrueindefinitely with no escape or error shown to the user.Based on learnings, renderer IPC calls without an explicit timeout should be wrapped consistently (reusing the pattern from
useCreateProjectDefaults.ts) rather than fixed ad hoc — applying that here would prevent indefinite spinner states.Also applies to: 171-174
Source: Learnings
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: 674d553d-a294-40d3-9553-a6fb2f5660e5
📒 Files selected for processing (115)
.github/workflows/dev-macos-build.ymlconfig/scripts/generate-bundled-skill-guides.mjsconfig/scripts/orca-clickup-skill-guidance.test.mjsresources/skills/current-manifest.jsonresources/skills/snapshot-registry.jsonskill-guides/orca-clickup.mdskills/orca-clickup/SKILL.mdsrc/cli/bundled-skill-guides.tssrc/cli/clickup-format.tssrc/cli/dispatch.tssrc/cli/handlers/clickup.test.tssrc/cli/handlers/clickup.tssrc/cli/handlers/worktree-clickup-task-link.tssrc/cli/handlers/worktree.tssrc/cli/help.tssrc/cli/specs/clickup.tssrc/cli/specs/core.tssrc/cli/specs/index.tssrc/main/clickup/client.tssrc/main/clickup/connection-storage.tssrc/main/clickup/task-comments.tssrc/main/clickup/task-mapping.tssrc/main/clickup/tasks.test.tssrc/main/clickup/tasks.tssrc/main/clickup/workspace-directory.tssrc/main/codex-accounts/runtime-home-service.test.tssrc/main/codex-accounts/service.test.tssrc/main/ipc/clickup.tssrc/main/ipc/register-core-handlers.test.tssrc/main/ipc/register-core-handlers.tssrc/main/ipc/repos.tssrc/main/ipc/worktree-logic.test.tssrc/main/ipc/worktree-metadata-merge.tssrc/main/ipc/worktree-remote.tssrc/main/ipc/worktrees.tssrc/main/persistence.test.tssrc/main/persistence.tssrc/main/runtime/orca-runtime.test.tssrc/main/runtime/orca-runtime.tssrc/main/runtime/rpc/methods/automations.tssrc/main/runtime/rpc/methods/clickup.test.tssrc/main/runtime/rpc/methods/clickup.tssrc/main/runtime/rpc/methods/folder-workspace.tssrc/main/runtime/rpc/methods/index.tssrc/main/runtime/rpc/methods/worktree-schemas.tssrc/main/runtime/rpc/methods/worktree.tssrc/main/runtime/runtime-rpc.tssrc/main/ssh/ssh-remote-cli-host-passthrough.test.tssrc/preload/api-types.tssrc/preload/index.tssrc/renderer/src/components/ClickUpTaskDetailSheet.tsxsrc/renderer/src/components/ClickUpTaskPageSurface.tsxsrc/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/clickup-api-token-dialog.tsxsrc/renderer/src/components/clickup-create-task-dialog.tsxsrc/renderer/src/components/clickup-task-page-model.tssrc/renderer/src/components/feature-wall/ConnectIntegrationsList.tsxsrc/renderer/src/components/feature-wall/use-integration-connection-status.tssrc/renderer/src/components/icons/ClickUpIcon.tsxsrc/renderer/src/components/new-workspace/SmartWorkspaceNameField.tsxsrc/renderer/src/components/new-workspace/smart-workspace-localized-options.tsxsrc/renderer/src/components/new-workspace/smart-workspace-source-results.test.tssrc/renderer/src/components/settings/IntegrationsPane.tsxsrc/renderer/src/components/settings/TasksPane.tsxsrc/renderer/src/components/settings/clickup-integration-card.tsxsrc/renderer/src/components/settings/task-tracker-integration-cards.tsxsrc/renderer/src/components/settings/use-integration-provider-status-refresh.tssrc/renderer/src/components/sidebar/SidebarTaskNavButton.tsxsrc/renderer/src/components/sidebar/WorkspaceKanbanDrawer.tsxsrc/renderer/src/components/sidebar/WorkspaceKanbanSettingsMenu.tsxsrc/renderer/src/components/sidebar/folder-workspace-composer-helpers.tssrc/renderer/src/components/sidebar/workspace-board-clickup-status-sync.tssrc/renderer/src/components/sidebar/workspace-board-task-status-sync-request.tssrc/renderer/src/components/sidebar/workspace-board-task-status-sync.test.tssrc/renderer/src/components/sidebar/workspace-board-task-status-sync.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/i18n/locales/en.jsonsrc/renderer/src/i18n/locales/es.jsonsrc/renderer/src/i18n/locales/ja.jsonsrc/renderer/src/i18n/locales/ko.jsonsrc/renderer/src/i18n/locales/zh.jsonsrc/renderer/src/lib/pending-worktree-creation.tssrc/renderer/src/lib/worktree-creation-flow.tssrc/renderer/src/runtime/runtime-clickup-client.tssrc/renderer/src/store/index.tssrc/renderer/src/store/slices/clickup-task-cache-patch.tssrc/renderer/src/store/slices/clickup.test.tssrc/renderer/src/store/slices/clickup.tssrc/renderer/src/store/slices/diffComments.test.tssrc/renderer/src/store/slices/store-test-helpers.tssrc/renderer/src/store/slices/worktree-helpers.tssrc/renderer/src/store/slices/worktrees.tssrc/renderer/src/store/types.tssrc/renderer/src/web/web-preload-api.tssrc/shared/clickup-types.tssrc/shared/constants.tssrc/shared/folder-workspace-worktree.test.tssrc/shared/folder-workspace-worktree.tssrc/shared/folder-workspaces.tssrc/shared/integration-credential-errors.tssrc/shared/new-workspace/smart-workspace-command-value.tssrc/shared/new-workspace/smart-workspace-source-results.tssrc/shared/new-workspace/workspace-source.tssrc/shared/runtime-types.tssrc/shared/task-providers.test.tssrc/shared/task-providers.tssrc/shared/task-source-context.tssrc/shared/types.tssrc/shared/workspace-name.ts
Apply a 30-second AbortSignal to ClickUp net.fetch calls so stalled requests release the concurrency slot. Treat token decryption failures as a disconnected state and cover both behaviors with focused tests. Review comments: - stablyai#9495 (comment) - stablyai#9495 (comment) - stablyai#9495 (comment)
Scan raw ClickUp pages until the requested client-side filter/search limit is satisfied, using the raw response size so normalization cannot terminate pagination early. Run every tag mutation with allSettled and report the exact failed operations. Centralize required-client selection shared by task and workspace modules. Review comments: - stablyai#9495 (comment) - stablyai#9495 (comment) - stablyai#9495 (comment) - stablyai#9495 (review)
Reject malformed priority, due-date, and time-estimate values before local task creation reaches ClickUp. Keep the equivalent RPC schemas concise with nullish fields and cover invalid IPC payloads. Review comments: - stablyai#9495 (comment) - stablyai#9495 (comment) - stablyai#9495 (review)
Use the shared Textarea primitive for task editing, always release comment/test loading states after rejected requests, and patch known task fields before the forced refresh. Force the task cache once per refresh nonce instead of permanently bypassing it. Localize connection status and singular/plural Workspace copy, with catalog parity across locales. Review comments: - stablyai#9495 (comment) - stablyai#9495 (comment) - stablyai#9495 (comment) - stablyai#9495 (comment) - stablyai#9495 (comment)
Apply the same 15-60 second operation-specific limits to local window.api ClickUp calls that remote runtime RPC calls already use, preventing UI actions from waiting indefinitely on a stalled IPC request. Review comment: - stablyai#9495 (comment)
Prefix local-runtime cache entries with an explicit sentinel so unscoped patches cannot mutate task-source caches. Ignore search/list writes that finish after a connection or Workspace mutation, refresh the status context key on Workspace selection, and extract cache policy to keep the slice within the line limit. Cover local-versus-explicit scope isolation and stale read races. Review comments: - stablyai#9495 (comment) - stablyai#9495 (comment) - stablyai#9495 (comment) - stablyai#9495 (comment)
Document and verify that omitted runtime settings intentionally select the local runtime for ClickUp board synchronization. Returning early for undefined settings, as suggested by the review, would disable the valid local path. Review comment: - stablyai#9495 (comment)
Extend Smart Workspace source intent with ClickUp and prioritize the matching ClickUp row when the picker is in ClickUp mode. Add a resolver regression test so Enter cannot fall back to the typed-name row for an explicit ClickUp lookup. Review comment: - stablyai#9495 (comment)
Set persist-credentials to false on the development macOS checkout so the workflow token is not written into local Git configuration or carried into build artifacts. Review comments: - stablyai#9495 (comment) - stablyai#9495 (comment)
Normalize list filters case-insensitively, use a comment-specific success message, preserve all five TSV destination columns, and validate real calendar dates. Document launcher worktree-ID precedence and add negative coverage for selector conflicts, missing links, filters, priorities, and due dates. Review comments: - stablyai#9495 (comment) - stablyai#9495 (comment) - stablyai#9495 (review) - stablyai#9495 (review)
Merge upstream/main into clickup-issues without rewriting the review-fix commits. Resolve the five generated locale catalog conflicts by retaining the current main catalogs and regenerating all ClickUp and upstream keys from the merged source, preserving parity across en, es, ja, ko, and zh. Validation: - pnpm typecheck - 54 focused ClickUp/CLI/board/cache tests - localization catalog and coverage checks - max-lines ratchet
Introduce CreateWorktreeOptions and migrate every renderer caller and affected assertion to named fields. This removes the fragile 28-argument contract, makes provider metadata explicit, and preserves local, SSH, WSL, runtime, automation, and ClickUp creation paths. Addresses review: stablyai#9495 (review)
Replace semantic ClickUp-only keys with deterministic 10-character catalog keys alongside their neighboring components. Pass count through singular and plural workspace descriptions, migrate every locale catalog, and remove the superseded entries. Addresses review: stablyai#9495 (review)
Add --clickup-task and --clickup-workspace to the root Common Commands examples for both worktree create and worktree set, including the nullable unlink form. Extend root-help coverage so the summary cannot drift from the command specs again. Addresses review: stablyai#9495 (review)
After the optimistic task patch, write the forced refresh result back through patchClickUpTask before notifying the detail-sheet owner. This keeps list, board, detail, and source-scoped caches aligned with server-normalized fields after a successful save. Addresses review: stablyai#9495 (review)
|
Follow-up for review 4731841310:
Earlier TSV, client-helper, and grid-template findings from this review remain covered by |
|
Follow-up for review 4731869444:
Earlier environment rationale, negative CLI cases, nullable Zod fields, and local timeout findings from this review remain covered by |
|
Follow-up for comment 5018153133: the PR description now follows the repository template with Summary, Screenshots, Testing, AI Review Report, Security Audit, and Notes. No blanket docstrings were added because the repository AGENTS.md requires brief comments only for non-obvious reasons and constraints; adding coverage-only comments would conflict with that project rule. |
|
Follow-up for comment 5018226331: the AI Review Report now explicitly records the macOS, Linux, Windows/WSL, SSH, remote-runtime, keyboard-label, path, shell, and Electron compatibility audit. No blanket docstrings were added because the repository AGENTS.md requires comments to document only a non-obvious reason or constraint. |
Cast the Vitest mock call records to an explicit one-argument tuple before inspecting CreateWorktreeOptions. This keeps the refactor assertions compatible with the native TypeScript compiler used by the macOS packaging runner. Addresses review: stablyai#9495 (review) Fixes CI run: https://github.com/luizeof/orca/actions/runs/29715706025
Centralize ClickUp task reference parsing so task reads and mutations match worktree link behavior. Accept only plain task IDs or HTTPS app.clickup.com task URLs, normalize URLs before RPC calls, reject lookalike hosts, and expose the accepted id-or-url form in command help. Cover valid URLs, slugged URLs, malformed references, malicious hosts, and mutation dispatch.
Document ClickUp connection scoping and credential storage, desktop/mobile task workflows, CLI discovery and mutation commands, linked workspace behavior, SSH/runtime considerations, and troubleshooting. Describe the fork-only unsigned macOS workflow and local checkout commands, then link the guide from the English and Portuguese readmes.
Bring the ClickUp skill in line with the repository's Linear-style operational guidance. Clarify the CLI namespace, runtime-scoped credentials across local, WSL, SSH, and relay hosts, task URL support, exact non-regressive status selection, single-comment completion behavior, and safe handling of uncertain writes. Regenerate the distributed skill, embedded CLI guide, and bundle manifests, with contract tests for the new safety boundaries.
Expose ClickUp as a runtime-scoped mobile Tasks provider with connection-aware home shortcuts, search and assigned-task loading, task details and comments, provider branding, external links, and linked workspace creation. Add ClickUp to Smart Workspace discovery and fan-out, preserve task and Workspace IDs through create RPCs, and reject incomplete linked sources before mutation. Extract task item models and source-selection dispatch into domain-named modules so the existing max-lines budgets remain unchanged. Cover provider availability, task mapping, Smart mode fan-out, composer linking, workspace parameters, and invalid identity handling; update the integration guide to distinguish desktop editing from paired-mobile read/start behavior.
# Conflicts: # src/renderer/src/components/new-workspace/SmartWorkspaceNameField.tsx # src/shared/types.ts
|
thank you so much for this PR! we're working on refactoring the issue tracker modules this week, so will help land the PR once that's in! |
Hello, is there still interest in this PR? |
Hello, is there still interest in this PR? |
|
I would like to see this land for sure. |
|
hello @brennanb2025 Is there still interest in this? I can perform a rebase to update this code, as it's been a while. |
I would love to see this land |
| return `${item.source.type}-${item.source.number}` | ||
| } | ||
| return item.source.identifier.toLowerCase() | ||
| return item.provider === 'linear' |
There was a problem hiding this comment.
If another provider is added, this ternary might need to change. At this point, it could be worth using a switch statement instead.
|
|
||
| function isTaskProvider(value: unknown): value is TaskProvider { | ||
| return value === 'github' || value === 'gitlab' || value === 'linear' | ||
| return value === 'github' || value === 'gitlab' || value === 'linear' || value === 'clickup' |
There was a problem hiding this comment.
This is getting pretty long. What about something like this?
[
// providers
].includes(value);
| defaultLinearTeamSelectionRef.current = settings.defaultLinearTeamSelection ?? null | ||
| const nextQuery = | ||
| nextProvider === 'github' ? githubQuery : nextProvider === 'linear' ? nextLinearQuery : '' | ||
| nextProvider === 'github' |
There was a problem hiding this comment.
I'm not sure what the standard is in this codebase, but it might be worth avoiding nested ternaries.
| : ((selectedCreateTarget as LinearTeam | null)?.name ?? 'Select target') | ||
| const providerLabel = | ||
| provider === 'github' ? 'GitHub' : provider === 'gitlab' ? 'GitLab' : 'Linear' | ||
| provider === 'github' |
There was a problem hiding this comment.
Similar comment as above about nested ternaries. At looks like there was already a single nested ternary.
There was a problem hiding this comment.
Actually, I have to imagine these provider labels might be useful in more than one spot in the code. Maybe it would be good to add a shared constant as a Record<Provider, string>
There was a problem hiding this comment.
Looking farther down this PR, it looks like this constant already exists in the mobile app home page, but it's not exported. I suggest moving it to a file intended to be shared, and export it from there, and then reference that constant here. This becomes a simple object key lookup instead of an if/else statement.
|
|
||
| {provider === 'gitlab' && gitlabView === 'todos' ? null : provider === 'linear' && | ||
| !linearConnected ? null : ( | ||
| {provider === 'gitlab' && gitlabView === 'todos' ? null : (provider === 'linear' && |
There was a problem hiding this comment.
nit: this could be a good spot to add some constants to make this cleaner, easier to grok.
| composer.handleSmartLinearIssueSelect(row.issue) | ||
| return | ||
| case 'clickup': | ||
| composer.handleSmartClickUpTaskSelect(row.task) |
There was a problem hiding this comment.
nit: add a return after this line to reduce the git diff when a new provider is added. Also, the function that was refactored used breaks instead of returns. This might be a style preference of this repo.
| task.dueDate ? `Due: ${task.dueDate.slice(0, 10)}` : null, | ||
| `URL: ${task.url}`, | ||
| task.description ? `\n${task.description}` : null | ||
| ] |
There was a problem hiding this comment.
The custom task ID would be a nice-to-have if it exists.
Summary
Adds end-to-end ClickUp issue-tracker support across the desktop app, paired mobile app, runtime/IPC, CLI, workspace linking, Smart Workspace, board status synchronization, localization, tests, documentation, and bundled agent skills.
The review follow-up hardens request timeouts, credential failures, task pagination, tag reconciliation, renderer loading states, cache isolation, stale async writes, CLI validation/output, checkout credential handling, and the worktree-creation API. The expanded follow-up adds strict ClickUp task URL parsing, mobile task/workspace parity, Linear-style operational skill guidance, and a complete integration/macOS testing guide.
Screenshots
Not applicable. The changes extend existing issue-tracker surfaces and use the repository design system, shadcn primitives, and canonical tokens.
Testing
pnpm lint— changed files pass focused linting; the full command currently stops on switch-exhaustiveness findings inherited frommain.pnpm typecheckpnpm --dir mobile typecheckpnpm test— 49 focused desktop/CLI/skill tests pass on the final head; the complete root suite has unrelated existing failures and was not used as a release gate.pnpm build:mac— compilation and installer generation reach electron-builder, but the fork workflow attempts GitHub publishing and exits becauseGH_TOKENis intentionally unavailable. The proposed non-publishing workflow adjustment requires explicit approval before implementation.AI Review Report
macos-15and targets Apple Silicon and Intel.Security Audit
persist-credentials: false.luizeof/orcaand creates unsigned, seven-day test artifacts only.Notes
docs/reference/clickup-integration.mdand linked from the English and Portuguese readmes.skill-guides/orca-clickup.md; generatedskills/orca-clickup/SKILL.md, the embedded CLI guide, and skill manifests are synchronized and validated.app.clickup.comtask URL and reject lookalike hosts.upstream/mainis included by merge commitebc6003aa; generated catalogs were regenerated where needed, and the PR is currently mergeable with no conflicts.ELI5
ClickUp becomes a full issue tracker in Orca: link tasks to workspaces, see board status, use it from desktop and mobile, and manage it from the CLI. You can treat ClickUp the same way you already treat other trackers.