@taskforcehq/taskforce 0.3.168
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/README.md +241 -0
- package/dist/Taskforce.d.ts +3 -0
- package/dist/Taskforce.js +3 -0
- package/dist/Taskforce.module.css +7587 -0
- package/dist/TaskforceCore.CategoryFallback.test.d.ts +1 -0
- package/dist/TaskforceCore.CategoryFallback.test.js +98 -0
- package/dist/TaskforceCore.d.ts +12 -0
- package/dist/TaskforceCore.js +729 -0
- package/dist/TaskforceCore.test.d.ts +1 -0
- package/dist/TaskforceCore.test.js +2132 -0
- package/dist/TaskforceScreenshot.d.ts +11 -0
- package/dist/TaskforceScreenshot.js +113 -0
- package/dist/TaskforceWidget.d.ts +6 -0
- package/dist/TaskforceWidget.js +101 -0
- package/dist/TaskforceWidget.test.d.ts +1 -0
- package/dist/TaskforceWidget.test.js +92 -0
- package/dist/UnsavedChangesRelaxed.test.d.ts +1 -0
- package/dist/UnsavedChangesRelaxed.test.js +16 -0
- package/dist/__tests__/localizationCatalogs.test.d.ts +1 -0
- package/dist/__tests__/localizationCatalogs.test.js +37 -0
- package/dist/__tests__/planParser.test.d.ts +1 -0
- package/dist/__tests__/planParser.test.js +183 -0
- package/dist/__tests__/releaseVersion.test.d.ts +1 -0
- package/dist/__tests__/releaseVersion.test.js +32 -0
- package/dist/__tests__/structuredCommentValidation.test.d.ts +1 -0
- package/dist/__tests__/structuredCommentValidation.test.js +31 -0
- package/dist/__tests__/structuredDocValidation.test.d.ts +1 -0
- package/dist/__tests__/structuredDocValidation.test.js +30 -0
- package/dist/__tests__/templateEngine.test.d.ts +1 -0
- package/dist/__tests__/templateEngine.test.js +150 -0
- package/dist/__tests__/templates.test.d.ts +1 -0
- package/dist/__tests__/templates.test.js +45 -0
- package/dist/__tests__/workflowDocumentFixtures.test.d.ts +1 -0
- package/dist/__tests__/workflowDocumentFixtures.test.js +78 -0
- package/dist/__tests__/workflowExportMatrix.test.d.ts +1 -0
- package/dist/__tests__/workflowExportMatrix.test.js +113 -0
- package/dist/__tests__/workflowExportSnapshots.test.d.ts +1 -0
- package/dist/__tests__/workflowExportSnapshots.test.js +28 -0
- package/dist/__tests__/workflowGeneration.test.d.ts +1 -0
- package/dist/__tests__/workflowGeneration.test.js +12 -0
- package/dist/__tests__/workflowSimulation.test.d.ts +1 -0
- package/dist/__tests__/workflowSimulation.test.js +113 -0
- package/dist/__tests__/workflowV2Policy.test.d.ts +1 -0
- package/dist/__tests__/workflowV2Policy.test.js +80 -0
- package/dist/api.d.ts +30 -0
- package/dist/api.js +85 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +217 -0
- package/dist/compat/priorityCompat.d.ts +2 -0
- package/dist/compat/priorityCompat.js +24 -0
- package/dist/components/features/DocumentGenerateModal.d.ts +9 -0
- package/dist/components/features/DocumentGenerateModal.js +114 -0
- package/dist/components/features/DocumentIndex.d.ts +19 -0
- package/dist/components/features/DocumentIndex.js +51 -0
- package/dist/components/features/DocumentViewer.d.ts +9 -0
- package/dist/components/features/DocumentViewer.js +253 -0
- package/dist/components/features/DocumentWorkspace.d.ts +21 -0
- package/dist/components/features/DocumentWorkspace.js +88 -0
- package/dist/components/features/TaskSettings.d.ts +209 -0
- package/dist/components/features/TaskSettings.js +500 -0
- package/dist/components/features/TaskSettings.test.d.ts +1 -0
- package/dist/components/features/TaskSettings.test.js +308 -0
- package/dist/components/features/settings/CategoryManager.d.ts +19 -0
- package/dist/components/features/settings/CategoryManager.js +113 -0
- package/dist/components/features/settings/TaxonomyEditor.d.ts +8 -0
- package/dist/components/features/settings/TaxonomyEditor.js +98 -0
- package/dist/components/features/settings/TaxonomyManager 2.d.ts +52 -0
- package/dist/components/features/settings/TaxonomyManager 2.js +75 -0
- package/dist/components/features/settings/TaxonomyManager.d.ts +54 -0
- package/dist/components/features/settings/TaxonomyManager.js +77 -0
- package/dist/components/features/settings/TypeManager.d.ts +10 -0
- package/dist/components/features/settings/TypeManager.js +50 -0
- package/dist/components/features/settings/WorkflowEditorPrototype.d.ts +15 -0
- package/dist/components/features/settings/WorkflowEditorPrototype.js +245 -0
- package/dist/components/task/TaskActionHeader.d.ts +20 -0
- package/dist/components/task/TaskActionHeader.js +13 -0
- package/dist/components/task/TaskCard.d.ts +47 -0
- package/dist/components/task/TaskCard.js +326 -0
- package/dist/components/task/TaskCard.test.d.ts +1 -0
- package/dist/components/task/TaskCard.test.js +95 -0
- package/dist/components/task/TaskContextUpload.d.ts +12 -0
- package/dist/components/task/TaskContextUpload.js +393 -0
- package/dist/components/task/TaskContextUpload.test.d.ts +1 -0
- package/dist/components/task/TaskContextUpload.test.js +189 -0
- package/dist/components/task/TaskForm.d.ts +105 -0
- package/dist/components/task/TaskForm.js +241 -0
- package/dist/components/task/TaskForm.test.d.ts +1 -0
- package/dist/components/task/TaskForm.test.js +288 -0
- package/dist/components/task/TaskKanban 2.d.ts +76 -0
- package/dist/components/task/TaskKanban 2.js +1004 -0
- package/dist/components/task/TaskKanban.d.ts +76 -0
- package/dist/components/task/TaskKanban.empty-column-drop.test.d.ts +1 -0
- package/dist/components/task/TaskKanban.empty-column-drop.test.js +66 -0
- package/dist/components/task/TaskKanban.js +1026 -0
- package/dist/components/task/TaskKanban.test.d.ts +1 -0
- package/dist/components/task/TaskKanban.test.js +46 -0
- package/dist/components/task/TaskList.d.ts +74 -0
- package/dist/components/task/TaskList.js +38 -0
- package/dist/components/task/TaskList.test.d.ts +1 -0
- package/dist/components/task/TaskList.test.js +270 -0
- package/dist/components/task/TaskScreenshotSection.d.ts +15 -0
- package/dist/components/task/TaskScreenshotSection.js +22 -0
- package/dist/components/ui/LevelSelector.d.ts +13 -0
- package/dist/components/ui/LevelSelector.js +25 -0
- package/dist/components/ui/LevelSelector.test.d.ts +1 -0
- package/dist/components/ui/LevelSelector.test.js +55 -0
- package/dist/components/ui/Markdown.d.ts +6 -0
- package/dist/components/ui/Markdown.js +94 -0
- package/dist/components/ui/Markdown.test.d.ts +1 -0
- package/dist/components/ui/Markdown.test.js +38 -0
- package/dist/components/ui/Modal.d.ts +16 -0
- package/dist/components/ui/Modal.js +49 -0
- package/dist/components/ui/MultiSelectFilter.d.ts +10 -0
- package/dist/components/ui/MultiSelectFilter.js +71 -0
- package/dist/components/ui/MultiSelectFilter.test.d.ts +1 -0
- package/dist/components/ui/MultiSelectFilter.test.js +74 -0
- package/dist/components/ui/TaxonomyDropdown.d.ts +17 -0
- package/dist/components/ui/TaxonomyDropdown.js +145 -0
- package/dist/components/ui/TaxonomyDropdown.test.d.ts +1 -0
- package/dist/components/ui/TaxonomyDropdown.test.js +130 -0
- package/dist/components/views/StandaloneLayout 2.d.ts +8 -0
- package/dist/components/views/StandaloneLayout 2.js +1660 -0
- package/dist/components/views/StandaloneLayout.d.ts +8 -0
- package/dist/components/views/StandaloneLayout.js +2117 -0
- package/dist/components/views/WidgetView.d.ts +8 -0
- package/dist/components/views/WidgetView.js +221 -0
- package/dist/config/envSchema.d.ts +28 -0
- package/dist/config/envSchema.js +374 -0
- package/dist/config/envSchema.test.d.ts +1 -0
- package/dist/config/envSchema.test.js +97 -0
- package/dist/config/surfaceBase.d.ts +2 -0
- package/dist/config/surfaceBase.js +8 -0
- package/dist/core/BulkUpdateFieldsPreview.test.d.ts +1 -0
- package/dist/core/BulkUpdateFieldsPreview.test.js +62 -0
- package/dist/core/CompletedAt.test.d.ts +1 -0
- package/dist/core/CompletedAt.test.js +44 -0
- package/dist/core/CreatedBy.test.d.ts +1 -0
- package/dist/core/CreatedBy.test.js +60 -0
- package/dist/core/EntitlementsPolicy.test.d.ts +1 -0
- package/dist/core/EntitlementsPolicy.test.js +145 -0
- package/dist/core/InitiativeTemplates.test.d.ts +1 -0
- package/dist/core/InitiativeTemplates.test.js +50 -0
- package/dist/core/ParentLifecycle.test.d.ts +1 -0
- package/dist/core/ParentLifecycle.test.js +98 -0
- package/dist/core/ScheduleFields.test.d.ts +1 -0
- package/dist/core/ScheduleFields.test.js +197 -0
- package/dist/core/SetupState.test.d.ts +1 -0
- package/dist/core/SetupState.test.js +113 -0
- package/dist/core/SystemAdmin.test.d.ts +1 -0
- package/dist/core/SystemAdmin.test.js +295 -0
- package/dist/core/TaskTaxonomyValidation.test.d.ts +1 -0
- package/dist/core/TaskTaxonomyValidation.test.js +64 -0
- package/dist/core/Taskforce.d.ts +1063 -0
- package/dist/core/Taskforce.ids.test.d.ts +1 -0
- package/dist/core/Taskforce.ids.test.js +168 -0
- package/dist/core/Taskforce.js +5981 -0
- package/dist/core/Taskforce.realtimeMutation.test.d.ts +1 -0
- package/dist/core/Taskforce.realtimeMutation.test.js +76 -0
- package/dist/core/WorkspaceDelete.test.d.ts +1 -0
- package/dist/core/WorkspaceDelete.test.js +140 -0
- package/dist/core/WorkspacePermissions.test.d.ts +1 -0
- package/dist/core/WorkspacePermissions.test.js +151 -0
- package/dist/core/WorkspacePlanMode.test.d.ts +1 -0
- package/dist/core/WorkspacePlanMode.test.js +104 -0
- package/dist/hooks/authGuardPolicy.d.ts +26 -0
- package/dist/hooks/authGuardPolicy.js +32 -0
- package/dist/hooks/authGuardPolicy.test.d.ts +1 -0
- package/dist/hooks/authGuardPolicy.test.js +76 -0
- package/dist/hooks/useDraggable.d.ts +12 -0
- package/dist/hooks/useDraggable.js +65 -0
- package/dist/hooks/useRealtimeSync.d.ts +24 -0
- package/dist/hooks/useRealtimeSync.js +275 -0
- package/dist/hooks/useRealtimeSync.test.d.ts +1 -0
- package/dist/hooks/useRealtimeSync.test.js +284 -0
- package/dist/hooks/useSyncOrchestrator.d.ts +164 -0
- package/dist/hooks/useSyncOrchestrator.js +1427 -0
- package/dist/hooks/useSyncOrchestrator.retry-closure.test.d.ts +1 -0
- package/dist/hooks/useSyncOrchestrator.retry-closure.test.js +367 -0
- package/dist/hooks/useTaskforce.d.ts +727 -0
- package/dist/hooks/useTaskforce.js +4396 -0
- package/dist/hooks/useTaskforce.priority-filters.test.d.ts +1 -0
- package/dist/hooks/useTaskforce.priority-filters.test.js +33 -0
- package/dist/hooks/useWorkspaceSyncController.d.ts +80 -0
- package/dist/hooks/useWorkspaceSyncController.js +598 -0
- package/dist/hooks/useWorkspaceSyncController.test.d.ts +1 -0
- package/dist/hooks/useWorkspaceSyncController.test.js +236 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +11 -0
- package/dist/localization/index.d.ts +8 -0
- package/dist/localization/index.js +81 -0
- package/dist/localization/locales/en-US.d.ts +151 -0
- package/dist/localization/locales/en-US.js +150 -0
- package/dist/localization/locales/es-419.d.ts +2 -0
- package/dist/localization/locales/es-419.js +150 -0
- package/dist/localization/locales/pt-BR.d.ts +2 -0
- package/dist/localization/locales/pt-BR.js +150 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.js +33 -0
- package/dist/mcp/optionResolution.d.ts +14 -0
- package/dist/mcp/optionResolution.js +126 -0
- package/dist/mcp/optionResolution.test.d.ts +1 -0
- package/dist/mcp/optionResolution.test.js +39 -0
- package/dist/mcp/server.d.ts +1 -0
- package/dist/mcp/server.js +1793 -0
- package/dist/mcp/structuredCommentValidation.d.ts +6 -0
- package/dist/mcp/structuredCommentValidation.js +56 -0
- package/dist/mcp/structuredDocValidation.d.ts +6 -0
- package/dist/mcp/structuredDocValidation.js +75 -0
- package/dist/migrations/billingSchemaParity.test.d.ts +1 -0
- package/dist/migrations/billingSchemaParity.test.js +46 -0
- package/dist/migrations/clientMigrations.d.ts +9 -0
- package/dist/migrations/clientMigrations.js +74 -0
- package/dist/migrations/flags.d.ts +6 -0
- package/dist/migrations/flags.js +8 -0
- package/dist/migrations/taskMigrations.d.ts +71 -0
- package/dist/migrations/taskMigrations.js +236 -0
- package/dist/migrations/taskMigrations.test.d.ts +1 -0
- package/dist/migrations/taskMigrations.test.js +34 -0
- package/dist/migrations/taskSchemaMigrations.d.ts +11 -0
- package/dist/migrations/taskSchemaMigrations.js +453 -0
- package/dist/plugins/index.d.ts +10 -0
- package/dist/plugins/index.js +10 -0
- package/dist/plugins/vite.d.ts +19 -0
- package/dist/plugins/vite.js +271 -0
- package/dist/public/android-chrome-192x192.png +0 -0
- package/dist/public/android-chrome-512x512.png +0 -0
- package/dist/public/apple-touch-icon.png +0 -0
- package/dist/public/favicon-16x16.png +0 -0
- package/dist/public/favicon-32x32.png +0 -0
- package/dist/public/favicon.ico +0 -0
- package/dist/public/favicon.png +0 -0
- package/dist/public/site.webmanifest +1 -0
- package/dist/public/taskforce.png +0 -0
- package/dist/resources/templates/WORKFLOW_V2_POLICY.md +55 -0
- package/dist/resources/templates/environments/aider.yaml +14 -0
- package/dist/resources/templates/environments/antigravity.yaml +10 -0
- package/dist/resources/templates/environments/claude.yaml +10 -0
- package/dist/resources/templates/environments/cline.yaml +10 -0
- package/dist/resources/templates/environments/codex.yaml +13 -0
- package/dist/resources/templates/environments/copilot.yaml +10 -0
- package/dist/resources/templates/environments/cursor.yaml +9 -0
- package/dist/resources/templates/environments/gemini.yaml +9 -0
- package/dist/resources/templates/environments/windsurf.yaml +10 -0
- package/dist/resources/templates/workflow-sources/README.md +9 -0
- package/dist/resources/templates/workflow-sources/workflowDocs.mjs +520 -0
- package/dist/resources/templates/workflow-sources/workflowEditorOverrides.json +1 -0
- package/dist/resources/templates/workflows/collaborate.yaml +104 -0
- package/dist/resources/templates/workflows/do.yaml +82 -0
- package/dist/resources/templates/workflows/evaluate.yaml +111 -0
- package/dist/resources/templates/workflows/execute.yaml +142 -0
- package/dist/resources/templates/workflows/plan.yaml +112 -0
- package/dist/resources/templates/workflows/review.yaml +109 -0
- package/dist/runtime/capabilities.d.ts +8 -0
- package/dist/runtime/capabilities.js +16 -0
- package/dist/security/virusScan.d.ts +16 -0
- package/dist/security/virusScan.js +83 -0
- package/dist/server/auth.d.ts +51 -0
- package/dist/server/auth.js +266 -0
- package/dist/server/auth.test.d.ts +1 -0
- package/dist/server/auth.test.js +111 -0
- package/dist/server/buildInfo.d.ts +7 -0
- package/dist/server/buildInfo.js +100 -0
- package/dist/server/buildInfo.test.d.ts +1 -0
- package/dist/server/buildInfo.test.js +29 -0
- package/dist/server/cors.d.ts +7 -0
- package/dist/server/cors.js +76 -0
- package/dist/server/cors.test.d.ts +1 -0
- package/dist/server/cors.test.js +71 -0
- package/dist/server/email.d.ts +28 -0
- package/dist/server/email.js +138 -0
- package/dist/server/email.test.d.ts +1 -0
- package/dist/server/email.test.js +113 -0
- package/dist/server/index.cookieProxy.test.d.ts +1 -0
- package/dist/server/index.cookieProxy.test.js +19 -0
- package/dist/server/index.d.ts +17 -0
- package/dist/server/index.js +757 -0
- package/dist/server/index.rateLimit.test.d.ts +1 -0
- package/dist/server/index.rateLimit.test.js +13 -0
- package/dist/server/index.test.d.ts +1 -0
- package/dist/server/index.test.js +19 -0
- package/dist/server/rateLimit.d.ts +29 -0
- package/dist/server/rateLimit.js +99 -0
- package/dist/server/rateLimit.test.d.ts +1 -0
- package/dist/server/rateLimit.test.js +107 -0
- package/dist/server/realtimeSync.auth.test.d.ts +1 -0
- package/dist/server/realtimeSync.auth.test.js +62 -0
- package/dist/server/realtimeSync.replay.test.d.ts +1 -0
- package/dist/server/realtimeSync.replay.test.js +192 -0
- package/dist/server/realtimeSync.workspaceIsolation.test.d.ts +1 -0
- package/dist/server/realtimeSync.workspaceIsolation.test.js +101 -0
- package/dist/server/realtimeSyncWs.d.ts +30 -0
- package/dist/server/realtimeSyncWs.js +257 -0
- package/dist/server/routes.billing.d.ts +15 -0
- package/dist/server/routes.billing.js +991 -0
- package/dist/server/routes.billing.test.d.ts +1 -0
- package/dist/server/routes.billing.test.js +387 -0
- package/dist/server/routes.d.ts +72 -0
- package/dist/server/routes.js +4820 -0
- package/dist/server/routes.sync.d.ts +17 -0
- package/dist/server/routes.sync.integration.test.d.ts +1 -0
- package/dist/server/routes.sync.integration.test.js +470 -0
- package/dist/server/routes.sync.js +1141 -0
- package/dist/server/routes.test.d.ts +1 -0
- package/dist/server/routes.test.js +4945 -0
- package/dist/server/runtimeMode.d.ts +4 -0
- package/dist/server/runtimeMode.js +25 -0
- package/dist/server/runtimeMode.test.d.ts +1 -0
- package/dist/server/runtimeMode.test.js +26 -0
- package/dist/server/securityHeaders.d.ts +3 -0
- package/dist/server/securityHeaders.js +25 -0
- package/dist/server/securityHeaders.test.d.ts +1 -0
- package/dist/server/securityHeaders.test.js +32 -0
- package/dist/server/smtpTransport.d.ts +21 -0
- package/dist/server/smtpTransport.js +11 -0
- package/dist/server/start.d.ts +1 -0
- package/dist/server/start.js +17 -0
- package/dist/services/formatTransformers.d.ts +29 -0
- package/dist/services/formatTransformers.js +56 -0
- package/dist/services/templateEngine.d.ts +46 -0
- package/dist/services/templateEngine.js +148 -0
- package/dist/shared/runtimeContract.d.ts +12 -0
- package/dist/shared/runtimeContract.js +23 -0
- package/dist/shared/runtimeContract.test.d.ts +1 -0
- package/dist/shared/runtimeContract.test.js +23 -0
- package/dist/soak/preflight.cli.d.ts +1 -0
- package/dist/soak/preflight.cli.js +28 -0
- package/dist/soak/preflight.d.ts +26 -0
- package/dist/soak/preflight.js +113 -0
- package/dist/soak/preflight.test.d.ts +1 -0
- package/dist/soak/preflight.test.js +39 -0
- package/dist/soak/syncSoakHarness.d.ts +6 -0
- package/dist/soak/syncSoakHarness.js +10 -0
- package/dist/storage/createDatabaseAdapter.d.ts +2 -0
- package/dist/storage/createDatabaseAdapter.js +9 -0
- package/dist/storage/databaseAdapter.d.ts +22 -0
- package/dist/storage/databaseAdapter.js +1 -0
- package/dist/storage/documentIntegrity.d.ts +28 -0
- package/dist/storage/documentIntegrity.js +103 -0
- package/dist/storage/documentPurge.d.ts +14 -0
- package/dist/storage/documentPurge.js +46 -0
- package/dist/storage/documentRegistry.d.ts +39 -0
- package/dist/storage/documentRegistry.js +115 -0
- package/dist/storage/integritySchedule.d.ts +17 -0
- package/dist/storage/integritySchedule.js +62 -0
- package/dist/storage/objectStorage.d.ts +20 -0
- package/dist/storage/objectStorage.js +15 -0
- package/dist/storage/objectStorageClient.d.ts +18 -0
- package/dist/storage/objectStorageClient.js +301 -0
- package/dist/storage/objectStorageConfig.d.ts +2 -0
- package/dist/storage/objectStorageConfig.js +45 -0
- package/dist/storage/postgresAdapter.d.ts +20 -0
- package/dist/storage/postgresAdapter.js +204 -0
- package/dist/storage/postgresWorker.d.ts +1 -0
- package/dist/storage/postgresWorker.js +110 -0
- package/dist/storage/providerConfig.d.ts +6 -0
- package/dist/storage/providerConfig.js +11 -0
- package/dist/storage/sqliteAdapter.d.ts +14 -0
- package/dist/storage/sqliteAdapter.js +28 -0
- package/dist/storage/taskAssetStore.d.ts +56 -0
- package/dist/storage/taskAssetStore.js +297 -0
- package/dist/sync/cloudSyncApi.d.ts +47 -0
- package/dist/sync/cloudSyncApi.js +138 -0
- package/dist/sync/cloudSyncApi.test.d.ts +1 -0
- package/dist/sync/cloudSyncApi.test.js +54 -0
- package/dist/sync/encryptionService.d.ts +11 -0
- package/dist/sync/encryptionService.js +61 -0
- package/dist/sync/encryptionService.test.d.ts +1 -0
- package/dist/sync/encryptionService.test.js +52 -0
- package/dist/sync/realtimeFeature.d.ts +6 -0
- package/dist/sync/realtimeFeature.js +20 -0
- package/dist/sync/realtimeFeature.test.d.ts +1 -0
- package/dist/sync/realtimeFeature.test.js +30 -0
- package/dist/sync/realtimeReconcile.d.ts +30 -0
- package/dist/sync/realtimeReconcile.js +90 -0
- package/dist/sync/realtimeReconcile.test.d.ts +1 -0
- package/dist/sync/realtimeReconcile.test.js +43 -0
- package/dist/sync/syncService.d.ts +96 -0
- package/dist/sync/syncService.js +423 -0
- package/dist/sync/syncService.test.d.ts +1 -0
- package/dist/sync/syncService.test.js +484 -0
- package/dist/sync/workspaceSyncModel.d.ts +61 -0
- package/dist/sync/workspaceSyncModel.js +136 -0
- package/dist/sync/workspaceSyncModel.test.d.ts +1 -0
- package/dist/sync/workspaceSyncModel.test.js +73 -0
- package/dist/test/setup.d.ts +1 -0
- package/dist/test/setup.js +15 -0
- package/dist/types.d.ts +157 -0
- package/dist/types.js +41 -0
- package/dist/ui/assets/RussoOne-Regular-C3BxZIj7.ttf +0 -0
- package/dist/ui/assets/index-0W5vyCpn.css +1 -0
- package/dist/ui/assets/index-MCZuNNfn.js +23 -0
- package/dist/ui/assets/logo_white_01-0Vx-iIIv.png +0 -0
- package/dist/ui/assets/taskforce-BxLPokNB.png +0 -0
- package/dist/ui/assets/vendor-dnd-BI1K77C1.js +5 -0
- package/dist/ui/assets/vendor-icons-ZFG3SGwo.js +1 -0
- package/dist/ui/assets/vendor-markdown-CKYkQHfj.js +29 -0
- package/dist/ui/assets/vendor-react-DdIDsh7f.js +9 -0
- package/dist/ui/assets/vendor-router-BtiNU7Dl.js +3 -0
- package/dist/ui/branding/logos/logo_black_01.png +0 -0
- package/dist/ui/branding/logos/logo_black_02.png +0 -0
- package/dist/ui/branding/logos/logo_white_01.png +0 -0
- package/dist/ui/branding/logos/logo_white_02.png +0 -0
- package/dist/ui/favicon/android-chrome-192x192.png +0 -0
- package/dist/ui/favicon/android-chrome-512x512.png +0 -0
- package/dist/ui/favicon/apple-touch-icon.png +0 -0
- package/dist/ui/favicon/favicon-16x16.png +0 -0
- package/dist/ui/favicon/favicon-32x32.png +0 -0
- package/dist/ui/favicon/favicon.ico +0 -0
- package/dist/ui/favicon/favicon.png +0 -0
- package/dist/ui/favicon/site.webmanifest +1 -0
- package/dist/ui/fonts/RussoOne-Regular.ttf +0 -0
- package/dist/ui/images/taskforce.png +0 -0
- package/dist/ui/index.html +19 -0
- package/dist/utils/checklistMarkdown.d.ts +9 -0
- package/dist/utils/checklistMarkdown.js +46 -0
- package/dist/utils/constants.d.ts +21 -0
- package/dist/utils/constants.icons.test.d.ts +1 -0
- package/dist/utils/constants.icons.test.js +40 -0
- package/dist/utils/constants.js +100 -0
- package/dist/utils/contextFiles.d.ts +8 -0
- package/dist/utils/contextFiles.js +54 -0
- package/dist/utils/formatting.d.ts +5 -0
- package/dist/utils/formatting.js +30 -0
- package/dist/utils/planParser.d.ts +22 -0
- package/dist/utils/planParser.js +151 -0
- package/dist/utils/taskDragZones.d.ts +8 -0
- package/dist/utils/taskDragZones.js +14 -0
- package/dist/utils/taskDragZones.test.d.ts +1 -0
- package/dist/utils/taskDragZones.test.js +14 -0
- package/dist/utils/taskHierarchy.d.ts +4 -0
- package/dist/utils/taskHierarchy.js +69 -0
- package/dist/utils/taskHierarchy.test.d.ts +1 -0
- package/dist/utils/taskHierarchy.test.js +38 -0
- package/dist/utils/taskParenting.d.ts +3 -0
- package/dist/utils/taskParenting.js +24 -0
- package/dist/utils/taskParenting.test.d.ts +1 -0
- package/dist/utils/taskParenting.test.js +21 -0
- package/dist/utils/taskRelations.d.ts +6 -0
- package/dist/utils/taskRelations.js +24 -0
- package/dist/utils/taskRelations.test.d.ts +1 -0
- package/dist/utils/taskRelations.test.js +34 -0
- package/dist/utils/taskUtils.d.ts +2 -0
- package/dist/utils/taskUtils.js +20 -0
- package/dist/utils/taskforceApiClient.d.ts +7 -0
- package/dist/utils/taskforceApiClient.js +42 -0
- package/dist/utils/workspaceIdentity.d.ts +8 -0
- package/dist/utils/workspaceIdentity.js +47 -0
- package/dist/utils/workspaceIdentity.test.d.ts +1 -0
- package/dist/utils/workspaceIdentity.test.js +32 -0
- package/dist/utils/workspaceLifecycle.d.ts +26 -0
- package/dist/utils/workspaceLifecycle.js +69 -0
- package/dist/utils/workspaceLifecycle.test.d.ts +1 -0
- package/dist/utils/workspaceLifecycle.test.js +64 -0
- package/package.json +133 -0
- package/scripts/check-compat-boundaries.js +48 -0
- package/scripts/check-env.ts +24 -0
- package/scripts/check-localization-strings.mjs +49 -0
- package/scripts/check-runtime-boundaries.mjs +44 -0
- package/scripts/debug-global.mjs +34 -0
- package/scripts/debug-server.mjs +36 -0
- package/scripts/export-sqlite-to-postgres.mjs +125 -0
- package/scripts/generate-env-example.ts +8 -0
- package/scripts/generate-workflow-templates.mjs +134 -0
- package/scripts/mcp-stdio-adapter.mjs +160 -0
- package/scripts/postinstall.js +60 -0
- package/scripts/release-version-lib.mjs +88 -0
- package/scripts/release-version.mjs +72 -0
- package/scripts/run-dev-proxy.sh +49 -0
- package/scripts/run-e2e-realtime.sh +16 -0
- package/scripts/run-smoke.sh +23 -0
- package/scripts/run-soak.sh +29 -0
- package/scripts/test-global.js +143 -0
- package/scripts/update-homebrew-formula.sh +38 -0
- package/src/resources/templates/WORKFLOW_V2_POLICY.md +55 -0
- package/src/resources/templates/environments/aider.yaml +14 -0
- package/src/resources/templates/environments/antigravity.yaml +10 -0
- package/src/resources/templates/environments/claude.yaml +10 -0
- package/src/resources/templates/environments/cline.yaml +10 -0
- package/src/resources/templates/environments/codex.yaml +13 -0
- package/src/resources/templates/environments/copilot.yaml +10 -0
- package/src/resources/templates/environments/cursor.yaml +9 -0
- package/src/resources/templates/environments/gemini.yaml +9 -0
- package/src/resources/templates/environments/windsurf.yaml +10 -0
- package/src/resources/templates/workflow-sources/README.md +9 -0
- package/src/resources/templates/workflow-sources/workflowDocs.mjs +520 -0
- package/src/resources/templates/workflow-sources/workflowEditorOverrides.json +1 -0
- package/src/resources/templates/workflows/collaborate.yaml +104 -0
- package/src/resources/templates/workflows/do.yaml +82 -0
- package/src/resources/templates/workflows/evaluate.yaml +111 -0
- package/src/resources/templates/workflows/execute.yaml +142 -0
- package/src/resources/templates/workflows/plan.yaml +112 -0
- package/src/resources/templates/workflows/review.yaml +109 -0
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { TaskItem, CategoryConfig, Comment, ScreenshotItem, TaskAssignee } from '../../types';
|
|
3
|
+
import type { TaxonomyDefinition } from '../../types';
|
|
4
|
+
interface TaskFormProps {
|
|
5
|
+
editingTaskId: string | null;
|
|
6
|
+
error: string;
|
|
7
|
+
title: string;
|
|
8
|
+
description: string;
|
|
9
|
+
category: string;
|
|
10
|
+
type: string;
|
|
11
|
+
priority: number | string;
|
|
12
|
+
complexity: number | string;
|
|
13
|
+
manualComplexityEnabled?: boolean;
|
|
14
|
+
approach: string;
|
|
15
|
+
assignee: TaskAssignee;
|
|
16
|
+
scheduledDate: string;
|
|
17
|
+
dueDate: string;
|
|
18
|
+
selectedSpecialists: string[];
|
|
19
|
+
comments: Comment[];
|
|
20
|
+
newCommentText: string;
|
|
21
|
+
contextFiles: Array<string | ScreenshotItem>;
|
|
22
|
+
contextLinkBrowsePath?: string;
|
|
23
|
+
formTaxonomies: Record<string, string | number | string[] | number[]>;
|
|
24
|
+
descriptionFocused: boolean;
|
|
25
|
+
showMarkdownHelp: boolean;
|
|
26
|
+
showSpecialists: boolean;
|
|
27
|
+
showChecklist?: boolean;
|
|
28
|
+
checklistEnabled?: boolean;
|
|
29
|
+
showTaskRelationships?: boolean;
|
|
30
|
+
showComments: boolean;
|
|
31
|
+
showChildTasks?: boolean;
|
|
32
|
+
categories: CategoryConfig[];
|
|
33
|
+
types: {
|
|
34
|
+
value: string;
|
|
35
|
+
label: string;
|
|
36
|
+
}[];
|
|
37
|
+
priorities: Array<{
|
|
38
|
+
value: number;
|
|
39
|
+
label: string;
|
|
40
|
+
color?: string;
|
|
41
|
+
icon?: string;
|
|
42
|
+
}>;
|
|
43
|
+
approaches: Array<{
|
|
44
|
+
value: string;
|
|
45
|
+
label: string;
|
|
46
|
+
color?: string;
|
|
47
|
+
icon?: string;
|
|
48
|
+
}>;
|
|
49
|
+
availableSpecialists: {
|
|
50
|
+
value: string;
|
|
51
|
+
label: string;
|
|
52
|
+
}[];
|
|
53
|
+
taxonomies: TaxonomyDefinition[];
|
|
54
|
+
copiedId: string | null;
|
|
55
|
+
onTitleChange: (value: string) => void;
|
|
56
|
+
onDescriptionChange: (value: string) => void;
|
|
57
|
+
onCategoryChange: (value: string) => void;
|
|
58
|
+
onTypeChange: (value: string) => void;
|
|
59
|
+
onPriorityChange: (value: number | string) => void;
|
|
60
|
+
onComplexityChange: (value: number | string) => void;
|
|
61
|
+
onApproachChange: (value: string) => void;
|
|
62
|
+
onAssigneeChange: (value: TaskAssignee) => void;
|
|
63
|
+
onScheduledDateChange: (value: string) => void;
|
|
64
|
+
onDueDateChange: (value: string) => void;
|
|
65
|
+
onSelectedSpecialistsChange: (value: string[]) => void;
|
|
66
|
+
onNewCommentTextChange: (value: string) => void;
|
|
67
|
+
onTaxonomyChange: (id: string, value: string | number | string[] | number[]) => void;
|
|
68
|
+
onParentTaskIdInputChange?: (value: string) => void;
|
|
69
|
+
onAddChildTaskIdInputChange?: (value: string) => void;
|
|
70
|
+
onDescriptionFocusedChange: (value: boolean) => void;
|
|
71
|
+
onShowMarkdownHelpChange: (value: boolean) => void;
|
|
72
|
+
onShowSpecialistsChange: (value: boolean) => void;
|
|
73
|
+
onShowChecklistChange?: (value: boolean) => void;
|
|
74
|
+
onShowTaskRelationshipsChange?: (value: boolean) => void;
|
|
75
|
+
onShowCommentsChange: (value: boolean) => void;
|
|
76
|
+
onShowChildTasksChange?: (value: boolean) => void;
|
|
77
|
+
onOpenSettings?: (section: 'categories' | 'types') => void;
|
|
78
|
+
onSubmit: (e: React.FormEvent) => void;
|
|
79
|
+
onAddComment: () => void;
|
|
80
|
+
onAddContextFile: (file: ScreenshotItem) => void;
|
|
81
|
+
onBrowseContextLinkPath?: () => void;
|
|
82
|
+
onRemoveContextFile: (index: number) => void;
|
|
83
|
+
onUpdateContextCaption: (index: number, caption: string) => void;
|
|
84
|
+
onCopyId: (e: React.MouseEvent, id: string) => void;
|
|
85
|
+
onToggleInProgress?: (task: TaskItem) => void;
|
|
86
|
+
onToggleReview?: (task: TaskItem) => void;
|
|
87
|
+
onToggleComplete?: (task: TaskItem) => void;
|
|
88
|
+
onToggleCancel?: (task: TaskItem) => void;
|
|
89
|
+
onArchiveTask?: (task: TaskItem) => void;
|
|
90
|
+
onUnarchive?: (taskId: string) => void;
|
|
91
|
+
onSetParentForCurrentTask?: (parentTaskIdOverride?: string | null) => void;
|
|
92
|
+
onAddChildToCurrentTask?: () => void;
|
|
93
|
+
onCreateChildForCurrentTask?: () => void;
|
|
94
|
+
onUnlinkChildTask?: (childId: string) => void;
|
|
95
|
+
onReorderChildTasks?: (parentTaskId: string, orderedChildIds: string[]) => void;
|
|
96
|
+
onOpenTaskById?: (taskId: string) => void;
|
|
97
|
+
currentTask?: TaskItem;
|
|
98
|
+
currentTaskParent?: TaskItem;
|
|
99
|
+
currentTaskChildren?: TaskItem[];
|
|
100
|
+
parentTaskIdInput?: string;
|
|
101
|
+
addChildTaskIdInput?: string;
|
|
102
|
+
commentsEndRef: React.RefObject<HTMLDivElement | null>;
|
|
103
|
+
}
|
|
104
|
+
export declare function TaskForm(props: TaskFormProps): import("react/jsx-runtime").JSX.Element;
|
|
105
|
+
export {};
|
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import * as Icons from 'lucide-react';
|
|
4
|
+
import { HelpCircle, X, Send, Check, ChevronDown, ChevronRight, User, Settings, Minus, Bot } from 'lucide-react';
|
|
5
|
+
import styles from '../../Taskforce.module.css';
|
|
6
|
+
import { LevelSelector } from '../ui/LevelSelector';
|
|
7
|
+
import { TaxonomyDropdown } from '../ui/TaxonomyDropdown';
|
|
8
|
+
import { Markdown } from '../ui/Markdown';
|
|
9
|
+
import { TypeMeta, resolveColor } from '../../utils/constants';
|
|
10
|
+
import { formatDate } from '../../utils/formatting';
|
|
11
|
+
import { t } from '../../localization';
|
|
12
|
+
import { TaskContextUpload } from './TaskContextUpload';
|
|
13
|
+
import { TaskCard } from './TaskCard';
|
|
14
|
+
import { sortChildTasksForDisplay } from '../../utils/taskRelations';
|
|
15
|
+
import { appendChecklistLine, parseChecklistLines, removeChecklistLine, setChecklistLineCompleted } from '../../utils/checklistMarkdown';
|
|
16
|
+
export function TaskForm(props) {
|
|
17
|
+
const { editingTaskId, error, title, description, category, type, priority, complexity, manualComplexityEnabled = false, approach, assignee, scheduledDate, dueDate, selectedSpecialists, comments, newCommentText, contextFiles, contextLinkBrowsePath, descriptionFocused, showMarkdownHelp, showSpecialists, showChecklist = false, checklistEnabled = true, showTaskRelationships = false, showComments, showChildTasks = false, formTaxonomies, onTaxonomyChange, onParentTaskIdInputChange, onAddChildTaskIdInputChange, onOpenSettings, categories, types, priorities, approaches, availableSpecialists, taxonomies, copiedId, onTitleChange, onDescriptionChange, onCategoryChange, onTypeChange, onPriorityChange, onComplexityChange, onApproachChange, onAssigneeChange, onScheduledDateChange, onDueDateChange, onSelectedSpecialistsChange, onNewCommentTextChange, onDescriptionFocusedChange, onShowMarkdownHelpChange, onShowSpecialistsChange, onShowChecklistChange = () => { }, onShowTaskRelationshipsChange, onShowCommentsChange, onShowChildTasksChange, onSubmit, onAddComment, onAddContextFile, onBrowseContextLinkPath, onRemoveContextFile, onUpdateContextCaption, onCopyId, onToggleInProgress, onToggleReview, onToggleComplete, onToggleCancel, onArchiveTask, onUnarchive, onSetParentForCurrentTask, onAddChildToCurrentTask, onCreateChildForCurrentTask, onUnlinkChildTask, onReorderChildTasks, onOpenTaskById, currentTask, currentTaskParent, currentTaskChildren = [], parentTaskIdInput = '', addChildTaskIdInput = '', commentsEndRef, } = props;
|
|
18
|
+
const visibleCategories = categories.filter(c => !c.disabled);
|
|
19
|
+
const categoryOptions = React.useMemo(() => {
|
|
20
|
+
const defaultOption = { value: 'default', label: 'Default', icon: 'HelpCircle', color: 'var(--text-secondary)' };
|
|
21
|
+
const nonDefault = visibleCategories
|
|
22
|
+
.filter(cat => cat.value !== 'default')
|
|
23
|
+
.map(cat => ({
|
|
24
|
+
value: cat.value,
|
|
25
|
+
label: cat.label,
|
|
26
|
+
icon: cat.icon,
|
|
27
|
+
color: cat.color
|
|
28
|
+
}));
|
|
29
|
+
return [defaultOption, ...nonDefault];
|
|
30
|
+
}, [visibleCategories]);
|
|
31
|
+
const approachOptions = React.useMemo(() => {
|
|
32
|
+
const defaultOption = { value: 'default', label: 'Default', icon: 'HelpCircle', color: 'var(--text-secondary)' };
|
|
33
|
+
const nonDefault = approaches
|
|
34
|
+
.filter(opt => opt.value !== 'default')
|
|
35
|
+
.map(opt => ({
|
|
36
|
+
value: opt.value,
|
|
37
|
+
label: opt.label,
|
|
38
|
+
icon: opt.icon,
|
|
39
|
+
color: opt.color
|
|
40
|
+
}));
|
|
41
|
+
return [defaultOption, ...nonDefault];
|
|
42
|
+
}, [approaches]);
|
|
43
|
+
const formatMetaDate = (value) => {
|
|
44
|
+
if (!value)
|
|
45
|
+
return null;
|
|
46
|
+
const formatted = formatDate(value, {
|
|
47
|
+
month: 'short',
|
|
48
|
+
day: 'numeric',
|
|
49
|
+
year: 'numeric',
|
|
50
|
+
hour: '2-digit',
|
|
51
|
+
minute: '2-digit'
|
|
52
|
+
});
|
|
53
|
+
return formatted || null;
|
|
54
|
+
};
|
|
55
|
+
const createdLabel = formatMetaDate(currentTask?.createdAt);
|
|
56
|
+
const updatedLabel = formatMetaDate(currentTask?.updatedAt || currentTask?.createdAt);
|
|
57
|
+
const completedLabel = formatMetaDate(currentTask?.completedAt);
|
|
58
|
+
const todayDateOnly = React.useMemo(() => {
|
|
59
|
+
const now = new Date();
|
|
60
|
+
const y = now.getFullYear();
|
|
61
|
+
const m = String(now.getMonth() + 1).padStart(2, '0');
|
|
62
|
+
const d = String(now.getDate()).padStart(2, '0');
|
|
63
|
+
return `${y}-${m}-${d}`;
|
|
64
|
+
}, []);
|
|
65
|
+
const dueBeforeScheduledWarning = Boolean(dueDate && scheduledDate && dueDate < scheduledDate);
|
|
66
|
+
const overdueWarning = Boolean(dueDate &&
|
|
67
|
+
dueDate < todayDateOnly &&
|
|
68
|
+
(!currentTask || (currentTask.status !== 'done' && currentTask.status !== 'cancelled')));
|
|
69
|
+
const isParentTask = Boolean(currentTask && currentTaskChildren.length > 0);
|
|
70
|
+
const sortedChildTasks = sortChildTasksForDisplay(currentTaskChildren);
|
|
71
|
+
const [draggingChildId, setDraggingChildId] = React.useState(null);
|
|
72
|
+
const [dragOverChildId, setDragOverChildId] = React.useState(null);
|
|
73
|
+
const draggedChildIdRef = React.useRef(null);
|
|
74
|
+
const completedChildCount = sortedChildTasks.filter((task) => Boolean(task.isArchived) || task.status === 'done' || task.status === 'cancelled').length;
|
|
75
|
+
const checklistItems = React.useMemo(() => parseChecklistLines(description || ''), [description]);
|
|
76
|
+
const completedChecklistCount = checklistItems.filter(item => item.completed).length;
|
|
77
|
+
const childProgressPercent = sortedChildTasks.length > 0
|
|
78
|
+
? Math.round((completedChildCount / sortedChildTasks.length) * 100)
|
|
79
|
+
: 0;
|
|
80
|
+
const [newChecklistItemText, setNewChecklistItemText] = React.useState('');
|
|
81
|
+
const isArchivedReadOnly = Boolean(currentTask?.isArchived);
|
|
82
|
+
const handleAddChecklistItem = () => {
|
|
83
|
+
const text = newChecklistItemText.trim();
|
|
84
|
+
if (!text)
|
|
85
|
+
return;
|
|
86
|
+
onDescriptionChange(appendChecklistLine(description || '', text));
|
|
87
|
+
setNewChecklistItemText('');
|
|
88
|
+
};
|
|
89
|
+
const handleDropReorder = (draggedId, targetId) => {
|
|
90
|
+
if (!editingTaskId || draggedId === targetId)
|
|
91
|
+
return;
|
|
92
|
+
const orderedIds = sortedChildTasks.map(child => child.id);
|
|
93
|
+
const fromIndex = orderedIds.indexOf(draggedId);
|
|
94
|
+
const toIndex = orderedIds.indexOf(targetId);
|
|
95
|
+
if (fromIndex < 0 || toIndex < 0 || fromIndex === toIndex)
|
|
96
|
+
return;
|
|
97
|
+
const nextOrder = [...orderedIds];
|
|
98
|
+
const [moved] = nextOrder.splice(fromIndex, 1);
|
|
99
|
+
nextOrder.splice(toIndex, 0, moved);
|
|
100
|
+
onReorderChildTasks?.(editingTaskId, nextOrder);
|
|
101
|
+
};
|
|
102
|
+
const formatAiAuthorLabel = (author) => {
|
|
103
|
+
const cleaned = author
|
|
104
|
+
.trim()
|
|
105
|
+
.replace(/[-_]+/g, ' ')
|
|
106
|
+
.replace(/\s+/g, ' ');
|
|
107
|
+
if (!cleaned || cleaned === 'ai')
|
|
108
|
+
return 'AI Agent';
|
|
109
|
+
const label = cleaned
|
|
110
|
+
.split(' ')
|
|
111
|
+
.map((part) => part.charAt(0).toUpperCase() + part.slice(1))
|
|
112
|
+
.join(' ');
|
|
113
|
+
return `AI Agent - ${label}`;
|
|
114
|
+
};
|
|
115
|
+
return (_jsxs("form", { onSubmit: onSubmit, className: styles.form, children: [error && _jsx("div", { className: styles.error, children: error }), isArchivedReadOnly && (_jsx("div", { className: styles.settingsHint, style: { marginBottom: '10px' }, children: "Archived tasks are read-only. Unarchive the task to make changes." })), _jsxs("fieldset", { disabled: isArchivedReadOnly, style: { border: 'none', margin: 0, padding: 0, minInlineSize: 0 }, children: [_jsxs("div", { className: styles.field, children: [_jsxs("div", { className: styles.labelRow, children: [_jsx("label", { className: styles.label, children: "Title" }), assignee && (_jsx("span", { title: assignee === 'agent'
|
|
116
|
+
? 'Assigned to: AI'
|
|
117
|
+
: assignee === 'user'
|
|
118
|
+
? 'Assigned to: User'
|
|
119
|
+
: 'Assigned to: Unassigned', style: {
|
|
120
|
+
color: assignee === 'agent'
|
|
121
|
+
? 'var(--color-violet-500, #8b5cf6)'
|
|
122
|
+
: assignee === 'user'
|
|
123
|
+
? 'var(--color-green-500, #22c55e)'
|
|
124
|
+
: '#b45309',
|
|
125
|
+
display: 'flex',
|
|
126
|
+
alignItems: 'center',
|
|
127
|
+
gap: '4px',
|
|
128
|
+
fontSize: '11px',
|
|
129
|
+
fontWeight: 600,
|
|
130
|
+
}, children: assignee === 'agent'
|
|
131
|
+
? _jsx(Bot, { size: 20 })
|
|
132
|
+
: assignee === 'user'
|
|
133
|
+
? _jsx(User, { size: 20 })
|
|
134
|
+
: _jsx(HelpCircle, { size: 20 }) }))] }), _jsx("input", { type: "text", value: title, onChange: (e) => onTitleChange(e.target.value), placeholder: "What needs to be done?", className: styles.input, required: true, maxLength: 255, autoFocus: true })] }), _jsxs("div", { className: styles.field, children: [_jsxs("div", { className: styles.labelRow, children: [_jsx("label", { className: styles.label, children: "Description" }), _jsx("button", { type: "button", className: styles.helpLink, onClick: () => onShowMarkdownHelpChange(!showMarkdownHelp), title: "Markdown Help", tabIndex: -1, children: _jsx(HelpCircle, { size: 14 }) })] }), showMarkdownHelp && (_jsxs("div", { className: styles.markdownHelp, children: [_jsxs("div", { className: styles.helpHeader, children: [_jsx("span", { children: "Markdown Guide" }), _jsx("button", { onClick: () => onShowMarkdownHelpChange(false), className: styles.helpClose, children: _jsx(X, { size: 12 }) })] }), _jsxs("div", { className: styles.helpGrid, children: [_jsx("div", { children: _jsx("code", { children: "**bold**" }) }), _jsx("div", { children: _jsx("code", { children: "_italic_" }) }), _jsx("div", { children: _jsx("code", { children: "- list" }) }), _jsx("div", { children: _jsx("code", { children: "1. list" }) }), _jsx("div", { children: _jsx("code", { children: "- [ ] checklist item" }) }), _jsx("div", { children: _jsx("code", { children: "- [x] completed item" }) }), _jsx("div", { className: styles.helpGridItem, children: _jsx("code", { children: "`inline code`" }) }), _jsxs("div", { className: styles.helpGridItem, children: [_jsx("code", { children: "```" }), _jsx("br", {}), _jsx("code", { children: "code block" }), _jsx("br", {}), _jsx("code", { children: "```" })] }), _jsx("div", { children: _jsx("code", { children: "[link](url)" }) })] }), _jsx("div", { className: styles.settingsHint, style: { marginTop: '8px' }, children: "Checklist checkboxes are clickable in preview mode." })] })), descriptionFocused || !description ? (_jsx("textarea", { className: styles.textarea, placeholder: "What needs to be done? (Markdown supported)", value: description, onChange: (e) => onDescriptionChange(e.target.value), onFocus: () => onDescriptionFocusedChange(true), onBlur: () => onDescriptionFocusedChange(false), rows: 9, autoFocus: descriptionFocused })) : (_jsx("div", { className: `${styles.textarea} ${styles.markdownPreview} ${styles.markdownPreviewContainer}`, onClick: () => onDescriptionFocusedChange(true), children: _jsx(Markdown, { onChecklistToggle: (lineIndex, completed) => {
|
|
135
|
+
onDescriptionChange(setChecklistLineCompleted(description || '', lineIndex, completed));
|
|
136
|
+
}, onTaskIdClick: onOpenTaskById, children: description }) }))] }), _jsxs("div", { className: styles.topRow, children: [_jsxs("div", { className: styles.field, children: [_jsxs("div", { className: styles.labelRow, children: [_jsx("label", { id: "category-label", className: styles.label, children: "Category" }), _jsx("button", { type: "button", className: styles.manageLink, onClick: () => onOpenSettings?.('categories'), title: "Manage Categories", tabIndex: -1, children: _jsx(Settings, { size: 14 }) })] }), _jsx(TaxonomyDropdown, { value: category, options: categoryOptions, onChange: (value) => onCategoryChange(String(value)), required: true, ariaLabelledBy: "category-label" })] }), _jsxs("div", { className: styles.field, children: [_jsxs("div", { className: styles.labelRow, children: [_jsx("label", { id: "type-label", className: styles.label, children: "Type" }), _jsx("button", { type: "button", className: styles.manageLink, onClick: () => onOpenSettings?.('types'), title: "Manage Types", tabIndex: -1, children: _jsx(Settings, { size: 14 }) })] }), _jsx(TaxonomyDropdown, { value: type, options: types.map(t => ({
|
|
137
|
+
value: t.value,
|
|
138
|
+
label: t.label,
|
|
139
|
+
icon: TypeMeta[t.value]?.icon || 'Box',
|
|
140
|
+
color: TypeMeta[t.value]?.color || 'violet-500'
|
|
141
|
+
})), onChange: (value) => onTypeChange(String(value)), ariaLabelledBy: "type-label" })] }), _jsxs("div", { className: styles.field, children: [_jsx("label", { id: "approach-label", className: styles.label, children: "Approach" }), _jsx(TaxonomyDropdown, { value: approach || "default", options: approachOptions, onChange: (value) => onApproachChange(String(value)), ariaLabelledBy: "approach-label" })] }), _jsxs("div", { className: styles.field, children: [_jsx("label", { id: "assignee-label", className: styles.label, children: "Assigned To" }), _jsx(TaxonomyDropdown, { value: assignee || 'agent', options: [
|
|
142
|
+
{ value: 'unassigned', label: 'Unassigned', icon: 'HelpCircle', color: 'var(--text-secondary)' },
|
|
143
|
+
{ value: 'agent', label: 'AI', icon: 'Bot', color: '#8b5cf6' },
|
|
144
|
+
{ value: 'user', label: 'User', icon: 'User', color: '#22c55e' },
|
|
145
|
+
], onChange: (value) => onAssigneeChange(String(value)), ariaLabelledBy: "assignee-label" })] }), _jsx(LevelSelector, { label: "Priority", options: priorities, value: priority, onChange: onPriorityChange, type: "priority" }), manualComplexityEnabled && (_jsx(LevelSelector, { label: "Complexity", options: [
|
|
146
|
+
{ value: 1, label: 'Tiny', color: '#10b981', icon: 'Gauge' },
|
|
147
|
+
{ value: 2, label: 'Low', color: '#14b8a6', icon: 'Gauge' },
|
|
148
|
+
{ value: 3, label: 'Medium', color: '#3b82f6', icon: 'Gauge' },
|
|
149
|
+
{ value: 4, label: 'High', color: '#8b5cf6', icon: 'Gauge' },
|
|
150
|
+
{ value: 5, label: 'Epic', color: '#d946ef', icon: 'Gauge' },
|
|
151
|
+
], value: complexity, onChange: onComplexityChange, type: "general" }))] }), _jsx("div", { className: styles.taxonomyFieldsGrid, children: taxonomies.map(tax => {
|
|
152
|
+
if (tax.id === 'approach' && tax.isSystem)
|
|
153
|
+
return null; // Approach is handled separately for now
|
|
154
|
+
return (_jsxs("div", { className: styles.field, children: [_jsx("label", { className: styles.label, children: tax.label }), tax.widgetType === 'level' ? (_jsx(LevelSelector, { label: tax.label, options: tax.options, value: formTaxonomies[tax.id] || '', onChange: (val) => onTaxonomyChange(tax.id, val), type: "general", hideLabel: true })) : (_jsxs("div", { className: styles.fieldIconWrapper, style: {
|
|
155
|
+
'--field-color': 'var(--text-primary)',
|
|
156
|
+
'--field-border': 'rgba(255, 255, 255, 0.1)',
|
|
157
|
+
'--field-bg': 'rgba(255, 255, 255, 0.02)'
|
|
158
|
+
}, children: [(() => {
|
|
159
|
+
const selectedOption = tax.options.find(o => o.value === formTaxonomies[tax.id]);
|
|
160
|
+
const IconComp = selectedOption?.icon && Icons[selectedOption.icon] ? Icons[selectedOption.icon] : HelpCircle;
|
|
161
|
+
const color = selectedOption?.color || 'var(--text-secondary)';
|
|
162
|
+
return (_jsx("div", { className: styles.fieldIcon, style: { color: resolveColor(color) }, children: _jsx(IconComp, { size: 16 }) }));
|
|
163
|
+
})(), _jsxs("select", { value: formTaxonomies[tax.id] || '', onChange: (e) => onTaxonomyChange(tax.id, e.target.value), className: `${styles.select} ${styles.field_dynamic}`, required: tax.isRequired, children: [_jsxs("option", { value: "", children: ["Select ", tax.label, "..."] }), tax.options.map(opt => (_jsx("option", { value: opt.value, children: opt.label }, opt.value)))] })] }))] }, tax.id));
|
|
164
|
+
}) }), checklistEnabled && (_jsxs("div", { className: styles.specialistSection, children: [_jsxs("div", { className: styles.toggleHeading, onClick: () => onShowChecklistChange(!showChecklist), title: showChecklist ? 'Hide checklist' : 'Show checklist', children: [_jsxs("label", { className: styles.label, children: ["Checklist ", checklistItems.length > 0 && `(${completedChecklistCount}/${checklistItems.length})`] }), showChecklist ? _jsx(ChevronDown, { size: 14 }) : _jsx(ChevronRight, { size: 14 })] }), showChecklist && (_jsxs("div", { className: styles.dropdownList, style: { marginTop: '8px', flexDirection: 'column', gap: 6 }, children: [_jsxs("div", { className: styles.pathInputGroup, children: [_jsx("input", { type: "text", className: styles.input, placeholder: "Add checklist item", value: newChecklistItemText, onChange: (e) => setNewChecklistItemText(e.target.value), onKeyDown: (e) => {
|
|
165
|
+
if (e.key === 'Enter') {
|
|
166
|
+
e.preventDefault();
|
|
167
|
+
handleAddChecklistItem();
|
|
168
|
+
}
|
|
169
|
+
} }), _jsx("button", { type: "button", className: styles.secondaryHeaderBtn, onClick: handleAddChecklistItem, disabled: !newChecklistItemText.trim(), children: "Add" })] }), checklistItems.length > 0 ? (checklistItems.map((item) => (_jsxs("div", { style: { display: 'flex', gap: 8, alignItems: 'center' }, children: [_jsx("button", { type: "button", className: styles.secondaryHeaderBtn, onClick: () => {
|
|
170
|
+
onDescriptionChange(setChecklistLineCompleted(description || '', item.lineIndex, !item.completed));
|
|
171
|
+
}, title: item.completed ? 'Mark incomplete' : 'Mark complete', style: { minWidth: 28, padding: '4px 8px' }, children: item.completed ? _jsx(Check, { size: 12 }) : _jsx(Minus, { size: 12 }) }), _jsx("span", { style: {
|
|
172
|
+
flex: 1,
|
|
173
|
+
minWidth: 0,
|
|
174
|
+
color: item.completed ? 'var(--text-muted)' : 'var(--text-primary)',
|
|
175
|
+
textDecoration: item.completed ? 'line-through' : 'none'
|
|
176
|
+
}, children: item.text }), _jsx("button", { type: "button", className: `${styles.actionBtn} ${styles.deleteBtn}`, onClick: () => onDescriptionChange(removeChecklistLine(description || '', item.lineIndex)), title: "Remove checklist item", children: _jsx(X, { size: 12 }) })] }, `checklist-${item.lineIndex}`)))) : (_jsx("div", { className: styles.settingsHint, children: "No checklist items yet." }))] }))] })), availableSpecialists.length > 0 && (_jsxs("div", { className: styles.specialistSection, children: [_jsxs("div", { className: styles.toggleHeading, onClick: () => onShowSpecialistsChange(!showSpecialists), title: showSpecialists ? "Hide unassigned specialists" : "Show all specialists", children: [_jsxs("label", { className: styles.label, children: ["Specialists ", selectedSpecialists.length > 0 && `(${selectedSpecialists.length})`] }), showSpecialists ? _jsx(ChevronDown, { size: 14 }) : _jsx(ChevronRight, { size: 14 })] }), showSpecialists && (_jsxs("div", { className: styles.dropdownList, style: {
|
|
177
|
+
padding: '8px 4px',
|
|
178
|
+
background: 'rgba(0,0,0,0.1)',
|
|
179
|
+
borderRadius: '8px',
|
|
180
|
+
marginTop: '4px'
|
|
181
|
+
}, children: [selectedSpecialists.map((val) => {
|
|
182
|
+
const p = availableSpecialists.find(s => s.value === val);
|
|
183
|
+
if (!p)
|
|
184
|
+
return null;
|
|
185
|
+
return (_jsxs("button", { type: "button", className: `${styles.specialistChip} ${styles.specialistChipActive}`, onClick: () => {
|
|
186
|
+
onSelectedSpecialistsChange(selectedSpecialists.filter(v => v !== p.value));
|
|
187
|
+
}, title: "Click to unassign", children: [_jsx(Check, { size: 12 }), p.label] }, p.value));
|
|
188
|
+
}), availableSpecialists
|
|
189
|
+
.filter(p => !selectedSpecialists.includes(p.value))
|
|
190
|
+
.map((p) => (_jsx("button", { type: "button", className: styles.specialistChip, onClick: () => {
|
|
191
|
+
onSelectedSpecialistsChange([...selectedSpecialists, p.value]);
|
|
192
|
+
}, title: "Click to assign", children: p.label }, p.value))), availableSpecialists.filter(p => !selectedSpecialists.includes(p.value)).length === 0 && (_jsx("div", { style: {
|
|
193
|
+
fontSize: '11px',
|
|
194
|
+
color: 'var(--text-muted)',
|
|
195
|
+
fontStyle: 'italic',
|
|
196
|
+
padding: '4px 8px'
|
|
197
|
+
}, children: "All available specialists have been assigned." }))] }))] })), _jsxs("div", { className: styles.specialistSection, children: [_jsxs("div", { className: styles.toggleHeading, onClick: () => onShowTaskRelationshipsChange?.(!showTaskRelationships), title: showTaskRelationships ? "Hide Parent Task" : "Show Parent Task", children: [_jsx("label", { className: styles.label, children: "Parent Task" }), showTaskRelationships ? _jsx(ChevronDown, { size: 14 }) : _jsx(ChevronRight, { size: 14 })] }), showTaskRelationships && (_jsx(_Fragment, { children: currentTaskParent ? (_jsx("div", { className: styles.dropdownList, style: { marginTop: '8px', flexDirection: 'column', gap: 6 }, children: _jsxs("div", { className: styles.childCardRow, children: [_jsx("div", { style: { flex: 1, minWidth: 0 }, children: _jsx(TaskCard, { task: currentTaskParent, compressed: true, showParentRelationship: false, isArchived: Boolean(currentTaskParent.isArchived), copiedId: copiedId, taxonomies: taxonomies, priorities: priorities, approaches: approaches, categories: categories, onClick: () => onOpenTaskById?.(currentTaskParent.id), onCopyId: onCopyId, onToggleInProgress: onToggleInProgress, onToggleReview: onToggleReview, onToggleComplete: onToggleComplete, onToggleCancel: onToggleCancel, onArchiveTask: onArchiveTask, onUnarchive: onUnarchive }) }), _jsx("button", { type: "button", className: `${styles.actionBtn} ${styles.deleteBtn} ${styles.childCardRemoveBtn}`, onClick: () => {
|
|
198
|
+
onParentTaskIdInputChange?.('');
|
|
199
|
+
onSetParentForCurrentTask?.(null);
|
|
200
|
+
}, title: "Remove parent", "aria-label": `Remove parent ${currentTaskParent.id}`, children: _jsx(X, { size: 12 }) })] }) })) : (_jsxs(_Fragment, { children: [_jsxs("div", { className: styles.pathInputGroup, style: { marginTop: '8px' }, children: [_jsx("input", { type: "text", className: styles.input, placeholder: "Paste parent task ID", value: parentTaskIdInput, onChange: (e) => onParentTaskIdInputChange?.(e.target.value) }), editingTaskId && (_jsx("button", { type: "button", className: styles.secondaryHeaderBtn, onClick: () => onSetParentForCurrentTask?.(), children: "Set Parent" }))] }), !editingTaskId && (_jsx("div", { className: styles.settingsHint, style: { marginTop: '8px' }, children: "Parent link is applied when the task is created." }))] })) }))] }), _jsxs("div", { className: styles.specialistSection, children: [_jsxs("div", { className: styles.toggleHeading, onClick: () => onShowChildTasksChange?.(!showChildTasks), title: showChildTasks ? "Hide Child Tasks" : "Show Child Tasks", children: [_jsxs("label", { className: styles.label, children: ["Child Tasks ", currentTaskChildren.length > 0 && `(${currentTaskChildren.length})`] }), showChildTasks ? _jsx(ChevronDown, { size: 14 }) : _jsx(ChevronRight, { size: 14 })] }), showChildTasks && (_jsx(_Fragment, { children: !editingTaskId ? (_jsx("div", { className: styles.settingsHint, style: { marginTop: '8px' }, children: "Save this task first, then you can add child tasks." })) : (_jsxs(_Fragment, { children: [_jsxs("div", { className: styles.pathInputGroup, style: { marginTop: '8px' }, children: [_jsx("input", { type: "text", className: styles.input, placeholder: "Paste child task ID", value: addChildTaskIdInput, onChange: (e) => onAddChildTaskIdInputChange?.(e.target.value) }), _jsx("button", { type: "button", className: styles.secondaryHeaderBtn, onClick: () => onAddChildToCurrentTask?.(), disabled: !addChildTaskIdInput.trim(), children: "Add Child" }), _jsx("button", { type: "button", className: styles.secondaryHeaderBtn, onClick: () => onCreateChildForCurrentTask?.(), children: "New Child" })] }), sortedChildTasks.length > 0 && (_jsxs("div", { className: styles.taskChildrenSummaryBadges, style: { marginTop: '8px' }, children: [_jsx("div", { className: styles.taskChildrenProgressBar, title: `${completedChildCount} of ${sortedChildTasks.length} child tasks are done/cancelled (${childProgressPercent}%)`, children: _jsx("div", { className: styles.taskChildrenProgressBarFill, style: { width: `${childProgressPercent}%` } }) }), _jsx("div", { className: styles.taskChildrenProgressText, children: `${completedChildCount}/${sortedChildTasks.length} • ${childProgressPercent}%` })] })), sortedChildTasks.length > 0 && (_jsx("div", { className: styles.dropdownList, style: { marginTop: '8px', flexDirection: 'column', gap: 6 }, children: sortedChildTasks.map((child) => (_jsxs("div", { className: `${styles.childCardRow} ${draggingChildId === child.id ? styles.childCardRowDragging : ''} ${dragOverChildId === child.id && draggingChildId && draggingChildId !== child.id ? styles.childCardRowDropTarget : ''}`, draggable: true, onDragStart: (e) => {
|
|
201
|
+
draggedChildIdRef.current = child.id;
|
|
202
|
+
setDraggingChildId(child.id);
|
|
203
|
+
e.dataTransfer.effectAllowed = 'move';
|
|
204
|
+
e.dataTransfer.setData('text/plain', child.id);
|
|
205
|
+
}, onDragOver: (e) => {
|
|
206
|
+
const activeDragId = draggedChildIdRef.current || draggingChildId;
|
|
207
|
+
if (!activeDragId || activeDragId === child.id)
|
|
208
|
+
return;
|
|
209
|
+
e.preventDefault();
|
|
210
|
+
e.dataTransfer.dropEffect = 'move';
|
|
211
|
+
if (dragOverChildId !== child.id)
|
|
212
|
+
setDragOverChildId(child.id);
|
|
213
|
+
}, onDragLeave: () => {
|
|
214
|
+
if (dragOverChildId === child.id)
|
|
215
|
+
setDragOverChildId(null);
|
|
216
|
+
}, onDrop: (e) => {
|
|
217
|
+
e.preventDefault();
|
|
218
|
+
const draggedId = e.dataTransfer.getData('text/plain') || draggedChildIdRef.current || draggingChildId;
|
|
219
|
+
if (draggedId)
|
|
220
|
+
handleDropReorder(draggedId, child.id);
|
|
221
|
+
setDragOverChildId(null);
|
|
222
|
+
setDraggingChildId(null);
|
|
223
|
+
draggedChildIdRef.current = null;
|
|
224
|
+
}, onDragEnd: () => {
|
|
225
|
+
setDragOverChildId(null);
|
|
226
|
+
setDraggingChildId(null);
|
|
227
|
+
draggedChildIdRef.current = null;
|
|
228
|
+
}, children: [_jsx("div", { style: { flex: 1, minWidth: 0 }, children: _jsx(TaskCard, { task: child, compressed: true, showParentRelationship: false, isArchived: Boolean(child.isArchived), copiedId: copiedId, taxonomies: taxonomies, priorities: priorities, approaches: approaches, categories: categories, onClick: () => onOpenTaskById?.(child.id), onCopyId: onCopyId, onToggleInProgress: onToggleInProgress, onToggleReview: onToggleReview, onToggleComplete: onToggleComplete, onToggleCancel: onToggleCancel, onArchiveTask: onArchiveTask, onUnarchive: onUnarchive }) }), _jsx("button", { type: "button", className: `${styles.actionBtn} ${styles.deleteBtn} ${styles.childCardRemoveBtn}`, onClick: () => onUnlinkChildTask?.(child.id), title: "Remove child", "aria-label": `Remove child ${child.id}`, children: _jsx(X, { size: 12 }) })] }, child.id))) }))] })) }))] }), _jsx(TaskContextUpload, { taskId: editingTaskId, contextFiles: contextFiles, browsedPath: contextLinkBrowsePath, onBrowseLinkPath: onBrowseContextLinkPath, onAddContextFile: onAddContextFile, onRemoveContextFile: onRemoveContextFile, onUpdateContextCaption: onUpdateContextCaption }), editingTaskId && (_jsxs("div", { className: styles.specialistSection, children: [_jsxs("div", { className: styles.toggleHeading, onClick: () => onShowCommentsChange(!showComments), title: showComments ? t('taskForm.hideComments') : t('taskForm.showComments'), children: [_jsxs("label", { className: styles.label, children: [t('taskForm.commentsSectionTitle'), " ", comments.length > 0 && `(${comments.length})`] }), showComments ? _jsx(ChevronDown, { size: 14 }) : _jsx(ChevronRight, { size: 14 })] }), showComments && (_jsxs("div", { className: styles.commentPanel, children: [_jsxs("div", { className: styles.commentThread, children: [comments.length === 0 && (_jsx("div", { className: styles.emptyComments, children: t('taskForm.noComments') })), comments.map(c => {
|
|
229
|
+
const normalizedAuthor = String(c.author || '').trim().toLowerCase();
|
|
230
|
+
const isAi = normalizedAuthor !== '' && normalizedAuthor !== 'user' && normalizedAuthor !== 'human';
|
|
231
|
+
const authorLabel = isAi ? formatAiAuthorLabel(normalizedAuthor) : t('taskForm.you');
|
|
232
|
+
return (_jsxs("div", { className: `${styles.comment} ${isAi ? styles.commentAi : styles.commentUser}`, children: [_jsxs("div", { className: styles.commentHeader, children: [_jsx("span", { className: styles.commentAuthor, children: isAi ? _jsxs(_Fragment, { children: [_jsx(Bot, { size: 12, strokeWidth: 1.5 }), " ", authorLabel] }) : _jsxs(_Fragment, { children: [_jsx(User, { size: 12, strokeWidth: 1.5 }), " ", t('taskForm.you')] }) }), _jsx("span", { className: styles.commentTime, children: formatDate(c.timestamp, {
|
|
233
|
+
month: 'short', day: 'numeric', hour: '2-digit', minute: '2-digit'
|
|
234
|
+
}) })] }), _jsx("div", { className: styles.commentText, children: _jsx(Markdown, { onTaskIdClick: onOpenTaskById, children: c.text }) })] }, c.id));
|
|
235
|
+
}), _jsx("div", { ref: commentsEndRef })] }), _jsxs("div", { className: styles.commentInputArea, children: [_jsx("textarea", { className: styles.commentInput, placeholder: t('taskForm.commentPlaceholder'), value: newCommentText, onChange: (e) => onNewCommentTextChange(e.target.value), onKeyDown: (e) => {
|
|
236
|
+
if (e.key === 'Enter' && !e.shiftKey) {
|
|
237
|
+
e.preventDefault();
|
|
238
|
+
onAddComment();
|
|
239
|
+
}
|
|
240
|
+
}, rows: 1 }), _jsx("button", { type: "button", className: styles.sendCommentBtn, onClick: onAddComment, disabled: !newCommentText.trim(), children: _jsx(Send, { size: 16 }) })] })] }))] })), _jsx("div", { className: styles.taskFormLifecycle, children: _jsxs("div", { className: styles.taskFormDateStack, children: [_jsxs("div", { className: styles.taskFormDateRow, children: [_jsx("span", { className: styles.taskFormDateLabel, children: t('taskForm.scheduledLabel') }), _jsx("input", { type: "date", value: scheduledDate, onChange: (e) => onScheduledDateChange(e.target.value), className: `${styles.input} ${styles.taskFormDateInput}`, disabled: isParentTask })] }), isParentTask && (_jsxs("div", { className: styles.taskFormDateRow, children: [_jsx("span", { className: styles.taskFormDateLabel }), _jsx("span", { style: { color: 'var(--text-muted)', fontSize: '11px', fontWeight: 500 }, children: t('taskForm.parentCannotSchedule') })] })), _jsxs("div", { className: styles.taskFormDateRow, children: [_jsx("span", { className: styles.taskFormDateLabel, children: t('taskForm.dueLabel') }), _jsx("input", { type: "date", value: dueDate, onChange: (e) => onDueDateChange(e.target.value), className: `${styles.input} ${styles.taskFormDateInput}` })] }), dueBeforeScheduledWarning && (_jsxs("div", { className: styles.taskFormDateRow, children: [_jsx("span", { className: styles.taskFormDateLabel }), _jsx("span", { style: { color: 'var(--color-warning-500, #f59e0b)', fontSize: '11px', fontWeight: 600 }, children: t('taskForm.dueBeforeScheduled') })] })), overdueWarning && (_jsxs("div", { className: styles.taskFormDateRow, children: [_jsx("span", { className: styles.taskFormDateLabel }), _jsx("span", { style: { color: 'var(--color-error, #ef4444)', fontSize: '11px', fontWeight: 600 }, children: t('taskForm.overdue') })] })), currentTask && (_jsxs(_Fragment, { children: [_jsxs("div", { className: styles.taskFormDateRow, children: [_jsx("span", { className: styles.taskFormDateLabel, children: t('taskForm.createdLabel') }), _jsx("span", { className: styles.taskFormDateValue, children: createdLabel || t('taskForm.emptyValue') })] }), _jsxs("div", { className: styles.taskFormDateRow, children: [_jsx("span", { className: styles.taskFormDateLabel, children: t('taskForm.updatedLabel') }), _jsx("span", { className: styles.taskFormDateValue, children: updatedLabel || t('taskForm.emptyValue') })] }), _jsxs("div", { className: styles.taskFormDateRow, children: [_jsx("span", { className: styles.taskFormDateLabel, children: t('taskForm.completedLabel') }), _jsx("span", { className: styles.taskFormDateValue, children: completedLabel || t('taskForm.emptyValue') })] })] }))] }) }), _jsxs("div", { className: styles.keyboardHint, children: ["Press ", _jsx("kbd", { children: navigator.platform.includes('Mac') ? '⌥' : 'Alt' }), " to toggle"] })] })] }));
|
|
241
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|