@taskforcehq/taskforce 0.3.327 → 0.3.329
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 +257 -87
- 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/activity/EntityActivityTimeline.js +15 -5
- package/dist/components/context/AttachmentPreviewHost.js +1 -1
- package/dist/components/context/ContextAttachmentManager.d.ts +3 -0
- package/dist/components/context/ContextAttachmentManager.js +116 -20
- package/dist/components/features/AnnotatedAttachmentWorkspace.js +24 -8
- package/dist/components/features/TaskSettings.d.ts +12 -1
- package/dist/components/features/TaskSettings.js +147 -40
- package/dist/components/features/agentCapabilities/AgentCapabilitiesPrototype.d.ts +1 -1
- package/dist/components/features/planning/PlanningEntitySummary.d.ts +3 -1
- package/dist/components/features/planning/PlanningEntitySummary.js +3 -2
- package/dist/components/features/planning/PlanningLinkPicker.d.ts +3 -1
- package/dist/components/features/planning/PlanningLinkPicker.js +5 -3
- package/dist/components/features/planning/PlanningModule.js +28 -14
- package/dist/components/features/planning/PlanningTaskOrderList.d.ts +1 -1
- package/dist/components/features/planning/PlanningTaskOrderList.js +17 -6
- package/dist/components/features/planning/PlanningVisualIdentity.d.ts +14 -0
- package/dist/components/features/planning/PlanningVisualIdentity.js +106 -0
- package/dist/components/features/planning/planningTaskArrangement.d.ts +1 -0
- package/dist/components/features/planning/planningTaskArrangement.js +5 -5
- package/dist/components/features/planning/planningWorkspaceModel.d.ts +11 -0
- package/dist/components/features/taskforceAgentEditorModel.js +3 -1
- package/dist/components/task/TaskActionHeader.d.ts +2 -1
- package/dist/components/task/TaskActionHeader.js +2 -2
- package/dist/components/task/TaskCard.d.ts +5 -0
- package/dist/components/task/TaskCard.js +101 -13
- package/dist/components/task/TaskContextUpload.d.ts +3 -0
- package/dist/components/task/TaskContextUpload.js +2 -2
- package/dist/components/task/TaskForm.d.ts +4 -0
- package/dist/components/task/TaskForm.js +32 -7
- package/dist/components/task/TaskImageReviews.js +28 -19
- 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/TaskStatusActions.js +11 -2
- package/dist/components/task/TaskWorkstreamPicker.js +2 -1
- package/dist/components/ui/DocumentTypeIcon.d.ts +7 -0
- package/dist/components/ui/DocumentTypeIcon.js +8 -0
- package/dist/components/ui/PasswordInput.d.ts +6 -0
- package/dist/components/ui/PasswordInput.js +11 -0
- package/dist/components/ui/TaxonomyDropdown.d.ts +9 -1
- package/dist/components/ui/TaxonomyDropdown.js +30 -3
- 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 +68 -39
- package/dist/components/views/WidgetView.js +10 -7
- package/dist/components/views/panels/PlanningDrawer.d.ts +7 -1
- package/dist/components/views/panels/PlanningDrawer.js +51 -54
- package/dist/components/views/standalone/modals/AccountSettingsModal.js +26 -17
- package/dist/config/envSchema.js +13 -0
- package/dist/config/localServiceCloudTarget.d.ts +10 -0
- package/dist/config/localServiceCloudTarget.js +76 -0
- package/dist/config/localServiceRuntimeContract.d.ts +13 -0
- package/dist/config/localServiceRuntimeContract.js +135 -0
- package/dist/core/AiProfileService.d.ts +1 -0
- package/dist/core/AiProfileService.js +48 -9
- package/dist/core/AttachmentLinkService.js +7 -4
- package/dist/core/DeletedTaskLifecycleService.d.ts +5 -0
- package/dist/core/DeletedTaskLifecycleService.js +55 -3
- package/dist/core/McpTokenService.d.ts +4 -0
- package/dist/core/McpTokenService.js +52 -0
- package/dist/core/TaskAttachmentLinksDurableMutationService.d.ts +8 -2
- package/dist/core/TaskAttachmentLinksDurableMutationService.js +51 -18
- package/dist/core/Taskforce.d.ts +124 -2
- package/dist/core/Taskforce.js +1175 -87
- package/dist/core/types.d.ts +8 -1
- package/dist/documentReviews/DocumentReviewCommentStore.d.ts +11 -0
- package/dist/documentReviews/DocumentReviewCommentStore.js +35 -2
- package/dist/documentReviews/service.d.ts +4 -0
- package/dist/documentReviews/service.js +141 -46
- 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/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 +9 -0
- package/dist/hooks/tasks/useTaskFormActions.js +96 -17
- 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/useTaskData.d.ts +10 -1
- package/dist/hooks/useTaskData.js +216 -7
- package/dist/hooks/useTaskMutations.d.ts +10 -2
- package/dist/hooks/useTaskMutations.js +223 -43
- package/dist/hooks/useTaskforce.d.ts +94 -57
- package/dist/hooks/useTaskforce.js +428 -16
- 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/canonicalAssetHelpers.d.ts +13 -0
- package/dist/mcp/canonicalAssetHelpers.js +39 -5
- package/dist/mcp/collaborationRegistrar.js +15 -13
- package/dist/mcp/documentAssetRegistrar.js +60 -44
- package/dist/mcp/documentHelpers.d.ts +1 -0
- package/dist/mcp/documentHelpers.js +7 -3
- package/dist/mcp/localServiceProxy.js +4 -1
- package/dist/mcp/runtime.d.ts +16 -0
- package/dist/mcp/runtime.js +735 -210
- package/dist/mcp/taskAttachmentCommandAdapter.d.ts +2 -0
- package/dist/mcp/taskAttachmentCommandAdapter.js +14 -8
- package/dist/mcp/taskPlanningRegistrar.js +78 -67
- package/dist/mcp/toolCallCompatibility.js +38 -1
- package/dist/mcp/toolCatalog.d.ts +1 -0
- package/dist/mcp/toolRegistry.js +2 -2
- package/dist/migrations/taskSchemaMigrations.js +47 -0
- package/dist/runtime/appGateDefinitions.d.ts +30 -6
- package/dist/runtime/appGateDefinitions.js +6 -6
- package/dist/runtime/appGates.d.ts +12 -13
- package/dist/runtime/appGates.js +29 -13
- package/dist/runtime/nodeAppGates.d.ts +8 -0
- package/dist/runtime/nodeAppGates.js +27 -0
- package/dist/server/appAccess.d.ts +12 -0
- package/dist/server/appAccess.js +21 -0
- package/dist/server/authorizedWorkspaceAccess.d.ts +12 -0
- package/dist/server/authorizedWorkspaceAccess.js +40 -0
- package/dist/server/cloudCollectionRead.d.ts +25 -0
- package/dist/server/cloudCollectionRead.js +120 -0
- package/dist/server/cloudCollectionReadPool.d.ts +52 -0
- package/dist/server/cloudCollectionReadPool.js +140 -0
- package/dist/server/cloudCollectionReadWorker.d.ts +1 -0
- package/dist/server/cloudCollectionReadWorker.js +36 -0
- package/dist/server/index.d.ts +6 -11
- package/dist/server/index.js +67 -42
- package/dist/server/localServiceLease.d.ts +6 -0
- package/dist/server/localServiceLease.js +17 -1
- package/dist/server/localWorkspaceSyncServerRuntime.js +10 -3
- 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.js +1 -0
- package/dist/server/routes/agentRoles.js +3 -2
- package/dist/server/routes/agentSkills.js +3 -2
- package/dist/server/routes/agents.js +118 -16
- package/dist/server/routes/annotatedAttachments.js +3 -2
- package/dist/server/routes/auth.js +3 -1
- package/dist/server/routes/documents.d.ts +5 -2
- package/dist/server/routes/documents.js +160 -13
- package/dist/server/routes/durableTaskHttpRouters.d.ts +11 -2
- package/dist/server/routes/durableTaskHttpRouters.js +2 -2
- package/dist/server/routes/localService.js +4 -0
- package/dist/server/routes/primitives.d.ts +4 -0
- package/dist/server/routes/shared.d.ts +24 -0
- package/dist/server/routes/shared.js +114 -18
- package/dist/server/routes/sync.js +22 -0
- package/dist/server/routes/syncAuxRoutes.js +5 -2
- package/dist/server/routes/syncPullApplyRoutes.js +23 -4
- package/dist/server/routes/syncV3FeedRoutes.js +22 -18
- package/dist/server/routes/syncV3LocalCaptureRoutes.js +48 -4
- package/dist/server/routes/syncV3LocalFeedApplyRoutes.d.ts +1 -0
- package/dist/server/routes/syncV3LocalFeedApplyRoutes.js +26 -0
- package/dist/server/routes/syncV3OperationRoutes.js +27 -2
- package/dist/server/routes/tasks.js +299 -97
- package/dist/server/routes/workspaces.js +43 -1
- package/dist/server/routes.js +35 -7
- package/dist/server/workspaceDeletionAdmission.d.ts +23 -0
- package/dist/server/workspaceDeletionAdmission.js +50 -0
- package/dist/service/localServiceCli.js +52 -25
- package/dist/service/localServiceClientLifecycle.js +93 -6
- package/dist/services/codexAppServerModelGateway.d.ts +112 -0
- package/dist/services/codexAppServerModelGateway.js +438 -0
- package/dist/services/taskforceAgentMcpBridge.d.ts +7 -1
- package/dist/services/taskforceAgentMcpBridge.js +23 -3
- package/dist/shared/planningIdentity.d.ts +20 -0
- package/dist/shared/planningIdentity.js +79 -0
- package/dist/shared/taskforceAgentDefinition.js +7 -1
- package/dist/shared/taskforceAgentModels.d.ts +1 -0
- package/dist/shared/taskforceAgentModels.js +30 -1
- package/dist/storage/postgresAdapter.d.ts +20 -3
- package/dist/storage/postgresAdapter.js +110 -14
- package/dist/storage/postgresRequestDiagnostics.d.ts +8 -0
- package/dist/storage/postgresRequestDiagnostics.js +24 -0
- package/dist/storage/postgresWorker.js +13 -4
- package/dist/storage/postgresWorkerProtocol.d.ts +29 -0
- package/dist/storage/postgresWorkerProtocol.js +30 -0
- package/dist/storage/workspaceAssetStore.d.ts +32 -0
- package/dist/storage/workspaceAssetStore.js +70 -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 +17 -0
- package/dist/sync/coordinator/localSyncExecutionPermitStore.js +77 -23
- package/dist/sync/coordinator/localWorkspaceSyncRunner.js +6 -2
- package/dist/sync/coordinator/workspaceSyncTransportGateway.js +4 -2
- package/dist/sync/engine/workspaceSyncEngineBrowserGatewayRemoteServices.js +20 -2
- package/dist/sync/engine/workspaceSyncEngineLocalServices.d.ts +4 -0
- package/dist/sync/engine/workspaceSyncEngineLocalServices.js +11 -0
- package/dist/sync/engine/workspaceSyncEngineRemoteServices.d.ts +16 -0
- package/dist/sync/engine/workspaceSyncEngineRemoteServices.js +2 -1
- package/dist/sync/engine/workspaceSyncEngineServerRemoteServices.d.ts +1 -1
- package/dist/sync/engine/workspaceSyncEngineServerRemoteServices.js +46 -4
- package/dist/sync/engine/workspaceSyncEngineServerRunnerOperations.d.ts +3 -1
- package/dist/sync/engine/workspaceSyncEngineServerRunnerOperations.js +51 -11
- package/dist/sync/engine/workspaceSyncEngineTransfers.d.ts +1 -1
- package/dist/sync/engine/workspaceSyncEngineTransfers.js +8 -3
- package/dist/sync/engine/workspaceSyncV2ChangeDispatcher.js +2 -0
- package/dist/sync/syncApplyHandlers.d.ts +3 -1
- package/dist/sync/syncApplyHandlers.js +29 -0
- package/dist/sync/syncService.d.ts +2 -0
- package/dist/sync/syncService.js +13 -1
- package/dist/sync/taskSyncPayload.d.ts +1 -0
- package/dist/sync/taskSyncPayload.js +6 -0
- package/dist/sync/v3/combinedFeedCapability.js +4 -0
- package/dist/sync/v3/durableTaskAttachmentLinksMutationRouter.d.ts +3 -0
- package/dist/sync/v3/durableTaskAttachmentLinksMutationRouter.js +31 -3
- package/dist/sync/v3/durableTaskChecklistMutationRouter.d.ts +2 -0
- package/dist/sync/v3/durableTaskChecklistMutationRouter.js +4 -0
- package/dist/sync/v3/durableTaskHttpBulkMutationRouter.d.ts +1 -0
- package/dist/sync/v3/durableTaskHttpBulkMutationRouter.js +47 -12
- package/dist/sync/v3/durableTaskHttpRootMutationRouter.d.ts +5 -3
- package/dist/sync/v3/durableTaskHttpRootMutationRouter.js +27 -2
- package/dist/sync/v3/localInitiativeOutboxService.js +4 -2
- package/dist/sync/v3/localOutboxDispatcher.js +5 -1
- package/dist/sync/v3/localTaskAttachmentLinksOutboxHandler.js +12 -2
- package/dist/sync/v3/localTaskAttachmentLinksOutboxService.d.ts +3 -0
- package/dist/sync/v3/localTaskAttachmentLinksOutboxService.js +62 -10
- 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 +2 -0
- package/dist/sync/v3/localTaskStatusOutboxService.js +54 -13
- package/dist/sync/v3/localWorkstreamOutboxService.js +4 -2
- package/dist/sync/v3/syncDurabilityStore.d.ts +15 -0
- package/dist/sync/v3/syncDurabilityStore.js +201 -43
- package/dist/sync/v3/taskAttachmentLinksMutationService.d.ts +7 -4
- package/dist/sync/v3/taskAttachmentLinksMutationService.js +37 -12
- package/dist/sync/v3/taskChecklistMutationService.d.ts +4 -2
- package/dist/sync/v3/taskChecklistMutationService.js +4 -0
- package/dist/sync/v3/taskCreateMutationService.d.ts +2 -2
- package/dist/sync/v3/taskCreateMutationService.js +7 -4
- package/dist/sync/v3/taskMetadataCoexistence.js +4 -0
- 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 +2 -0
- package/dist/sync/v3/taskStatusMutationService.js +4 -0
- package/dist/sync/v3/workflowAssignmentSync.d.ts +1 -0
- package/dist/sync/v3/workflowAssignmentSync.js +3 -0
- package/dist/sync/v3/workspaceSyncV2ProjectionExclusions.d.ts +1 -1
- package/dist/sync/v3/workspaceSyncV2ProjectionExclusions.js +14 -12
- 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.js +10 -1
- package/dist/sync/v3/workspaceSyncV3CombinedFeedOrchestrator.js +15 -4
- package/dist/sync/v3/workspaceSyncV3CombinedLocalApply.js +66 -13
- package/dist/sync/v3/workspaceSyncV3CombinedRepairBaseline.d.ts +11 -0
- package/dist/sync/v3/workspaceSyncV3CombinedRepairBaseline.js +57 -22
- package/dist/sync/v3/workspaceSyncV3CombinedRepairMaterialization.d.ts +10 -4
- package/dist/sync/v3/workspaceSyncV3CombinedRepairMaterialization.js +124 -51
- package/dist/sync/v3/workspaceSyncV3CombinedRepairSnapshot.d.ts +10 -0
- package/dist/sync/v3/workspaceSyncV3CombinedRepairSnapshot.js +120 -28
- package/dist/sync/v3/workspaceSyncV3CombinedWireContract.d.ts +3 -1
- package/dist/sync/v3/workspaceSyncV3CombinedWireContract.js +18 -0
- package/dist/sync/v3/workspaceSyncV3CoverageRegistry.js +6 -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 +3 -0
- package/dist/sync/v3/workspaceSyncV3OperatorDiagnostics.d.ts +2 -0
- package/dist/sync/v3/workspaceSyncV3OperatorDiagnostics.js +19 -7
- package/dist/sync/v3/workspaceSyncV3RepairSqlBatching.d.ts +2 -0
- package/dist/sync/v3/workspaceSyncV3RepairSqlBatching.js +10 -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/workspaceSyncV3TaskRootProjection.d.ts +1 -1
- package/dist/sync/v3/workspaceSyncV3TaskRootProjection.js +1 -1
- package/dist/sync/workspacePullFeed.d.ts +6 -1
- package/dist/sync/workspacePullFeed.js +174 -162
- package/dist/sync/workspaceRepair.d.ts +3 -0
- package/dist/sync/workspaceRepair.js +67 -6
- package/dist/sync/workspaceSyncModel.d.ts +11 -0
- package/dist/sync/workspaceSyncModel.js +27 -2
- package/dist/types.d.ts +55 -1
- package/dist/types.js +6 -0
- package/dist/ui/assets/{AiIdentityRosterCard-DB1BLO_j.js → AiIdentityRosterCard-BZM4aQnM.js} +1 -1
- package/dist/ui/assets/AiProfilesModule-BbAEWtHH.js +1 -0
- package/dist/ui/assets/AnnotatedAttachmentWorkspace-B68Wg-RV.js +3 -0
- package/dist/ui/assets/AnnotatedAttachmentWorkspace-TzYu7pkG.css +1 -0
- package/dist/ui/assets/AssetTraySortControl-C8Rztyal.js +1 -0
- package/dist/ui/assets/ContextAttachmentManager-Cj3c7X9y.js +3 -0
- package/dist/ui/assets/{DocumentWorkspace-BC7sy5TG.js → DocumentWorkspace-B5uvzems.js} +4 -4
- package/dist/ui/assets/EntityActivityTimeline-BVFvCB5R.js +1 -0
- package/dist/ui/assets/PlanningModule-B5DWQOGz.js +1 -0
- package/dist/ui/assets/PlanningModule-CoIR9hbV.css +1 -0
- package/dist/ui/assets/PlansPage-AY4cGWco.js +1 -0
- package/dist/ui/assets/TaskContextUpload-DZxTVesW.js +1 -0
- package/dist/ui/assets/TaskContextUpload-qmBeUw3u.css +1 -0
- package/dist/ui/assets/TaskSettings-BeWAuyZj.js +12 -0
- package/dist/ui/assets/{TaskforceAgentsModule-CkAxW19K.js → TaskforceAgentsModule-BifCYtjR.js} +6 -6
- package/dist/ui/assets/WorkflowManagerModule-DEr5di_r.js +1 -0
- package/dist/ui/assets/index-I5zhdtgt.js +7 -0
- package/dist/ui/assets/index-VRFsx3wz.css +1 -0
- package/dist/ui/assets/{vendor-icons-B8ZNsH1g.js → vendor-icons-D9Lpw-j4.js} +1 -1
- package/dist/ui/index.html +3 -3
- package/dist/utils/constants.d.ts +2 -2
- package/dist/utils/constants.js +1 -1
- package/dist/utils/contextAttachmentUpload.d.ts +2 -0
- package/dist/utils/contextAttachmentUpload.js +7 -0
- package/dist/utils/contextFiles.d.ts +1 -1
- package/dist/utils/contextFiles.js +4 -4
- 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/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/package.json +21 -4
- package/dist/ui/assets/AiProfilesModule-DPxQeF9N.js +0 -1
- package/dist/ui/assets/AnnotatedAttachmentWorkspace-CBRZ8rca.css +0 -1
- package/dist/ui/assets/AnnotatedAttachmentWorkspace-DHNYaNg6.js +0 -3
- package/dist/ui/assets/AssetTraySortControl-DphbyHVc.js +0 -1
- package/dist/ui/assets/ContextAttachmentManager-CMxSzHqc.js +0 -3
- package/dist/ui/assets/EntityActivityTimeline-pJ2ZjZ-k.js +0 -1
- package/dist/ui/assets/PlanningModule-CeTqXMMz.css +0 -1
- package/dist/ui/assets/PlanningModule-t5GbvVR9.js +0 -1
- package/dist/ui/assets/PlansPage-BVH_NfgT.js +0 -1
- package/dist/ui/assets/TaskContextUpload-Ds4LnDzV.css +0 -1
- package/dist/ui/assets/TaskContextUpload-bl4fOOUz.js +0 -1
- package/dist/ui/assets/TaskSettings-xVsxSa0g.js +0 -12
- package/dist/ui/assets/WorkflowManagerModule-BKqIGVnF.js +0 -1
- package/dist/ui/assets/index-BzJlVnNS.css +0 -1
- package/dist/ui/assets/index-Cx7vZJHL.js +0 -7
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import * as Icons from 'lucide-react';
|
|
4
|
-
const { MessageSquare, Gauge, ClipboardList, HelpCircle
|
|
4
|
+
const { MessageSquare, Gauge, ClipboardList, HelpCircle } = Icons;
|
|
5
5
|
import styles from '../../Taskforce.module.css';
|
|
6
6
|
import cardStyles from './TaskCard.module.css';
|
|
7
7
|
import { Markdown } from '../ui/Markdown';
|
|
@@ -22,7 +22,56 @@ import { getInitiativeReferenceLabel, getWorkstreamReferenceLabel } from '../../
|
|
|
22
22
|
import { TaxonomyDropdown } from '../ui/TaxonomyDropdown';
|
|
23
23
|
import { AssigneeAvatar, AssigneeIdentity } from '../ui/AssigneeIdentity';
|
|
24
24
|
import { TaskWorkstreamPicker } from './TaskWorkstreamPicker';
|
|
25
|
-
|
|
25
|
+
import { DocumentTypeIcon } from '../ui/DocumentTypeIcon';
|
|
26
|
+
function resolveLatestActivityActor(item, assigneeOptions) {
|
|
27
|
+
if (!item)
|
|
28
|
+
return null;
|
|
29
|
+
const actorRef = String(item.type === 'comment' ? item.comment.author : item.event.actor).trim();
|
|
30
|
+
const actorProfile = item.type === 'comment' ? item.comment.actor : item.event.actorProfile;
|
|
31
|
+
if (!actorRef && !actorProfile)
|
|
32
|
+
return null;
|
|
33
|
+
const normalizedActorRef = actorRef.toLowerCase();
|
|
34
|
+
const option = assigneeOptions.find((candidate) => (String(candidate.value || '').trim().toLowerCase() === normalizedActorRef));
|
|
35
|
+
const actorType = item.type === 'comment'
|
|
36
|
+
? actorProfile?.kind === 'ai'
|
|
37
|
+
? 'ai'
|
|
38
|
+
: actorProfile?.kind === 'human'
|
|
39
|
+
? 'human'
|
|
40
|
+
: option?.kind === 'agent'
|
|
41
|
+
? 'ai'
|
|
42
|
+
: option?.kind === 'member'
|
|
43
|
+
? 'human'
|
|
44
|
+
: null
|
|
45
|
+
: item.event.actorType;
|
|
46
|
+
const kind = actorType === 'system' || normalizedActorRef === 'system'
|
|
47
|
+
? 'system'
|
|
48
|
+
: actorType === 'ai' || actorProfile?.kind === 'ai' || option?.kind === 'agent'
|
|
49
|
+
? 'agent'
|
|
50
|
+
: 'member';
|
|
51
|
+
if (kind === 'system')
|
|
52
|
+
return { label: 'System' };
|
|
53
|
+
const profileLabel = String(actorProfile?.label || '').trim();
|
|
54
|
+
const optionLabel = String(option?.label || '').trim();
|
|
55
|
+
const isGenericActor = !normalizedActorRef
|
|
56
|
+
|| normalizedActorRef === 'user'
|
|
57
|
+
|| normalizedActorRef === 'human'
|
|
58
|
+
|| normalizedActorRef === 'ai';
|
|
59
|
+
const isOpaqueActor = /^(?:ai-profile|user|member)-[0-9a-f-]{8,}$/i.test(actorRef)
|
|
60
|
+
|| /^[0-9a-f]{16,}$/i.test(actorRef);
|
|
61
|
+
const readableActorRef = actorRef
|
|
62
|
+
.replace(/[-_]+/g, ' ')
|
|
63
|
+
.replace(/\s+/g, ' ')
|
|
64
|
+
.trim()
|
|
65
|
+
.replace(/\b\w/g, (character) => character.toUpperCase());
|
|
66
|
+
const label = profileLabel
|
|
67
|
+
|| optionLabel
|
|
68
|
+
|| (kind === 'agent' && (isGenericActor || isOpaqueActor) ? 'AI Agent' : '')
|
|
69
|
+
|| (isGenericActor || isOpaqueActor ? 'Workspace member' : readableActorRef)
|
|
70
|
+
|| (kind === 'agent' ? 'AI Agent' : 'Workspace member');
|
|
71
|
+
const color = resolveColor(actorProfile?.color || option?.color);
|
|
72
|
+
return { label, color };
|
|
73
|
+
}
|
|
74
|
+
const TaskCardInner = ({ task, searchQuery = '', copiedId = null, taxonomies = [], types = [], priorities = [], categories = [], assigneeOptions = [], workstreams = [], taskWorkstream = null, taskInitiative = null, workspaceId = null, isOverlay = false, isArchived = false, readOnlyMode = null, isRecentlyChanged = false, selectable = false, selected = false, onSelectionChange, onClick, onCopyId, onToggleInProgress, onToggleReview, onToggleComplete, onToggleCancel, onSetStatus, onArchiveTask, onUnarchive, onDelete, deleteActionTitle, taskReferences, onAssigneeChange, onWorkstreamChange, compressed = false, showStatusLabel = false, showDescription = true, showAttachments = true, showChecklistProgress = true, showLatestActivity = true, tintActivityBackground = false }) => {
|
|
26
75
|
const taskReference = getTaskReferenceDisplayState(task);
|
|
27
76
|
const taskReferenceLabel = taskReference.label || (taskReference.isProvisional ? 'Pending' : '');
|
|
28
77
|
const isProvisionalReference = taskReference.isProvisional;
|
|
@@ -70,7 +119,8 @@ const TaskCardInner = ({ task, searchQuery = '', copiedId = null, taxonomies = [
|
|
|
70
119
|
kind,
|
|
71
120
|
};
|
|
72
121
|
}, [assigneeLabel, assigneeOptions, task.assignee]);
|
|
73
|
-
const latestActivity = React.useMemo(() => getLatestTaskActivity(task), [task]);
|
|
122
|
+
const latestActivity = React.useMemo(() => task.latestActivity ?? getLatestTaskActivity(task), [task]);
|
|
123
|
+
const latestActivityActor = React.useMemo(() => resolveLatestActivityActor(latestActivity, assigneeOptions), [assigneeOptions, latestActivity]);
|
|
74
124
|
const resolvedReadOnlyMode = readOnlyMode || (task.isDeleted ? 'deleted' : (isArchived ? 'archived' : null));
|
|
75
125
|
const isReadOnly = resolvedReadOnlyMode !== null;
|
|
76
126
|
const deletedExpiryLabel = React.useMemo(() => {
|
|
@@ -98,7 +148,7 @@ const TaskCardInner = ({ task, searchQuery = '', copiedId = null, taxonomies = [
|
|
|
98
148
|
return undefined;
|
|
99
149
|
}, [assigneeOptions, initiativeReferenceLabel, taskInitiative, taskWorkstream, workstreamReferenceLabel]);
|
|
100
150
|
const latestActivityText = React.useMemo(() => summarizeTaskActivity(latestActivity, formatActivityFieldValue), [formatActivityFieldValue, latestActivity]);
|
|
101
|
-
const commentCount = React.useMemo(() => getTaskActivityItems(task).filter((item) => item.type === 'comment').length, [task]);
|
|
151
|
+
const commentCount = React.useMemo(() => task.commentCount ?? getTaskActivityItems(task).filter((item) => item.type === 'comment').length, [task]);
|
|
102
152
|
const cardClasses = [
|
|
103
153
|
cardStyles.taskItem,
|
|
104
154
|
task.status === 'on-hold' ? cardStyles.onHold : '',
|
|
@@ -195,10 +245,9 @@ const TaskCardInner = ({ task, searchQuery = '', copiedId = null, taxonomies = [
|
|
|
195
245
|
const toTitleCase = (str) => str.replace(/\b\w/g, t => t.toUpperCase());
|
|
196
246
|
const visibleTaxonomies = getVisibleTaxonomiesForTasks(taxonomies, [task]);
|
|
197
247
|
const checklistItems = task.checklistItems || [];
|
|
198
|
-
const checklistTotal = checklistItems.length;
|
|
199
|
-
const checklistCompleted =
|
|
200
|
-
? checklistItems.filter(item => item.isCompleted).length
|
|
201
|
-
: 0;
|
|
248
|
+
const checklistTotal = task.checklistCount ?? checklistItems.length;
|
|
249
|
+
const checklistCompleted = task.completedChecklistCount
|
|
250
|
+
?? (checklistTotal > 0 ? checklistItems.filter(item => item.isCompleted).length : 0);
|
|
202
251
|
const handleReferenceCopy = (event, label) => {
|
|
203
252
|
event.stopPropagation();
|
|
204
253
|
onCopyId?.(event, label);
|
|
@@ -228,6 +277,29 @@ const TaskCardInner = ({ task, searchQuery = '', copiedId = null, taxonomies = [
|
|
|
228
277
|
workspaceId,
|
|
229
278
|
});
|
|
230
279
|
};
|
|
280
|
+
const cardCoverAttachment = (() => {
|
|
281
|
+
if (compressed || isOverlay || !task.cardCoverAssetId)
|
|
282
|
+
return null;
|
|
283
|
+
if (task.cardCoverAttachment
|
|
284
|
+
&& typeof task.cardCoverAttachment !== 'string'
|
|
285
|
+
&& task.cardCoverAttachment.assetId === task.cardCoverAssetId) {
|
|
286
|
+
return task.cardCoverAttachment;
|
|
287
|
+
}
|
|
288
|
+
return (task.attachments || []).find((attachment) => (typeof attachment !== 'string'
|
|
289
|
+
&& String(attachment.assetId || '').trim() === task.cardCoverAssetId
|
|
290
|
+
&& attachment.linkRole === 'image'
|
|
291
|
+
&& isImageAttachment(attachment))) || null;
|
|
292
|
+
})();
|
|
293
|
+
const cardCoverIdentity = cardCoverAttachment
|
|
294
|
+
? `${cardCoverAttachment.assetId || ''}:${cardCoverAttachment.path}`
|
|
295
|
+
: '';
|
|
296
|
+
const cardAttachments = (task.attachments || []).filter((attachment) => (!cardCoverAttachment
|
|
297
|
+
|| typeof attachment === 'string'
|
|
298
|
+
|| attachment.assetId !== cardCoverAttachment.assetId));
|
|
299
|
+
const [cardCoverLoadFailed, setCardCoverLoadFailed] = React.useState(false);
|
|
300
|
+
React.useEffect(() => {
|
|
301
|
+
setCardCoverLoadFailed(false);
|
|
302
|
+
}, [cardCoverIdentity]);
|
|
231
303
|
return (_jsxs("div", { className: cardClasses, onClick: () => onClick?.(task), style: cardStyle, "data-task-card": "true", children: [_jsxs("div", { className: cardStyles.taskHeader, children: [selectable && (_jsx("label", { className: cardStyles.selectionControl, onClick: (event) => event.stopPropagation(), onPointerDown: (event) => event.stopPropagation(), children: _jsx("input", { type: "checkbox", checked: selected, onChange: (event) => onSelectionChange?.(event.target.checked), "aria-label": `Select ${taskReferenceLabel || task.title} for restore` }) })), _jsxs("div", { className: cardStyles.taskReferenceCluster, children: [taskInitiative ? (_jsxs(_Fragment, { children: [_jsx(TaskReferenceBadge, { copied: copiedId === initiativeReferenceLabel, onClick: (event) => handleReferenceCopy(event, initiativeReferenceLabel), disabled: !initiativeReferenceLabel, title: taskInitiative.title, ariaLabel: `Copy initiative reference ${initiativeReferenceLabel}: ${taskInitiative.title}`, className: isArchived ? cardStyles.archiveBadge : '', label: initiativeReferenceLabel }), _jsx("span", { className: cardStyles.taskReferenceDivider, children: "/" })] })) : null, taskWorkstream ? (_jsxs(_Fragment, { children: [_jsx(TaskReferenceBadge, { copied: copiedId === workstreamReferenceLabel, onClick: (event) => handleReferenceCopy(event, workstreamReferenceLabel), disabled: !workstreamReferenceLabel, title: taskWorkstream.title, ariaLabel: `Copy workstream reference ${workstreamReferenceLabel}: ${taskWorkstream.title}`, className: isArchived ? cardStyles.archiveBadge : '', label: workstreamReferenceLabel }), _jsx("span", { className: cardStyles.taskReferenceDivider, children: "/" })] })) : null, canChangeWorkstream && !taskWorkstream ? (_jsx("div", { className: cardStyles.taskReferenceSegment, onClick: (event) => event.stopPropagation(), onPointerDown: (event) => event.stopPropagation(), onKeyDown: (event) => event.stopPropagation(), children: _jsx(TaskWorkstreamPicker, { workstreams: workstreams, disabled: workstreamChangeBusy, onSelect: (workstream) => {
|
|
232
304
|
void handleWorkstreamChange(workstream.id);
|
|
233
305
|
} }) })) : null, taskReferenceLabel ? (_jsx("div", { className: cardStyles.taskReferenceSegment, onClick: (event) => event.stopPropagation(), onPointerDown: (event) => event.stopPropagation(), onKeyDown: (event) => event.stopPropagation(), children: _jsx(TaskReferenceBadge, { copied: canCopyTaskReference && copiedId === taskReference.label, onClick: (e) => handleReferenceCopy(e, taskReference.label), disabled: !canCopyTaskReference, title: isProvisionalReference
|
|
@@ -256,7 +328,20 @@ const TaskCardInner = ({ task, searchQuery = '', copiedId = null, taxonomies = [
|
|
|
256
328
|
}
|
|
257
329
|
}, onArchiveTask: onArchiveTask })) : ((onUnarchive || onDelete) ? (_jsxs(_Fragment, { children: [onUnarchive && (_jsx("button", { type: "button", className: styles.actionBtn, onClick: () => onUnarchive(task.id), title: resolvedReadOnlyMode === 'deleted'
|
|
258
330
|
? `Restore to ${task.isArchived === true ? 'Archived' : 'Active'}`
|
|
259
|
-
: 'Restore archived task', children: _jsx(Icons.RotateCcw, { size: 16 }) })), onDelete && (_jsx("button", { type: "button", className: `${styles.actionBtn} ${styles.deleteBtn}`, onClick: () => onDelete(task.id), title: deleteActionTitle || (resolvedReadOnlyMode === 'deleted' ? 'Delete Permanently' : 'Move to Trash'), children: _jsx(Icons.Trash2, { size: 16 }) }))] })) : null) })] }),
|
|
331
|
+
: 'Restore archived task', children: _jsx(Icons.RotateCcw, { size: 16 }) })), onDelete && (_jsx("button", { type: "button", className: `${styles.actionBtn} ${styles.deleteBtn}`, onClick: () => onDelete(task.id), title: deleteActionTitle || (resolvedReadOnlyMode === 'deleted' ? 'Delete Permanently' : 'Move to Trash'), children: _jsx(Icons.Trash2, { size: 16 }) }))] })) : null) })] }), cardCoverAttachment && !cardCoverLoadFailed && (_jsx("button", { type: "button", className: cardStyles.taskCover, "aria-label": `Preview ${getContextName(cardCoverAttachment)}`, onPointerDown: (event) => event.stopPropagation(), onClick: (event) => {
|
|
332
|
+
event.stopPropagation();
|
|
333
|
+
if (handleAttachmentActivation(cardCoverAttachment))
|
|
334
|
+
return;
|
|
335
|
+
if (dispatchOpenAnnotatedAttachment(cardCoverAttachment, {
|
|
336
|
+
taskId: task.id,
|
|
337
|
+
taskReferenceLabel,
|
|
338
|
+
}))
|
|
339
|
+
return;
|
|
340
|
+
window.open(cardCoverAttachment.path, '_blank');
|
|
341
|
+
}, children: _jsx("img", { src: cardCoverAttachment.path, alt: cardCoverAttachment.caption
|
|
342
|
+
|| cardCoverAttachment.displayName
|
|
343
|
+
|| cardCoverAttachment.originalFilename
|
|
344
|
+
|| task.title, loading: "lazy", decoding: "async", onError: () => setCardCoverLoadFailed(true) }) })), _jsxs("div", { className: cardStyles.taskContent, children: [/* Meta Badges moved to bottom */ isReadOnly && (_jsx("div", { className: `${cardStyles.taskMeta} ${cardStyles.taskMetaCompact}` })), _jsxs("div", { children: [_jsxs("div", { className: cardStyles.taskTitle, style: compressed ? { fontSize: '13px', lineHeight: '1.4' } : {}, children: [resolvedReadOnlyMode === 'archived' && '✓ ', resolvedReadOnlyMode === 'deleted' && 'Deleted: ', renderHighlighted(task.title, searchQuery)] }), deletedExpiryLabel && (_jsx("div", { className: cardStyles.deletedExpiry, title: "Trash items are permanently deleted 90 days after deletion.", children: deletedExpiryLabel })), showDescription && task.description && !isReadOnly && !compressed && (_jsx("div", { className: cardStyles.taskDescription, children: _jsx(Markdown, { variant: "compact", taskReferences: taskReferences, children: task.description }) }))] }), showAttachments && cardAttachments.length > 0 && !isReadOnly && !compressed && (_jsxs("div", { className: cardStyles.attachmentThumbnails, children: [_jsx("div", { className: cardStyles.attachmentImageRow, children: cardAttachments.map((attachment, idx) => {
|
|
260
345
|
const path = typeof attachment === 'string' ? attachment : attachment.path;
|
|
261
346
|
if (!isImageAttachment(attachment))
|
|
262
347
|
return null;
|
|
@@ -268,13 +353,14 @@ const TaskCardInner = ({ task, searchQuery = '', copiedId = null, taxonomies = [
|
|
|
268
353
|
return;
|
|
269
354
|
window.open(path, '_blank');
|
|
270
355
|
}, children: _jsx("img", { src: path, alt: `Attachment ${idx}` }) }, idx));
|
|
271
|
-
}) }), _jsx("div", { className: cardStyles.attachmentDocumentList, children:
|
|
356
|
+
}) }), _jsx("div", { className: cardStyles.attachmentDocumentList, children: cardAttachments.map((attachment, idx) => {
|
|
272
357
|
const path = typeof attachment === 'string' ? attachment : attachment.path;
|
|
273
358
|
const fsPath = typeof attachment === 'string' ? undefined : attachment.fsPath;
|
|
274
359
|
const name = getContextName(attachment);
|
|
275
360
|
if (isImageAttachment(attachment))
|
|
276
361
|
return null;
|
|
277
362
|
const fileType = getContextType(attachment);
|
|
363
|
+
const fileAccentColor = getFileTypeAccentColor(fileType);
|
|
278
364
|
return (_jsxs("button", { type: "button", className: cardStyles.contextDocThumb, onPointerDown: (event) => event.stopPropagation(), onClick: (e) => {
|
|
279
365
|
e.stopPropagation();
|
|
280
366
|
if (handleAttachmentActivation(attachment))
|
|
@@ -285,8 +371,10 @@ const TaskCardInner = ({ task, searchQuery = '', copiedId = null, taxonomies = [
|
|
|
285
371
|
if (dispatchOpenMarkdownDocument(markdownTarget, fsPath))
|
|
286
372
|
return;
|
|
287
373
|
window.open(path, '_blank');
|
|
288
|
-
}, title: name, style: { '--context-doc-accent':
|
|
289
|
-
}) })] })), task.status === 'cancelled' && task.canceledReason && !compressed && (_jsxs("div", { className: cardStyles.taskCancellationReason, children: [_jsx("strong", { children: "Cancellation Reason:" }), " ", renderHighlighted(task.canceledReason, searchQuery)] })), (latestActivityText || commentCount > 0) && !isReadOnly && !compressed && (_jsxs("div", { className:
|
|
374
|
+
}, title: name, "aria-label": `${name} ${fileType}`, style: { '--context-doc-accent': fileAccentColor }, children: [_jsx(DocumentTypeIcon, { label: fileType, accentColor: fileAccentColor, compact: true }), _jsx("span", { className: cardStyles.contextDocMain, children: _jsx("span", { className: cardStyles.contextDocName, children: name }) })] }, idx));
|
|
375
|
+
}) })] })), task.status === 'cancelled' && task.canceledReason && !compressed && (_jsxs("div", { className: cardStyles.taskCancellationReason, children: [_jsx("strong", { children: "Cancellation Reason:" }), " ", renderHighlighted(task.canceledReason, searchQuery)] })), showLatestActivity && (latestActivityText || commentCount > 0) && !isReadOnly && !compressed && (_jsxs("div", { className: `${cardStyles.taskLatestComment} ${tintActivityBackground && latestActivityActor?.color ? cardStyles.taskLatestCommentTinted : ''}`, "data-task-activity-summary": "true", style: latestActivityActor?.color
|
|
376
|
+
? { '--task-activity-accent': latestActivityActor.color }
|
|
377
|
+
: undefined, children: [_jsxs("div", { className: cardStyles.taskLatestCommentHeader, children: [_jsxs("div", { className: cardStyles.taskLatestActivityHeading, children: [_jsx("strong", { children: latestActivityText ? 'Latest Activity:' : 'Activity:' }), latestActivityText && latestActivityActor ? (_jsx("span", { className: cardStyles.taskLatestActivityActor, title: latestActivityActor.label, children: latestActivityActor.label })) : null] }), commentCount > 0 && (_jsxs("span", { className: `${styles.metaBadge} ${cardStyles.taskCommentCount}`, title: `${commentCount} ${commentCount === 1 ? 'comment' : 'comments'}`, "aria-label": `${commentCount} ${commentCount === 1 ? 'comment' : 'comments'}`, children: [_jsx(MessageSquare, { size: 12, "aria-hidden": "true" }), _jsx("span", { children: commentCount })] }))] }), latestActivityText && (_jsx("div", { className: cardStyles.taskLatestCommentText, title: latestActivityText, children: renderHighlighted(latestActivityText, searchQuery) }))] })), !isReadOnly && visibleTaxonomies.length > 0 && !compressed && (_jsx("div", { className: `${cardStyles.taskSpecialists} ${cardStyles.taxonomiesList}`, children: visibleTaxonomies.map(tax => {
|
|
290
378
|
const val = task.taxonomies?.[tax.id];
|
|
291
379
|
if (!val)
|
|
292
380
|
return null;
|
|
@@ -331,7 +419,7 @@ const TaskCardInner = ({ task, searchQuery = '', copiedId = null, taxonomies = [
|
|
|
331
419
|
const iconName = priorityConfig.icon || 'AlertCircle';
|
|
332
420
|
const IconComp = Icons[iconName] || Icons.AlertCircle;
|
|
333
421
|
return _jsx(IconComp, { size: 14 });
|
|
334
|
-
})() })), checklistTotal > 0 && (_jsxs("span", { className: styles.metaBadge, title: `${checklistCompleted}/${checklistTotal} checklist items complete`, style: {
|
|
422
|
+
})() })), showChecklistProgress && checklistTotal > 0 && (_jsxs("span", { className: styles.metaBadge, title: `${checklistCompleted}/${checklistTotal} checklist items complete`, style: {
|
|
335
423
|
color: 'var(--text-muted)',
|
|
336
424
|
backgroundColor: 'var(--bg-tertiary)',
|
|
337
425
|
borderColor: 'var(--border-primary)',
|
|
@@ -9,6 +9,9 @@ interface TaskContextUploadProps {
|
|
|
9
9
|
onAddContextFile: (file: AttachmentItem) => void;
|
|
10
10
|
onRemoveContextFile: (index: number) => void;
|
|
11
11
|
onUpdateContextCaption: (index: number, caption: string) => void;
|
|
12
|
+
cardCoverAssetId?: string | null;
|
|
13
|
+
onSetCardCover?: (assetId: string | null) => void | Promise<void>;
|
|
14
|
+
cardCoverDisabled?: boolean;
|
|
12
15
|
}
|
|
13
16
|
export declare function TaskContextUpload(props: TaskContextUploadProps): import("react/jsx-runtime").JSX.Element;
|
|
14
17
|
export {};
|
|
@@ -2,6 +2,6 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { ContextAttachmentManager } from '../context/ContextAttachmentManager';
|
|
3
3
|
import { TaskImageReviews } from './TaskImageReviews';
|
|
4
4
|
export function TaskContextUpload(props) {
|
|
5
|
-
const { taskId, taskReferenceLabel, workspaceId, apiBaseUrl, showImageReviews = false, contextFiles, onAddContextFile, onRemoveContextFile, onUpdateContextCaption, } = props;
|
|
6
|
-
return (_jsx(ContextAttachmentManager, { ownerType: "task", ownerId: taskId, ownerReferenceLabel: taskReferenceLabel, workspaceId: workspaceId, apiBaseUrl: apiBaseUrl, attachments: contextFiles, onAddAttachment: onAddContextFile, onRemoveAttachment: onRemoveContextFile, onUpdateAttachmentCaption: onUpdateContextCaption, supplementalContent: showImageReviews && taskId && workspaceId ? (_jsx(TaskImageReviews, { taskId: taskId, taskReferenceLabel: taskReferenceLabel, workspaceId: workspaceId, apiBaseUrl: apiBaseUrl })) : null }));
|
|
5
|
+
const { taskId, taskReferenceLabel, workspaceId, apiBaseUrl, showImageReviews = false, contextFiles, onAddContextFile, onRemoveContextFile, onUpdateContextCaption, cardCoverAssetId, onSetCardCover, cardCoverDisabled, } = props;
|
|
6
|
+
return (_jsx(ContextAttachmentManager, { ownerType: "task", ownerId: taskId, ownerReferenceLabel: taskReferenceLabel, workspaceId: workspaceId, apiBaseUrl: apiBaseUrl, attachments: contextFiles, onAddAttachment: onAddContextFile, onRemoveAttachment: onRemoveContextFile, onUpdateAttachmentCaption: onUpdateContextCaption, cardCoverAssetId: cardCoverAssetId, onSetCardCover: onSetCardCover, cardCoverDisabled: cardCoverDisabled, supplementalContent: showImageReviews && taskId && workspaceId ? (_jsx(TaskImageReviews, { taskId: taskId, taskReferenceLabel: taskReferenceLabel, workspaceId: workspaceId, apiBaseUrl: apiBaseUrl })) : null }));
|
|
7
7
|
}
|
|
@@ -22,6 +22,7 @@ interface TaskFormProps {
|
|
|
22
22
|
newCommentText: string;
|
|
23
23
|
contextFiles: Array<string | AttachmentItem>;
|
|
24
24
|
currentWorkspaceId?: string | null;
|
|
25
|
+
descriptionImageDraftId?: string | null;
|
|
25
26
|
currentActorId?: string | null;
|
|
26
27
|
apiBaseUrl?: string;
|
|
27
28
|
runtimeMode?: 'local' | 'cloud';
|
|
@@ -73,9 +74,12 @@ interface TaskFormProps {
|
|
|
73
74
|
onOpenSettings?: (section: "categories" | "types") => void;
|
|
74
75
|
onSubmit: (e: React.FormEvent) => void;
|
|
75
76
|
onAddComment: () => void;
|
|
77
|
+
onDescriptionImageUploadStart?: (upload: Promise<void>) => void;
|
|
76
78
|
onAddContextFile: (file: AttachmentItem) => void;
|
|
77
79
|
onRemoveContextFile: (index: number) => void;
|
|
78
80
|
onUpdateContextCaption: (index: number, caption: string) => void;
|
|
81
|
+
onSetCardCover?: (assetId: string | null) => void | Promise<void>;
|
|
82
|
+
cardCoverDisabled?: boolean;
|
|
79
83
|
onOpenContextImage?: (attachment: AttachmentItem) => void;
|
|
80
84
|
onCopyId: (e: React.MouseEvent, id: string) => void;
|
|
81
85
|
onToggleInProgress?: (task: TaskItem) => void;
|
|
@@ -50,7 +50,7 @@ function SortableChecklistRow({ id, item, onToggle, onRemove, }) {
|
|
|
50
50
|
: "Mark checklist item complete", children: item.isCompleted ? _jsx(Check, { size: 14, strokeWidth: 2.1 }) : null }), _jsx("span", { className: `${formStyles.checklistItemText} ${item.isCompleted ? formStyles.checklistItemTextCompleted : ""}`.trim(), children: item.title }), _jsx("button", { type: "button", className: formStyles.checklistRemoveBtn, onClick: onRemove, title: "Remove checklist item", "aria-label": "Remove checklist item", children: _jsx(X, { size: 15, strokeWidth: 1.9 }) })] }));
|
|
51
51
|
}
|
|
52
52
|
export function TaskForm(props) {
|
|
53
|
-
const { editingTaskId, initialActivityEntryId, title, description, category, type, priority, complexity, manualComplexityEnabled = false, assignee, scheduledDate, dueDate, checklistItems, comments, newCommentText, contextFiles, currentWorkspaceId, currentActorId, apiBaseUrl, runtimeMode = 'local', showImageReviews = false, descriptionFocused, showMarkdownHelp, checklistEnabled = true, formTaxonomies, onTaxonomyChange, onOpenSettings, categories, types, priorities, taxonomyDisplayLabels, assigneeOptions, taxonomies, workstreams = [], initiatives = [], copiedId, onTitleChange, onTitleDraftChange, onDescriptionChange, onDescriptionDraftChange, onCategoryChange, onTypeChange, onPriorityChange, onComplexityChange, onAssigneeChange, onScheduledDateChange, onDueDateChange, onChecklistItemsChange, onNewCommentTextChange, onDescriptionFocusedChange, onShowMarkdownHelpChange, onSubmit, onAddComment, onAddContextFile, onRemoveContextFile, onUpdateContextCaption, onOpenContextImage, onCopyId, onToggleInProgress, onToggleReview, onToggleComplete, onToggleCancel, onSetStatus, onArchiveTask, onUnarchive, taskReferences, currentTask, commentsEndRef, } = props;
|
|
53
|
+
const { editingTaskId, initialActivityEntryId, title, description, category, type, priority, complexity, manualComplexityEnabled = false, assignee, scheduledDate, dueDate, checklistItems, comments, newCommentText, contextFiles, currentWorkspaceId, descriptionImageDraftId, currentActorId, apiBaseUrl, runtimeMode = 'local', showImageReviews = false, descriptionFocused, showMarkdownHelp, checklistEnabled = true, formTaxonomies, onTaxonomyChange, onOpenSettings, categories, types, priorities, taxonomyDisplayLabels, assigneeOptions, taxonomies, workstreams = [], initiatives = [], copiedId, onTitleChange, onTitleDraftChange, onDescriptionChange, onDescriptionDraftChange, onCategoryChange, onTypeChange, onPriorityChange, onComplexityChange, onAssigneeChange, onScheduledDateChange, onDueDateChange, onChecklistItemsChange, onNewCommentTextChange, onDescriptionFocusedChange, onShowMarkdownHelpChange, onSubmit, onAddComment, onDescriptionImageUploadStart, onAddContextFile, onRemoveContextFile, onUpdateContextCaption, onSetCardCover, cardCoverDisabled, onOpenContextImage, onCopyId, onToggleInProgress, onToggleReview, onToggleComplete, onToggleCancel, onSetStatus, onArchiveTask, onUnarchive, taskReferences, currentTask, commentsEndRef, } = props;
|
|
54
54
|
const emitTitleDraftChange = onTitleDraftChange || onTitleChange;
|
|
55
55
|
const emitDescriptionDraftChange = onDescriptionDraftChange || onDescriptionChange;
|
|
56
56
|
const currentTaskReferenceLabel = getTaskReferenceLabel(currentTask);
|
|
@@ -66,6 +66,7 @@ export function TaskForm(props) {
|
|
|
66
66
|
descriptionImageGenerationRef.current += 1;
|
|
67
67
|
}
|
|
68
68
|
const [descriptionImageUploading, setDescriptionImageUploading] = React.useState(false);
|
|
69
|
+
const descriptionImageUploadRef = React.useRef(null);
|
|
69
70
|
const [descriptionImageError, setDescriptionImageError] = React.useState(null);
|
|
70
71
|
React.useLayoutEffect(() => {
|
|
71
72
|
const taskChanged = textDraftOwnerRef.current !== editingTaskId;
|
|
@@ -80,6 +81,7 @@ export function TaskForm(props) {
|
|
|
80
81
|
textDraftOwnerRef.current = editingTaskId;
|
|
81
82
|
}, [description, editingTaskId, title]);
|
|
82
83
|
React.useEffect(() => {
|
|
84
|
+
descriptionImageUploadRef.current = null;
|
|
83
85
|
setDescriptionImageUploading(false);
|
|
84
86
|
setDescriptionImageError(null);
|
|
85
87
|
return () => {
|
|
@@ -260,14 +262,11 @@ export function TaskForm(props) {
|
|
|
260
262
|
window.requestAnimationFrame(() => checklistAddTriggerRef.current?.focus());
|
|
261
263
|
}
|
|
262
264
|
};
|
|
263
|
-
const
|
|
264
|
-
if (files.length === 0 || descriptionImageUploading)
|
|
265
|
-
return;
|
|
265
|
+
const performDescriptionImageUpload = async (files, selectionStart, selectionEnd) => {
|
|
266
266
|
const uploadGeneration = descriptionImageGenerationRef.current;
|
|
267
267
|
const uploadOwnerId = editingTaskId;
|
|
268
268
|
const uploadIsCurrent = () => descriptionImageGenerationRef.current === uploadGeneration &&
|
|
269
269
|
descriptionImageOwnerRef.current === descriptionImageOwnerKey;
|
|
270
|
-
setDescriptionImageUploading(true);
|
|
271
270
|
setDescriptionImageError(null);
|
|
272
271
|
const uploadedReferences = [];
|
|
273
272
|
let failedCount = 0;
|
|
@@ -283,6 +282,12 @@ export function TaskForm(props) {
|
|
|
283
282
|
ownerType: "task",
|
|
284
283
|
ownerId: uploadOwnerId,
|
|
285
284
|
workspaceId: currentWorkspaceId,
|
|
285
|
+
...(!uploadOwnerId && descriptionImageDraftId
|
|
286
|
+
? {
|
|
287
|
+
draftUploadId: descriptionImageDraftId,
|
|
288
|
+
uploadPurpose: "task-description-draft",
|
|
289
|
+
}
|
|
290
|
+
: {}),
|
|
286
291
|
});
|
|
287
292
|
if (!uploadIsCurrent())
|
|
288
293
|
return;
|
|
@@ -338,7 +343,27 @@ export function TaskForm(props) {
|
|
|
338
343
|
: "The images could not be added.");
|
|
339
344
|
setDescriptionImageError(failureMessage);
|
|
340
345
|
}
|
|
341
|
-
|
|
346
|
+
};
|
|
347
|
+
const addDescriptionImages = (files, selectionStart, selectionEnd) => {
|
|
348
|
+
if (files.length === 0 || descriptionImageUploadRef.current) {
|
|
349
|
+
return descriptionImageUploadRef.current || Promise.resolve();
|
|
350
|
+
}
|
|
351
|
+
setDescriptionImageUploading(true);
|
|
352
|
+
const upload = performDescriptionImageUpload(files, selectionStart, selectionEnd);
|
|
353
|
+
descriptionImageUploadRef.current = upload;
|
|
354
|
+
onDescriptionImageUploadStart?.(upload);
|
|
355
|
+
void upload.then(() => {
|
|
356
|
+
if (descriptionImageUploadRef.current !== upload)
|
|
357
|
+
return;
|
|
358
|
+
descriptionImageUploadRef.current = null;
|
|
359
|
+
setDescriptionImageUploading(false);
|
|
360
|
+
}, () => {
|
|
361
|
+
if (descriptionImageUploadRef.current !== upload)
|
|
362
|
+
return;
|
|
363
|
+
descriptionImageUploadRef.current = null;
|
|
364
|
+
setDescriptionImageUploading(false);
|
|
365
|
+
});
|
|
366
|
+
return upload;
|
|
342
367
|
};
|
|
343
368
|
const getDescriptionClipboardImages = (dataTransfer) => Array.from(dataTransfer.items)
|
|
344
369
|
.filter((item) => item.kind === "file" &&
|
|
@@ -855,7 +880,7 @@ export function TaskForm(props) {
|
|
|
855
880
|
.map((entry, entryIndex) => ({
|
|
856
881
|
...entry,
|
|
857
882
|
order: entryIndex,
|
|
858
|
-
}))) }, item.id || `checklist-${index}`))) }) }))] }))] }))] }), _jsxs("div", { children: [_jsx(React.Suspense, { fallback: null, children: _jsx(DeferredTaskContextUpload, { taskId: editingTaskId, taskReferenceLabel: currentTaskReferenceLabel, workspaceId: currentWorkspaceId, apiBaseUrl: apiBaseUrl, showImageReviews: showImageReviews && Boolean(currentTask), contextFiles: contextFiles, onAddContextFile: onAddContextFile, onRemoveContextFile: onRemoveContextFile, onUpdateContextCaption: onUpdateContextCaption }) }), _jsx("div", { className: `${formStyles.taskFormLifecycle} ${formStyles.taskFormMetaDivider}`, children: _jsx("div", { className: formStyles.taskFormMetaGrid, children: currentTask && (_jsxs(_Fragment, { children: [_jsxs("div", { className: formStyles.taskFormDateRow, children: [_jsx("span", { className: formStyles.taskFormDateLabel, children: t("taskForm.createdLabel") }), _jsxs("span", { className: formStyles.taskFormMetaStack, children: [_jsx("span", { className: formStyles.taskFormDateValue, children: createdLabel || t("taskForm.emptyValue") }), _jsx("span", { className: formStyles.taskFormMetaActor, children: createdByLabel
|
|
883
|
+
}))) }, item.id || `checklist-${index}`))) }) }))] }))] }))] }), _jsxs("div", { children: [_jsx(React.Suspense, { fallback: null, children: _jsx(DeferredTaskContextUpload, { taskId: editingTaskId, taskReferenceLabel: currentTaskReferenceLabel, workspaceId: currentWorkspaceId, apiBaseUrl: apiBaseUrl, showImageReviews: showImageReviews && Boolean(currentTask), contextFiles: contextFiles, onAddContextFile: onAddContextFile, onRemoveContextFile: onRemoveContextFile, onUpdateContextCaption: onUpdateContextCaption, cardCoverAssetId: currentTask?.cardCoverAssetId, onSetCardCover: onSetCardCover, cardCoverDisabled: cardCoverDisabled }) }), _jsx("div", { className: `${formStyles.taskFormLifecycle} ${formStyles.taskFormMetaDivider}`, children: _jsx("div", { className: formStyles.taskFormMetaGrid, children: currentTask && (_jsxs(_Fragment, { children: [_jsxs("div", { className: formStyles.taskFormDateRow, children: [_jsx("span", { className: formStyles.taskFormDateLabel, children: t("taskForm.createdLabel") }), _jsxs("span", { className: formStyles.taskFormMetaStack, children: [_jsx("span", { className: formStyles.taskFormDateValue, children: createdLabel || t("taskForm.emptyValue") }), _jsx("span", { className: formStyles.taskFormMetaActor, children: createdByLabel
|
|
859
884
|
? `by ${createdByLabel}`
|
|
860
885
|
: t("taskForm.emptyValue") })] })] }), _jsxs("div", { className: formStyles.taskFormDateRow, children: [_jsx("span", { className: formStyles.taskFormDateLabel, children: t("taskForm.updatedLabel") }), _jsxs("span", { className: formStyles.taskFormMetaStack, children: [_jsx("span", { className: formStyles.taskFormDateValue, children: updatedLabel || t("taskForm.emptyValue") }), _jsx("span", { className: formStyles.taskFormMetaActor, children: updatedByLabel
|
|
861
886
|
? `by ${updatedByLabel}`
|
|
@@ -1,47 +1,56 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect, useState } from 'react';
|
|
3
3
|
import { Image, Loader2, MessageSquareText } from 'lucide-react';
|
|
4
4
|
import { fetchTaskforceApi } from '../../utils/taskforceApiClient';
|
|
5
5
|
import { dispatchOpenAnnotatedAttachment } from '../../utils/annotatedAttachments';
|
|
6
|
+
import { formatDate } from '../../utils/formatting';
|
|
6
7
|
import styles from './TaskImageReviews.module.css';
|
|
7
8
|
function reviewTitle(review) {
|
|
8
9
|
return String(review.title || '').trim() || review.image?.displayName || 'Image review';
|
|
9
10
|
}
|
|
10
11
|
export function TaskImageReviews({ taskId, taskReferenceLabel, workspaceId, apiBaseUrl }) {
|
|
11
12
|
const [reviews, setReviews] = useState(null);
|
|
13
|
+
const [loadError, setLoadError] = useState(false);
|
|
12
14
|
useEffect(() => {
|
|
13
15
|
let active = true;
|
|
14
16
|
setReviews(null);
|
|
17
|
+
setLoadError(false);
|
|
15
18
|
const params = new URLSearchParams({ workspaceId, taskId });
|
|
16
19
|
void fetchTaskforceApi(`/api/taskforce/annotated-attachments/sessions?${params.toString()}`, {
|
|
17
20
|
credentials: 'include',
|
|
18
21
|
}, apiBaseUrl)
|
|
19
|
-
.then(async (response) =>
|
|
22
|
+
.then(async (response) => {
|
|
23
|
+
if (!response.ok)
|
|
24
|
+
throw new Error('Failed to load image reviews.');
|
|
25
|
+
return response.json();
|
|
26
|
+
})
|
|
20
27
|
.then((data) => {
|
|
21
28
|
if (active)
|
|
22
29
|
setReviews(Array.isArray(data?.sessions) ? data.sessions : []);
|
|
23
30
|
})
|
|
24
31
|
.catch(() => {
|
|
25
|
-
if (active)
|
|
32
|
+
if (active) {
|
|
26
33
|
setReviews([]);
|
|
34
|
+
setLoadError(true);
|
|
35
|
+
}
|
|
27
36
|
});
|
|
28
37
|
return () => { active = false; };
|
|
29
38
|
}, [apiBaseUrl, taskId, workspaceId]);
|
|
30
|
-
if (reviews !== null && reviews.length === 0)
|
|
39
|
+
if (reviews !== null && reviews.length === 0 && !loadError)
|
|
31
40
|
return null;
|
|
32
|
-
return (
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
41
|
+
return (_jsx("section", { className: styles.group, "aria-label": "Image reviews", children: reviews === null ? (_jsxs("div", { className: styles.loading, "aria-live": "polite", children: [_jsx(Loader2, { size: 14 }), " Loading image reviews"] })) : loadError ? (_jsx("div", { className: styles.loading, role: "status", children: "Unable to load image reviews." })) : (_jsx("div", { className: styles.list, children: reviews.map((review) => {
|
|
42
|
+
const image = review.image;
|
|
43
|
+
const markerCount = review.annotations.length;
|
|
44
|
+
const canOpen = Boolean(image?.assetId && image.apiUrl);
|
|
45
|
+
return (_jsxs("button", { type: "button", className: styles.review, disabled: !canOpen, onClick: () => {
|
|
46
|
+
if (!image)
|
|
47
|
+
return;
|
|
48
|
+
dispatchOpenAnnotatedAttachment({
|
|
49
|
+
assetId: image.assetId,
|
|
50
|
+
path: image.apiUrl,
|
|
51
|
+
displayName: image.displayName,
|
|
52
|
+
referenceLabel: image.referenceLabel || undefined,
|
|
53
|
+
}, { taskId, taskReferenceLabel, sessionId: review.id });
|
|
54
|
+
}, children: [_jsx("span", { className: styles.icon, children: _jsx(Image, { size: 14 }) }), _jsxs("span", { className: styles.copy, children: [_jsx("span", { className: styles.kindLabel, children: "Image review session" }), _jsx("span", { className: `${styles.title} tf-heading-card`, children: reviewTitle(review) }), _jsxs("span", { className: "tf-text-meta", children: [[image?.referenceLabel, image?.displayName].filter(Boolean).join(' · ') || 'Image', review.updatedAt ? ` · Updated ${formatDate(review.updatedAt, { month: 'short', day: 'numeric', year: 'numeric' })}` : ''] }), _jsxs("span", { className: "tf-text-meta", children: [markerCount, " ", markerCount === 1 ? 'marker' : 'markers'] })] }), _jsx(MessageSquareText, { className: styles.openIcon, size: 14, "aria-hidden": "true" })] }, review.id));
|
|
55
|
+
}) })) }));
|
|
47
56
|
}
|
|
@@ -64,6 +64,11 @@ interface TaskKanbanProps {
|
|
|
64
64
|
onAssignTaskToWorkstream?: (taskId: string, workstreamId: string | null) => boolean | void | Promise<boolean | void>;
|
|
65
65
|
onAssignWorkstreamToInitiative?: (workstreamId: string, initiativeId: string | null) => boolean | void | Promise<boolean | void>;
|
|
66
66
|
showTaskCardStatusLabel?: boolean;
|
|
67
|
+
showTaskCardDescription?: boolean;
|
|
68
|
+
showTaskCardAttachments?: boolean;
|
|
69
|
+
showTaskCardChecklistProgress?: boolean;
|
|
70
|
+
showTaskCardLatestActivity?: boolean;
|
|
71
|
+
tintTaskCardActivityBackground?: boolean;
|
|
67
72
|
workstreams?: WorkstreamItem[];
|
|
68
73
|
initiatives?: InitiativeItem[];
|
|
69
74
|
workspaceId?: string | null;
|
|
@@ -71,5 +76,5 @@ interface TaskKanbanProps {
|
|
|
71
76
|
selectedDeletedRecordIds?: Set<string>;
|
|
72
77
|
onDeletedSelectionChange?: (deletedRecordId: string, selected: boolean) => void;
|
|
73
78
|
}
|
|
74
|
-
export declare function TaskKanban({ tasks, columns: kanbanColumns, groupBy, searchQuery, copiedId, taxonomies, types, priorities, assigneeOptions, onUpdateTask, onTaskClick, taskReferences, onCopyId, onToggleInProgress, onToggleReview, onToggleComplete, onToggleCancel, onSetStatus, onArchiveTask, onUnarchive, onDelete, allTasks, onAddTaskToColumn, emptyColumnMode, filterCategories, filterTypes, filterPriorities, filterStatus, filterAssignees, filtersReady, scheduleFilteredTaskIds, categories, compressed, readOnlyMode, recentlyChangedTaskIds, scheduleDates, onScheduleDaySelected, persistedScrollLeft, onScrollLeftChange, sortBy, sortOrder, planningDropTargets, onAssignTaskToWorkstream, onAssignWorkstreamToInitiative, showTaskCardStatusLabel, workstreams, initiatives, workspaceId, deletedTaskRecordByTaskId, selectedDeletedRecordIds, onDeletedSelectionChange, }: TaskKanbanProps): import("react/jsx-runtime").JSX.Element;
|
|
79
|
+
export declare function TaskKanban({ tasks, columns: kanbanColumns, groupBy, searchQuery, copiedId, taxonomies, types, priorities, assigneeOptions, onUpdateTask, onTaskClick, taskReferences, onCopyId, onToggleInProgress, onToggleReview, onToggleComplete, onToggleCancel, onSetStatus, onArchiveTask, onUnarchive, onDelete, allTasks, onAddTaskToColumn, emptyColumnMode, filterCategories, filterTypes, filterPriorities, filterStatus, filterAssignees, filtersReady, scheduleFilteredTaskIds, categories, compressed, readOnlyMode, recentlyChangedTaskIds, scheduleDates, onScheduleDaySelected, persistedScrollLeft, onScrollLeftChange, sortBy, sortOrder, planningDropTargets, onAssignTaskToWorkstream, onAssignWorkstreamToInitiative, showTaskCardStatusLabel, showTaskCardDescription, showTaskCardAttachments, showTaskCardChecklistProgress, showTaskCardLatestActivity, tintTaskCardActivityBackground, workstreams, initiatives, workspaceId, deletedTaskRecordByTaskId, selectedDeletedRecordIds, onDeletedSelectionChange, }: TaskKanbanProps): import("react/jsx-runtime").JSX.Element;
|
|
75
80
|
export {};
|