@taskforcehq/taskforce 0.3.309 → 0.3.313
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 +89 -127
- package/dist/TaskforceCore.js +1 -1
- package/dist/components/context/ContextAttachmentManager.js +4 -3
- package/dist/components/features/InitiativesModule.js +1 -1
- package/dist/components/features/TaskSettings.js +1 -1
- package/dist/components/ui/DisclosureSectionHeader.d.ts +12 -0
- package/dist/components/ui/DisclosureSectionHeader.js +8 -0
- package/dist/components/views/PlanComparisonPage.js +1 -1
- package/dist/components/views/StandaloneLayout.js +18 -4
- package/dist/components/views/panels/PlanningDrawer.js +2 -1
- package/dist/components/views/standalone/modals/AccountHubModal.js +1 -1
- package/dist/components/views/standalone/modals/HelpModal.d.ts +3 -1
- package/dist/components/views/standalone/modals/HelpModal.js +17 -2
- package/dist/core/PlanEntitlementService.d.ts +2 -0
- package/dist/core/PlanEntitlementService.js +57 -4
- package/dist/hooks/useFilterSort.js +1 -1
- package/dist/hooks/useTaskforce.js +2 -2
- package/dist/hooks/workspace/useTaskforceWorkspaceBootstrap.js +5 -2
- package/dist/localization/locales/en-US.js +1 -1
- package/dist/localization/locales/es-419.js +1 -1
- package/dist/localization/locales/pt-BR.js +1 -1
- package/dist/mcp/runtime.js +49 -14
- package/dist/server/routes/billing.js +0 -1
- package/dist/ui/assets/AgentsModule-BULqIo8e.js +1 -0
- package/dist/ui/assets/{AnnotatedAttachmentWorkspace-CCckzWYZ.js → AnnotatedAttachmentWorkspace-DHr4rHK9.js} +1 -1
- package/dist/ui/assets/ContextAttachmentManager-DoMe2OpY.js +3 -0
- package/dist/ui/assets/{DocumentWorkspace-BVaWPA25.js → DocumentWorkspace-DumBWhvb.js} +1 -1
- package/dist/ui/assets/{EntityActivityTimeline-DSj0ThaK.js → EntityActivityTimeline-sHk8Nzbq.js} +1 -1
- package/dist/ui/assets/{InitiativesModule-AxMkWtxH.js → InitiativesModule-3X9UNzHh.js} +1 -1
- package/dist/ui/assets/PlansPage-C3A3EYaV.js +1 -0
- package/dist/ui/assets/PlansPage-DeAzWYTb.css +1 -0
- package/dist/ui/assets/{TaskContextUpload-Dw4rTF4i.js → TaskContextUpload-C8G7pWkX.js} +1 -1
- package/dist/ui/assets/{TaskSettings-f2ga42_V.js → TaskSettings-DM1o9Wla.js} +2 -2
- package/dist/ui/assets/{WorkflowsModule-E4UL3mov.js → WorkflowsModule-CW0crzvD.js} +1 -1
- package/dist/ui/assets/documentReferences-BZB3nMRb.js +1 -0
- package/dist/ui/assets/index-BWFQ9mGn.js +5 -0
- package/dist/ui/assets/{index-BvAbqx5Q.css → index-DcK_8tuE.css} +1 -1
- package/dist/ui/assets/{vendor-icons-B32hGuF2.js → vendor-icons-CLnehDTw.js} +1 -1
- package/dist/ui/index.html +3 -3
- package/dist/utils/supportContact.d.ts +9 -0
- package/dist/utils/supportContact.js +32 -0
- package/package.json +12 -4
- package/scripts/postinstall.js +4 -3
- package/dist/TaskforceCore.CategoryFallback.test.d.ts +0 -1
- package/dist/TaskforceCore.CategoryFallback.test.js +0 -101
- package/dist/TaskforceCore.filter-persistence.test.d.ts +0 -1
- package/dist/TaskforceCore.filter-persistence.test.js +0 -402
- package/dist/TaskforceCore.routing.test.d.ts +0 -1
- package/dist/TaskforceCore.routing.test.js +0 -311
- package/dist/TaskforceCore.test.d.ts +0 -1
- package/dist/TaskforceCore.test.js +0 -7910
- package/dist/TaskforceWidget.test.d.ts +0 -1
- package/dist/TaskforceWidget.test.js +0 -92
- package/dist/UnsavedChangesRelaxed.test.d.ts +0 -1
- package/dist/UnsavedChangesRelaxed.test.js +0 -16
- package/dist/__tests__/localizationCatalogs.test.d.ts +0 -1
- package/dist/__tests__/localizationCatalogs.test.js +0 -54
- package/dist/__tests__/workflowSimulation.test.d.ts +0 -1
- package/dist/__tests__/workflowSimulation.test.js +0 -113
- package/dist/annotatedAttachments/AnnotatedAttachmentSessionStore.test.d.ts +0 -1
- package/dist/annotatedAttachments/AnnotatedAttachmentSessionStore.test.js +0 -278
- package/dist/annotatedAttachments/payload.test.d.ts +0 -1
- package/dist/annotatedAttachments/payload.test.js +0 -67
- package/dist/compat/workspaceSyncCompat.test.d.ts +0 -1
- package/dist/compat/workspaceSyncCompat.test.js +0 -124
- package/dist/components/features/AgentsModule.test.d.ts +0 -1
- package/dist/components/features/AgentsModule.test.js +0 -601
- package/dist/components/features/AnnotatedAttachmentWorkspace.test.d.ts +0 -1
- package/dist/components/features/AnnotatedAttachmentWorkspace.test.js +0 -2883
- package/dist/components/features/DocumentWorkspace.test.d.ts +0 -1
- package/dist/components/features/DocumentWorkspace.test.js +0 -1439
- package/dist/components/features/TaskSettings.test.d.ts +0 -1
- package/dist/components/features/TaskSettings.test.js +0 -1674
- package/dist/components/features/settings/TaxonomyLibraryManager.test.d.ts +0 -1
- package/dist/components/features/settings/TaxonomyLibraryManager.test.js +0 -141
- package/dist/components/task/TaskActionHeader.test.d.ts +0 -1
- package/dist/components/task/TaskActionHeader.test.js +0 -91
- package/dist/components/task/TaskCard.test.d.ts +0 -1
- package/dist/components/task/TaskCard.test.js +0 -513
- package/dist/components/task/TaskContextUpload.test.d.ts +0 -1
- package/dist/components/task/TaskContextUpload.test.js +0 -506
- package/dist/components/task/TaskForm.test.d.ts +0 -1
- package/dist/components/task/TaskForm.test.js +0 -946
- package/dist/components/task/TaskKanban.empty-column-drop.test.d.ts +0 -1
- package/dist/components/task/TaskKanban.empty-column-drop.test.js +0 -66
- package/dist/components/task/TaskKanban.planning-drop.test.d.ts +0 -1
- package/dist/components/task/TaskKanban.planning-drop.test.js +0 -93
- package/dist/components/task/TaskKanban.test.d.ts +0 -1
- package/dist/components/task/TaskKanban.test.js +0 -99
- package/dist/components/task/TaskList.test.d.ts +0 -1
- package/dist/components/task/TaskList.test.js +0 -473
- package/dist/components/task/TaskStatusActions.test.d.ts +0 -1
- package/dist/components/task/TaskStatusActions.test.js +0 -54
- package/dist/components/task/taskKanbanDropRules.test.d.ts +0 -1
- package/dist/components/task/taskKanbanDropRules.test.js +0 -114
- package/dist/components/ui/LevelSelector.test.d.ts +0 -1
- package/dist/components/ui/LevelSelector.test.js +0 -55
- package/dist/components/ui/Markdown.test.d.ts +0 -1
- package/dist/components/ui/Markdown.test.js +0 -38
- package/dist/components/ui/MultiSelectFilter.test.d.ts +0 -1
- package/dist/components/ui/MultiSelectFilter.test.js +0 -74
- package/dist/components/ui/TaxonomyDropdown.test.d.ts +0 -1
- package/dist/components/ui/TaxonomyDropdown.test.js +0 -130
- package/dist/components/ui/TopNoticeLayer.test.d.ts +0 -1
- package/dist/components/ui/TopNoticeLayer.test.js +0 -25
- package/dist/components/views/AppShellHeader.test.d.ts +0 -1
- package/dist/components/views/AppShellHeader.test.js +0 -42
- package/dist/components/views/PlanComparisonPage.test.d.ts +0 -1
- package/dist/components/views/PlanComparisonPage.test.js +0 -757
- package/dist/components/views/PlansPage.test.d.ts +0 -1
- package/dist/components/views/PlansPage.test.js +0 -710
- package/dist/components/views/chrome/WorkspaceChromeSections.test.d.ts +0 -1
- package/dist/components/views/chrome/WorkspaceChromeSections.test.js +0 -54
- package/dist/components/views/chrome/workspaceChrome.test.d.ts +0 -1
- package/dist/components/views/chrome/workspaceChrome.test.js +0 -52
- package/dist/components/views/panels/DocumentFilterToolbar.test.d.ts +0 -1
- package/dist/components/views/panels/DocumentFilterToolbar.test.js +0 -19
- package/dist/components/views/panels/FilterToolbar.test.d.ts +0 -1
- package/dist/components/views/panels/FilterToolbar.test.js +0 -47
- package/dist/components/views/panels/PlanningDrawer.test.d.ts +0 -1
- package/dist/components/views/panels/PlanningDrawer.test.js +0 -529
- package/dist/components/views/planningScope.test.d.ts +0 -1
- package/dist/components/views/planningScope.test.js +0 -60
- package/dist/components/views/standalone/modals/AccountHubModal.test.d.ts +0 -1
- package/dist/components/views/standalone/modals/AccountHubModal.test.js +0 -66
- package/dist/components/views/standalone/modals/SyncEnableWarningModal.test.d.ts +0 -1
- package/dist/components/views/standalone/modals/SyncEnableWarningModal.test.js +0 -24
- package/dist/components/views/teamManagementAccess.test.d.ts +0 -1
- package/dist/components/views/teamManagementAccess.test.js +0 -44
- package/dist/config/deployment.test.d.ts +0 -1
- package/dist/config/deployment.test.js +0 -90
- package/dist/config/envSchema.test.d.ts +0 -1
- package/dist/config/envSchema.test.js +0 -125
- package/dist/core/AiProfileService.test.d.ts +0 -1
- package/dist/core/AiProfileService.test.js +0 -184
- package/dist/core/AiProfiles.test.d.ts +0 -1
- package/dist/core/AiProfiles.test.js +0 -1873
- package/dist/core/AuthTokenService.test.d.ts +0 -1
- package/dist/core/AuthTokenService.test.js +0 -78
- package/dist/core/BulkUpdateFieldsPreview.test.d.ts +0 -1
- package/dist/core/BulkUpdateFieldsPreview.test.js +0 -62
- package/dist/core/CompletedAt.test.d.ts +0 -1
- package/dist/core/CompletedAt.test.js +0 -44
- package/dist/core/CreatedBy.test.d.ts +0 -1
- package/dist/core/CreatedBy.test.js +0 -188
- package/dist/core/DeletedTaskTrash.test.d.ts +0 -1
- package/dist/core/DeletedTaskTrash.test.js +0 -104
- package/dist/core/EntitlementsPolicy.test.d.ts +0 -1
- package/dist/core/EntitlementsPolicy.test.js +0 -280
- package/dist/core/GlobalSettingsService.test.d.ts +0 -1
- package/dist/core/GlobalSettingsService.test.js +0 -45
- package/dist/core/JsonBackupRuntime.test.d.ts +0 -1
- package/dist/core/JsonBackupRuntime.test.js +0 -155
- package/dist/core/PlanFeatureCatalog.test.d.ts +0 -1
- package/dist/core/PlanFeatureCatalog.test.js +0 -139
- package/dist/core/PlanVersionPolicy.test.d.ts +0 -1
- package/dist/core/PlanVersionPolicy.test.js +0 -204
- package/dist/core/PlanningEntities.test.d.ts +0 -1
- package/dist/core/PlanningEntities.test.js +0 -509
- package/dist/core/ScheduleFields.test.d.ts +0 -1
- package/dist/core/ScheduleFields.test.js +0 -193
- package/dist/core/SetupState.test.d.ts +0 -1
- package/dist/core/SetupState.test.js +0 -113
- package/dist/core/SignupMonetizationSettings.test.d.ts +0 -1
- package/dist/core/SignupMonetizationSettings.test.js +0 -515
- package/dist/core/Stats.test.d.ts +0 -1
- package/dist/core/Stats.test.js +0 -36
- package/dist/core/SystemAdmin.test.d.ts +0 -1
- package/dist/core/SystemAdmin.test.js +0 -1106
- package/dist/core/TaskActivitySync.test.d.ts +0 -1
- package/dist/core/TaskActivitySync.test.js +0 -90
- package/dist/core/TaskAttachmentsCanonical.test.d.ts +0 -1
- package/dist/core/TaskAttachmentsCanonical.test.js +0 -356
- package/dist/core/TaskAuditTimeline.test.d.ts +0 -1
- package/dist/core/TaskAuditTimeline.test.js +0 -319
- package/dist/core/TaskTaxonomyValidation.test.d.ts +0 -1
- package/dist/core/TaskTaxonomyValidation.test.js +0 -440
- package/dist/core/Taskforce.ids.test.d.ts +0 -1
- package/dist/core/Taskforce.ids.test.js +0 -611
- package/dist/core/Taskforce.listTasksSlim.test.d.ts +0 -1
- package/dist/core/Taskforce.listTasksSlim.test.js +0 -91
- package/dist/core/Taskforce.mcpAuth.test.d.ts +0 -1
- package/dist/core/Taskforce.mcpAuth.test.js +0 -450
- package/dist/core/Taskforce.realtimeMutation.test.d.ts +0 -1
- package/dist/core/Taskforce.realtimeMutation.test.js +0 -131
- package/dist/core/UserProfileAvatarDrafts.test.d.ts +0 -1
- package/dist/core/UserProfileAvatarDrafts.test.js +0 -138
- package/dist/core/WorkspaceDelete.test.d.ts +0 -1
- package/dist/core/WorkspaceDelete.test.js +0 -159
- package/dist/core/WorkspacePermissions.test.d.ts +0 -1
- package/dist/core/WorkspacePermissions.test.js +0 -270
- package/dist/core/WorkspacePlanMode.test.d.ts +0 -1
- package/dist/core/WorkspacePlanMode.test.js +0 -383
- package/dist/core/WorkspaceSyncSettings.test.d.ts +0 -1
- package/dist/core/WorkspaceSyncSettings.test.js +0 -65
- package/dist/core/__tests__/TaskAttachmentsCanonical.test.d.ts +0 -1
- package/dist/core/__tests__/TaskAttachmentsCanonical.test.js +0 -212
- package/dist/documentReviews/DocumentReviewSessionStore.test.d.ts +0 -1
- package/dist/documentReviews/DocumentReviewSessionStore.test.js +0 -127
- package/dist/hooks/authGuardPolicy.test.d.ts +0 -1
- package/dist/hooks/authGuardPolicy.test.js +0 -76
- package/dist/hooks/bootstrapTimeouts.test.d.ts +0 -1
- package/dist/hooks/bootstrapTimeouts.test.js +0 -12
- package/dist/hooks/sync/controlPlane.test.d.ts +0 -1
- package/dist/hooks/sync/controlPlane.test.js +0 -121
- package/dist/hooks/sync/lifecyclePolicy.test.d.ts +0 -1
- package/dist/hooks/sync/lifecyclePolicy.test.js +0 -124
- package/dist/hooks/sync/orchestratorShared.test.d.ts +0 -1
- package/dist/hooks/sync/orchestratorShared.test.js +0 -98
- package/dist/hooks/sync/pullLifecycle.test.d.ts +0 -1
- package/dist/hooks/sync/pullLifecycle.test.js +0 -80
- package/dist/hooks/sync/recovery.test.d.ts +0 -1
- package/dist/hooks/sync/recovery.test.js +0 -292
- package/dist/hooks/sync/transfers.test.d.ts +0 -1
- package/dist/hooks/sync/transfers.test.js +0 -928
- package/dist/hooks/sync/useRecentSyncEvents.test.d.ts +0 -1
- package/dist/hooks/sync/useRecentSyncEvents.test.js +0 -124
- package/dist/hooks/sync/useSyncStatusActions.test.d.ts +0 -1
- package/dist/hooks/sync/useSyncStatusActions.test.js +0 -133
- package/dist/hooks/sync/useSyncStatusControls.test.d.ts +0 -1
- package/dist/hooks/sync/useSyncStatusControls.test.js +0 -88
- package/dist/hooks/useFilterSort.test.d.ts +0 -1
- package/dist/hooks/useFilterSort.test.js +0 -419
- package/dist/hooks/useRealtimeSync.test.d.ts +0 -1
- package/dist/hooks/useRealtimeSync.test.js +0 -311
- package/dist/hooks/useSyncOrchestrator.aiProfiles.test.d.ts +0 -1
- package/dist/hooks/useSyncOrchestrator.aiProfiles.test.js +0 -54
- package/dist/hooks/useSyncOrchestrator.context-assets.test.d.ts +0 -1
- package/dist/hooks/useSyncOrchestrator.context-assets.test.js +0 -228
- package/dist/hooks/useSyncOrchestrator.retry-closure.test.d.ts +0 -1
- package/dist/hooks/useSyncOrchestrator.retry-closure.test.js +0 -2027
- package/dist/hooks/useTaskData.test.d.ts +0 -1
- package/dist/hooks/useTaskData.test.js +0 -291
- package/dist/hooks/useTaskMutations.test.d.ts +0 -1
- package/dist/hooks/useTaskMutations.test.js +0 -256
- package/dist/hooks/useTaskforce.contract.test.d.ts +0 -1
- package/dist/hooks/useTaskforce.contract.test.js +0 -7
- package/dist/hooks/useTaskforce.priority-filters.test.d.ts +0 -1
- package/dist/hooks/useTaskforce.priority-filters.test.js +0 -28
- package/dist/hooks/useTaskforce.runtime-routing.test.d.ts +0 -1
- package/dist/hooks/useTaskforce.runtime-routing.test.js +0 -246
- package/dist/hooks/useTaskforce.sync-behavior.test.d.ts +0 -1
- package/dist/hooks/useTaskforce.sync-behavior.test.js +0 -3644
- package/dist/hooks/useWorkspaceSyncController.test.d.ts +0 -1
- package/dist/hooks/useWorkspaceSyncController.test.js +0 -192
- package/dist/hooks/workspace/useTaskforceApiRouting.test.d.ts +0 -1
- package/dist/hooks/workspace/useTaskforceApiRouting.test.js +0 -77
- package/dist/hooks/workspace/workspaceLocalState.test.d.ts +0 -1
- package/dist/hooks/workspace/workspaceLocalState.test.js +0 -59
- package/dist/localization/localizationCatalogs.test.d.ts +0 -1
- package/dist/localization/localizationCatalogs.test.js +0 -37
- package/dist/mcp/aiProfileBootstrap.test.d.ts +0 -1
- package/dist/mcp/aiProfileBootstrap.test.js +0 -68
- package/dist/mcp/canonicalAssetHelpers.test.d.ts +0 -1
- package/dist/mcp/canonicalAssetHelpers.test.js +0 -67
- package/dist/mcp/clientIntegrations.test.d.ts +0 -1
- package/dist/mcp/clientIntegrations.test.js +0 -219
- package/dist/mcp/optionResolution.test.d.ts +0 -1
- package/dist/mcp/optionResolution.test.js +0 -43
- package/dist/mcp/runtime.test.d.ts +0 -1
- package/dist/mcp/runtime.test.js +0 -5120
- package/dist/mcp/structuredCommentValidation.test.d.ts +0 -1
- package/dist/mcp/structuredCommentValidation.test.js +0 -31
- package/dist/mcp/structuredDocValidation.test.d.ts +0 -1
- package/dist/mcp/structuredDocValidation.test.js +0 -35
- package/dist/mcp/toolRegistry.test.d.ts +0 -1
- package/dist/mcp/toolRegistry.test.js +0 -34
- package/dist/migrations/billingSchemaParity.test.d.ts +0 -1
- package/dist/migrations/billingSchemaParity.test.js +0 -160
- package/dist/migrations/taskSchemaMigrations.test.d.ts +0 -1
- package/dist/migrations/taskSchemaMigrations.test.js +0 -225
- package/dist/qaOpen.test.d.ts +0 -1
- package/dist/qaOpen.test.js +0 -56
- package/dist/releaseVersion.test.d.ts +0 -1
- package/dist/releaseVersion.test.js +0 -32
- package/dist/runtime/appGates.test.d.ts +0 -1
- package/dist/runtime/appGates.test.js +0 -42
- package/dist/server/aiProfileAvatarAssets.test.d.ts +0 -1
- package/dist/server/aiProfileAvatarAssets.test.js +0 -213
- package/dist/server/annotatedAttachmentsRoutes.test.d.ts +0 -1
- package/dist/server/annotatedAttachmentsRoutes.test.js +0 -532
- package/dist/server/auth.test.d.ts +0 -1
- package/dist/server/auth.test.js +0 -131
- package/dist/server/buildInfo.test.d.ts +0 -1
- package/dist/server/buildInfo.test.js +0 -29
- package/dist/server/cors.test.d.ts +0 -1
- package/dist/server/cors.test.js +0 -77
- package/dist/server/documentReviewRoutes.test.d.ts +0 -1
- package/dist/server/documentReviewRoutes.test.js +0 -190
- package/dist/server/email.test.d.ts +0 -1
- package/dist/server/email.test.js +0 -113
- package/dist/server/index.cookieProxy.test.d.ts +0 -1
- package/dist/server/index.cookieProxy.test.js +0 -67
- package/dist/server/index.rateLimit.test.d.ts +0 -1
- package/dist/server/index.rateLimit.test.js +0 -22
- package/dist/server/index.test.d.ts +0 -1
- package/dist/server/index.test.js +0 -283
- package/dist/server/rateLimit.test.d.ts +0 -1
- package/dist/server/rateLimit.test.js +0 -107
- package/dist/server/realtimeSync.auth.test.d.ts +0 -1
- package/dist/server/realtimeSync.auth.test.js +0 -62
- package/dist/server/realtimeSync.replay.test.d.ts +0 -1
- package/dist/server/realtimeSync.replay.test.js +0 -192
- package/dist/server/realtimeSync.workspaceIsolation.test.d.ts +0 -1
- package/dist/server/realtimeSync.workspaceIsolation.test.js +0 -101
- package/dist/server/routes/billing.test.d.ts +0 -1
- package/dist/server/routes/billing.test.js +0 -3455
- package/dist/server/routes/shared.test.d.ts +0 -1
- package/dist/server/routes/shared.test.js +0 -32
- package/dist/server/routes/sync.integration.test.d.ts +0 -1
- package/dist/server/routes/sync.integration.test.js +0 -2932
- package/dist/server/routes/syncAuxRoutes.test.d.ts +0 -1
- package/dist/server/routes/syncAuxRoutes.test.js +0 -158
- package/dist/server/routes/syncRouteGuards.test.d.ts +0 -1
- package/dist/server/routes/syncRouteGuards.test.js +0 -94
- package/dist/server/routes.test.d.ts +0 -1
- package/dist/server/routes.test.js +0 -15612
- package/dist/server/runtimeMode.test.d.ts +0 -1
- package/dist/server/runtimeMode.test.js +0 -26
- package/dist/server/securityHeaders.test.d.ts +0 -1
- package/dist/server/securityHeaders.test.js +0 -70
- package/dist/services/templateEngine.test.d.ts +0 -1
- package/dist/services/templateEngine.test.js +0 -150
- package/dist/services/templates.test.d.ts +0 -1
- package/dist/services/templates.test.js +0 -45
- package/dist/services/workflowDocumentFixtures.test.d.ts +0 -1
- package/dist/services/workflowDocumentFixtures.test.js +0 -78
- package/dist/services/workflowExportMatrix.test.d.ts +0 -1
- package/dist/services/workflowExportMatrix.test.js +0 -113
- package/dist/services/workflowExportSnapshots.test.d.ts +0 -1
- package/dist/services/workflowExportSnapshots.test.js +0 -30
- package/dist/services/workflowGeneration.test.d.ts +0 -1
- package/dist/services/workflowGeneration.test.js +0 -12
- package/dist/services/workflowSimulation.test.d.ts +0 -1
- package/dist/services/workflowSimulation.test.js +0 -113
- package/dist/services/workflowV2Policy.test.d.ts +0 -1
- package/dist/services/workflowV2Policy.test.js +0 -80
- package/dist/shared/customTaxonomyLibrary.test.d.ts +0 -1
- package/dist/shared/customTaxonomyLibrary.test.js +0 -20
- package/dist/shared/passwordPolicy.test.d.ts +0 -1
- package/dist/shared/passwordPolicy.test.js +0 -34
- package/dist/shared/runtimeContract.test.d.ts +0 -1
- package/dist/shared/runtimeContract.test.js +0 -23
- package/dist/shared/taxonomyLibrary.test.d.ts +0 -1
- package/dist/shared/taxonomyLibrary.test.js +0 -26
- package/dist/shared/taxonomyState.test.d.ts +0 -1
- package/dist/shared/taxonomyState.test.js +0 -71
- package/dist/soak/preflight.cli.d.ts +0 -1
- package/dist/soak/preflight.cli.js +0 -28
- package/dist/soak/preflight.d.ts +0 -26
- package/dist/soak/preflight.js +0 -113
- package/dist/soak/preflight.test.d.ts +0 -1
- package/dist/soak/preflight.test.js +0 -39
- package/dist/storage/objectStorageClient.test.d.ts +0 -1
- package/dist/storage/objectStorageClient.test.js +0 -82
- package/dist/storage/objectStorageConfig.test.d.ts +0 -1
- package/dist/storage/objectStorageConfig.test.js +0 -50
- package/dist/storage/postgresAdapter.test.d.ts +0 -1
- package/dist/storage/postgresAdapter.test.js +0 -29
- package/dist/storage/workspaceAssetStore.test.d.ts +0 -1
- package/dist/storage/workspaceAssetStore.test.js +0 -588
- package/dist/sync/cloudSyncApi.test.d.ts +0 -1
- package/dist/sync/cloudSyncApi.test.js +0 -111
- package/dist/sync/collaborationSyncPayload.test.d.ts +0 -1
- package/dist/sync/collaborationSyncPayload.test.js +0 -125
- package/dist/sync/contentSyncPayload.test.d.ts +0 -1
- package/dist/sync/contentSyncPayload.test.js +0 -143
- package/dist/sync/encryptionService.test.d.ts +0 -1
- package/dist/sync/encryptionService.test.js +0 -52
- package/dist/sync/planningSyncPayload.test.d.ts +0 -1
- package/dist/sync/planningSyncPayload.test.js +0 -92
- package/dist/sync/realtimeFeature.test.d.ts +0 -1
- package/dist/sync/realtimeFeature.test.js +0 -30
- package/dist/sync/realtimeReconcile.test.d.ts +0 -1
- package/dist/sync/realtimeReconcile.test.js +0 -43
- package/dist/sync/syncApplyHandlers.test.d.ts +0 -1
- package/dist/sync/syncApplyHandlers.test.js +0 -626
- package/dist/sync/syncService.test.d.ts +0 -1
- package/dist/sync/syncService.test.js +0 -903
- package/dist/sync/taskSyncPayload.test.d.ts +0 -1
- package/dist/sync/taskSyncPayload.test.js +0 -54
- package/dist/sync/workspacePullFeed.test.d.ts +0 -1
- package/dist/sync/workspacePullFeed.test.js +0 -438
- package/dist/sync/workspaceSyncModel.test.d.ts +0 -1
- package/dist/sync/workspaceSyncModel.test.js +0 -1442
- package/dist/test/setup.d.ts +0 -1
- package/dist/test/setup.js +0 -15
- package/dist/ui/assets/AgentsModule-BS4Pi_nC.js +0 -1
- package/dist/ui/assets/ContextAttachmentManager-CfG_ER7C.js +0 -3
- package/dist/ui/assets/PlansPage-B_z-D6Nh.css +0 -1
- package/dist/ui/assets/PlansPage-Ndt7mYfo.js +0 -1
- package/dist/ui/assets/documentReferences-BOUcJm6-.js +0 -1
- package/dist/ui/assets/index-MAHKvFqp.js +0 -4
- package/dist/utils/accountProfileSummaryCache.test.d.ts +0 -1
- package/dist/utils/accountProfileSummaryCache.test.js +0 -63
- package/dist/utils/annotatedAttachments.test.d.ts +0 -1
- package/dist/utils/annotatedAttachments.test.js +0 -108
- package/dist/utils/assignees.test.d.ts +0 -1
- package/dist/utils/assignees.test.js +0 -25
- package/dist/utils/avatarUpload.test.d.ts +0 -1
- package/dist/utils/avatarUpload.test.js +0 -40
- package/dist/utils/canonicalAssetKind.test.d.ts +0 -1
- package/dist/utils/canonicalAssetKind.test.js +0 -24
- package/dist/utils/coalescedRefresh.test.d.ts +0 -1
- package/dist/utils/coalescedRefresh.test.js +0 -30
- package/dist/utils/constants.icons.test.d.ts +0 -1
- package/dist/utils/constants.icons.test.js +0 -41
- package/dist/utils/planParser.test.d.ts +0 -1
- package/dist/utils/planParser.test.js +0 -183
- package/dist/utils/planningReferences.test.d.ts +0 -1
- package/dist/utils/planningReferences.test.js +0 -17
- package/dist/utils/syncEventDetails.test.d.ts +0 -1
- package/dist/utils/syncEventDetails.test.js +0 -23
- package/dist/utils/syncEventPresentation.test.d.ts +0 -1
- package/dist/utils/syncEventPresentation.test.js +0 -64
- package/dist/utils/syncStatusPresentation.test.d.ts +0 -1
- package/dist/utils/syncStatusPresentation.test.js +0 -164
- package/dist/utils/taskActivity.test.d.ts +0 -1
- package/dist/utils/taskActivity.test.js +0 -218
- package/dist/utils/taskDraftDefaults.test.d.ts +0 -1
- package/dist/utils/taskDraftDefaults.test.js +0 -34
- package/dist/utils/taskDragZones.test.d.ts +0 -1
- package/dist/utils/taskDragZones.test.js +0 -14
- package/dist/utils/taskNormalization.test.d.ts +0 -1
- package/dist/utils/taskNormalization.test.js +0 -158
- package/dist/utils/taskSearch.test.d.ts +0 -1
- package/dist/utils/taskSearch.test.js +0 -69
- package/dist/utils/taskUtils.test.d.ts +0 -1
- package/dist/utils/taskUtils.test.js +0 -19
- package/dist/utils/taskforceApiClient.test.d.ts +0 -1
- package/dist/utils/taskforceApiClient.test.js +0 -44
- package/dist/utils/taxonomyFormDefaults.test.d.ts +0 -1
- package/dist/utils/taxonomyFormDefaults.test.js +0 -63
- package/dist/utils/uiNotice.test.d.ts +0 -1
- package/dist/utils/uiNotice.test.js +0 -18
- package/dist/utils/workspaceIdentity.test.d.ts +0 -1
- package/dist/utils/workspaceIdentity.test.js +0 -61
- package/dist/utils/workspaceLifecycle.test.d.ts +0 -1
- package/dist/utils/workspaceLifecycle.test.js +0 -64
- package/dist/utils/workspaceSyncPresentation.test.d.ts +0 -1
- package/dist/utils/workspaceSyncPresentation.test.js +0 -71
- package/scripts/bootstrap-playwright-auth.mjs +0 -155
- package/scripts/check-cloud-mcp.mjs +0 -83
- package/scripts/check-compat-boundaries.mjs +0 -41
- package/scripts/check-env.ts +0 -31
- package/scripts/check-localization-strings.mjs +0 -49
- package/scripts/check-runtime-boundaries.mjs +0 -44
- package/scripts/debug-global.mjs +0 -34
- package/scripts/debug-login.mjs +0 -32
- package/scripts/debug-server.mjs +0 -36
- package/scripts/deploy-prod.sh +0 -41
- package/scripts/deploy-staging.sh +0 -23
- package/scripts/export-sqlite-to-postgres.mjs +0 -123
- package/scripts/generate-env-example.ts +0 -8
- package/scripts/mcp-stdio-adapter.mjs +0 -160
- package/scripts/migrate-task-data-assets.mjs +0 -408
- package/scripts/playwright-auth.sh +0 -19
- package/scripts/qa-open-lib.mjs +0 -175
- package/scripts/qa-open-lib.mjs.d.ts +0 -49
- package/scripts/qa-open.mjs +0 -352
- package/scripts/release-version-lib.mjs +0 -88
- package/scripts/release-version.mjs +0 -72
- package/scripts/run-billing-performance-smoke.sh +0 -24
- package/scripts/run-dev-proxy.sh +0 -51
- package/scripts/run-e2e-realtime.sh +0 -30
- package/scripts/run-smoke.sh +0 -35
- package/scripts/run-soak.sh +0 -41
- package/scripts/test-global.js +0 -143
- package/scripts/update-homebrew-formula.sh +0 -108
- package/scripts/with-esbuild.sh +0 -11
|
@@ -1,419 +0,0 @@
|
|
|
1
|
-
import { act, renderHook, waitFor } from '@testing-library/react';
|
|
2
|
-
import { describe, expect, it } from 'vitest';
|
|
3
|
-
import { useFilterSort } from './useFilterSort';
|
|
4
|
-
function makeTask(overrides) {
|
|
5
|
-
return {
|
|
6
|
-
id: overrides.id || 'task-1',
|
|
7
|
-
title: overrides.title || 'Task',
|
|
8
|
-
description: overrides.description ?? null,
|
|
9
|
-
status: (overrides.status || 'task'),
|
|
10
|
-
priority: overrides.priority ?? 2,
|
|
11
|
-
complexity: overrides.complexity ?? 3,
|
|
12
|
-
type: overrides.type || 'feature',
|
|
13
|
-
category: overrides.category || 'default',
|
|
14
|
-
createdAt: overrides.createdAt || '2026-03-23T00:00:00.000Z',
|
|
15
|
-
updatedAt: overrides.updatedAt || null,
|
|
16
|
-
completedAt: overrides.completedAt || null,
|
|
17
|
-
canceledReason: overrides.canceledReason || null,
|
|
18
|
-
isArchived: overrides.isArchived || false,
|
|
19
|
-
scheduledDate: overrides.scheduledDate || null,
|
|
20
|
-
dueDate: overrides.dueDate || null,
|
|
21
|
-
scheduledWeekKey: overrides.scheduledWeekKey || null,
|
|
22
|
-
orderInDay: overrides.orderInDay || null,
|
|
23
|
-
taxonomies: overrides.taxonomies || {},
|
|
24
|
-
createdBy: overrides.createdBy,
|
|
25
|
-
assignee: overrides.assignee || 'unassigned',
|
|
26
|
-
comments: overrides.comments || [],
|
|
27
|
-
attachments: overrides.attachments || [],
|
|
28
|
-
activity: overrides.activity || [],
|
|
29
|
-
taskEvents: overrides.taskEvents || [],
|
|
30
|
-
referenceLabel: overrides.referenceLabel
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
describe('useFilterSort', () => {
|
|
34
|
-
const activeCategories = [
|
|
35
|
-
{ value: 'default', label: 'Default', disabled: false },
|
|
36
|
-
{ value: 'ops', label: 'Ops', disabled: false }
|
|
37
|
-
];
|
|
38
|
-
const activeTypes = [
|
|
39
|
-
{ value: 'feature', label: 'Feature' },
|
|
40
|
-
{ value: 'bug', label: 'Bug' }
|
|
41
|
-
];
|
|
42
|
-
const priorities = [
|
|
43
|
-
{ value: 1, label: 'Low' },
|
|
44
|
-
{ value: 2, label: 'Medium' },
|
|
45
|
-
{ value: 3, label: 'High' }
|
|
46
|
-
];
|
|
47
|
-
const assigneeOptions = [
|
|
48
|
-
{ value: 'unassigned', label: 'Unassigned', icon: 'HelpCircle', color: '#999', kind: 'unassigned' },
|
|
49
|
-
{ value: 'member-1', label: 'Member One', icon: 'User', color: '#22c55e', kind: 'member' }
|
|
50
|
-
];
|
|
51
|
-
const taxonomies = [
|
|
52
|
-
{
|
|
53
|
-
id: 'track',
|
|
54
|
-
label: 'Track',
|
|
55
|
-
options: [{ value: 'platform', label: 'Platform' }],
|
|
56
|
-
widgetType: 'select',
|
|
57
|
-
isSystem: false,
|
|
58
|
-
multiSelect: false
|
|
59
|
-
}
|
|
60
|
-
];
|
|
61
|
-
it('keeps tasks with unknown values visible when every filter is effectively toggle-all', async () => {
|
|
62
|
-
const knownTask = makeTask({
|
|
63
|
-
id: 'known-task',
|
|
64
|
-
title: 'Known task',
|
|
65
|
-
category: 'default',
|
|
66
|
-
type: 'feature',
|
|
67
|
-
priority: 2,
|
|
68
|
-
status: 'task',
|
|
69
|
-
assignee: 'unassigned',
|
|
70
|
-
taxonomies: { track: 'platform' }
|
|
71
|
-
});
|
|
72
|
-
const unknownTask = makeTask({
|
|
73
|
-
id: 'unknown-task',
|
|
74
|
-
title: 'Unknown task',
|
|
75
|
-
category: 'ghost-category',
|
|
76
|
-
type: 'ghost-type',
|
|
77
|
-
priority: 99,
|
|
78
|
-
status: 'ghost-status',
|
|
79
|
-
assignee: 'ghost-assignee',
|
|
80
|
-
taxonomies: { track: 'ghost-track' }
|
|
81
|
-
});
|
|
82
|
-
const unknownArchivedTask = makeTask({
|
|
83
|
-
id: 'unknown-archived-task',
|
|
84
|
-
title: 'Unknown archived task',
|
|
85
|
-
category: 'ghost-category',
|
|
86
|
-
type: 'ghost-type',
|
|
87
|
-
priority: 99,
|
|
88
|
-
assignee: 'ghost-assignee',
|
|
89
|
-
taxonomies: { track: 'ghost-track' },
|
|
90
|
-
isArchived: true
|
|
91
|
-
});
|
|
92
|
-
const { result } = renderHook(() => useFilterSort({
|
|
93
|
-
tasks: [knownTask, unknownTask],
|
|
94
|
-
archivedTasks: [unknownArchivedTask],
|
|
95
|
-
activeCategories,
|
|
96
|
-
activeTypes,
|
|
97
|
-
priorities,
|
|
98
|
-
taxonomies,
|
|
99
|
-
configLoaded: true,
|
|
100
|
-
referenceDataLoaded: true,
|
|
101
|
-
assigneeOptionsLoaded: true,
|
|
102
|
-
assigneeOptions
|
|
103
|
-
}));
|
|
104
|
-
await waitFor(() => {
|
|
105
|
-
expect(result.current.hasInitedFilters).toBe(true);
|
|
106
|
-
});
|
|
107
|
-
expect(result.current.filteredTasks.map((task) => task.id)).toEqual(['known-task', 'unknown-task']);
|
|
108
|
-
expect(result.current.searchAgnosticTasks.map((task) => task.id)).toEqual(['known-task', 'unknown-task']);
|
|
109
|
-
expect(result.current.filteredArchive.map((task) => task.id)).toEqual(['unknown-archived-task']);
|
|
110
|
-
});
|
|
111
|
-
it('matches task reference labels when the search query has surrounding spaces or pasted formatting', async () => {
|
|
112
|
-
const matchingTask = makeTask({
|
|
113
|
-
id: 'matching-task',
|
|
114
|
-
title: 'Reference match',
|
|
115
|
-
referenceLabel: 'T-123'
|
|
116
|
-
});
|
|
117
|
-
const otherTask = makeTask({
|
|
118
|
-
id: 'other-task',
|
|
119
|
-
title: 'Other task',
|
|
120
|
-
referenceLabel: 'T-456'
|
|
121
|
-
});
|
|
122
|
-
const archivedMatch = makeTask({
|
|
123
|
-
id: 'archived-match',
|
|
124
|
-
title: 'Archived reference match',
|
|
125
|
-
referenceLabel: 'T-123',
|
|
126
|
-
isArchived: true
|
|
127
|
-
});
|
|
128
|
-
const { result } = renderHook(() => useFilterSort({
|
|
129
|
-
tasks: [matchingTask, otherTask],
|
|
130
|
-
archivedTasks: [archivedMatch],
|
|
131
|
-
activeCategories,
|
|
132
|
-
activeTypes,
|
|
133
|
-
priorities,
|
|
134
|
-
taxonomies: [],
|
|
135
|
-
configLoaded: true,
|
|
136
|
-
referenceDataLoaded: true,
|
|
137
|
-
assigneeOptionsLoaded: true,
|
|
138
|
-
assigneeOptions
|
|
139
|
-
}));
|
|
140
|
-
await waitFor(() => {
|
|
141
|
-
expect(result.current.hasInitedFilters).toBe(true);
|
|
142
|
-
});
|
|
143
|
-
act(() => {
|
|
144
|
-
result.current.setSearchQuery(' T - 123 ');
|
|
145
|
-
});
|
|
146
|
-
expect(result.current.filteredTasks.map((task) => task.id)).toEqual(['matching-task']);
|
|
147
|
-
expect(result.current.filteredArchive.map((task) => task.id)).toEqual(['archived-match']);
|
|
148
|
-
act(() => {
|
|
149
|
-
result.current.setSearchQuery('t–123');
|
|
150
|
-
});
|
|
151
|
-
expect(result.current.filteredTasks.map((task) => task.id)).toEqual(['matching-task']);
|
|
152
|
-
act(() => {
|
|
153
|
-
result.current.setSearchQuery(' ');
|
|
154
|
-
});
|
|
155
|
-
expect(result.current.filteredTasks.map((task) => task.id)).toEqual(['matching-task', 'other-task']);
|
|
156
|
-
});
|
|
157
|
-
it('matches tokenized search text and task metadata labels', async () => {
|
|
158
|
-
const matchingTask = makeTask({
|
|
159
|
-
id: 'matching-task',
|
|
160
|
-
title: 'Billing API cleanup',
|
|
161
|
-
category: 'ops',
|
|
162
|
-
priority: 3,
|
|
163
|
-
assignee: 'member-1'
|
|
164
|
-
});
|
|
165
|
-
const otherTask = makeTask({
|
|
166
|
-
id: 'other-task',
|
|
167
|
-
title: 'Marketing copy cleanup',
|
|
168
|
-
category: 'default',
|
|
169
|
-
priority: 1,
|
|
170
|
-
assignee: 'unassigned'
|
|
171
|
-
});
|
|
172
|
-
const { result } = renderHook(() => useFilterSort({
|
|
173
|
-
tasks: [matchingTask, otherTask],
|
|
174
|
-
archivedTasks: [],
|
|
175
|
-
activeCategories,
|
|
176
|
-
activeTypes,
|
|
177
|
-
priorities,
|
|
178
|
-
taxonomies: [],
|
|
179
|
-
configLoaded: true,
|
|
180
|
-
referenceDataLoaded: true,
|
|
181
|
-
assigneeOptionsLoaded: true,
|
|
182
|
-
assigneeOptions
|
|
183
|
-
}));
|
|
184
|
-
await waitFor(() => {
|
|
185
|
-
expect(result.current.hasInitedFilters).toBe(true);
|
|
186
|
-
});
|
|
187
|
-
act(() => {
|
|
188
|
-
result.current.setSearchQuery('api billing');
|
|
189
|
-
});
|
|
190
|
-
expect(result.current.filteredTasks.map((task) => task.id)).toEqual(['matching-task']);
|
|
191
|
-
act(() => {
|
|
192
|
-
result.current.setSearchQuery('Member One');
|
|
193
|
-
});
|
|
194
|
-
expect(result.current.filteredTasks.map((task) => task.id)).toEqual(['matching-task']);
|
|
195
|
-
});
|
|
196
|
-
it('still excludes unknown values when the user selects a subset filter', async () => {
|
|
197
|
-
const knownTask = makeTask({
|
|
198
|
-
id: 'known-task',
|
|
199
|
-
title: 'Known task',
|
|
200
|
-
category: 'default'
|
|
201
|
-
});
|
|
202
|
-
const unknownTask = makeTask({
|
|
203
|
-
id: 'unknown-task',
|
|
204
|
-
title: 'Unknown task',
|
|
205
|
-
category: 'ghost-category'
|
|
206
|
-
});
|
|
207
|
-
const { result } = renderHook(() => useFilterSort({
|
|
208
|
-
tasks: [knownTask, unknownTask],
|
|
209
|
-
archivedTasks: [],
|
|
210
|
-
activeCategories,
|
|
211
|
-
activeTypes,
|
|
212
|
-
priorities,
|
|
213
|
-
taxonomies: [],
|
|
214
|
-
configLoaded: true,
|
|
215
|
-
referenceDataLoaded: true,
|
|
216
|
-
assigneeOptionsLoaded: true,
|
|
217
|
-
assigneeOptions
|
|
218
|
-
}));
|
|
219
|
-
await waitFor(() => {
|
|
220
|
-
expect(result.current.hasInitedFilters).toBe(true);
|
|
221
|
-
});
|
|
222
|
-
act(() => {
|
|
223
|
-
result.current.setFilterCategories(['default']);
|
|
224
|
-
});
|
|
225
|
-
expect(result.current.filteredTasks.map((task) => task.id)).toEqual(['known-task']);
|
|
226
|
-
});
|
|
227
|
-
it('ignores custom taxonomy filters when that taxonomy is not filter-enabled', async () => {
|
|
228
|
-
const platformTask = makeTask({
|
|
229
|
-
id: 'platform-task',
|
|
230
|
-
title: 'Platform task',
|
|
231
|
-
taxonomies: { track: 'platform' }
|
|
232
|
-
});
|
|
233
|
-
const ghostTask = makeTask({
|
|
234
|
-
id: 'ghost-task',
|
|
235
|
-
title: 'Ghost task',
|
|
236
|
-
taxonomies: { track: 'ghost-track' }
|
|
237
|
-
});
|
|
238
|
-
const { result } = renderHook(() => useFilterSort({
|
|
239
|
-
tasks: [platformTask, ghostTask],
|
|
240
|
-
archivedTasks: [],
|
|
241
|
-
activeCategories,
|
|
242
|
-
activeTypes,
|
|
243
|
-
priorities,
|
|
244
|
-
taxonomies: [{
|
|
245
|
-
...taxonomies[0],
|
|
246
|
-
filterEnabled: false
|
|
247
|
-
}],
|
|
248
|
-
configLoaded: true,
|
|
249
|
-
referenceDataLoaded: true,
|
|
250
|
-
assigneeOptionsLoaded: true,
|
|
251
|
-
assigneeOptions
|
|
252
|
-
}));
|
|
253
|
-
await waitFor(() => {
|
|
254
|
-
expect(result.current.hasInitedFilters).toBe(true);
|
|
255
|
-
});
|
|
256
|
-
act(() => {
|
|
257
|
-
result.current.setFilterTaxonomies({ track: ['platform'] });
|
|
258
|
-
});
|
|
259
|
-
expect(result.current.filteredTasks.map((task) => task.id)).toEqual(['platform-task', 'ghost-task']);
|
|
260
|
-
});
|
|
261
|
-
it('does not initialize filters for retired custom taxonomies with no task usage', async () => {
|
|
262
|
-
const { result } = renderHook(() => useFilterSort({
|
|
263
|
-
tasks: [],
|
|
264
|
-
archivedTasks: [],
|
|
265
|
-
activeCategories,
|
|
266
|
-
activeTypes,
|
|
267
|
-
priorities,
|
|
268
|
-
taxonomies: [{
|
|
269
|
-
id: 'review-status',
|
|
270
|
-
label: 'Review Status',
|
|
271
|
-
status: 'retired',
|
|
272
|
-
options: [{ value: 'pending', label: 'Pending', status: 'active' }],
|
|
273
|
-
widgetType: 'select',
|
|
274
|
-
isSystem: false,
|
|
275
|
-
multiSelect: false,
|
|
276
|
-
filterEnabled: true
|
|
277
|
-
}],
|
|
278
|
-
configLoaded: true,
|
|
279
|
-
referenceDataLoaded: true,
|
|
280
|
-
assigneeOptionsLoaded: true,
|
|
281
|
-
assigneeOptions
|
|
282
|
-
}));
|
|
283
|
-
await waitFor(() => {
|
|
284
|
-
expect(result.current.hasInitedFilters).toBe(true);
|
|
285
|
-
});
|
|
286
|
-
expect(result.current.filterTaxonomies).toEqual({});
|
|
287
|
-
});
|
|
288
|
-
it('sorts by enabled custom taxonomy option order and keeps missing values last', async () => {
|
|
289
|
-
const alphaTask = makeTask({
|
|
290
|
-
id: 'alpha-task',
|
|
291
|
-
title: 'Alpha task',
|
|
292
|
-
taxonomies: { track: 'alpha' }
|
|
293
|
-
});
|
|
294
|
-
const betaTask = makeTask({
|
|
295
|
-
id: 'beta-task',
|
|
296
|
-
title: 'Beta task',
|
|
297
|
-
taxonomies: { track: 'beta' }
|
|
298
|
-
});
|
|
299
|
-
const missingTask = makeTask({
|
|
300
|
-
id: 'missing-task',
|
|
301
|
-
title: 'Missing task'
|
|
302
|
-
});
|
|
303
|
-
const { result } = renderHook(() => useFilterSort({
|
|
304
|
-
tasks: [missingTask, betaTask, alphaTask],
|
|
305
|
-
archivedTasks: [],
|
|
306
|
-
activeCategories,
|
|
307
|
-
activeTypes,
|
|
308
|
-
priorities,
|
|
309
|
-
taxonomies: [{
|
|
310
|
-
id: 'track',
|
|
311
|
-
label: 'Track',
|
|
312
|
-
options: [
|
|
313
|
-
{ value: 'alpha', label: 'Alpha' },
|
|
314
|
-
{ value: 'beta', label: 'Beta' }
|
|
315
|
-
],
|
|
316
|
-
widgetType: 'select',
|
|
317
|
-
isSystem: false,
|
|
318
|
-
multiSelect: false,
|
|
319
|
-
sortEnabled: true
|
|
320
|
-
}],
|
|
321
|
-
configLoaded: true,
|
|
322
|
-
referenceDataLoaded: true,
|
|
323
|
-
assigneeOptionsLoaded: true,
|
|
324
|
-
assigneeOptions
|
|
325
|
-
}));
|
|
326
|
-
await waitFor(() => {
|
|
327
|
-
expect(result.current.hasInitedFilters).toBe(true);
|
|
328
|
-
});
|
|
329
|
-
act(() => {
|
|
330
|
-
result.current.setSortBy('taxonomy:track');
|
|
331
|
-
result.current.setSortOrder('asc');
|
|
332
|
-
});
|
|
333
|
-
expect(result.current.filteredTasks.map((task) => task.id)).toEqual(['alpha-task', 'beta-task', 'missing-task']);
|
|
334
|
-
});
|
|
335
|
-
it('initializes custom taxonomy filters with active and in-use retired options only', async () => {
|
|
336
|
-
const activeTask = makeTask({
|
|
337
|
-
id: 'active-task',
|
|
338
|
-
taxonomies: { track: 'platform' }
|
|
339
|
-
});
|
|
340
|
-
const legacyTask = makeTask({
|
|
341
|
-
id: 'legacy-task',
|
|
342
|
-
taxonomies: { track: 'legacy' }
|
|
343
|
-
});
|
|
344
|
-
const { result } = renderHook(() => useFilterSort({
|
|
345
|
-
tasks: [activeTask, legacyTask],
|
|
346
|
-
archivedTasks: [],
|
|
347
|
-
activeCategories,
|
|
348
|
-
activeTypes,
|
|
349
|
-
priorities,
|
|
350
|
-
taxonomies: [{
|
|
351
|
-
id: 'track',
|
|
352
|
-
label: 'Track',
|
|
353
|
-
options: [
|
|
354
|
-
{ value: 'platform', label: 'Platform', status: 'active' },
|
|
355
|
-
{ value: 'legacy', label: 'Legacy', status: 'retired' },
|
|
356
|
-
{ value: 'unused-legacy', label: 'Unused Legacy', status: 'retired' }
|
|
357
|
-
],
|
|
358
|
-
widgetType: 'select',
|
|
359
|
-
isSystem: false,
|
|
360
|
-
multiSelect: false,
|
|
361
|
-
filterEnabled: true
|
|
362
|
-
}],
|
|
363
|
-
configLoaded: true,
|
|
364
|
-
referenceDataLoaded: true,
|
|
365
|
-
assigneeOptionsLoaded: true,
|
|
366
|
-
assigneeOptions
|
|
367
|
-
}));
|
|
368
|
-
await waitFor(() => {
|
|
369
|
-
expect(result.current.hasInitedFilters).toBe(true);
|
|
370
|
-
});
|
|
371
|
-
expect(result.current.filterTaxonomies.track).toEqual(['platform', 'legacy']);
|
|
372
|
-
});
|
|
373
|
-
it('normalizes restored type filters when they do not exist in the active workspace', async () => {
|
|
374
|
-
const { result } = renderHook(() => useFilterSort({
|
|
375
|
-
tasks: [makeTask({ id: 'task-1', type: 'feature' })],
|
|
376
|
-
archivedTasks: [],
|
|
377
|
-
activeCategories,
|
|
378
|
-
activeTypes,
|
|
379
|
-
priorities,
|
|
380
|
-
taxonomies: [],
|
|
381
|
-
configLoaded: true,
|
|
382
|
-
referenceDataLoaded: true,
|
|
383
|
-
assigneeOptionsLoaded: true,
|
|
384
|
-
assigneeOptions
|
|
385
|
-
}));
|
|
386
|
-
await waitFor(() => {
|
|
387
|
-
expect(result.current.hasInitedFilters).toBe(true);
|
|
388
|
-
});
|
|
389
|
-
act(() => {
|
|
390
|
-
result.current.setFilterTypes(['legacy-type']);
|
|
391
|
-
});
|
|
392
|
-
await waitFor(() => {
|
|
393
|
-
expect(result.current.filterTypes).toEqual(['feature', 'bug']);
|
|
394
|
-
});
|
|
395
|
-
});
|
|
396
|
-
it('normalizes restored taxonomy filters when they do not exist in the active workspace', async () => {
|
|
397
|
-
const { result } = renderHook(() => useFilterSort({
|
|
398
|
-
tasks: [makeTask({ id: 'task-1', taxonomies: { track: 'platform' } })],
|
|
399
|
-
archivedTasks: [],
|
|
400
|
-
activeCategories,
|
|
401
|
-
activeTypes,
|
|
402
|
-
priorities,
|
|
403
|
-
taxonomies,
|
|
404
|
-
configLoaded: true,
|
|
405
|
-
referenceDataLoaded: true,
|
|
406
|
-
assigneeOptionsLoaded: true,
|
|
407
|
-
assigneeOptions
|
|
408
|
-
}));
|
|
409
|
-
await waitFor(() => {
|
|
410
|
-
expect(result.current.hasInitedFilters).toBe(true);
|
|
411
|
-
});
|
|
412
|
-
act(() => {
|
|
413
|
-
result.current.setFilterTaxonomies({ track: ['legacy-track'] });
|
|
414
|
-
});
|
|
415
|
-
await waitFor(() => {
|
|
416
|
-
expect(result.current.filterTaxonomies.track).toEqual(['platform']);
|
|
417
|
-
});
|
|
418
|
-
});
|
|
419
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|