@taskforcehq/taskforce 0.3.328 → 0.3.330
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Taskforce.module.css +523 -79
- package/dist/TaskforceCore.js +237 -230
- package/dist/annotatedAttachments/AnnotatedAttachmentSessionStore.js +1 -1
- package/dist/cli.js +34 -0
- package/dist/cliCloudTargetGuard.d.ts +5 -0
- package/dist/cliCloudTargetGuard.js +11 -0
- package/dist/components/features/AiProfilesModule.js +3 -5
- package/dist/components/features/AnnotatedAttachmentWorkspace.js +24 -8
- package/dist/components/features/TaskSettings.d.ts +12 -1
- package/dist/components/features/TaskSettings.js +217 -54
- package/dist/components/features/TaskforceAgentsModule.d.ts +1 -2
- package/dist/components/features/TaskforceAgentsModule.js +586 -116
- package/dist/components/features/agentCapabilities/AgentCapabilitiesPrototype.d.ts +1 -1
- package/dist/components/features/agentConnections/AgentConnectionControl.d.ts +15 -0
- package/dist/components/features/agentConnections/AgentConnectionControl.js +125 -0
- package/dist/components/features/agentConnections/ModelConnectionsPanel.d.ts +18 -0
- package/dist/components/features/agentConnections/ModelConnectionsPanel.js +393 -0
- package/dist/components/features/agentConnections/modelConnectionsApi.d.ts +65 -0
- package/dist/components/features/agentConnections/modelConnectionsApi.js +129 -0
- package/dist/components/features/planning/PlanningModule.js +2 -5
- package/dist/components/features/planning/PlanningTaskOrderList.d.ts +1 -1
- package/dist/components/features/planning/PlanningTaskOrderList.js +17 -6
- package/dist/components/features/planning/planningTaskArrangement.d.ts +1 -0
- package/dist/components/features/planning/planningTaskArrangement.js +5 -5
- package/dist/components/features/taskforceAgentAssignments/AgentBehaviorAssignments.js +15 -24
- package/dist/components/features/taskforceAgentEditorModel.d.ts +2 -1
- package/dist/components/features/taskforceAgentEditorModel.js +5 -1
- package/dist/components/features/workflowManager/workflowManagerApi.d.ts +1 -1
- package/dist/components/features/workflowManager/workflowManagerApi.js +3 -0
- package/dist/components/task/TaskCard.d.ts +5 -0
- package/dist/components/task/TaskCard.js +65 -10
- package/dist/components/task/TaskImageReviews.js +14 -5
- package/dist/components/task/TaskKanban.d.ts +6 -1
- package/dist/components/task/TaskKanban.js +152 -6
- package/dist/components/task/TaskList.d.ts +5 -0
- package/dist/components/task/TaskList.js +3 -3
- package/dist/components/task/TaskWorkflowAssignmentField.js +68 -10
- package/dist/components/ui/PasswordInput.d.ts +6 -0
- package/dist/components/ui/PasswordInput.js +11 -0
- package/dist/components/ui/TopNoticeLayer.js +1 -1
- package/dist/components/views/AppShellHeader.js +32 -11
- package/dist/components/views/PlanComparisonPage.js +12 -0
- package/dist/components/views/StandaloneLayout.js +32 -55
- package/dist/components/views/WidgetView.js +3 -3
- package/dist/components/views/panels/PlanningDrawer.js +5 -12
- package/dist/components/views/standalone/modals/AccountSettingsModal.js +26 -17
- package/dist/components/views/standalone/modals/SyncStatusModal.d.ts +4 -3
- package/dist/components/views/standalone/modals/SyncStatusModal.js +33 -38
- package/dist/config/envSchema.js +60 -1
- package/dist/config/localServiceRuntimeContract.d.ts +13 -0
- package/dist/config/localServiceRuntimeContract.js +135 -0
- package/dist/core/AiProfileService.js +46 -8
- package/dist/core/DeletedTaskLifecycleService.d.ts +1 -0
- package/dist/core/DeletedTaskLifecycleService.js +37 -6
- package/dist/core/McpTokenService.d.ts +23 -1
- package/dist/core/McpTokenService.js +93 -10
- package/dist/core/TaskAttachmentLinksDurableMutationService.d.ts +3 -2
- package/dist/core/TaskAttachmentLinksDurableMutationService.js +33 -9
- package/dist/core/TaskChecklistCommandService.d.ts +27 -0
- package/dist/core/TaskChecklistCommandService.js +83 -5
- package/dist/core/TaskLifecycleCommandService.d.ts +3 -1
- package/dist/core/TaskLifecycleCommandService.js +6 -2
- package/dist/core/Taskforce.d.ts +94 -2
- package/dist/core/Taskforce.js +760 -36
- package/dist/core/types.d.ts +14 -0
- package/dist/documentReviews/commandService.d.ts +2 -1
- package/dist/documentReviews/commandService.js +6 -3
- package/dist/hooks/sync/orchestratorShared.d.ts +1 -0
- package/dist/hooks/sync/orchestratorShared.js +2 -0
- package/dist/hooks/sync/useDurableLocalOutboxDrain.d.ts +1 -1
- package/dist/hooks/sync/useDurableTaskCreateMutation.js +1 -1
- package/dist/hooks/sync/useDurableTaskMetadataMutation.d.ts +1 -0
- package/dist/hooks/sync/useDurableTaskMetadataMutation.js +1 -0
- package/dist/hooks/sync/useDurableTaskStatusMutation.d.ts +1 -0
- package/dist/hooks/sync/useLocalSyncCoordinatorSnapshot.d.ts +3 -0
- package/dist/hooks/sync/useLocalSyncCoordinatorSnapshot.js +85 -9
- package/dist/hooks/sync/useSyncStatusControls.d.ts +4 -1
- package/dist/hooks/sync/useSyncStatusControls.js +47 -11
- package/dist/hooks/tasks/taskHttpMutation.js +1 -0
- package/dist/hooks/tasks/useCloudTaskSearch.d.ts +12 -0
- package/dist/hooks/tasks/useCloudTaskSearch.js +71 -0
- package/dist/hooks/tasks/useTaskDescriptionImageDraftRecovery.d.ts +16 -0
- package/dist/hooks/tasks/useTaskDescriptionImageDraftRecovery.js +197 -0
- package/dist/hooks/tasks/useTaskEditorNavigation.d.ts +16 -3
- package/dist/hooks/tasks/useTaskEditorNavigation.js +72 -13
- package/dist/hooks/tasks/useTaskFormActions.d.ts +6 -0
- package/dist/hooks/tasks/useTaskFormActions.js +65 -12
- package/dist/hooks/ui/useSettingsModel.d.ts +24 -2
- package/dist/hooks/ui/useSettingsModel.js +13 -2
- package/dist/hooks/ui/useSettingsPersistence.d.ts +12 -1
- package/dist/hooks/ui/useSettingsPersistence.js +74 -47
- package/dist/hooks/useFilterSort.d.ts +7 -3
- package/dist/hooks/useFilterSort.js +15 -5
- package/dist/hooks/useSyncOrchestrator.d.ts +3 -0
- package/dist/hooks/useSyncOrchestrator.js +111 -2
- package/dist/hooks/useTaskData.d.ts +40 -1
- package/dist/hooks/useTaskData.js +240 -9
- package/dist/hooks/useTaskMutations.d.ts +12 -2
- package/dist/hooks/useTaskMutations.js +266 -52
- package/dist/hooks/useTaskforce.d.ts +39 -9
- package/dist/hooks/useTaskforce.js +359 -40
- package/dist/hooks/useUiNotice.d.ts +4 -0
- package/dist/hooks/useUiNotice.js +4 -0
- package/dist/mcp/adminWorkspaceRegistrar.js +3 -3
- package/dist/mcp/clientRegistry.d.ts +2 -2
- package/dist/mcp/clientRegistry.js +1 -1
- package/dist/mcp/documentAssetRegistrar.js +53 -41
- package/dist/mcp/documentHelpers.d.ts +1 -0
- package/dist/mcp/documentHelpers.js +7 -3
- package/dist/mcp/durableTaskMutationRouter.d.ts +4 -1
- package/dist/mcp/durableTaskMutationRouter.js +10 -0
- package/dist/mcp/durableTaskRelationshipMutationRouter.js +4 -0
- package/dist/mcp/httpProtocolRouting.d.ts +10 -0
- package/dist/mcp/httpProtocolRouting.js +19 -0
- package/dist/mcp/localCliHealth.d.ts +2 -2
- package/dist/mcp/localCliHealth.js +2 -2
- package/dist/mcp/localServiceProxy.d.ts +1 -0
- package/dist/mcp/localServiceProxy.js +530 -68
- package/dist/mcp/planningAttachmentCommandAdapter.d.ts +3 -1
- package/dist/mcp/planningAttachmentCommandAdapter.js +20 -2
- package/dist/mcp/runtime.d.ts +54 -79
- package/dist/mcp/runtime.js +556 -139
- package/dist/mcp/taskPlanningRegistrar.js +64 -42
- package/dist/mcp/toolCallCompatibility.js +38 -1
- package/dist/mcp/toolCatalog.d.ts +1 -0
- package/dist/mcp/toolProfiles.d.ts +2 -0
- package/dist/mcp/toolProfiles.js +10 -0
- package/dist/mcp/toolRegistry.d.ts +1 -0
- package/dist/mcp/toolRegistry.js +1 -0
- package/dist/mcp/workflowExecutionRegistrar.js +4 -4
- package/dist/migrations/taskSchemaMigrations.d.ts +5 -0
- package/dist/migrations/taskSchemaMigrations.js +427 -0
- package/dist/runtime/appGateDefinitions.d.ts +30 -6
- package/dist/runtime/appGateDefinitions.js +6 -6
- package/dist/runtime/appGates.d.ts +13 -13
- package/dist/runtime/appGates.js +36 -13
- package/dist/runtime/nodeAppGates.d.ts +8 -0
- package/dist/runtime/nodeAppGates.js +27 -0
- package/dist/server/cloudCollectionRead.d.ts +1 -1
- package/dist/server/cloudCollectionRead.js +2 -2
- package/dist/server/index.d.ts +6 -0
- package/dist/server/index.js +123 -14
- package/dist/server/localDatabaseIdentity.js +4 -1
- package/dist/server/localServiceLease.d.ts +3 -0
- package/dist/server/localServiceLease.js +11 -2
- package/dist/server/localServiceSessions.d.ts +14 -17
- package/dist/server/localServiceSessions.js +308 -94
- package/dist/server/localWorkspaceSyncServerRuntime.js +12 -7
- package/dist/server/rateLimit.d.ts +1 -0
- package/dist/server/rateLimit.js +4 -0
- package/dist/server/realtimeSyncWs.js +36 -12
- package/dist/server/routes/admin.d.ts +4 -0
- package/dist/server/routes/admin.js +113 -3
- package/dist/server/routes/agentRoles.js +3 -2
- package/dist/server/routes/agentSkills.js +3 -2
- package/dist/server/routes/agents.d.ts +7 -0
- package/dist/server/routes/agents.js +394 -39
- package/dist/server/routes/annotatedAttachments.js +3 -2
- package/dist/server/routes/auth.js +3 -1
- package/dist/server/routes/billing.js +5 -1
- package/dist/server/routes/durableTaskHttpRouters.d.ts +11 -2
- package/dist/server/routes/executorPhaseAApprovals.d.ts +19 -0
- package/dist/server/routes/executorPhaseAApprovals.js +140 -0
- package/dist/server/routes/executorPhaseAIssuerRedemptions.d.ts +11 -0
- package/dist/server/routes/executorPhaseAIssuerRedemptions.js +24 -0
- package/dist/server/routes/githubReviewEvidence.d.ts +19 -0
- package/dist/server/routes/githubReviewEvidence.js +116 -0
- package/dist/server/routes/localService.d.ts +15 -4
- package/dist/server/routes/localService.js +138 -40
- package/dist/server/routes/modelConnections.d.ts +24 -0
- package/dist/server/routes/modelConnections.js +205 -0
- package/dist/server/routes/primitives.d.ts +2 -0
- package/dist/server/routes/shared.d.ts +19 -0
- package/dist/server/routes/shared.js +95 -19
- package/dist/server/routes/sync.js +1 -0
- package/dist/server/routes/syncAuxRoutes.js +9 -2
- package/dist/server/routes/syncPullApplyRoutes.js +23 -4
- package/dist/server/routes/syncPushRoutes.d.ts +1 -0
- package/dist/server/routes/syncPushRoutes.js +1 -0
- package/dist/server/routes/syncV3FeedRoutes.js +27 -16
- package/dist/server/routes/syncV3LocalCaptureRoutes.js +28 -2
- package/dist/server/routes/syncV3LocalFeedApplyRoutes.d.ts +1 -0
- package/dist/server/routes/syncV3LocalFeedApplyRoutes.js +26 -0
- package/dist/server/routes/syncV3OperationRoutes.js +45 -9
- package/dist/server/routes/tasks.js +124 -13
- package/dist/server/routes/workflows.js +9 -1
- package/dist/server/routes/workspaces.js +43 -1
- package/dist/server/routes.js +59 -0
- package/dist/server/workspaceDeletionAdmission.d.ts +23 -0
- package/dist/server/workspaceDeletionAdmission.js +50 -0
- package/dist/service/localServiceCli.js +16 -0
- package/dist/service/localServiceClientLifecycle.js +36 -10
- package/dist/services/codexAppServerModelGateway.d.ts +161 -0
- package/dist/services/codexAppServerModelGateway.js +663 -0
- package/dist/services/codexDeviceCodeLoginManager.d.ts +39 -0
- package/dist/services/codexDeviceCodeLoginManager.js +265 -0
- package/dist/services/codexModelProviderConnectionLifecycle.d.ts +8 -0
- package/dist/services/codexModelProviderConnectionLifecycle.js +73 -0
- package/dist/services/executorPhaseAApprovalRuntime.d.ts +14 -0
- package/dist/services/executorPhaseAApprovalRuntime.js +24 -0
- package/dist/services/executorPhaseAApprovalService.d.ts +40 -0
- package/dist/services/executorPhaseAApprovalService.js +609 -0
- package/dist/services/executorPhaseADriftEvaluator.d.ts +78 -0
- package/dist/services/executorPhaseADriftEvaluator.js +93 -0
- package/dist/services/executorPhaseAIssuerCore.d.ts +126 -0
- package/dist/services/executorPhaseAIssuerCore.js +295 -0
- package/dist/services/executorPhaseAIssuerRedemptionService.d.ts +34 -0
- package/dist/services/executorPhaseAIssuerRedemptionService.js +158 -0
- package/dist/services/githubReviewEvidenceRuntime.d.ts +14 -0
- package/dist/services/githubReviewEvidenceRuntime.js +30 -0
- package/dist/services/githubReviewEvidenceService.d.ts +93 -0
- package/dist/services/githubReviewEvidenceService.js +336 -0
- package/dist/services/modelGateway.d.ts +7 -0
- package/dist/services/modelProviderConnectionService.d.ts +71 -0
- package/dist/services/modelProviderConnectionService.js +279 -0
- package/dist/services/modelProviderCredentialHome.d.ts +32 -0
- package/dist/services/modelProviderCredentialHome.js +271 -0
- package/dist/services/ownerScopedModelConnectionGateway.d.ts +12 -0
- package/dist/services/ownerScopedModelConnectionGateway.js +30 -0
- package/dist/services/taskforceAgentConnectionBindingService.d.ts +66 -0
- package/dist/services/taskforceAgentConnectionBindingService.js +185 -0
- package/dist/services/taskforceAgentMcpBridge.d.ts +8 -2
- package/dist/services/taskforceAgentMcpBridge.js +30 -27
- package/dist/shared/adminEdgeProxy.d.ts +5 -0
- package/dist/shared/adminEdgeProxy.js +94 -0
- package/dist/shared/adminProxySessionCookies.d.ts +16 -0
- package/dist/shared/adminProxySessionCookies.js +86 -0
- package/dist/shared/aiProfileColors.d.ts +31 -1
- package/dist/shared/aiProfileColors.js +14 -6
- package/dist/shared/executorPhaseAApprovalGoldenVector.json +269 -0
- package/dist/shared/executorPhaseAApprovalReceipt.d.ts +112 -0
- package/dist/shared/executorPhaseAApprovalReceipt.js +58 -0
- package/dist/shared/executorPhaseAApprovalTrustPolicy.json +10 -0
- package/dist/shared/executorPhaseADriftContracts.d.ts +37 -0
- package/dist/shared/executorPhaseADriftContracts.js +63 -0
- package/dist/shared/executorPhaseAIssuerContracts.d.ts +75 -0
- package/dist/shared/executorPhaseAIssuerContracts.js +90 -0
- package/dist/shared/executorPhaseARunAuthorization.d.ts +120 -0
- package/dist/shared/executorPhaseARunAuthorization.js +232 -0
- package/dist/shared/executorPhaseASchemaValidation.d.ts +7 -0
- package/dist/shared/executorPhaseASchemaValidation.js +53 -0
- package/dist/shared/executorPhaseASchemas/approval-receipt.schema.json +106 -0
- package/dist/shared/executorPhaseASchemas/drift-attestation.schema.json +54 -0
- package/dist/shared/executorPhaseASchemas/drift-request.schema.json +47 -0
- package/dist/shared/executorPhaseASchemas/foundation-manifest.schema.json +29 -0
- package/dist/shared/executorPhaseASchemas/issuer-audit-record.schema.json +24 -0
- package/dist/shared/executorPhaseASchemas/issuer-proof.schema.json +43 -0
- package/dist/shared/executorPhaseASchemas/issuer-redemption-request.schema.json +18 -0
- package/dist/shared/executorPhaseASchemas/issuer-redemption-response.schema.json +39 -0
- package/dist/shared/executorPhaseASchemas/logical-envelope.schema.json +149 -0
- package/dist/shared/executorPhaseASchemas/preflight-report.schema.json +216 -0
- package/dist/shared/executorPhaseASchemas/run-capability.schema.json +111 -0
- package/dist/shared/executorPhaseASchemas/sender-proof.schema.json +37 -0
- package/dist/shared/executorPhaseASchemas/workload-grant.schema.json +68 -0
- package/dist/shared/executorPhaseASchemas/workload-jwt-claims.schema.json +67 -0
- package/dist/shared/executorPhaseATiming.d.ts +1 -0
- package/dist/shared/executorPhaseATiming.js +1 -0
- package/dist/shared/planningIdentity.js +1 -1
- package/dist/shared/productLogoKeys.d.ts +2 -0
- package/dist/shared/productLogoKeys.js +18 -0
- package/dist/shared/taskforceAgentDefinition.d.ts +0 -1
- package/dist/shared/taskforceAgentDefinition.js +6 -3
- package/dist/shared/taskforceAgentModels.d.ts +1 -0
- package/dist/shared/taskforceAgentModels.js +36 -3
- package/dist/shared/userFeatureGrants.d.ts +4 -0
- package/dist/shared/userFeatureGrants.js +7 -0
- package/dist/storage/executorPhaseAApprovalReceiptStore.d.ts +37 -0
- package/dist/storage/executorPhaseAApprovalReceiptStore.js +81 -0
- package/dist/storage/executorPhaseARunAuthorizationStore.d.ts +103 -0
- package/dist/storage/executorPhaseARunAuthorizationStore.js +492 -0
- package/dist/storage/githubReviewEvidenceInstallationStore.d.ts +26 -0
- package/dist/storage/githubReviewEvidenceInstallationStore.js +89 -0
- package/dist/storage/modelProviderConnectionStore.d.ts +99 -0
- package/dist/storage/modelProviderConnectionStore.js +446 -0
- package/dist/storage/postgresAdapter.d.ts +24 -3
- package/dist/storage/postgresAdapter.js +117 -14
- package/dist/storage/postgresWorker.js +22 -5
- package/dist/storage/postgresWorkerProtocol.d.ts +30 -0
- package/dist/storage/postgresWorkerProtocol.js +30 -0
- package/dist/storage/taskforceAgentConnectionBindingStore.d.ts +31 -0
- package/dist/storage/taskforceAgentConnectionBindingStore.js +84 -0
- package/dist/sync/cloudSyncApi.d.ts +4 -1
- package/dist/sync/cloudSyncApi.js +7 -2
- package/dist/sync/contentSyncState.d.ts +1 -1
- package/dist/sync/coordinator/localSyncExecutionPermitStore.d.ts +1 -0
- package/dist/sync/coordinator/localSyncExecutionPermitStore.js +67 -30
- package/dist/sync/coordinator/localWorkspaceSyncPendingV2PushProgress.d.ts +10 -0
- package/dist/sync/coordinator/localWorkspaceSyncPendingV2PushProgress.js +29 -0
- package/dist/sync/coordinator/localWorkspaceSyncRunner.js +6 -2
- package/dist/sync/coordinator/localWorkspaceSyncRunnerState.d.ts +15 -1
- package/dist/sync/coordinator/localWorkspaceSyncRunnerState.js +99 -2
- package/dist/sync/coordinator/workspaceSyncCredentialBroker.d.ts +1 -0
- package/dist/sync/coordinator/workspaceSyncCredentialBroker.js +33 -4
- package/dist/sync/engine/workspaceSyncContentLifecycleAdapter.d.ts +2 -1
- package/dist/sync/engine/workspaceSyncContentVersionStore.d.ts +38 -0
- package/dist/sync/engine/workspaceSyncContentVersionStore.js +50 -1
- package/dist/sync/engine/workspaceSyncEngineBrowserGatewayRemoteServices.js +20 -2
- package/dist/sync/engine/workspaceSyncEngineLifecyclePolicy.js +6 -6
- package/dist/sync/engine/workspaceSyncEngineLocalServices.d.ts +4 -0
- package/dist/sync/engine/workspaceSyncEngineLocalServices.js +11 -0
- package/dist/sync/engine/workspaceSyncEnginePushCompletion.d.ts +14 -0
- package/dist/sync/engine/workspaceSyncEnginePushCompletion.js +84 -0
- package/dist/sync/engine/workspaceSyncEngineRecovery.js +1 -0
- package/dist/sync/engine/workspaceSyncEngineRemoteServices.d.ts +11 -0
- package/dist/sync/engine/workspaceSyncEngineRemoteServices.js +2 -1
- package/dist/sync/engine/workspaceSyncEngineRuntime.d.ts +1 -0
- package/dist/sync/engine/workspaceSyncEngineRuntime.js +1 -0
- package/dist/sync/engine/workspaceSyncEngineServerRemoteServices.js +31 -4
- package/dist/sync/engine/workspaceSyncEngineServerRunnerOperations.d.ts +3 -1
- package/dist/sync/engine/workspaceSyncEngineServerRunnerOperations.js +134 -43
- package/dist/sync/engine/workspaceSyncEngineServerSnapshotReader.js +6 -0
- package/dist/sync/engine/workspaceSyncEngineTransfers.d.ts +1 -1
- package/dist/sync/engine/workspaceSyncEngineTransfers.js +11 -4
- package/dist/sync/engine/workspaceSyncV2ChangeDispatcher.d.ts +1 -0
- package/dist/sync/engine/workspaceSyncV2ChangeDispatcher.js +29 -0
- package/dist/sync/syncApplyHandlers.d.ts +2 -0
- package/dist/sync/syncApplyHandlers.js +10 -1
- package/dist/sync/syncService.d.ts +17 -0
- package/dist/sync/syncService.js +87 -19
- package/dist/sync/taskforceAgentSyncAuthorization.d.ts +16 -0
- package/dist/sync/taskforceAgentSyncAuthorization.js +20 -0
- package/dist/sync/v3/combinedFeedCapability.js +8 -0
- package/dist/sync/v3/durableInitiativeMutationRouter.js +18 -10
- package/dist/sync/v3/durableOperationReplay.d.ts +14 -0
- package/dist/sync/v3/durableOperationReplay.js +18 -0
- package/dist/sync/v3/durableTaskAttachmentLinksMutationRouter.d.ts +2 -0
- package/dist/sync/v3/durableTaskAttachmentLinksMutationRouter.js +14 -1
- package/dist/sync/v3/durableTaskChecklistMutationRouter.d.ts +4 -1
- package/dist/sync/v3/durableTaskChecklistMutationRouter.js +62 -15
- package/dist/sync/v3/durableTaskCommentMutationRouter.js +3 -0
- package/dist/sync/v3/durableTaskHttpBulkMutationRouter.d.ts +1 -0
- package/dist/sync/v3/durableTaskHttpBulkMutationRouter.js +30 -8
- package/dist/sync/v3/durableTaskHttpRootMutationRouter.d.ts +5 -3
- package/dist/sync/v3/durableTaskHttpRootMutationRouter.js +37 -2
- package/dist/sync/v3/durableTaxonomyMutationRouter.js +5 -0
- package/dist/sync/v3/durableWorkflowRuntimeMutationRouter.d.ts +11 -0
- package/dist/sync/v3/durableWorkflowRuntimeMutationRouter.js +39 -10
- package/dist/sync/v3/durableWorkstreamMutationRouter.js +18 -10
- package/dist/sync/v3/durableWorkstreamTaskOrderMutationRouter.js +16 -5
- package/dist/sync/v3/localOutboxDispatchRuntime.js +2 -2
- package/dist/sync/v3/localTaskAttachmentLinksOutboxService.d.ts +2 -0
- package/dist/sync/v3/localTaskAttachmentLinksOutboxService.js +47 -7
- package/dist/sync/v3/localTaskChecklistOutboxHandler.js +16 -2
- package/dist/sync/v3/localTaskChecklistOutboxService.d.ts +4 -0
- package/dist/sync/v3/localTaskChecklistOutboxService.js +14 -1
- package/dist/sync/v3/localTaskCreateOutboxService.js +15 -6
- package/dist/sync/v3/localTaskMetadataClient.d.ts +1 -0
- package/dist/sync/v3/localTaskMetadataClient.js +1 -0
- package/dist/sync/v3/localTaskMetadataOutboxHandler.js +5 -1
- package/dist/sync/v3/localTaskMetadataOutboxService.d.ts +2 -0
- package/dist/sync/v3/localTaskMetadataOutboxService.js +7 -0
- package/dist/sync/v3/localTaskRestoreOutboxService.js +14 -6
- package/dist/sync/v3/localTaskStatusClient.d.ts +1 -0
- package/dist/sync/v3/localTaskStatusClient.js +6 -1
- package/dist/sync/v3/localTaskStatusOutboxService.d.ts +10 -0
- package/dist/sync/v3/localTaskStatusOutboxService.js +272 -24
- package/dist/sync/v3/syncDurabilityStore.d.ts +41 -0
- package/dist/sync/v3/syncDurabilityStore.js +199 -13
- package/dist/sync/v3/taskAttachmentLinksMutationService.d.ts +6 -4
- package/dist/sync/v3/taskAttachmentLinksMutationService.js +19 -10
- package/dist/sync/v3/taskChecklistMutationService.d.ts +15 -2
- package/dist/sync/v3/taskChecklistMutationService.js +48 -1
- package/dist/sync/v3/taskCreateMutationService.d.ts +2 -2
- package/dist/sync/v3/taskCreateMutationService.js +7 -4
- package/dist/sync/v3/taskMetadataMutationService.d.ts +3 -0
- package/dist/sync/v3/taskMetadataMutationService.js +4 -0
- package/dist/sync/v3/taskRestoreMutationService.d.ts +2 -2
- package/dist/sync/v3/taskRestoreMutationService.js +7 -4
- package/dist/sync/v3/taskStatusMutationService.d.ts +31 -1
- package/dist/sync/v3/taskStatusMutationService.js +123 -3
- package/dist/sync/v3/workflowAssignmentSync.d.ts +6 -0
- package/dist/sync/v3/workflowAssignmentSync.js +30 -0
- package/dist/sync/v3/workspaceSyncJournalReader.js +1 -1
- package/dist/sync/v3/workspaceSyncOperationRetentionService.d.ts +16 -0
- package/dist/sync/v3/workspaceSyncOperationRetentionService.js +83 -0
- package/dist/sync/v3/workspaceSyncV2ProjectionExclusions.d.ts +1 -1
- package/dist/sync/v3/workspaceSyncV2ProjectionExclusions.js +13 -3
- package/dist/sync/v3/workspaceSyncV3AttachmentApplyObligationStore.d.ts +11 -0
- package/dist/sync/v3/workspaceSyncV3AttachmentApplyObligationStore.js +27 -10
- package/dist/sync/v3/workspaceSyncV3AttachmentAssetHydration.d.ts +2 -1
- package/dist/sync/v3/workspaceSyncV3AttachmentAssetHydration.js +52 -10
- package/dist/sync/v3/workspaceSyncV3CloudOperationHandler.d.ts +1 -0
- package/dist/sync/v3/workspaceSyncV3CloudOperationHandler.js +18 -3
- package/dist/sync/v3/workspaceSyncV3CombinedFeedOrchestrator.js +8 -3
- package/dist/sync/v3/workspaceSyncV3CombinedLocalApply.js +51 -10
- package/dist/sync/v3/workspaceSyncV3CombinedRepairBaseline.d.ts +14 -0
- package/dist/sync/v3/workspaceSyncV3CombinedRepairBaseline.js +49 -25
- package/dist/sync/v3/workspaceSyncV3CombinedRepairMaterialization.d.ts +13 -4
- package/dist/sync/v3/workspaceSyncV3CombinedRepairMaterialization.js +124 -57
- package/dist/sync/v3/workspaceSyncV3CombinedRepairSnapshot.d.ts +20 -0
- package/dist/sync/v3/workspaceSyncV3CombinedRepairSnapshot.js +106 -30
- package/dist/sync/v3/workspaceSyncV3CombinedWireContract.d.ts +4 -1
- package/dist/sync/v3/workspaceSyncV3CombinedWireContract.js +34 -0
- package/dist/sync/v3/workspaceSyncV3CoverageRegistry.js +12 -0
- package/dist/sync/v3/workspaceSyncV3FeedProfile.d.ts +1 -1
- package/dist/sync/v3/workspaceSyncV3LegacyBoundaryAttestation.d.ts +1 -0
- package/dist/sync/v3/workspaceSyncV3LegacyBoundaryAttestation.js +23 -10
- package/dist/sync/v3/workspaceSyncV3NestedTaskApply.d.ts +3 -0
- package/dist/sync/v3/workspaceSyncV3NestedTaskApply.js +64 -13
- package/dist/sync/v3/workspaceSyncV3NestedTaskCodecs.d.ts +9 -0
- package/dist/sync/v3/workspaceSyncV3NestedTaskCodecs.js +26 -0
- package/dist/sync/v3/workspaceSyncV3NestedTaskProjection.d.ts +15 -5
- package/dist/sync/v3/workspaceSyncV3NestedTaskProjection.js +50 -14
- package/dist/sync/v3/workspaceSyncV3NestedTaskRepairSnapshot.d.ts +2 -1
- package/dist/sync/v3/workspaceSyncV3NestedTaskRepairSnapshot.js +11 -3
- package/dist/sync/v3/workspaceSyncV3OperationProtocol.d.ts +5 -0
- package/dist/sync/v3/workspaceSyncV3OperatorDiagnostics.d.ts +7 -0
- package/dist/sync/v3/workspaceSyncV3OperatorDiagnostics.js +55 -9
- package/dist/sync/v3/workspaceSyncV3RepairSnapshotRetentionService.d.ts +17 -0
- package/dist/sync/v3/workspaceSyncV3RepairSnapshotRetentionService.js +64 -0
- package/dist/sync/v3/workspaceSyncV3TaskCommentAudit.js +9 -2
- package/dist/sync/v3/workspaceSyncV3TaskCoverCoverage.d.ts +7 -0
- package/dist/sync/v3/workspaceSyncV3TaskCoverCoverage.js +37 -0
- package/dist/sync/v3/workspaceSyncV3TaskCoverWireContract.d.ts +6 -0
- package/dist/sync/v3/workspaceSyncV3TaskCoverWireContract.js +9 -0
- package/dist/sync/v3/workspaceSyncV3WorkflowTaskCoverCoverage.d.ts +7 -0
- package/dist/sync/v3/workspaceSyncV3WorkflowTaskCoverCoverage.js +33 -0
- package/dist/sync/v3/workspaceSyncV3WorkflowTaskCoverWireContract.d.ts +7 -0
- package/dist/sync/v3/workspaceSyncV3WorkflowTaskCoverWireContract.js +8 -0
- package/dist/sync/workspacePullFeed.js +2 -1
- package/dist/sync/workspaceRepair.d.ts +8 -2
- package/dist/sync/workspaceRepair.js +222 -6
- package/dist/sync/workspaceSyncModel.d.ts +21 -0
- package/dist/sync/workspaceSyncModel.js +35 -7
- package/dist/sync/workspaceSyncState.d.ts +1 -0
- package/dist/sync/workspaceSyncV2SnapshotBuilder.d.ts +6 -0
- package/dist/sync/workspaceSyncV2SnapshotBuilder.js +5 -0
- package/dist/types.d.ts +47 -1
- package/dist/types.js +6 -0
- package/dist/ui/assets/AiIdentityRosterCard-OcSz1PkK.js +1 -0
- package/dist/ui/assets/AiProfilesModule-ByhYW5Xi.js +1 -0
- package/dist/ui/assets/AnnotatedAttachmentWorkspace-BTM6nIg_.js +3 -0
- package/dist/ui/assets/AnnotatedAttachmentWorkspace-TzYu7pkG.css +1 -0
- package/dist/ui/assets/{AssetTraySortControl-Kf1pelSy.js → AssetTraySortControl-DabEG8L4.js} +1 -1
- package/dist/ui/assets/{ContextAttachmentManager-B8boOs6Q.js → ContextAttachmentManager-Coa8yVGM.js} +2 -2
- package/dist/ui/assets/{DocumentWorkspace-DXH4XUsB.js → DocumentWorkspace-BB0qhdix.js} +1 -1
- package/dist/ui/assets/{EntityActivityTimeline-BtSTq0ON.js → EntityActivityTimeline-CZ8x4UJE.js} +1 -1
- package/dist/ui/assets/PlanningModule-pRPjR7v5.js +1 -0
- package/dist/ui/assets/PlansPage-D86pZSSl.js +1 -0
- package/dist/ui/assets/TaskContextUpload-BVIkU9yT.js +1 -0
- package/dist/ui/assets/TaskSettings-Cv1mNhv_.js +12 -0
- package/dist/ui/assets/TaskforceAgentsModule-b-8R25cJ.css +1 -0
- package/dist/ui/assets/TaskforceAgentsModule-gmH-PD2q.js +24 -0
- package/dist/ui/assets/{WorkflowManagerModule-DWFspC-o.js → WorkflowManagerModule-DbfnHJ-f.js} +1 -1
- package/dist/ui/assets/index-BZ-hdZSk.css +1 -0
- package/dist/ui/assets/index-CTsDBaef.js +7 -0
- package/dist/ui/assets/{vendor-icons-BkFLXavV.js → vendor-icons-Bsq-mcEn.js} +1 -1
- package/dist/ui/branding/logos/letterhead_dark.png +0 -0
- package/dist/ui/branding/logos/letterhead_light.png +0 -0
- package/dist/ui/branding/logos/signature_dark.png +0 -0
- package/dist/ui/branding/logos/signature_light.png +0 -0
- package/dist/ui/index.html +3 -3
- package/dist/utils/aiProfileDefaultLogo.js +16 -48
- package/dist/utils/httpSetCookie.d.ts +1 -0
- package/dist/utils/httpSetCookie.js +4 -1
- package/dist/utils/localRuntimeUrl.d.ts +1 -0
- package/dist/utils/localRuntimeUrl.js +14 -0
- package/dist/utils/productLogoRegistry.d.ts +2 -0
- package/dist/utils/productLogoRegistry.js +36 -0
- package/dist/utils/syncStatusPresentation.d.ts +4 -0
- package/dist/utils/syncStatusPresentation.js +17 -0
- package/dist/utils/taskActivity.d.ts +3 -2
- package/dist/utils/taskActivity.js +19 -2
- package/dist/utils/taskEditorReconciliation.d.ts +40 -0
- package/dist/utils/taskEditorReconciliation.js +217 -0
- package/dist/utils/taskEvents.d.ts +2 -0
- package/dist/utils/taskNormalization.d.ts +1 -0
- package/dist/utils/taskNormalization.js +39 -0
- package/dist/utils/taskSearch.js +2 -2
- package/dist/utils/uiNotice.d.ts +4 -0
- package/dist/utils/workspaceSyncPresentation.d.ts +1 -1
- package/dist/utils/workspaceSyncPresentation.js +23 -17
- package/package.json +36 -6
- package/dist/ui/assets/AiIdentityRosterCard-MZs7lVED.js +0 -1
- package/dist/ui/assets/AiProfilesModule-C3i0LOxe.js +0 -1
- package/dist/ui/assets/AnnotatedAttachmentWorkspace-CBRZ8rca.css +0 -1
- package/dist/ui/assets/AnnotatedAttachmentWorkspace-DVZk5Tln.js +0 -3
- package/dist/ui/assets/PlanningModule-BPVyEa-f.js +0 -1
- package/dist/ui/assets/PlansPage-ChqgxALc.js +0 -1
- package/dist/ui/assets/TaskContextUpload-CB3ol0sN.js +0 -1
- package/dist/ui/assets/TaskSettings-g4ECKNOz.js +0 -12
- package/dist/ui/assets/TaskforceAgentsModule-BazdUwxZ.js +0 -21
- package/dist/ui/assets/TaskforceAgentsModule-D6IC0S7Q.css +0 -1
- package/dist/ui/assets/index-BUplSsv_.js +0 -7
- package/dist/ui/assets/index-gz2EXuoK.css +0 -1
|
@@ -29,6 +29,11 @@ type UseSettingsModelInput = {
|
|
|
29
29
|
manualComplexityEnabled: boolean;
|
|
30
30
|
checklistDropdownEnabled: boolean;
|
|
31
31
|
showTaskCardStatusLabel: boolean;
|
|
32
|
+
showTaskCardDescription: boolean;
|
|
33
|
+
showTaskCardAttachments: boolean;
|
|
34
|
+
showTaskCardChecklistProgress: boolean;
|
|
35
|
+
showTaskCardLatestActivity: boolean;
|
|
36
|
+
tintTaskCardActivityBackground: boolean;
|
|
32
37
|
pathSaved: boolean;
|
|
33
38
|
settingsSection: SettingsSection;
|
|
34
39
|
setupState: any;
|
|
@@ -38,15 +43,21 @@ type UseSettingsModelInput = {
|
|
|
38
43
|
setCurrentTheme: (value: any) => void;
|
|
39
44
|
handleSaveTheme: (...args: any[]) => any;
|
|
40
45
|
handleSaveGlobalTheme: (...args: any[]) => any;
|
|
46
|
+
handleUseGlobalThemeDefault: (...args: any[]) => any;
|
|
41
47
|
setKeyShortcut: (value: string) => void;
|
|
42
48
|
handleJsonBackupEnabledChange: (...args: any[]) => any;
|
|
43
49
|
handleSaveGlobalJsonBackupEnabled: (...args: any[]) => any;
|
|
50
|
+
handleUseGlobalJsonBackupDefault: (...args: any[]) => any;
|
|
44
51
|
handleSaveGlobalWeekStartsOn: (...args: any[]) => any;
|
|
45
52
|
handleSaveLocale: (...args: any[]) => any;
|
|
46
53
|
handleManualComplexityEnabledChange: (...args: any[]) => any;
|
|
47
54
|
handleChecklistDropdownEnabledChange: (...args: any[]) => any;
|
|
48
55
|
handleShowTaskCardStatusLabelChange: (...args: any[]) => any;
|
|
49
|
-
|
|
56
|
+
handleShowTaskCardDescriptionChange: (...args: any[]) => any;
|
|
57
|
+
handleShowTaskCardAttachmentsChange: (...args: any[]) => any;
|
|
58
|
+
handleShowTaskCardChecklistProgressChange: (...args: any[]) => any;
|
|
59
|
+
handleShowTaskCardLatestActivityChange: (...args: any[]) => any;
|
|
60
|
+
handleTintTaskCardActivityBackgroundChange: (...args: any[]) => any;
|
|
50
61
|
handleSaveSettings: (...args: any[]) => any;
|
|
51
62
|
initiativeTemplates: any[];
|
|
52
63
|
fetchInitiativeTemplates: (...args: any[]) => any;
|
|
@@ -109,6 +120,11 @@ export declare function useSettingsModel(input: UseSettingsModelInput): {
|
|
|
109
120
|
manualComplexityEnabled: boolean;
|
|
110
121
|
checklistDropdownEnabled: boolean;
|
|
111
122
|
showTaskCardStatusLabel: boolean;
|
|
123
|
+
showTaskCardDescription: boolean;
|
|
124
|
+
showTaskCardAttachments: boolean;
|
|
125
|
+
showTaskCardChecklistProgress: boolean;
|
|
126
|
+
showTaskCardLatestActivity: boolean;
|
|
127
|
+
tintTaskCardActivityBackground: boolean;
|
|
112
128
|
pathSaved: boolean;
|
|
113
129
|
initialSection: SettingsSection;
|
|
114
130
|
setupState: any;
|
|
@@ -118,15 +134,21 @@ export declare function useSettingsModel(input: UseSettingsModelInput): {
|
|
|
118
134
|
onThemeChange: (value: any) => void;
|
|
119
135
|
onSaveTheme: (...args: any[]) => any;
|
|
120
136
|
onSaveGlobalTheme: (...args: any[]) => any;
|
|
137
|
+
onUseGlobalThemeDefault: (...args: any[]) => any;
|
|
121
138
|
onKeyShortcutChange: (value: string) => void;
|
|
122
139
|
onJsonBackupEnabledChange: (...args: any[]) => any;
|
|
123
140
|
onSaveGlobalJsonBackupEnabled: (...args: any[]) => any;
|
|
141
|
+
onUseGlobalJsonBackupDefault: (...args: any[]) => any;
|
|
124
142
|
onSaveGlobalWeekStartsOn: (...args: any[]) => any;
|
|
125
143
|
onSaveLocale: (...args: any[]) => any;
|
|
126
144
|
onManualComplexityEnabledChange: (...args: any[]) => any;
|
|
127
145
|
onChecklistDropdownEnabledChange: (...args: any[]) => any;
|
|
128
146
|
onShowTaskCardStatusLabelChange: (...args: any[]) => any;
|
|
129
|
-
|
|
147
|
+
onShowTaskCardDescriptionChange: (...args: any[]) => any;
|
|
148
|
+
onShowTaskCardAttachmentsChange: (...args: any[]) => any;
|
|
149
|
+
onShowTaskCardChecklistProgressChange: (...args: any[]) => any;
|
|
150
|
+
onShowTaskCardLatestActivityChange: (...args: any[]) => any;
|
|
151
|
+
onTintTaskCardActivityBackgroundChange: (...args: any[]) => any;
|
|
130
152
|
onSaveSettings: (...args: any[]) => any;
|
|
131
153
|
initiativeTemplates: any[];
|
|
132
154
|
onRefreshInitiativeTemplates: (...args: any[]) => any;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useCallback } from 'react';
|
|
2
2
|
export function useSettingsModel(input) {
|
|
3
|
-
const { resolveCloudAuthUrl, currentWorkspaceId, normalizedCloudAuthBaseUrl, normalizedCloudMcpBaseUrl, mergedConfig, availableWorkspaces, currentTheme, configLoaded, globalTheme, themeUseGlobalDefault, keyShortcut, jsonBackupEnabled, globalJsonBackupEnabled, globalWeekStartsOn, locale, supportedLocales, jsonBackupUseGlobalDefault, manualComplexityEnabled, checklistDropdownEnabled, showTaskCardStatusLabel, pathSaved, settingsSection, setupState, buildInfo, saveSetupMode, saveWorkspaceProfile, setCurrentTheme, handleSaveTheme, handleSaveGlobalTheme, setKeyShortcut, handleJsonBackupEnabledChange, handleSaveGlobalJsonBackupEnabled, handleSaveGlobalWeekStartsOn, handleSaveLocale, handleManualComplexityEnabledChange, handleChecklistDropdownEnabledChange, handleShowTaskCardStatusLabelChange,
|
|
3
|
+
const { resolveCloudAuthUrl, currentWorkspaceId, normalizedCloudAuthBaseUrl, normalizedCloudMcpBaseUrl, mergedConfig, availableWorkspaces, currentTheme, configLoaded, globalTheme, themeUseGlobalDefault, keyShortcut, jsonBackupEnabled, globalJsonBackupEnabled, globalWeekStartsOn, locale, supportedLocales, jsonBackupUseGlobalDefault, manualComplexityEnabled, checklistDropdownEnabled, showTaskCardStatusLabel, showTaskCardDescription, showTaskCardAttachments, showTaskCardChecklistProgress, showTaskCardLatestActivity, tintTaskCardActivityBackground, pathSaved, settingsSection, setupState, buildInfo, saveSetupMode, saveWorkspaceProfile, setCurrentTheme, handleSaveTheme, handleSaveGlobalTheme, handleUseGlobalThemeDefault, setKeyShortcut, handleJsonBackupEnabledChange, handleSaveGlobalJsonBackupEnabled, handleUseGlobalJsonBackupDefault, handleSaveGlobalWeekStartsOn, handleSaveLocale, handleManualComplexityEnabledChange, handleChecklistDropdownEnabledChange, handleShowTaskCardStatusLabelChange, handleShowTaskCardDescriptionChange, handleShowTaskCardAttachmentsChange, handleShowTaskCardChecklistProgressChange, handleShowTaskCardLatestActivityChange, handleTintTaskCardActivityBackgroundChange, handleSaveSettings, initiativeTemplates, fetchInitiativeTemplates, createInitiativeFromTemplate, setShowFolderBrowser, setBrowserTarget, fetchFolders, activeCategories, pathValidation, taxonomyDisplayLabels, handleUpdateCategory, handleRemoveCategory, handleSaveCategory, handleAddPath, handleRemovePath, handleUpdateCategoryIcon, handleUpdateCategoryColor, activeTypes, handleSaveType, handleRemoveType, handleUpdateType, taxonomies, handleUpdateTaxonomies, priorities, handleUpdatePriorities, analyzeSystemTaxonomyPack, handleApplySystemTaxonomyPack, handleUpdateTaxonomyDisplayLabels, projectRoot, projectName, mcpHostRoot, serverHostRoot, mcpScriptPath, tenantId, runtimeMode, workspaceSwitchingEnabled, deleteWorkspace, setMcpHostRoot, isAuthenticated } = input;
|
|
4
4
|
const fetchCloudAuthApi = useCallback(async (path, init) => {
|
|
5
5
|
const resolvedUrl = resolveCloudAuthUrl(path);
|
|
6
6
|
const headers = new Headers(init?.headers || undefined);
|
|
@@ -75,6 +75,11 @@ export function useSettingsModel(input) {
|
|
|
75
75
|
manualComplexityEnabled,
|
|
76
76
|
checklistDropdownEnabled,
|
|
77
77
|
showTaskCardStatusLabel,
|
|
78
|
+
showTaskCardDescription,
|
|
79
|
+
showTaskCardAttachments,
|
|
80
|
+
showTaskCardChecklistProgress,
|
|
81
|
+
showTaskCardLatestActivity,
|
|
82
|
+
tintTaskCardActivityBackground,
|
|
78
83
|
pathSaved,
|
|
79
84
|
initialSection: settingsSection,
|
|
80
85
|
setupState,
|
|
@@ -84,15 +89,21 @@ export function useSettingsModel(input) {
|
|
|
84
89
|
onThemeChange: setCurrentTheme,
|
|
85
90
|
onSaveTheme: handleSaveTheme,
|
|
86
91
|
onSaveGlobalTheme: handleSaveGlobalTheme,
|
|
92
|
+
onUseGlobalThemeDefault: handleUseGlobalThemeDefault,
|
|
87
93
|
onKeyShortcutChange: setKeyShortcut,
|
|
88
94
|
onJsonBackupEnabledChange: handleJsonBackupEnabledChange,
|
|
89
95
|
onSaveGlobalJsonBackupEnabled: handleSaveGlobalJsonBackupEnabled,
|
|
96
|
+
onUseGlobalJsonBackupDefault: handleUseGlobalJsonBackupDefault,
|
|
90
97
|
onSaveGlobalWeekStartsOn: handleSaveGlobalWeekStartsOn,
|
|
91
98
|
onSaveLocale: handleSaveLocale,
|
|
92
99
|
onManualComplexityEnabledChange: handleManualComplexityEnabledChange,
|
|
93
100
|
onChecklistDropdownEnabledChange: handleChecklistDropdownEnabledChange,
|
|
94
101
|
onShowTaskCardStatusLabelChange: handleShowTaskCardStatusLabelChange,
|
|
95
|
-
|
|
102
|
+
onShowTaskCardDescriptionChange: handleShowTaskCardDescriptionChange,
|
|
103
|
+
onShowTaskCardAttachmentsChange: handleShowTaskCardAttachmentsChange,
|
|
104
|
+
onShowTaskCardChecklistProgressChange: handleShowTaskCardChecklistProgressChange,
|
|
105
|
+
onShowTaskCardLatestActivityChange: handleShowTaskCardLatestActivityChange,
|
|
106
|
+
onTintTaskCardActivityBackgroundChange: handleTintTaskCardActivityBackgroundChange,
|
|
96
107
|
onSaveSettings: handleSaveSettings,
|
|
97
108
|
initiativeTemplates,
|
|
98
109
|
onRefreshInitiativeTemplates: fetchInitiativeTemplates,
|
|
@@ -18,18 +18,29 @@ interface UseSettingsPersistenceInput {
|
|
|
18
18
|
setManualComplexityEnabled: (value: boolean) => void;
|
|
19
19
|
setChecklistDropdownEnabled: (value: boolean) => void;
|
|
20
20
|
setShowTaskCardStatusLabel: (value: boolean) => void;
|
|
21
|
+
setShowTaskCardDescription: (value: boolean) => void;
|
|
22
|
+
setShowTaskCardAttachments: (value: boolean) => void;
|
|
23
|
+
setShowTaskCardChecklistProgress: (value: boolean) => void;
|
|
24
|
+
setShowTaskCardLatestActivity: (value: boolean) => void;
|
|
25
|
+
setTintTaskCardActivityBackground: (value: boolean) => void;
|
|
21
26
|
}
|
|
22
27
|
export declare function useSettingsPersistence(input: UseSettingsPersistenceInput): {
|
|
23
28
|
handleSaveSettings: () => Promise<boolean>;
|
|
24
29
|
handleSaveTheme: (theme: TaskforceTheme) => Promise<boolean>;
|
|
25
30
|
handleSaveGlobalTheme: (theme: TaskforceTheme) => Promise<boolean>;
|
|
31
|
+
handleUseGlobalThemeDefault: () => Promise<boolean>;
|
|
26
32
|
handleJsonBackupEnabledChange: (enabled: boolean) => Promise<boolean>;
|
|
27
33
|
handleSaveGlobalJsonBackupEnabled: (enabled: boolean) => Promise<boolean>;
|
|
34
|
+
handleUseGlobalJsonBackupDefault: () => Promise<boolean>;
|
|
28
35
|
handleSaveGlobalWeekStartsOn: (weekStartsOn: WeekStartsOn) => Promise<boolean>;
|
|
29
36
|
handleSaveLocale: (nextLocale: string) => Promise<boolean>;
|
|
30
37
|
handleManualComplexityEnabledChange: (enabled: boolean) => Promise<boolean>;
|
|
31
38
|
handleChecklistDropdownEnabledChange: (enabled: boolean) => Promise<boolean>;
|
|
32
39
|
handleShowTaskCardStatusLabelChange: (enabled: boolean) => Promise<boolean>;
|
|
33
|
-
|
|
40
|
+
handleShowTaskCardDescriptionChange: (enabled: boolean) => Promise<boolean>;
|
|
41
|
+
handleShowTaskCardAttachmentsChange: (enabled: boolean) => Promise<boolean>;
|
|
42
|
+
handleShowTaskCardChecklistProgressChange: (enabled: boolean) => Promise<boolean>;
|
|
43
|
+
handleShowTaskCardLatestActivityChange: (enabled: boolean) => Promise<boolean>;
|
|
44
|
+
handleTintTaskCardActivityBackgroundChange: (enabled: boolean) => Promise<boolean>;
|
|
34
45
|
};
|
|
35
46
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useCallback } from 'react';
|
|
2
2
|
import { setLocale as setAppLocale } from '../../localization';
|
|
3
3
|
export function useSettingsPersistence(input) {
|
|
4
|
-
const { keyShortcut, themeUseGlobalDefault, runtimeMode, jsonBackupUseGlobalDefault, globalTheme, globalJsonBackupEnabled, setCurrentTheme, setThemeUseGlobalDefault, setGlobalTheme, setJsonBackupEnabled, setJsonBackupUseGlobalDefault, setGlobalJsonBackupEnabled, setGlobalWeekStartsOn, setLocale, setManualComplexityEnabled, setChecklistDropdownEnabled, setShowTaskCardStatusLabel } = input;
|
|
4
|
+
const { keyShortcut, themeUseGlobalDefault, runtimeMode, jsonBackupUseGlobalDefault, globalTheme, globalJsonBackupEnabled, setCurrentTheme, setThemeUseGlobalDefault, setGlobalTheme, setJsonBackupEnabled, setJsonBackupUseGlobalDefault, setGlobalJsonBackupEnabled, setGlobalWeekStartsOn, setLocale, setManualComplexityEnabled, setChecklistDropdownEnabled, setShowTaskCardStatusLabel, setShowTaskCardDescription, setShowTaskCardAttachments, setShowTaskCardChecklistProgress, setShowTaskCardLatestActivity, setTintTaskCardActivityBackground } = input;
|
|
5
5
|
const handleSaveSettings = useCallback(async () => {
|
|
6
6
|
try {
|
|
7
7
|
const globalRes = await fetch('/api/taskforce/global-settings', {
|
|
@@ -61,6 +61,25 @@ export function useSettingsPersistence(input) {
|
|
|
61
61
|
return false;
|
|
62
62
|
}
|
|
63
63
|
}, [setGlobalTheme, themeUseGlobalDefault, setCurrentTheme]);
|
|
64
|
+
const handleUseGlobalThemeDefault = useCallback(async () => {
|
|
65
|
+
try {
|
|
66
|
+
const configRes = await fetch('/api/taskforce/config', {
|
|
67
|
+
method: 'POST',
|
|
68
|
+
headers: { 'Content-Type': 'application/json' },
|
|
69
|
+
body: JSON.stringify({ theme: null }),
|
|
70
|
+
});
|
|
71
|
+
if (!configRes.ok) {
|
|
72
|
+
throw new Error(`Failed to save config (${configRes.status})`);
|
|
73
|
+
}
|
|
74
|
+
setThemeUseGlobalDefault(true);
|
|
75
|
+
setCurrentTheme(globalTheme);
|
|
76
|
+
return true;
|
|
77
|
+
}
|
|
78
|
+
catch {
|
|
79
|
+
console.error('[Taskforce] Failed to use global theme default');
|
|
80
|
+
return false;
|
|
81
|
+
}
|
|
82
|
+
}, [globalTheme, setCurrentTheme, setThemeUseGlobalDefault]);
|
|
64
83
|
const handleJsonBackupEnabledChange = useCallback(async (enabled) => {
|
|
65
84
|
if (runtimeMode === 'cloud') {
|
|
66
85
|
setJsonBackupEnabled(false);
|
|
@@ -113,6 +132,25 @@ export function useSettingsPersistence(input) {
|
|
|
113
132
|
return false;
|
|
114
133
|
}
|
|
115
134
|
}, [runtimeMode, setGlobalJsonBackupEnabled, jsonBackupUseGlobalDefault, setJsonBackupEnabled]);
|
|
135
|
+
const handleUseGlobalJsonBackupDefault = useCallback(async () => {
|
|
136
|
+
try {
|
|
137
|
+
const configRes = await fetch('/api/taskforce/config', {
|
|
138
|
+
method: 'POST',
|
|
139
|
+
headers: { 'Content-Type': 'application/json' },
|
|
140
|
+
body: JSON.stringify({ jsonBackupEnabled: null }),
|
|
141
|
+
});
|
|
142
|
+
if (!configRes.ok) {
|
|
143
|
+
throw new Error(`Failed to save config (${configRes.status})`);
|
|
144
|
+
}
|
|
145
|
+
setJsonBackupUseGlobalDefault(true);
|
|
146
|
+
setJsonBackupEnabled(globalJsonBackupEnabled);
|
|
147
|
+
return true;
|
|
148
|
+
}
|
|
149
|
+
catch {
|
|
150
|
+
console.error('[Taskforce] Failed to use global backup default');
|
|
151
|
+
return false;
|
|
152
|
+
}
|
|
153
|
+
}, [globalJsonBackupEnabled, setJsonBackupEnabled, setJsonBackupUseGlobalDefault]);
|
|
116
154
|
const handleSaveGlobalWeekStartsOn = useCallback(async (weekStartsOn) => {
|
|
117
155
|
setGlobalWeekStartsOn(weekStartsOn);
|
|
118
156
|
try {
|
|
@@ -176,43 +214,12 @@ export function useSettingsPersistence(input) {
|
|
|
176
214
|
return false;
|
|
177
215
|
}
|
|
178
216
|
}, [setChecklistDropdownEnabled]);
|
|
179
|
-
const
|
|
180
|
-
setShowTaskCardStatusLabel(enabled);
|
|
181
|
-
try {
|
|
182
|
-
const configRes = await fetch('/api/taskforce/config', {
|
|
183
|
-
method: 'POST',
|
|
184
|
-
headers: { 'Content-Type': 'application/json' },
|
|
185
|
-
body: JSON.stringify({ showTaskCardStatusLabel: enabled }),
|
|
186
|
-
});
|
|
187
|
-
if (!configRes.ok) {
|
|
188
|
-
throw new Error(`Failed to save config (${configRes.status})`);
|
|
189
|
-
}
|
|
190
|
-
return true;
|
|
191
|
-
}
|
|
192
|
-
catch {
|
|
193
|
-
console.error('[Taskforce] Failed to save task card status label setting');
|
|
194
|
-
return false;
|
|
195
|
-
}
|
|
196
|
-
}, [setShowTaskCardStatusLabel]);
|
|
197
|
-
const handleResetProjectToGlobal = useCallback(async () => {
|
|
198
|
-
setThemeUseGlobalDefault(true);
|
|
199
|
-
setJsonBackupUseGlobalDefault(true);
|
|
200
|
-
setCurrentTheme(globalTheme);
|
|
201
|
-
setJsonBackupEnabled(globalJsonBackupEnabled);
|
|
202
|
-
setManualComplexityEnabled(false);
|
|
203
|
-
setChecklistDropdownEnabled(true);
|
|
204
|
-
setShowTaskCardStatusLabel(false);
|
|
217
|
+
const saveTaskCardPreference = useCallback(async (key, enabled, errorMessage) => {
|
|
205
218
|
try {
|
|
206
219
|
const configRes = await fetch('/api/taskforce/config', {
|
|
207
220
|
method: 'POST',
|
|
208
221
|
headers: { 'Content-Type': 'application/json' },
|
|
209
|
-
body: JSON.stringify({
|
|
210
|
-
theme: null,
|
|
211
|
-
jsonBackupEnabled: null,
|
|
212
|
-
manualComplexityEnabled: null,
|
|
213
|
-
checklistDropdownEnabled: null,
|
|
214
|
-
showTaskCardStatusLabel: null
|
|
215
|
-
}),
|
|
222
|
+
body: JSON.stringify({ [key]: enabled }),
|
|
216
223
|
});
|
|
217
224
|
if (!configRes.ok) {
|
|
218
225
|
throw new Error(`Failed to save config (${configRes.status})`);
|
|
@@ -220,31 +227,51 @@ export function useSettingsPersistence(input) {
|
|
|
220
227
|
return true;
|
|
221
228
|
}
|
|
222
229
|
catch {
|
|
223
|
-
console.error(
|
|
230
|
+
console.error(`[Taskforce] ${errorMessage}`);
|
|
224
231
|
return false;
|
|
225
232
|
}
|
|
226
|
-
}, [
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
233
|
+
}, []);
|
|
234
|
+
const handleShowTaskCardStatusLabelChange = useCallback(async (enabled) => {
|
|
235
|
+
setShowTaskCardStatusLabel(enabled);
|
|
236
|
+
return saveTaskCardPreference('showTaskCardStatusLabel', enabled, 'Failed to save task card status label setting');
|
|
237
|
+
}, [saveTaskCardPreference, setShowTaskCardStatusLabel]);
|
|
238
|
+
const handleShowTaskCardDescriptionChange = useCallback(async (enabled) => {
|
|
239
|
+
setShowTaskCardDescription(enabled);
|
|
240
|
+
return saveTaskCardPreference('showTaskCardDescription', enabled, 'Failed to save task card description setting');
|
|
241
|
+
}, [saveTaskCardPreference, setShowTaskCardDescription]);
|
|
242
|
+
const handleShowTaskCardAttachmentsChange = useCallback(async (enabled) => {
|
|
243
|
+
setShowTaskCardAttachments(enabled);
|
|
244
|
+
return saveTaskCardPreference('showTaskCardAttachments', enabled, 'Failed to save task card attachments setting');
|
|
245
|
+
}, [saveTaskCardPreference, setShowTaskCardAttachments]);
|
|
246
|
+
const handleShowTaskCardChecklistProgressChange = useCallback(async (enabled) => {
|
|
247
|
+
setShowTaskCardChecklistProgress(enabled);
|
|
248
|
+
return saveTaskCardPreference('showTaskCardChecklistProgress', enabled, 'Failed to save task card checklist progress setting');
|
|
249
|
+
}, [saveTaskCardPreference, setShowTaskCardChecklistProgress]);
|
|
250
|
+
const handleShowTaskCardLatestActivityChange = useCallback(async (enabled) => {
|
|
251
|
+
setShowTaskCardLatestActivity(enabled);
|
|
252
|
+
return saveTaskCardPreference('showTaskCardLatestActivity', enabled, 'Failed to save task card latest activity setting');
|
|
253
|
+
}, [saveTaskCardPreference, setShowTaskCardLatestActivity]);
|
|
254
|
+
const handleTintTaskCardActivityBackgroundChange = useCallback(async (enabled) => {
|
|
255
|
+
setTintTaskCardActivityBackground(enabled);
|
|
256
|
+
return saveTaskCardPreference('tintTaskCardActivityBackground', enabled, 'Failed to save task card activity background setting');
|
|
257
|
+
}, [saveTaskCardPreference, setTintTaskCardActivityBackground]);
|
|
237
258
|
return {
|
|
238
259
|
handleSaveSettings,
|
|
239
260
|
handleSaveTheme,
|
|
240
261
|
handleSaveGlobalTheme,
|
|
262
|
+
handleUseGlobalThemeDefault,
|
|
241
263
|
handleJsonBackupEnabledChange,
|
|
242
264
|
handleSaveGlobalJsonBackupEnabled,
|
|
265
|
+
handleUseGlobalJsonBackupDefault,
|
|
243
266
|
handleSaveGlobalWeekStartsOn,
|
|
244
267
|
handleSaveLocale,
|
|
245
268
|
handleManualComplexityEnabledChange,
|
|
246
269
|
handleChecklistDropdownEnabledChange,
|
|
247
270
|
handleShowTaskCardStatusLabelChange,
|
|
248
|
-
|
|
271
|
+
handleShowTaskCardDescriptionChange,
|
|
272
|
+
handleShowTaskCardAttachmentsChange,
|
|
273
|
+
handleShowTaskCardChecklistProgressChange,
|
|
274
|
+
handleShowTaskCardLatestActivityChange,
|
|
275
|
+
handleTintTaskCardActivityBackgroundChange
|
|
249
276
|
};
|
|
250
277
|
}
|
|
@@ -20,8 +20,12 @@ interface UseFilterSortProps {
|
|
|
20
20
|
referenceDataLoaded: boolean;
|
|
21
21
|
assigneeOptionsLoaded: boolean;
|
|
22
22
|
assigneeOptions?: TaskAssigneeOption[];
|
|
23
|
+
runtimeMode?: 'local' | 'cloud';
|
|
24
|
+
workspaceId?: string;
|
|
25
|
+
cloudTaskSearchEnabled?: boolean;
|
|
26
|
+
cloudTaskSearchScope?: 'active' | 'archive';
|
|
23
27
|
}
|
|
24
|
-
export declare function useFilterSort({ tasks, archivedTasks, activeCategories, activeTypes, priorities, taxonomies, configLoaded, referenceDataLoaded, assigneeOptionsLoaded, assigneeOptions }: UseFilterSortProps): {
|
|
28
|
+
export declare function useFilterSort({ tasks, archivedTasks, activeCategories, activeTypes, priorities, taxonomies, configLoaded, referenceDataLoaded, assigneeOptionsLoaded, assigneeOptions, runtimeMode, workspaceId, cloudTaskSearchEnabled, cloudTaskSearchScope, }: UseFilterSortProps): {
|
|
25
29
|
searchQuery: string;
|
|
26
30
|
setSearchQuery: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
27
31
|
filterCategories: string[];
|
|
@@ -45,8 +49,8 @@ export declare function useFilterSort({ tasks, archivedTasks, activeCategories,
|
|
|
45
49
|
sortOrder: "asc" | "desc";
|
|
46
50
|
setSortOrder: import("react").Dispatch<import("react").SetStateAction<"asc" | "desc">>;
|
|
47
51
|
toggleSortOrder: () => void;
|
|
48
|
-
groupBy: "category" | "type" | "priority" | "
|
|
49
|
-
setGroupBy: import("react").Dispatch<import("react").SetStateAction<"category" | "type" | "priority" | "
|
|
52
|
+
groupBy: "category" | "type" | "priority" | "complexity" | "status" | "assignee" | "schedule";
|
|
53
|
+
setGroupBy: import("react").Dispatch<import("react").SetStateAction<"category" | "type" | "priority" | "complexity" | "status" | "assignee" | "schedule">>;
|
|
50
54
|
emptyColumnMode: "show" | "collapse" | "hide";
|
|
51
55
|
setEmptyColumnMode: import("react").Dispatch<import("react").SetStateAction<"show" | "collapse" | "hide">>;
|
|
52
56
|
collapsedCategories: Record<string, boolean>;
|
|
@@ -29,8 +29,9 @@ import { normalizeTaskSearchQuery, taskMatchesSearch } from '../utils/taskSearch
|
|
|
29
29
|
import { compareTasksBySortKey } from '../utils/taxonomySorting.js';
|
|
30
30
|
import { getFilterVisibleTaxonomyOptions } from '../utils/taxonomyFilterOptions.js';
|
|
31
31
|
import { getVisibleTaxonomiesForTasks } from '../utils/taxonomyLifecycle.js';
|
|
32
|
+
import { useCloudTaskSearch } from './tasks/useCloudTaskSearch';
|
|
32
33
|
// === SECTION: Filter State ===
|
|
33
|
-
export function useFilterSort({ tasks, archivedTasks, activeCategories, activeTypes, priorities, taxonomies, configLoaded, referenceDataLoaded, assigneeOptionsLoaded, assigneeOptions }) {
|
|
34
|
+
export function useFilterSort({ tasks, archivedTasks, activeCategories, activeTypes, priorities, taxonomies, configLoaded, referenceDataLoaded, assigneeOptionsLoaded, assigneeOptions, runtimeMode = 'local', workspaceId = '', cloudTaskSearchEnabled = false, cloudTaskSearchScope = 'active', }) {
|
|
34
35
|
const relationshipTasks = useMemo(() => [...tasks, ...archivedTasks], [archivedTasks, tasks]);
|
|
35
36
|
const resolvedAssigneeOptions = useMemo(() => normalizeAssigneeOptions(assigneeOptions), [assigneeOptions]);
|
|
36
37
|
const filterableTaxonomies = useMemo(() => getVisibleTaxonomiesForTasks(taxonomies, relationshipTasks)
|
|
@@ -42,6 +43,13 @@ export function useFilterSort({ tasks, archivedTasks, activeCategories, activeTy
|
|
|
42
43
|
const filterableTaxonomyById = useMemo(() => new Map(filterableTaxonomies.map((taxonomy) => [taxonomy.id, taxonomy])), [filterableTaxonomies]);
|
|
43
44
|
const assigneeFilterValues = useMemo(() => resolvedAssigneeOptions.map((opt) => opt.value), [resolvedAssigneeOptions]);
|
|
44
45
|
const [searchQuery, setSearchQuery] = useState('');
|
|
46
|
+
const cloudSearchMatchIds = useCloudTaskSearch({
|
|
47
|
+
query: searchQuery,
|
|
48
|
+
runtimeMode,
|
|
49
|
+
workspaceId,
|
|
50
|
+
enabled: cloudTaskSearchEnabled,
|
|
51
|
+
scope: cloudTaskSearchScope,
|
|
52
|
+
});
|
|
45
53
|
const [filterCategories, setFilterCategories] = useState([]);
|
|
46
54
|
const [filterPriorities, setFilterPriorities] = useState([]);
|
|
47
55
|
const [filterTypes, setFilterTypes] = useState([]);
|
|
@@ -229,7 +237,8 @@ export function useFilterSort({ tasks, archivedTasks, activeCategories, activeTy
|
|
|
229
237
|
const isAllPrioritiesSelected = isAllFilterValuesSelected(Array.from(new Set(filterPriorities.map((value) => Number(value)).filter((value) => Number.isFinite(value)))), priorities.map((priority) => Number(priority.value)).filter((value) => Number.isFinite(value)));
|
|
230
238
|
const isAllStatusesSelected = isAllFilterValuesSelected(filterStatus, STATUS_OPTIONS.map((status) => status.value));
|
|
231
239
|
return tasks.filter(t => {
|
|
232
|
-
const matchSearch = taskMatchesSearch(t, normalizedSearchQuery, taskSearchContext)
|
|
240
|
+
const matchSearch = taskMatchesSearch(t, normalizedSearchQuery, taskSearchContext)
|
|
241
|
+
|| (Boolean(normalizedSearchQuery.raw) && cloudSearchMatchIds.has(t.id));
|
|
233
242
|
const matchCategory = !hasInitedFilters || isAllCategoriesSelected || filterCategories.includes(t.category);
|
|
234
243
|
const matchPriority = !hasInitedFilters || isAllPrioritiesSelected || matchesPriorityFilter(t.priority, filterPriorities);
|
|
235
244
|
const matchType = !hasInitedFilters || isAllTypesSelected || filterTypes.includes(t.type || DEFAULT_TYPE_VALUE);
|
|
@@ -253,7 +262,7 @@ export function useFilterSort({ tasks, archivedTasks, activeCategories, activeTy
|
|
|
253
262
|
});
|
|
254
263
|
return matchSearch && matchCategory && matchPriority && matchType && matchStatus && matchAssignee && matchTaxonomies;
|
|
255
264
|
}).sort((a, b) => compareTasksBySortKey(a, b, sortBy, sortOrder, taxonomies));
|
|
256
|
-
}, [tasks, normalizedSearchQuery, taskSearchContext, filterCategories, filterPriorities, filterTypes, filterStatus, filterAssignees, filterAssigneesAllSelected, filterTaxonomies, sortBy, sortOrder, hasInitedFilters, filterableTaxonomies, filterableTaxonomyById, activeCategories, activeTypes, priorities, isAllFilterValuesSelected, taxonomies]);
|
|
265
|
+
}, [tasks, normalizedSearchQuery, taskSearchContext, cloudSearchMatchIds, filterCategories, filterPriorities, filterTypes, filterStatus, filterAssignees, filterAssigneesAllSelected, filterTaxonomies, sortBy, sortOrder, hasInitedFilters, filterableTaxonomies, filterableTaxonomyById, activeCategories, activeTypes, priorities, isAllFilterValuesSelected, taxonomies]);
|
|
257
266
|
const searchAgnosticTasks = useMemo(() => {
|
|
258
267
|
const isAllCategoriesSelected = isAllFilterValuesSelected(filterCategories, activeCategories.map((category) => category.value));
|
|
259
268
|
const isAllTypesSelected = isAllFilterValuesSelected(filterTypes, activeTypes.map((type) => type.value));
|
|
@@ -288,7 +297,8 @@ export function useFilterSort({ tasks, archivedTasks, activeCategories, activeTy
|
|
|
288
297
|
const isAllTypesSelected = isAllFilterValuesSelected(filterTypes, activeTypes.map((type) => type.value));
|
|
289
298
|
const isAllPrioritiesSelected = isAllFilterValuesSelected(Array.from(new Set(filterPriorities.map((value) => Number(value)).filter((value) => Number.isFinite(value)))), priorities.map((priority) => Number(priority.value)).filter((value) => Number.isFinite(value)));
|
|
290
299
|
return archivedTasks.filter(t => {
|
|
291
|
-
const matchSearch = taskMatchesSearch(t, normalizedSearchQuery, taskSearchContext)
|
|
300
|
+
const matchSearch = taskMatchesSearch(t, normalizedSearchQuery, taskSearchContext)
|
|
301
|
+
|| (Boolean(normalizedSearchQuery.raw) && cloudSearchMatchIds.has(t.id));
|
|
292
302
|
const matchCategory = !hasInitedFilters || isAllCategoriesSelected || filterCategories.includes(t.category);
|
|
293
303
|
const matchPriority = !hasInitedFilters || isAllPrioritiesSelected || matchesPriorityFilter(t.priority, filterPriorities);
|
|
294
304
|
const matchType = !hasInitedFilters || isAllTypesSelected || filterTypes.includes(t.type || DEFAULT_TYPE_VALUE);
|
|
@@ -310,7 +320,7 @@ export function useFilterSort({ tasks, archivedTasks, activeCategories, activeTy
|
|
|
310
320
|
});
|
|
311
321
|
return matchSearch && matchCategory && matchPriority && matchType && matchAssignee && matchTaxonomies;
|
|
312
322
|
}).sort((a, b) => compareTasksBySortKey(a, b, sortBy, sortOrder, taxonomies));
|
|
313
|
-
}, [archivedTasks, normalizedSearchQuery, taskSearchContext, filterCategories, filterPriorities, filterTypes, filterAssignees, filterAssigneesAllSelected, filterTaxonomies, sortBy, sortOrder, hasInitedFilters, activeCategories, activeTypes, priorities, filterableTaxonomies, filterableTaxonomyById, isAllFilterValuesSelected, taxonomies]);
|
|
323
|
+
}, [archivedTasks, normalizedSearchQuery, taskSearchContext, cloudSearchMatchIds, filterCategories, filterPriorities, filterTypes, filterAssignees, filterAssigneesAllSelected, filterTaxonomies, sortBy, sortOrder, hasInitedFilters, activeCategories, activeTypes, priorities, filterableTaxonomies, filterableTaxonomyById, isAllFilterValuesSelected, taxonomies]);
|
|
314
324
|
const groupedTasks = useMemo(() => {
|
|
315
325
|
const groups = {};
|
|
316
326
|
filteredTasks.forEach(task => {
|
|
@@ -79,9 +79,12 @@ export declare function useSyncOrchestrator(input: UseSyncOrchestratorInput): {
|
|
|
79
79
|
phase: import("./sync/useLocalSyncCoordinatorSnapshot.js").LocalSyncCoordinatorSnapshotPhase;
|
|
80
80
|
snapshot: import("../sync/coordinator/localSyncCoordinatorBrowserClient.js").LocalSyncCoordinatorStatusResponse | null;
|
|
81
81
|
errorMessage: string | null;
|
|
82
|
+
activeCommandType: import("../sync/coordinator/localSyncCoordinatorTypes").LocalSyncCoordinatorCommandType | null;
|
|
83
|
+
activePriorityCommandType: import("../sync/coordinator/localSyncCoordinatorTypes").LocalSyncCoordinatorCommandType | null;
|
|
82
84
|
} | null;
|
|
83
85
|
switchLocalCoordinatorWorkspace: (targetWorkspaceId: string) => Promise<boolean>;
|
|
84
86
|
transferLocalCoordinatorOwnership: (targetMode: "server" | "browser-gateway") => Promise<boolean>;
|
|
87
|
+
clearLocalCoordinatorCredential: () => Promise<boolean>;
|
|
85
88
|
syncInFlightRef: import("react").RefObject<boolean>;
|
|
86
89
|
workspaceRetryAt: string | null;
|
|
87
90
|
isWorkspaceRetryPending: () => boolean;
|