@open-mercato/core 0.7.1-develop.7178.1.ab93fbaf4e → 0.7.1-develop.7180.1.9717fbbb43
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/.turbo/turbo-build.log +2 -2
- package/dist/generated/entities/staff_time_entry/index.js +14 -0
- package/dist/generated/entities/staff_time_entry/index.js.map +2 -2
- package/dist/generated/entities/staff_time_entry_tag/index.js +15 -0
- package/dist/generated/entities/staff_time_entry_tag/index.js.map +7 -0
- package/dist/generated/entities/staff_time_project/index.js +16 -0
- package/dist/generated/entities/staff_time_project/index.js.map +2 -2
- package/dist/generated/entities/staff_time_report/index.js +57 -0
- package/dist/generated/entities/staff_time_report/index.js.map +7 -0
- package/dist/generated/entities/staff_time_report_entry/index.js +27 -0
- package/dist/generated/entities/staff_time_report_entry/index.js.map +7 -0
- package/dist/generated/entities/staff_time_report_event/index.js +21 -0
- package/dist/generated/entities/staff_time_report_event/index.js.map +7 -0
- package/dist/generated/entities/staff_time_report_project/index.js +15 -0
- package/dist/generated/entities/staff_time_report_project/index.js.map +7 -0
- package/dist/generated/entities/staff_time_tag/index.js +21 -0
- package/dist/generated/entities/staff_time_tag/index.js.map +7 -0
- package/dist/generated/entities/staff_time_task/index.js +37 -0
- package/dist/generated/entities/staff_time_task/index.js.map +7 -0
- package/dist/generated/entities/staff_time_task_comment/index.js +21 -0
- package/dist/generated/entities/staff_time_task_comment/index.js.map +7 -0
- package/dist/generated/entities/staff_time_task_status/index.js +29 -0
- package/dist/generated/entities/staff_time_task_status/index.js.map +7 -0
- package/dist/generated/entities/staff_time_task_tag/index.js +15 -0
- package/dist/generated/entities/staff_time_task_tag/index.js.map +7 -0
- package/dist/generated/entities.ids.generated.js +11 -1
- package/dist/generated/entities.ids.generated.js.map +2 -2
- package/dist/generated/entity-fields-registry.js +149 -0
- package/dist/generated/entity-fields-registry.js.map +2 -2
- package/dist/helpers/integration/timesheetFixtures.js +7 -0
- package/dist/helpers/integration/timesheetFixtures.js.map +2 -2
- package/dist/modules/auth/cli.js +16 -0
- package/dist/modules/auth/cli.js.map +2 -2
- package/dist/modules/auth/lib/backendChrome.js +1 -0
- package/dist/modules/auth/lib/backendChrome.js.map +2 -2
- package/dist/modules/customer_accounts/lib/customerRoleAcls.js +44 -0
- package/dist/modules/customer_accounts/lib/customerRoleAcls.js.map +7 -0
- package/dist/modules/customer_accounts/setup.js +1 -28
- package/dist/modules/customer_accounts/setup.js.map +2 -2
- package/dist/modules/data_sync/api/options.js +2 -0
- package/dist/modules/data_sync/api/options.js.map +2 -2
- package/dist/modules/data_sync/backend/data-sync/page.js +39 -17
- package/dist/modules/data_sync/backend/data-sync/page.js.map +2 -2
- package/dist/modules/data_sync/lib/start-controls.js +42 -0
- package/dist/modules/data_sync/lib/start-controls.js.map +7 -0
- package/dist/modules/staff/acl.js +9 -1
- package/dist/modules/staff/acl.js.map +2 -2
- package/dist/modules/staff/ai-agents.js +142 -0
- package/dist/modules/staff/ai-agents.js.map +7 -0
- package/dist/modules/staff/ai-tools/time-tracking-pack.js +348 -0
- package/dist/modules/staff/ai-tools/time-tracking-pack.js.map +7 -0
- package/dist/modules/staff/ai-tools/types.js +54 -0
- package/dist/modules/staff/ai-tools/types.js.map +7 -0
- package/dist/modules/staff/ai-tools.js +8 -0
- package/dist/modules/staff/ai-tools.js.map +7 -0
- package/dist/modules/staff/analytics.js +84 -1
- package/dist/modules/staff/analytics.js.map +2 -2
- package/dist/modules/staff/api/guards.js +37 -3
- package/dist/modules/staff/api/guards.js.map +2 -2
- package/dist/modules/staff/api/leave-requests/accept/route.js +1 -3
- package/dist/modules/staff/api/leave-requests/accept/route.js.map +2 -2
- package/dist/modules/staff/api/leave-requests/reject/route.js +1 -3
- package/dist/modules/staff/api/leave-requests/reject/route.js.map +2 -2
- package/dist/modules/staff/api/portal/time-reports/[id]/route.js +131 -0
- package/dist/modules/staff/api/portal/time-reports/[id]/route.js.map +7 -0
- package/dist/modules/staff/api/portal/time-reports/route.js +179 -0
- package/dist/modules/staff/api/portal/time-reports/route.js.map +7 -0
- package/dist/modules/staff/api/team-members/self/route.js +1 -3
- package/dist/modules/staff/api/team-members/self/route.js.map +2 -2
- package/dist/modules/staff/api/team-members/tags/assign/route.js +1 -3
- package/dist/modules/staff/api/team-members/tags/assign/route.js.map +2 -2
- package/dist/modules/staff/api/team-members/tags/unassign/route.js +1 -3
- package/dist/modules/staff/api/team-members/tags/unassign/route.js.map +2 -2
- package/dist/modules/staff/api/timesheets/_shared/withTimesheetInterceptors.js +174 -0
- package/dist/modules/staff/api/timesheets/_shared/withTimesheetInterceptors.js.map +7 -0
- package/dist/modules/staff/api/timesheets/access-requests/route.js +226 -0
- package/dist/modules/staff/api/timesheets/access-requests/route.js.map +7 -0
- package/dist/modules/staff/api/timesheets/my-projects/[projectId]/route.js +15 -8
- package/dist/modules/staff/api/timesheets/my-projects/[projectId]/route.js.map +2 -2
- package/dist/modules/staff/api/timesheets/my-projects/route.js +13 -1
- package/dist/modules/staff/api/timesheets/my-projects/route.js.map +2 -2
- package/dist/modules/staff/api/timesheets/my-work/myWorkAggregate.js +42 -0
- package/dist/modules/staff/api/timesheets/my-work/myWorkAggregate.js.map +7 -0
- package/dist/modules/staff/api/timesheets/my-work/route.js +383 -0
- package/dist/modules/staff/api/timesheets/my-work/route.js.map +7 -0
- package/dist/modules/staff/api/timesheets/projects/kpis/route.js +14 -2
- package/dist/modules/staff/api/timesheets/projects/kpis/route.js.map +2 -2
- package/dist/modules/staff/api/timesheets/reports/[id]/close/route.js +168 -0
- package/dist/modules/staff/api/timesheets/reports/[id]/close/route.js.map +7 -0
- package/dist/modules/staff/api/timesheets/reports/[id]/export/route.js +246 -0
- package/dist/modules/staff/api/timesheets/reports/[id]/export/route.js.map +7 -0
- package/dist/modules/staff/api/timesheets/reports/[id]/sheet/route.js +183 -0
- package/dist/modules/staff/api/timesheets/reports/[id]/sheet/route.js.map +7 -0
- package/dist/modules/staff/api/timesheets/reports/[id]/unlock/route.js +164 -0
- package/dist/modules/staff/api/timesheets/reports/[id]/unlock/route.js.map +7 -0
- package/dist/modules/staff/api/timesheets/reports/preview/route.js +360 -0
- package/dist/modules/staff/api/timesheets/reports/preview/route.js.map +7 -0
- package/dist/modules/staff/api/timesheets/reports/route.js +316 -0
- package/dist/modules/staff/api/timesheets/reports/route.js.map +7 -0
- package/dist/modules/staff/api/timesheets/reports/shared.js +63 -0
- package/dist/modules/staff/api/timesheets/reports/shared.js.map +7 -0
- package/dist/modules/staff/api/timesheets/settings/reapply-rounding/route.js +164 -0
- package/dist/modules/staff/api/timesheets/settings/reapply-rounding/route.js.map +7 -0
- package/dist/modules/staff/api/timesheets/settings/rounding-impact/route.js +168 -0
- package/dist/modules/staff/api/timesheets/settings/rounding-impact/route.js.map +7 -0
- package/dist/modules/staff/api/timesheets/settings/route.js +199 -0
- package/dist/modules/staff/api/timesheets/settings/route.js.map +7 -0
- package/dist/modules/staff/api/timesheets/tags/access.js +76 -0
- package/dist/modules/staff/api/timesheets/tags/access.js.map +7 -0
- package/dist/modules/staff/api/timesheets/tags/entry-assignments/route.js +235 -0
- package/dist/modules/staff/api/timesheets/tags/entry-assignments/route.js.map +7 -0
- package/dist/modules/staff/api/timesheets/tags/route.js +160 -0
- package/dist/modules/staff/api/timesheets/tags/route.js.map +7 -0
- package/dist/modules/staff/api/timesheets/tags/task-assignments/route.js +233 -0
- package/dist/modules/staff/api/timesheets/tags/task-assignments/route.js.map +7 -0
- package/dist/modules/staff/api/timesheets/task-statuses/route.js +188 -0
- package/dist/modules/staff/api/timesheets/task-statuses/route.js.map +7 -0
- package/dist/modules/staff/api/timesheets/tasks/[id]/comments/route.js +399 -0
- package/dist/modules/staff/api/timesheets/tasks/[id]/comments/route.js.map +7 -0
- package/dist/modules/staff/api/timesheets/tasks/[id]/status/route.js +210 -0
- package/dist/modules/staff/api/timesheets/tasks/[id]/status/route.js.map +7 -0
- package/dist/modules/staff/api/timesheets/tasks/route.js +333 -0
- package/dist/modules/staff/api/timesheets/tasks/route.js.map +7 -0
- package/dist/modules/staff/api/timesheets/time-entries/[id]/duplicate/route.js +228 -0
- package/dist/modules/staff/api/timesheets/time-entries/[id]/duplicate/route.js.map +7 -0
- package/dist/modules/staff/api/timesheets/time-entries/[id]/segments/[segmentId]/route.js +29 -10
- package/dist/modules/staff/api/timesheets/time-entries/[id]/segments/[segmentId]/route.js.map +2 -2
- package/dist/modules/staff/api/timesheets/time-entries/[id]/segments/route.js +31 -18
- package/dist/modules/staff/api/timesheets/time-entries/[id]/segments/route.js.map +2 -2
- package/dist/modules/staff/api/timesheets/time-entries/[id]/timer-start/route.js +21 -7
- package/dist/modules/staff/api/timesheets/time-entries/[id]/timer-start/route.js.map +2 -2
- package/dist/modules/staff/api/timesheets/time-entries/[id]/timer-stop/route.js +27 -7
- package/dist/modules/staff/api/timesheets/time-entries/[id]/timer-stop/route.js.map +2 -2
- package/dist/modules/staff/api/timesheets/time-entries/bulk/route.js +215 -32
- package/dist/modules/staff/api/timesheets/time-entries/bulk/route.js.map +2 -2
- package/dist/modules/staff/api/timesheets/time-entries/copy-day/route.js +378 -0
- package/dist/modules/staff/api/timesheets/time-entries/copy-day/route.js.map +7 -0
- package/dist/modules/staff/api/timesheets/time-entries/overlaps/route.js +340 -0
- package/dist/modules/staff/api/timesheets/time-entries/overlaps/route.js.map +7 -0
- package/dist/modules/staff/api/timesheets/time-entries/route.js +238 -26
- package/dist/modules/staff/api/timesheets/time-entries/route.js.map +2 -2
- package/dist/modules/staff/api/timesheets/time-entries/start-timer/route.js +23 -8
- package/dist/modules/staff/api/timesheets/time-entries/start-timer/route.js.map +2 -2
- package/dist/modules/staff/api/timesheets/time-projects/[id]/change-currency/route.js +209 -0
- package/dist/modules/staff/api/timesheets/time-projects/[id]/change-currency/route.js.map +7 -0
- package/dist/modules/staff/api/timesheets/time-projects/[id]/employees/route.js +59 -2
- package/dist/modules/staff/api/timesheets/time-projects/[id]/employees/route.js.map +2 -2
- package/dist/modules/staff/api/timesheets/time-projects/route.js +264 -22
- package/dist/modules/staff/api/timesheets/time-projects/route.js.map +2 -2
- package/dist/modules/staff/backend/staff/time-tracking/board/page.js +110 -0
- package/dist/modules/staff/backend/staff/time-tracking/board/page.js.map +7 -0
- package/dist/modules/staff/backend/staff/time-tracking/board/page.meta.js +18 -0
- package/dist/modules/staff/backend/staff/time-tracking/board/page.meta.js.map +7 -0
- package/dist/modules/staff/backend/staff/time-tracking/entries/page.js +981 -0
- package/dist/modules/staff/backend/staff/time-tracking/entries/page.js.map +7 -0
- package/dist/modules/staff/backend/staff/time-tracking/entries/page.meta.js +18 -0
- package/dist/modules/staff/backend/staff/time-tracking/entries/page.meta.js.map +7 -0
- package/dist/modules/staff/backend/staff/time-tracking/page.js +583 -0
- package/dist/modules/staff/backend/staff/time-tracking/page.js.map +7 -0
- package/dist/modules/staff/backend/staff/time-tracking/page.meta.js +15 -0
- package/dist/modules/staff/backend/staff/time-tracking/page.meta.js.map +7 -0
- package/dist/modules/staff/backend/staff/time-tracking/projects/[id]/board/page.js +65 -0
- package/dist/modules/staff/backend/staff/time-tracking/projects/[id]/board/page.js.map +7 -0
- package/dist/modules/staff/backend/staff/time-tracking/projects/[id]/board/page.meta.js +16 -0
- package/dist/modules/staff/backend/staff/time-tracking/projects/[id]/board/page.meta.js.map +7 -0
- package/dist/modules/staff/backend/staff/time-tracking/projects/[id]/edit/page.js +229 -0
- package/dist/modules/staff/backend/staff/time-tracking/projects/[id]/edit/page.js.map +7 -0
- package/dist/modules/staff/backend/staff/time-tracking/projects/[id]/edit/page.meta.js +16 -0
- package/dist/modules/staff/backend/staff/time-tracking/projects/[id]/edit/page.meta.js.map +7 -0
- package/dist/modules/staff/backend/staff/time-tracking/projects/[id]/page.js +1014 -0
- package/dist/modules/staff/backend/staff/time-tracking/projects/[id]/page.js.map +7 -0
- package/dist/modules/staff/backend/staff/time-tracking/projects/[id]/page.meta.js +16 -0
- package/dist/modules/staff/backend/staff/time-tracking/projects/[id]/page.meta.js.map +7 -0
- package/dist/modules/staff/backend/staff/time-tracking/projects/create/page.js +97 -0
- package/dist/modules/staff/backend/staff/time-tracking/projects/create/page.js.map +7 -0
- package/dist/modules/staff/backend/staff/time-tracking/projects/create/page.meta.js +16 -0
- package/dist/modules/staff/backend/staff/time-tracking/projects/create/page.meta.js.map +7 -0
- package/dist/modules/staff/backend/staff/time-tracking/projects/page.js +1040 -0
- package/dist/modules/staff/backend/staff/time-tracking/projects/page.js.map +7 -0
- package/dist/modules/staff/backend/staff/time-tracking/projects/page.meta.js +19 -0
- package/dist/modules/staff/backend/staff/time-tracking/projects/page.meta.js.map +7 -0
- package/dist/modules/staff/backend/staff/time-tracking/projects/projectFormConfig.js +353 -0
- package/dist/modules/staff/backend/staff/time-tracking/projects/projectFormConfig.js.map +7 -0
- package/dist/modules/staff/backend/staff/time-tracking/reports/[id]/page.js +457 -0
- package/dist/modules/staff/backend/staff/time-tracking/reports/[id]/page.js.map +7 -0
- package/dist/modules/staff/backend/staff/time-tracking/reports/[id]/page.meta.js +16 -0
- package/dist/modules/staff/backend/staff/time-tracking/reports/[id]/page.meta.js.map +7 -0
- package/dist/modules/staff/backend/staff/time-tracking/reports/create/page.js +697 -0
- package/dist/modules/staff/backend/staff/time-tracking/reports/create/page.js.map +7 -0
- package/dist/modules/staff/backend/staff/time-tracking/reports/create/page.meta.js +16 -0
- package/dist/modules/staff/backend/staff/time-tracking/reports/create/page.meta.js.map +7 -0
- package/dist/modules/staff/backend/staff/time-tracking/reports/page.js +174 -0
- package/dist/modules/staff/backend/staff/time-tracking/reports/page.js.map +7 -0
- package/dist/modules/staff/backend/staff/time-tracking/reports/page.meta.js +18 -0
- package/dist/modules/staff/backend/staff/time-tracking/reports/page.meta.js.map +7 -0
- package/dist/modules/staff/backend/staff/time-tracking/settings/page.js +546 -0
- package/dist/modules/staff/backend/staff/time-tracking/settings/page.js.map +7 -0
- package/dist/modules/staff/backend/staff/time-tracking/settings/page.meta.js +18 -0
- package/dist/modules/staff/backend/staff/time-tracking/settings/page.meta.js.map +7 -0
- package/dist/modules/staff/backend/staff/time-tracking/timesheet/GridView.js +710 -0
- package/dist/modules/staff/backend/staff/time-tracking/timesheet/GridView.js.map +7 -0
- package/dist/modules/staff/backend/staff/time-tracking/timesheet/page.js +646 -0
- package/dist/modules/staff/backend/staff/time-tracking/timesheet/page.js.map +7 -0
- package/dist/modules/staff/backend/staff/time-tracking/timesheet/page.meta.js +18 -0
- package/dist/modules/staff/backend/staff/time-tracking/timesheet/page.meta.js.map +7 -0
- package/dist/modules/staff/backend/staff/timesheets/page.js +4 -793
- package/dist/modules/staff/backend/staff/timesheets/page.js.map +2 -2
- package/dist/modules/staff/backend/staff/timesheets/page.meta.js +2 -7
- package/dist/modules/staff/backend/staff/timesheets/page.meta.js.map +2 -2
- package/dist/modules/staff/backend/staff/timesheets/projects/[id]/edit/page.js +5 -136
- package/dist/modules/staff/backend/staff/timesheets/projects/[id]/edit/page.js.map +2 -2
- package/dist/modules/staff/backend/staff/timesheets/projects/[id]/edit/page.meta.js +1 -7
- package/dist/modules/staff/backend/staff/timesheets/projects/[id]/edit/page.meta.js.map +2 -2
- package/dist/modules/staff/backend/staff/timesheets/projects/[id]/page.js +5 -445
- package/dist/modules/staff/backend/staff/timesheets/projects/[id]/page.js.map +3 -3
- package/dist/modules/staff/backend/staff/timesheets/projects/[id]/page.meta.js +1 -7
- package/dist/modules/staff/backend/staff/timesheets/projects/[id]/page.meta.js.map +2 -2
- package/dist/modules/staff/backend/staff/timesheets/projects/create/page.js +4 -76
- package/dist/modules/staff/backend/staff/timesheets/projects/create/page.js.map +2 -2
- package/dist/modules/staff/backend/staff/timesheets/projects/create/page.meta.js +1 -7
- package/dist/modules/staff/backend/staff/timesheets/projects/create/page.meta.js.map +2 -2
- package/dist/modules/staff/backend/staff/timesheets/projects/page.js +4 -613
- package/dist/modules/staff/backend/staff/timesheets/projects/page.js.map +2 -2
- package/dist/modules/staff/backend/staff/timesheets/projects/page.meta.js +2 -17
- package/dist/modules/staff/backend/staff/timesheets/projects/page.meta.js.map +2 -2
- package/dist/modules/staff/ce.js +40 -0
- package/dist/modules/staff/ce.js.map +2 -2
- package/dist/modules/staff/cli.js +166 -1
- package/dist/modules/staff/cli.js.map +2 -2
- package/dist/modules/staff/commands/index.js +5 -0
- package/dist/modules/staff/commands/index.js.map +2 -2
- package/dist/modules/staff/commands/timesheets-entries.js +569 -21
- package/dist/modules/staff/commands/timesheets-entries.js.map +3 -3
- package/dist/modules/staff/commands/timesheets-projects.js +450 -7
- package/dist/modules/staff/commands/timesheets-projects.js.map +2 -2
- package/dist/modules/staff/commands/timesheets-reports.js +1036 -0
- package/dist/modules/staff/commands/timesheets-reports.js.map +7 -0
- package/dist/modules/staff/commands/timesheets-tags.js +1015 -0
- package/dist/modules/staff/commands/timesheets-tags.js.map +7 -0
- package/dist/modules/staff/commands/timesheets-task-comments.js +438 -0
- package/dist/modules/staff/commands/timesheets-task-comments.js.map +7 -0
- package/dist/modules/staff/commands/timesheets-task-statuses.js +723 -0
- package/dist/modules/staff/commands/timesheets-task-statuses.js.map +7 -0
- package/dist/modules/staff/commands/timesheets-tasks.js +834 -0
- package/dist/modules/staff/commands/timesheets-tasks.js.map +7 -0
- package/dist/modules/staff/data/enrichers.js +426 -12
- package/dist/modules/staff/data/enrichers.js.map +2 -2
- package/dist/modules/staff/data/entities.js +552 -3
- package/dist/modules/staff/data/entities.js.map +2 -2
- package/dist/modules/staff/data/extensions.js +41 -0
- package/dist/modules/staff/data/extensions.js.map +7 -0
- package/dist/modules/staff/data/validators.js +254 -9
- package/dist/modules/staff/data/validators.js.map +2 -2
- package/dist/modules/staff/di.js +42 -1
- package/dist/modules/staff/di.js.map +2 -2
- package/dist/modules/staff/events.js +84 -6
- package/dist/modules/staff/events.js.map +2 -2
- package/dist/modules/staff/events.payloads.js +158 -0
- package/dist/modules/staff/events.payloads.js.map +7 -0
- package/dist/modules/staff/extension-points.js +261 -0
- package/dist/modules/staff/extension-points.js.map +7 -0
- package/dist/modules/staff/frontend/[orgSlug]/portal/time-reports/[id]/page.js +138 -0
- package/dist/modules/staff/frontend/[orgSlug]/portal/time-reports/[id]/page.js.map +7 -0
- package/dist/modules/staff/frontend/[orgSlug]/portal/time-reports/[id]/page.meta.js +12 -0
- package/dist/modules/staff/frontend/[orgSlug]/portal/time-reports/[id]/page.meta.js.map +7 -0
- package/dist/modules/staff/frontend/[orgSlug]/portal/time-reports/page.js +133 -0
- package/dist/modules/staff/frontend/[orgSlug]/portal/time-reports/page.js.map +7 -0
- package/dist/modules/staff/frontend/[orgSlug]/portal/time-reports/page.meta.js +19 -0
- package/dist/modules/staff/frontend/[orgSlug]/portal/time-reports/page.meta.js.map +7 -0
- package/dist/modules/staff/lib/crud.js +11 -1
- package/dist/modules/staff/lib/crud.js.map +2 -2
- package/dist/modules/staff/lib/time-tracking/access.js +92 -0
- package/dist/modules/staff/lib/time-tracking/access.js.map +7 -0
- package/dist/modules/staff/lib/time-tracking/billability.js +39 -0
- package/dist/modules/staff/lib/time-tracking/billability.js.map +7 -0
- package/dist/modules/staff/lib/time-tracking/capacity.js +68 -0
- package/dist/modules/staff/lib/time-tracking/capacity.js.map +7 -0
- package/dist/modules/staff/lib/time-tracking/componentContracts.js +15 -0
- package/dist/modules/staff/lib/time-tracking/componentContracts.js.map +7 -0
- package/dist/modules/staff/lib/time-tracking/cost.js +82 -0
- package/dist/modules/staff/lib/time-tracking/cost.js.map +7 -0
- package/dist/modules/staff/lib/time-tracking/duration.js +55 -0
- package/dist/modules/staff/lib/time-tracking/duration.js.map +7 -0
- package/dist/modules/staff/lib/time-tracking/featureAccess.js +41 -0
- package/dist/modules/staff/lib/time-tracking/featureAccess.js.map +7 -0
- package/dist/modules/staff/lib/time-tracking/interval.js +72 -0
- package/dist/modules/staff/lib/time-tracking/interval.js.map +7 -0
- package/dist/modules/staff/lib/time-tracking/migrateProjectCodes.js +88 -0
- package/dist/modules/staff/lib/time-tracking/migrateProjectCodes.js.map +7 -0
- package/dist/modules/staff/lib/time-tracking/moneyVisibility.js +10 -0
- package/dist/modules/staff/lib/time-tracking/moneyVisibility.js.map +7 -0
- package/dist/modules/staff/lib/time-tracking/overlap.js +87 -0
- package/dist/modules/staff/lib/time-tracking/overlap.js.map +7 -0
- package/dist/modules/staff/lib/time-tracking/portalRecipients.js +27 -0
- package/dist/modules/staff/lib/time-tracking/portalRecipients.js.map +7 -0
- package/dist/modules/staff/lib/time-tracking/portalReports.js +16 -0
- package/dist/modules/staff/lib/time-tracking/portalReports.js.map +7 -0
- package/dist/modules/staff/lib/time-tracking/projectCode.js +135 -0
- package/dist/modules/staff/lib/time-tracking/projectCode.js.map +7 -0
- package/dist/modules/staff/lib/time-tracking/reapplyRounding.js +187 -0
- package/dist/modules/staff/lib/time-tracking/reapplyRounding.js.map +7 -0
- package/dist/modules/staff/lib/time-tracking/recalculationRunner.js +80 -0
- package/dist/modules/staff/lib/time-tracking/recalculationRunner.js.map +7 -0
- package/dist/modules/staff/lib/time-tracking/recalculations.js +56 -0
- package/dist/modules/staff/lib/time-tracking/recalculations.js.map +7 -0
- package/dist/modules/staff/lib/time-tracking/registries/invoke.js +63 -0
- package/dist/modules/staff/lib/time-tracking/registries/invoke.js.map +7 -0
- package/dist/modules/staff/lib/time-tracking/registries/registry.js +62 -0
- package/dist/modules/staff/lib/time-tracking/registries/registry.js.map +7 -0
- package/dist/modules/staff/lib/time-tracking/registries/scope.js +21 -0
- package/dist/modules/staff/lib/time-tracking/registries/scope.js.map +7 -0
- package/dist/modules/staff/lib/time-tracking/rollup.js +34 -0
- package/dist/modules/staff/lib/time-tracking/rollup.js.map +7 -0
- package/dist/modules/staff/lib/time-tracking/rounding.js +66 -0
- package/dist/modules/staff/lib/time-tracking/rounding.js.map +7 -0
- package/dist/modules/staff/lib/time-tracking/roundingImpact.js +39 -0
- package/dist/modules/staff/lib/time-tracking/roundingImpact.js.map +7 -0
- package/dist/modules/staff/lib/time-tracking/settingKeys.js +214 -0
- package/dist/modules/staff/lib/time-tracking/settingKeys.js.map +7 -0
- package/dist/modules/staff/lib/time-tracking/settings.js +87 -0
- package/dist/modules/staff/lib/time-tracking/settings.js.map +7 -0
- package/dist/modules/staff/lib/time-tracking/sqlInClause.js +9 -0
- package/dist/modules/staff/lib/time-tracking/sqlInClause.js.map +7 -0
- package/dist/modules/staff/lib/time-tracking/timeEntrySources.js +48 -0
- package/dist/modules/staff/lib/time-tracking/timeEntrySources.js.map +7 -0
- package/dist/modules/staff/lib/time-tracking-ui/BoardFilterChips.js +283 -0
- package/dist/modules/staff/lib/time-tracking-ui/BoardFilterChips.js.map +7 -0
- package/dist/modules/staff/lib/time-tracking-ui/CustomerPicker.js +324 -0
- package/dist/modules/staff/lib/time-tracking-ui/CustomerPicker.js.map +7 -0
- package/dist/modules/staff/lib/time-tracking-ui/DurationInput.js +121 -0
- package/dist/modules/staff/lib/time-tracking-ui/DurationInput.js.map +7 -0
- package/dist/modules/staff/lib/time-tracking-ui/EntryDetailsFields.js +188 -0
- package/dist/modules/staff/lib/time-tracking-ui/EntryDetailsFields.js.map +7 -0
- package/dist/modules/staff/lib/time-tracking-ui/EntryFilterBar.js +89 -0
- package/dist/modules/staff/lib/time-tracking-ui/EntryFilterBar.js.map +7 -0
- package/dist/modules/staff/lib/time-tracking-ui/KanbanBoard.js +855 -0
- package/dist/modules/staff/lib/time-tracking-ui/KanbanBoard.js.map +7 -0
- package/dist/modules/staff/lib/time-tracking-ui/KanbanCard.js +360 -0
- package/dist/modules/staff/lib/time-tracking-ui/KanbanCard.js.map +7 -0
- package/dist/modules/staff/lib/time-tracking-ui/KanbanColumn.js +259 -0
- package/dist/modules/staff/lib/time-tracking-ui/KanbanColumn.js.map +7 -0
- package/dist/modules/staff/lib/time-tracking-ui/NewTaskDialog.js +238 -0
- package/dist/modules/staff/lib/time-tracking-ui/NewTaskDialog.js.map +7 -0
- package/dist/modules/staff/lib/time-tracking-ui/NoProjectAccess.js +130 -0
- package/dist/modules/staff/lib/time-tracking-ui/NoProjectAccess.js.map +7 -0
- package/dist/modules/staff/lib/time-tracking-ui/PeriodSelector.js +98 -0
- package/dist/modules/staff/lib/time-tracking-ui/PeriodSelector.js.map +7 -0
- package/dist/modules/staff/lib/time-tracking-ui/PhasePlaceholder.js +27 -0
- package/dist/modules/staff/lib/time-tracking-ui/PhasePlaceholder.js.map +7 -0
- package/dist/modules/staff/lib/time-tracking-ui/ProjectCodeField.js +166 -0
- package/dist/modules/staff/lib/time-tracking-ui/ProjectCodeField.js.map +7 -0
- package/dist/modules/staff/lib/time-tracking-ui/ProjectCurrencyField.js +295 -0
- package/dist/modules/staff/lib/time-tracking-ui/ProjectCurrencyField.js.map +7 -0
- package/dist/modules/staff/lib/time-tracking-ui/ProjectFormSections.js +212 -0
- package/dist/modules/staff/lib/time-tracking-ui/ProjectFormSections.js.map +7 -0
- package/dist/modules/staff/lib/time-tracking-ui/ProjectTeamDrawer.js +729 -0
- package/dist/modules/staff/lib/time-tracking-ui/ProjectTeamDrawer.js.map +7 -0
- package/dist/modules/staff/lib/time-tracking-ui/ReportSheet.js +217 -0
- package/dist/modules/staff/lib/time-tracking-ui/ReportSheet.js.map +7 -0
- package/dist/modules/staff/lib/time-tracking-ui/TagPicker.js +158 -0
- package/dist/modules/staff/lib/time-tracking-ui/TagPicker.js.map +7 -0
- package/dist/modules/staff/lib/time-tracking-ui/TaskBoardScreen.js +224 -0
- package/dist/modules/staff/lib/time-tracking-ui/TaskBoardScreen.js.map +7 -0
- package/dist/modules/staff/lib/time-tracking-ui/TaskCommentThread.js +93 -0
- package/dist/modules/staff/lib/time-tracking-ui/TaskCommentThread.js.map +7 -0
- package/dist/modules/staff/lib/time-tracking-ui/TaskDrawer.js +1196 -0
- package/dist/modules/staff/lib/time-tracking-ui/TaskDrawer.js.map +7 -0
- package/dist/modules/staff/lib/time-tracking-ui/TaskListView.js +176 -0
- package/dist/modules/staff/lib/time-tracking-ui/TaskListView.js.map +7 -0
- package/dist/modules/staff/lib/time-tracking-ui/TaskPicker.js +307 -0
- package/dist/modules/staff/lib/time-tracking-ui/TaskPicker.js.map +7 -0
- package/dist/modules/staff/lib/time-tracking-ui/TaskQuickLog.js +284 -0
- package/dist/modules/staff/lib/time-tracking-ui/TaskQuickLog.js.map +7 -0
- package/dist/modules/staff/lib/time-tracking-ui/TimeEntriesSummaryFooter.js +73 -0
- package/dist/modules/staff/lib/time-tracking-ui/TimeEntriesSummaryFooter.js.map +7 -0
- package/dist/modules/staff/lib/time-tracking-ui/TimeEntryDialog.js +1499 -0
- package/dist/modules/staff/lib/time-tracking-ui/TimeEntryDialog.js.map +7 -0
- package/dist/modules/staff/lib/time-tracking-ui/TimeEntryDurationCell.js +95 -0
- package/dist/modules/staff/lib/time-tracking-ui/TimeEntryDurationCell.js.map +7 -0
- package/dist/modules/staff/lib/time-tracking-ui/TimesheetCalendar.js +188 -0
- package/dist/modules/staff/lib/time-tracking-ui/TimesheetCalendar.js.map +7 -0
- package/dist/modules/staff/lib/time-tracking-ui/TimesheetPeriodFooter.js +61 -0
- package/dist/modules/staff/lib/time-tracking-ui/TimesheetPeriodFooter.js.map +7 -0
- package/dist/modules/staff/lib/time-tracking-ui/TimesheetViewSwitch.js +45 -0
- package/dist/modules/staff/lib/time-tracking-ui/TimesheetViewSwitch.js.map +7 -0
- package/dist/modules/staff/lib/time-tracking-ui/boardDirectory.js +176 -0
- package/dist/modules/staff/lib/time-tracking-ui/boardDirectory.js.map +7 -0
- package/dist/modules/staff/lib/time-tracking-ui/boardFilters.js +82 -0
- package/dist/modules/staff/lib/time-tracking-ui/boardFilters.js.map +7 -0
- package/dist/modules/staff/lib/time-tracking-ui/boardSummary.js +5 -0
- package/dist/modules/staff/lib/time-tracking-ui/boardSummary.js.map +7 -0
- package/dist/modules/staff/lib/time-tracking-ui/kanbanBoardData.js +152 -0
- package/dist/modules/staff/lib/time-tracking-ui/kanbanBoardData.js.map +7 -0
- package/dist/modules/staff/lib/time-tracking-ui/projectTeamAssignment.js +92 -0
- package/dist/modules/staff/lib/time-tracking-ui/projectTeamAssignment.js.map +7 -0
- package/dist/modules/staff/lib/time-tracking-ui/taskDrawerData.js +111 -0
- package/dist/modules/staff/lib/time-tracking-ui/taskDrawerData.js.map +7 -0
- package/dist/modules/staff/lib/time-tracking-ui/timeEntryDialogState.js +243 -0
- package/dist/modules/staff/lib/time-tracking-ui/timeEntryDialogState.js.map +7 -0
- package/dist/modules/staff/lib/time-tracking-ui/timeEntryListData.js +151 -0
- package/dist/modules/staff/lib/time-tracking-ui/timeEntryListData.js.map +7 -0
- package/dist/modules/staff/lib/time-tracking-ui/timeTrackingSettingsForm.js +105 -0
- package/dist/modules/staff/lib/time-tracking-ui/timeTrackingSettingsForm.js.map +7 -0
- package/dist/modules/staff/lib/time-tracking-ui/timesheetData.js +132 -0
- package/dist/modules/staff/lib/time-tracking-ui/timesheetData.js.map +7 -0
- package/dist/modules/staff/lib/time-tracking-ui/timesheetPeriod.js +205 -0
- package/dist/modules/staff/lib/time-tracking-ui/timesheetPeriod.js.map +7 -0
- package/dist/modules/staff/lib/time-tracking-ui/timesheetTargets.js +53 -0
- package/dist/modules/staff/lib/time-tracking-ui/timesheetTargets.js.map +7 -0
- package/dist/modules/staff/lib/time-tracking-ui/useBoardFilters.js +77 -0
- package/dist/modules/staff/lib/time-tracking-ui/useBoardFilters.js.map +7 -0
- package/dist/modules/staff/lib/time-tracking-ui/useTimesheetPreferences.js +151 -0
- package/dist/modules/staff/lib/time-tracking-ui/useTimesheetPreferences.js.map +7 -0
- package/dist/modules/staff/lib/timeTrackingSeeds.js +809 -0
- package/dist/modules/staff/lib/timeTrackingSeeds.js.map +7 -0
- package/dist/modules/staff/lib/timesheets/timeEntryCacheInvalidation.js +2 -3
- package/dist/modules/staff/lib/timesheets/timeEntryCacheInvalidation.js.map +2 -2
- package/dist/modules/staff/lib/timesheets/timeEntryDecoration.js +152 -0
- package/dist/modules/staff/lib/timesheets/timeEntryDecoration.js.map +7 -0
- package/dist/modules/staff/lib/timesheets-projects/budgetBurn.js +36 -0
- package/dist/modules/staff/lib/timesheets-projects/budgetBurn.js.map +7 -0
- package/dist/modules/staff/lib/timesheets-projects/budgetThreshold.js +66 -0
- package/dist/modules/staff/lib/timesheets-projects/budgetThreshold.js.map +7 -0
- package/dist/modules/staff/lib/timesheets-projects/budgetThresholdState.js +78 -0
- package/dist/modules/staff/lib/timesheets-projects/budgetThresholdState.js.map +7 -0
- package/dist/modules/staff/lib/timesheets-projects/computeProjectFinancials.js +81 -0
- package/dist/modules/staff/lib/timesheets-projects/computeProjectFinancials.js.map +7 -0
- package/dist/modules/staff/lib/timesheets-projects/reportSelection.js +44 -0
- package/dist/modules/staff/lib/timesheets-projects/reportSelection.js.map +7 -0
- package/dist/modules/staff/lib/timesheets-projects-ui/AssignMembersDialog.js +169 -0
- package/dist/modules/staff/lib/timesheets-projects-ui/AssignMembersDialog.js.map +7 -0
- package/dist/modules/staff/lib/timesheets-projects-ui/ProjectBudgetCell.js +22 -0
- package/dist/modules/staff/lib/timesheets-projects-ui/ProjectBudgetCell.js.map +7 -0
- package/dist/modules/staff/lib/timesheets-projects-ui/ProjectCard.js +51 -1
- package/dist/modules/staff/lib/timesheets-projects-ui/ProjectCard.js.map +2 -2
- package/dist/modules/staff/lib/timesheets-projects-ui/ProjectsBulkActionsBar.js +70 -0
- package/dist/modules/staff/lib/timesheets-projects-ui/ProjectsBulkActionsBar.js.map +7 -0
- package/dist/modules/staff/lib/timesheets-reports/buildReportSheet.js +63 -0
- package/dist/modules/staff/lib/timesheets-reports/buildReportSheet.js.map +7 -0
- package/dist/modules/staff/lib/timesheets-reports/loadReportData.js +170 -0
- package/dist/modules/staff/lib/timesheets-reports/loadReportData.js.map +7 -0
- package/dist/modules/staff/lib/timesheets-reports/pdf.js +205 -0
- package/dist/modules/staff/lib/timesheets-reports/pdf.js.map +7 -0
- package/dist/modules/staff/lib/timesheets-reports/reportApprovalPolicies.js +68 -0
- package/dist/modules/staff/lib/timesheets-reports/reportApprovalPolicies.js.map +7 -0
- package/dist/modules/staff/lib/timesheets-reports/reportConfigData.js +135 -0
- package/dist/modules/staff/lib/timesheets-reports/reportConfigData.js.map +7 -0
- package/dist/modules/staff/lib/timesheets-reports/reportConfigState.js +48 -0
- package/dist/modules/staff/lib/timesheets-reports/reportConfigState.js.map +7 -0
- package/dist/modules/staff/lib/timesheets-reports/reportExport.js +262 -0
- package/dist/modules/staff/lib/timesheets-reports/reportExport.js.map +7 -0
- package/dist/modules/staff/lib/timesheets-reports/reportExportFormats.js +34 -0
- package/dist/modules/staff/lib/timesheets-reports/reportExportFormats.js.map +7 -0
- package/dist/modules/staff/lib/timesheets-reports/reportGroupings.js +79 -0
- package/dist/modules/staff/lib/timesheets-reports/reportGroupings.js.map +7 -0
- package/dist/modules/staff/lib/timesheets-reports/reportLabels.js +11 -0
- package/dist/modules/staff/lib/timesheets-reports/reportLabels.js.map +7 -0
- package/dist/modules/staff/lib/timesheets-reports/reportReference.js +83 -0
- package/dist/modules/staff/lib/timesheets-reports/reportReference.js.map +7 -0
- package/dist/modules/staff/lib/timesheets-reports/reportRows.js +42 -0
- package/dist/modules/staff/lib/timesheets-reports/reportRows.js.map +7 -0
- package/dist/modules/staff/lib/timesheets-reports/reportSheetData.js +107 -0
- package/dist/modules/staff/lib/timesheets-reports/reportSheetData.js.map +7 -0
- package/dist/modules/staff/lib/timesheets-reports/reportTotals.js +289 -0
- package/dist/modules/staff/lib/timesheets-reports/reportTotals.js.map +7 -0
- package/dist/modules/staff/lib/timesheets-reports/xlsx.js +145 -0
- package/dist/modules/staff/lib/timesheets-reports/xlsx.js.map +7 -0
- package/dist/modules/staff/lib/timesheets-tasks/computeTaskRollups.js +116 -0
- package/dist/modules/staff/lib/timesheets-tasks/computeTaskRollups.js.map +7 -0
- package/dist/modules/staff/lib/timesheets-tasks/defaultStatusTemplate.js +50 -0
- package/dist/modules/staff/lib/timesheets-tasks/defaultStatusTemplate.js.map +7 -0
- package/dist/modules/staff/lib/timesheets-tasks/seedProjectStatuses.js +27 -0
- package/dist/modules/staff/lib/timesheets-tasks/seedProjectStatuses.js.map +7 -0
- package/dist/modules/staff/lib/timesheets-tasks/statusPositions.js +65 -0
- package/dist/modules/staff/lib/timesheets-tasks/statusPositions.js.map +7 -0
- package/dist/modules/staff/lib/timesheets-tasks/statusSlug.js +31 -0
- package/dist/modules/staff/lib/timesheets-tasks/statusSlug.js.map +7 -0
- package/dist/modules/staff/lib/timesheets-tasks/taskHierarchy.js +31 -0
- package/dist/modules/staff/lib/timesheets-tasks/taskHierarchy.js.map +7 -0
- package/dist/modules/staff/lib/timesheets-tasks/taskHoursTotals.js +17 -0
- package/dist/modules/staff/lib/timesheets-tasks/taskHoursTotals.js.map +7 -0
- package/dist/modules/staff/lib/timesheets-tasks/taskReference.js +51 -0
- package/dist/modules/staff/lib/timesheets-tasks/taskReference.js.map +7 -0
- package/dist/modules/staff/lib/timesheets-ui/CreateProjectDialog.js +11 -4
- package/dist/modules/staff/lib/timesheets-ui/CreateProjectDialog.js.map +2 -2
- package/dist/modules/staff/lib/timesheets-ui/ListView.js +369 -111
- package/dist/modules/staff/lib/timesheets-ui/ListView.js.map +2 -2
- package/dist/modules/staff/lib/timesheets-ui/TimerBar.js +47 -2
- package/dist/modules/staff/lib/timesheets-ui/TimerBar.js.map +2 -2
- package/dist/modules/staff/migrations/Migration20260813073131_staff.js +79 -0
- package/dist/modules/staff/migrations/Migration20260813073131_staff.js.map +7 -0
- package/dist/modules/staff/migrations/Migration20260824143357_staff.js +15 -0
- package/dist/modules/staff/migrations/Migration20260824143357_staff.js.map +7 -0
- package/dist/modules/staff/notifications.client.js +16 -0
- package/dist/modules/staff/notifications.client.js.map +7 -0
- package/dist/modules/staff/notifications.handlers.js +80 -0
- package/dist/modules/staff/notifications.handlers.js.map +7 -0
- package/dist/modules/staff/notifications.js +168 -0
- package/dist/modules/staff/notifications.js.map +2 -2
- package/dist/modules/staff/search.js +159 -1
- package/dist/modules/staff/search.js.map +2 -2
- package/dist/modules/staff/setup.js +20 -1
- package/dist/modules/staff/setup.js.map +2 -2
- package/dist/modules/staff/subscribers/time-project-access-requested-notification.js +68 -0
- package/dist/modules/staff/subscribers/time-project-access-requested-notification.js.map +7 -0
- package/dist/modules/staff/subscribers/time-project-budget-threshold-notification.js +149 -0
- package/dist/modules/staff/subscribers/time-project-budget-threshold-notification.js.map +7 -0
- package/dist/modules/staff/subscribers/time-report-approved-notification.js +78 -0
- package/dist/modules/staff/subscribers/time-report-approved-notification.js.map +7 -0
- package/dist/modules/staff/subscribers/time-report-portal-broadcast.js +78 -0
- package/dist/modules/staff/subscribers/time-report-portal-broadcast.js.map +7 -0
- package/dist/modules/staff/translations.js +4 -1
- package/dist/modules/staff/translations.js.map +2 -2
- package/dist/modules/staff/widgets/components.js +7 -0
- package/dist/modules/staff/widgets/components.js.map +7 -0
- package/dist/modules/staff/widgets/injection/timer-sidebar-indicator/widget.js +5 -4
- package/dist/modules/staff/widgets/injection/timer-sidebar-indicator/widget.js.map +2 -2
- package/dist/modules/staff/widgets/notifications/TimeProjectAccessRequestedRenderer.js +135 -0
- package/dist/modules/staff/widgets/notifications/TimeProjectAccessRequestedRenderer.js.map +7 -0
- package/dist/modules/staff/widgets/notifications/index.js +5 -0
- package/dist/modules/staff/widgets/notifications/index.js.map +7 -0
- package/dist/modules/staff/workers/timesheets-reapply-rounding.js +43 -0
- package/dist/modules/staff/workers/timesheets-reapply-rounding.js.map +7 -0
- package/generated/entities/staff_time_entry/index.ts +7 -0
- package/generated/entities/staff_time_entry_tag/index.ts +6 -0
- package/generated/entities/staff_time_project/index.ts +8 -0
- package/generated/entities/staff_time_report/index.ts +27 -0
- package/generated/entities/staff_time_report_entry/index.ts +12 -0
- package/generated/entities/staff_time_report_event/index.ts +9 -0
- package/generated/entities/staff_time_report_project/index.ts +6 -0
- package/generated/entities/staff_time_tag/index.ts +9 -0
- package/generated/entities/staff_time_task/index.ts +17 -0
- package/generated/entities/staff_time_task_comment/index.ts +9 -0
- package/generated/entities/staff_time_task_status/index.ts +13 -0
- package/generated/entities/staff_time_task_tag/index.ts +6 -0
- package/generated/entities.ids.generated.ts +11 -1
- package/generated/entity-fields-registry.ts +149 -0
- package/package.json +7 -7
- package/src/helpers/integration/timesheetFixtures.ts +31 -1
- package/src/modules/auth/README.md +1 -1
- package/src/modules/auth/cli.ts +35 -1
- package/src/modules/auth/i18n/de.json +7 -0
- package/src/modules/auth/i18n/en.json +7 -0
- package/src/modules/auth/i18n/es.json +7 -0
- package/src/modules/auth/i18n/ko.json +7 -0
- package/src/modules/auth/i18n/pl.json +7 -0
- package/src/modules/auth/lib/backendChrome.tsx +1 -0
- package/src/modules/customer_accounts/lib/customerRoleAcls.ts +79 -0
- package/src/modules/customer_accounts/setup.ts +1 -45
- package/src/modules/data_sync/AGENTS.md +34 -0
- package/src/modules/data_sync/api/options.ts +2 -0
- package/src/modules/data_sync/backend/data-sync/page.tsx +82 -33
- package/src/modules/data_sync/i18n/de.json +1 -0
- package/src/modules/data_sync/i18n/en.json +1 -0
- package/src/modules/data_sync/i18n/es.json +1 -0
- package/src/modules/data_sync/i18n/ko.json +1 -0
- package/src/modules/data_sync/i18n/pl.json +1 -0
- package/src/modules/data_sync/lib/adapter.ts +45 -0
- package/src/modules/data_sync/lib/start-controls.ts +89 -0
- package/src/modules/staff/AGENTS.md +769 -1
- package/src/modules/staff/acl.ts +9 -0
- package/src/modules/staff/ai-agents.ts +189 -0
- package/src/modules/staff/ai-tools/time-tracking-pack.ts +494 -0
- package/src/modules/staff/ai-tools/types.ts +82 -0
- package/src/modules/staff/ai-tools.ts +13 -0
- package/src/modules/staff/analytics.ts +113 -0
- package/src/modules/staff/api/guards.ts +85 -3
- package/src/modules/staff/api/leave-requests/accept/route.ts +0 -2
- package/src/modules/staff/api/leave-requests/reject/route.ts +0 -2
- package/src/modules/staff/api/portal/time-reports/[id]/route.ts +182 -0
- package/src/modules/staff/api/portal/time-reports/route.ts +270 -0
- package/src/modules/staff/api/team-members/self/route.ts +0 -2
- package/src/modules/staff/api/team-members/tags/assign/route.ts +0 -2
- package/src/modules/staff/api/team-members/tags/unassign/route.ts +0 -2
- package/src/modules/staff/api/timesheets/_shared/withTimesheetInterceptors.ts +292 -0
- package/src/modules/staff/api/timesheets/access-requests/route.ts +299 -0
- package/src/modules/staff/api/timesheets/my-projects/[projectId]/route.ts +15 -7
- package/src/modules/staff/api/timesheets/my-projects/route.ts +14 -1
- package/src/modules/staff/api/timesheets/my-work/myWorkAggregate.ts +90 -0
- package/src/modules/staff/api/timesheets/my-work/route.ts +475 -0
- package/src/modules/staff/api/timesheets/projects/kpis/route.ts +15 -2
- package/src/modules/staff/api/timesheets/reports/[id]/close/route.ts +203 -0
- package/src/modules/staff/api/timesheets/reports/[id]/export/route.ts +315 -0
- package/src/modules/staff/api/timesheets/reports/[id]/sheet/route.ts +220 -0
- package/src/modules/staff/api/timesheets/reports/[id]/unlock/route.ts +208 -0
- package/src/modules/staff/api/timesheets/reports/preview/route.ts +449 -0
- package/src/modules/staff/api/timesheets/reports/route.ts +386 -0
- package/src/modules/staff/api/timesheets/reports/shared.ts +121 -0
- package/src/modules/staff/api/timesheets/settings/reapply-rounding/route.ts +205 -0
- package/src/modules/staff/api/timesheets/settings/rounding-impact/route.ts +226 -0
- package/src/modules/staff/api/timesheets/settings/route.ts +242 -0
- package/src/modules/staff/api/timesheets/tags/access.ts +134 -0
- package/src/modules/staff/api/timesheets/tags/entry-assignments/route.ts +290 -0
- package/src/modules/staff/api/timesheets/tags/route.ts +177 -0
- package/src/modules/staff/api/timesheets/tags/task-assignments/route.ts +294 -0
- package/src/modules/staff/api/timesheets/task-statuses/route.ts +232 -0
- package/src/modules/staff/api/timesheets/tasks/[id]/comments/route.ts +532 -0
- package/src/modules/staff/api/timesheets/tasks/[id]/status/route.ts +271 -0
- package/src/modules/staff/api/timesheets/tasks/route.ts +443 -0
- package/src/modules/staff/api/timesheets/time-entries/[id]/duplicate/route.ts +306 -0
- package/src/modules/staff/api/timesheets/time-entries/[id]/segments/[segmentId]/route.ts +32 -10
- package/src/modules/staff/api/timesheets/time-entries/[id]/segments/route.ts +32 -17
- package/src/modules/staff/api/timesheets/time-entries/[id]/timer-start/route.ts +27 -6
- package/src/modules/staff/api/timesheets/time-entries/[id]/timer-stop/route.ts +36 -6
- package/src/modules/staff/api/timesheets/time-entries/bulk/route.ts +331 -34
- package/src/modules/staff/api/timesheets/time-entries/copy-day/route.ts +533 -0
- package/src/modules/staff/api/timesheets/time-entries/overlaps/route.ts +457 -0
- package/src/modules/staff/api/timesheets/time-entries/route.ts +378 -24
- package/src/modules/staff/api/timesheets/time-entries/start-timer/route.ts +31 -9
- package/src/modules/staff/api/timesheets/time-projects/[id]/change-currency/route.ts +246 -0
- package/src/modules/staff/api/timesheets/time-projects/[id]/employees/route.ts +62 -2
- package/src/modules/staff/api/timesheets/time-projects/route.ts +397 -22
- package/src/modules/staff/backend/staff/time-tracking/board/page.meta.ts +14 -0
- package/src/modules/staff/backend/staff/time-tracking/board/page.tsx +151 -0
- package/src/modules/staff/backend/staff/time-tracking/entries/page.meta.ts +14 -0
- package/src/modules/staff/backend/staff/time-tracking/entries/page.tsx +1229 -0
- package/src/modules/staff/backend/staff/time-tracking/page.meta.ts +11 -0
- package/src/modules/staff/backend/staff/time-tracking/page.tsx +823 -0
- package/src/modules/staff/backend/staff/time-tracking/projects/[id]/board/page.meta.ts +12 -0
- package/src/modules/staff/backend/staff/time-tracking/projects/[id]/board/page.tsx +81 -0
- package/src/modules/staff/backend/staff/time-tracking/projects/[id]/edit/page.meta.ts +12 -0
- package/src/modules/staff/backend/staff/time-tracking/projects/[id]/edit/page.tsx +275 -0
- package/src/modules/staff/backend/staff/time-tracking/projects/[id]/page.meta.ts +12 -0
- package/src/modules/staff/backend/staff/time-tracking/projects/[id]/page.tsx +1420 -0
- package/src/modules/staff/backend/staff/time-tracking/projects/create/page.meta.ts +12 -0
- package/src/modules/staff/backend/staff/time-tracking/projects/create/page.tsx +109 -0
- package/src/modules/staff/backend/staff/time-tracking/projects/page.meta.ts +15 -0
- package/src/modules/staff/backend/staff/time-tracking/projects/page.tsx +1254 -0
- package/src/modules/staff/backend/staff/time-tracking/projects/projectFormConfig.ts +466 -0
- package/src/modules/staff/backend/staff/time-tracking/reports/[id]/page.meta.ts +12 -0
- package/src/modules/staff/backend/staff/time-tracking/reports/[id]/page.tsx +632 -0
- package/src/modules/staff/backend/staff/time-tracking/reports/create/page.meta.ts +12 -0
- package/src/modules/staff/backend/staff/time-tracking/reports/create/page.tsx +867 -0
- package/src/modules/staff/backend/staff/time-tracking/reports/page.meta.ts +14 -0
- package/src/modules/staff/backend/staff/time-tracking/reports/page.tsx +246 -0
- package/src/modules/staff/backend/staff/time-tracking/settings/page.meta.ts +14 -0
- package/src/modules/staff/backend/staff/time-tracking/settings/page.tsx +701 -0
- package/src/modules/staff/backend/staff/time-tracking/timesheet/GridView.tsx +953 -0
- package/src/modules/staff/backend/staff/time-tracking/timesheet/page.meta.ts +14 -0
- package/src/modules/staff/backend/staff/time-tracking/timesheet/page.tsx +800 -0
- package/src/modules/staff/backend/staff/timesheets/page.meta.ts +6 -6
- package/src/modules/staff/backend/staff/timesheets/page.tsx +12 -1010
- package/src/modules/staff/backend/staff/timesheets/projects/[id]/edit/page.meta.ts +0 -6
- package/src/modules/staff/backend/staff/timesheets/projects/[id]/edit/page.tsx +4 -158
- package/src/modules/staff/backend/staff/timesheets/projects/[id]/page.meta.ts +0 -6
- package/src/modules/staff/backend/staff/timesheets/projects/[id]/page.tsx +4 -609
- package/src/modules/staff/backend/staff/timesheets/projects/create/page.meta.ts +0 -6
- package/src/modules/staff/backend/staff/timesheets/projects/create/page.tsx +3 -89
- package/src/modules/staff/backend/staff/timesheets/projects/page.meta.ts +2 -19
- package/src/modules/staff/backend/staff/timesheets/projects/page.tsx +3 -778
- package/src/modules/staff/ce.ts +63 -0
- package/src/modules/staff/cli.ts +207 -1
- package/src/modules/staff/commands/index.ts +5 -0
- package/src/modules/staff/commands/timesheets-entries.ts +1006 -28
- package/src/modules/staff/commands/timesheets-projects.ts +593 -7
- package/src/modules/staff/commands/timesheets-reports.ts +1329 -0
- package/src/modules/staff/commands/timesheets-tags.ts +1315 -0
- package/src/modules/staff/commands/timesheets-task-comments.ts +583 -0
- package/src/modules/staff/commands/timesheets-task-statuses.ts +889 -0
- package/src/modules/staff/commands/timesheets-tasks.ts +1121 -0
- package/src/modules/staff/data/enrichers.ts +675 -10
- package/src/modules/staff/data/entities.ts +494 -2
- package/src/modules/staff/data/extensions.ts +68 -0
- package/src/modules/staff/data/validators.ts +348 -3
- package/src/modules/staff/di.ts +96 -0
- package/src/modules/staff/events.payloads.ts +268 -0
- package/src/modules/staff/events.ts +87 -5
- package/src/modules/staff/extension-points.ts +308 -0
- package/src/modules/staff/frontend/[orgSlug]/portal/time-reports/[id]/page.meta.ts +10 -0
- package/src/modules/staff/frontend/[orgSlug]/portal/time-reports/[id]/page.tsx +225 -0
- package/src/modules/staff/frontend/[orgSlug]/portal/time-reports/page.meta.ts +17 -0
- package/src/modules/staff/frontend/[orgSlug]/portal/time-reports/page.tsx +182 -0
- package/src/modules/staff/i18n/de.json +899 -0
- package/src/modules/staff/i18n/en.json +899 -0
- package/src/modules/staff/i18n/es.json +899 -0
- package/src/modules/staff/i18n/ko.json +899 -0
- package/src/modules/staff/i18n/pl.json +899 -0
- package/src/modules/staff/lib/crud.ts +14 -3
- package/src/modules/staff/lib/time-tracking/access.ts +155 -0
- package/src/modules/staff/lib/time-tracking/billability.ts +68 -0
- package/src/modules/staff/lib/time-tracking/capacity.ts +124 -0
- package/src/modules/staff/lib/time-tracking/componentContracts.ts +26 -0
- package/src/modules/staff/lib/time-tracking/cost.ts +144 -0
- package/src/modules/staff/lib/time-tracking/duration.ts +68 -0
- package/src/modules/staff/lib/time-tracking/featureAccess.ts +115 -0
- package/src/modules/staff/lib/time-tracking/interval.ts +90 -0
- package/src/modules/staff/lib/time-tracking/migrateProjectCodes.ts +161 -0
- package/src/modules/staff/lib/time-tracking/moneyVisibility.ts +37 -0
- package/src/modules/staff/lib/time-tracking/overlap.ts +159 -0
- package/src/modules/staff/lib/time-tracking/portalRecipients.ts +76 -0
- package/src/modules/staff/lib/time-tracking/portalReports.ts +31 -0
- package/src/modules/staff/lib/time-tracking/projectCode.ts +221 -0
- package/src/modules/staff/lib/time-tracking/reapplyRounding.ts +313 -0
- package/src/modules/staff/lib/time-tracking/recalculationRunner.ts +118 -0
- package/src/modules/staff/lib/time-tracking/recalculations.ts +135 -0
- package/src/modules/staff/lib/time-tracking/registries/invoke.ts +122 -0
- package/src/modules/staff/lib/time-tracking/registries/registry.ts +124 -0
- package/src/modules/staff/lib/time-tracking/registries/scope.ts +56 -0
- package/src/modules/staff/lib/time-tracking/rollup.ts +59 -0
- package/src/modules/staff/lib/time-tracking/rounding.ts +126 -0
- package/src/modules/staff/lib/time-tracking/roundingImpact.ts +75 -0
- package/src/modules/staff/lib/time-tracking/settingKeys.ts +274 -0
- package/src/modules/staff/lib/time-tracking/settings.ts +168 -0
- package/src/modules/staff/lib/time-tracking/sqlInClause.ts +22 -0
- package/src/modules/staff/lib/time-tracking/timeEntrySources.ts +85 -0
- package/src/modules/staff/lib/time-tracking-ui/BoardFilterChips.tsx +360 -0
- package/src/modules/staff/lib/time-tracking-ui/CustomerPicker.tsx +427 -0
- package/src/modules/staff/lib/time-tracking-ui/DurationInput.tsx +192 -0
- package/src/modules/staff/lib/time-tracking-ui/EntryDetailsFields.tsx +224 -0
- package/src/modules/staff/lib/time-tracking-ui/EntryFilterBar.tsx +144 -0
- package/src/modules/staff/lib/time-tracking-ui/KanbanBoard.tsx +1065 -0
- package/src/modules/staff/lib/time-tracking-ui/KanbanCard.tsx +435 -0
- package/src/modules/staff/lib/time-tracking-ui/KanbanColumn.tsx +316 -0
- package/src/modules/staff/lib/time-tracking-ui/NewTaskDialog.tsx +291 -0
- package/src/modules/staff/lib/time-tracking-ui/NoProjectAccess.tsx +162 -0
- package/src/modules/staff/lib/time-tracking-ui/PeriodSelector.tsx +149 -0
- package/src/modules/staff/lib/time-tracking-ui/PhasePlaceholder.tsx +31 -0
- package/src/modules/staff/lib/time-tracking-ui/ProjectCodeField.tsx +230 -0
- package/src/modules/staff/lib/time-tracking-ui/ProjectCurrencyField.tsx +432 -0
- package/src/modules/staff/lib/time-tracking-ui/ProjectFormSections.tsx +323 -0
- package/src/modules/staff/lib/time-tracking-ui/ProjectTeamDrawer.tsx +930 -0
- package/src/modules/staff/lib/time-tracking-ui/ReportSheet.tsx +357 -0
- package/src/modules/staff/lib/time-tracking-ui/TagPicker.tsx +195 -0
- package/src/modules/staff/lib/time-tracking-ui/TaskBoardScreen.tsx +243 -0
- package/src/modules/staff/lib/time-tracking-ui/TaskCommentThread.tsx +137 -0
- package/src/modules/staff/lib/time-tracking-ui/TaskDrawer.tsx +1405 -0
- package/src/modules/staff/lib/time-tracking-ui/TaskListView.tsx +260 -0
- package/src/modules/staff/lib/time-tracking-ui/TaskPicker.tsx +435 -0
- package/src/modules/staff/lib/time-tracking-ui/TaskQuickLog.tsx +296 -0
- package/src/modules/staff/lib/time-tracking-ui/TimeEntriesSummaryFooter.tsx +97 -0
- package/src/modules/staff/lib/time-tracking-ui/TimeEntryDialog.tsx +1929 -0
- package/src/modules/staff/lib/time-tracking-ui/TimeEntryDurationCell.tsx +126 -0
- package/src/modules/staff/lib/time-tracking-ui/TimesheetCalendar.tsx +265 -0
- package/src/modules/staff/lib/time-tracking-ui/TimesheetPeriodFooter.tsx +78 -0
- package/src/modules/staff/lib/time-tracking-ui/TimesheetViewSwitch.tsx +70 -0
- package/src/modules/staff/lib/time-tracking-ui/boardDirectory.ts +231 -0
- package/src/modules/staff/lib/time-tracking-ui/boardFilters.ts +128 -0
- package/src/modules/staff/lib/time-tracking-ui/boardSummary.ts +20 -0
- package/src/modules/staff/lib/time-tracking-ui/kanbanBoardData.ts +228 -0
- package/src/modules/staff/lib/time-tracking-ui/projectTeamAssignment.ts +143 -0
- package/src/modules/staff/lib/time-tracking-ui/taskDrawerData.ts +194 -0
- package/src/modules/staff/lib/time-tracking-ui/timeEntryDialogState.ts +400 -0
- package/src/modules/staff/lib/time-tracking-ui/timeEntryListData.ts +271 -0
- package/src/modules/staff/lib/time-tracking-ui/timeTrackingSettingsForm.ts +168 -0
- package/src/modules/staff/lib/time-tracking-ui/timesheetData.ts +225 -0
- package/src/modules/staff/lib/time-tracking-ui/timesheetPeriod.ts +278 -0
- package/src/modules/staff/lib/time-tracking-ui/timesheetTargets.ts +93 -0
- package/src/modules/staff/lib/time-tracking-ui/useBoardFilters.ts +107 -0
- package/src/modules/staff/lib/time-tracking-ui/useTimesheetPreferences.ts +245 -0
- package/src/modules/staff/lib/timeTrackingSeeds.ts +1037 -0
- package/src/modules/staff/lib/timesheets/timeEntryCacheInvalidation.ts +11 -10
- package/src/modules/staff/lib/timesheets/timeEntryDecoration.ts +256 -0
- package/src/modules/staff/lib/timesheets-projects/budgetBurn.ts +60 -0
- package/src/modules/staff/lib/timesheets-projects/budgetThreshold.ts +135 -0
- package/src/modules/staff/lib/timesheets-projects/budgetThresholdState.ts +137 -0
- package/src/modules/staff/lib/timesheets-projects/computeProjectFinancials.ts +142 -0
- package/src/modules/staff/lib/timesheets-projects/reportSelection.ts +82 -0
- package/src/modules/staff/lib/timesheets-projects-ui/AssignMembersDialog.tsx +237 -0
- package/src/modules/staff/lib/timesheets-projects-ui/ProjectBudgetCell.tsx +33 -0
- package/src/modules/staff/lib/timesheets-projects-ui/ProjectCard.tsx +56 -1
- package/src/modules/staff/lib/timesheets-projects-ui/ProjectsBulkActionsBar.tsx +90 -0
- package/src/modules/staff/lib/timesheets-reports/buildReportSheet.ts +125 -0
- package/src/modules/staff/lib/timesheets-reports/loadReportData.ts +251 -0
- package/src/modules/staff/lib/timesheets-reports/pdf.ts +263 -0
- package/src/modules/staff/lib/timesheets-reports/reportApprovalPolicies.ts +137 -0
- package/src/modules/staff/lib/timesheets-reports/reportConfigData.ts +247 -0
- package/src/modules/staff/lib/timesheets-reports/reportConfigState.ts +89 -0
- package/src/modules/staff/lib/timesheets-reports/reportExport.ts +373 -0
- package/src/modules/staff/lib/timesheets-reports/reportExportFormats.ts +71 -0
- package/src/modules/staff/lib/timesheets-reports/reportGroupings.ts +153 -0
- package/src/modules/staff/lib/timesheets-reports/reportLabels.ts +23 -0
- package/src/modules/staff/lib/timesheets-reports/reportReference.ts +146 -0
- package/src/modules/staff/lib/timesheets-reports/reportRows.ts +89 -0
- package/src/modules/staff/lib/timesheets-reports/reportSheetData.ts +196 -0
- package/src/modules/staff/lib/timesheets-reports/reportTotals.ts +544 -0
- package/src/modules/staff/lib/timesheets-reports/xlsx.ts +207 -0
- package/src/modules/staff/lib/timesheets-tasks/computeTaskRollups.ts +238 -0
- package/src/modules/staff/lib/timesheets-tasks/defaultStatusTemplate.ts +90 -0
- package/src/modules/staff/lib/timesheets-tasks/seedProjectStatuses.ts +43 -0
- package/src/modules/staff/lib/timesheets-tasks/statusPositions.ts +132 -0
- package/src/modules/staff/lib/timesheets-tasks/statusSlug.ts +43 -0
- package/src/modules/staff/lib/timesheets-tasks/taskHierarchy.ts +99 -0
- package/src/modules/staff/lib/timesheets-tasks/taskHoursTotals.ts +42 -0
- package/src/modules/staff/lib/timesheets-tasks/taskReference.ts +108 -0
- package/src/modules/staff/lib/timesheets-ui/CreateProjectDialog.tsx +18 -4
- package/src/modules/staff/lib/timesheets-ui/ListView.tsx +504 -149
- package/src/modules/staff/lib/timesheets-ui/TimerBar.tsx +50 -2
- package/src/modules/staff/migrations/.snapshot-open-mercato.json +3244 -228
- package/src/modules/staff/migrations/Migration20260813073131_staff.ts +94 -0
- package/src/modules/staff/migrations/Migration20260824143357_staff.ts +17 -0
- package/src/modules/staff/notifications.client.ts +16 -0
- package/src/modules/staff/notifications.handlers.ts +88 -0
- package/src/modules/staff/notifications.ts +163 -0
- package/src/modules/staff/search.ts +191 -1
- package/src/modules/staff/setup.ts +22 -0
- package/src/modules/staff/subscribers/time-project-access-requested-notification.ts +95 -0
- package/src/modules/staff/subscribers/time-project-budget-threshold-notification.ts +226 -0
- package/src/modules/staff/subscribers/time-report-approved-notification.ts +116 -0
- package/src/modules/staff/subscribers/time-report-portal-broadcast.ts +120 -0
- package/src/modules/staff/translations.ts +17 -0
- package/src/modules/staff/widgets/components.ts +34 -0
- package/src/modules/staff/widgets/injection/timer-sidebar-indicator/widget.tsx +6 -5
- package/src/modules/staff/widgets/notifications/TimeProjectAccessRequestedRenderer.tsx +138 -0
- package/src/modules/staff/widgets/notifications/index.ts +1 -0
- package/src/modules/staff/workers/timesheets-reapply-rounding.ts +59 -0
- package/dist/modules/staff/backend/staff/timesheets/projects/projectFormConfig.js +0 -123
- package/dist/modules/staff/backend/staff/timesheets/projects/projectFormConfig.js.map +0 -7
- package/src/modules/staff/backend/staff/timesheets/projects/projectFormConfig.ts +0 -138
|
@@ -0,0 +1,855 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { useRouter, useSearchParams } from "next/navigation";
|
|
5
|
+
import { useQueries, useQuery, useQueryClient } from "@tanstack/react-query";
|
|
6
|
+
import {
|
|
7
|
+
DndContext,
|
|
8
|
+
DragOverlay,
|
|
9
|
+
MeasuringStrategy,
|
|
10
|
+
PointerSensor,
|
|
11
|
+
pointerWithin,
|
|
12
|
+
useSensor,
|
|
13
|
+
useSensors
|
|
14
|
+
} from "@dnd-kit/core";
|
|
15
|
+
import { Plus, RotateCcw } from "lucide-react";
|
|
16
|
+
import { Alert, AlertDescription } from "@open-mercato/ui/primitives/alert";
|
|
17
|
+
import { Button } from "@open-mercato/ui/primitives/button";
|
|
18
|
+
import { EmptyState } from "@open-mercato/ui/primitives/empty-state";
|
|
19
|
+
import { Input } from "@open-mercato/ui/primitives/input";
|
|
20
|
+
import { ErrorMessage, LoadingMessage } from "@open-mercato/ui/backend/detail";
|
|
21
|
+
import { apiCall, apiCallOrThrow, withScopedApiRequestHeaders } from "@open-mercato/ui/backend/utils/apiCall";
|
|
22
|
+
import { buildOptimisticLockHeader } from "@open-mercato/ui/backend/utils/optimisticLock";
|
|
23
|
+
import { surfaceRecordConflict } from "@open-mercato/ui/backend/conflicts";
|
|
24
|
+
import { useBackendChrome } from "@open-mercato/ui/backend/BackendChromeProvider";
|
|
25
|
+
import { useGuardedMutation } from "@open-mercato/ui/backend/injection/useGuardedMutation";
|
|
26
|
+
import { useAppEvent } from "@open-mercato/ui/backend/injection/useAppEvent";
|
|
27
|
+
import { flash } from "@open-mercato/ui/backend/FlashMessages";
|
|
28
|
+
import { hasFeature } from "@open-mercato/shared/security/features";
|
|
29
|
+
import { useT } from "@open-mercato/shared/lib/i18n/context";
|
|
30
|
+
import { useOrganizationScopeVersion } from "@open-mercato/shared/lib/frontend/useOrganizationScope";
|
|
31
|
+
import { createLogger } from "@open-mercato/shared/lib/logger";
|
|
32
|
+
import { sumTaskLoggedMinutes } from "../timesheets-tasks/taskHoursTotals.js";
|
|
33
|
+
import { KanbanColumn, KANBAN_COLUMN_DROPPABLE_PREFIX } from "./KanbanColumn.js";
|
|
34
|
+
import { InjectionSpot } from "@open-mercato/ui/backend/injection/InjectionSpot";
|
|
35
|
+
import { extensionPoints } from "@open-mercato/core/modules/staff/extension-points";
|
|
36
|
+
import { TaskDrawer } from "./TaskDrawer.js";
|
|
37
|
+
import {
|
|
38
|
+
BOARD_DIRECTORY_PAGE_SIZE,
|
|
39
|
+
BOARD_PAGE_SIZE,
|
|
40
|
+
BOARD_QUERY_ROOT,
|
|
41
|
+
boardColumnQueryKey,
|
|
42
|
+
fetchTaskPages,
|
|
43
|
+
useAssigneeNames,
|
|
44
|
+
useBoardSelf,
|
|
45
|
+
useBoardStatuses,
|
|
46
|
+
useTagLabels
|
|
47
|
+
} from "./boardDirectory.js";
|
|
48
|
+
import {
|
|
49
|
+
EMPTY_BOARD_FILTERS,
|
|
50
|
+
boardServerFilterKey,
|
|
51
|
+
boardServerFilterParams,
|
|
52
|
+
visibleBoardStatusIds
|
|
53
|
+
} from "./boardFilters.js";
|
|
54
|
+
import {
|
|
55
|
+
computeSubtaskProgress,
|
|
56
|
+
formatBoardMinutes,
|
|
57
|
+
nextPositionAtColumnTop,
|
|
58
|
+
readItems,
|
|
59
|
+
readString,
|
|
60
|
+
sortByPosition,
|
|
61
|
+
toBoardTask
|
|
62
|
+
} from "./kanbanBoardData.js";
|
|
63
|
+
const logger = createLogger("staff").child({ component: "KanbanBoard" });
|
|
64
|
+
const BOARD_MAX_CHILD_PAGES = 5;
|
|
65
|
+
const MOVE_MUTATION_CONTEXT_ID = "staff.time_tracking.board.move";
|
|
66
|
+
const CREATE_MUTATION_CONTEXT_ID = "staff.time_tracking.board.create";
|
|
67
|
+
const MANAGE_COLUMNS_FEATURE = "staff.timesheets.projects.manage";
|
|
68
|
+
const MANAGE_TASKS_FEATURE = "staff.timesheets.tasks.manage";
|
|
69
|
+
const TASK_STATUS_CHANGED_EVENT = "staff.timesheets.time_task.status_changed";
|
|
70
|
+
const OWN_MOVE_ECHO_TTL_MS = 15e3;
|
|
71
|
+
function statusIdFromColumnKey(key) {
|
|
72
|
+
const part = key.find((entry) => typeof entry === "string" && entry.startsWith("status:"));
|
|
73
|
+
return typeof part === "string" ? part.slice("status:".length) : null;
|
|
74
|
+
}
|
|
75
|
+
function isOlderVersion(candidate, reference) {
|
|
76
|
+
const candidateAt = Date.parse(candidate);
|
|
77
|
+
const referenceAt = Date.parse(reference);
|
|
78
|
+
if (!Number.isFinite(candidateAt) || !Number.isFinite(referenceAt)) return false;
|
|
79
|
+
return candidateAt < referenceAt;
|
|
80
|
+
}
|
|
81
|
+
function KanbanBoard({
|
|
82
|
+
timeProjectId,
|
|
83
|
+
projectName,
|
|
84
|
+
filters = EMPTY_BOARD_FILTERS,
|
|
85
|
+
onSummaryChange
|
|
86
|
+
}) {
|
|
87
|
+
const t = useT();
|
|
88
|
+
const router = useRouter();
|
|
89
|
+
const searchParams = useSearchParams();
|
|
90
|
+
const queryClient = useQueryClient();
|
|
91
|
+
const scopeVersion = useOrganizationScopeVersion();
|
|
92
|
+
const { payload } = useBackendChrome();
|
|
93
|
+
const canManageColumns = hasFeature(payload?.grantedFeatures, MANAGE_COLUMNS_FEATURE);
|
|
94
|
+
const canManageTasks = hasFeature(payload?.grantedFeatures, MANAGE_TASKS_FEATURE);
|
|
95
|
+
const serverFilterKey = boardServerFilterKey(filters);
|
|
96
|
+
const serverFilterParams = boardServerFilterParams(filters);
|
|
97
|
+
const [pagesByStatus, setPagesByStatus] = React.useState({});
|
|
98
|
+
const [activeDragTaskId, setActiveDragTaskId] = React.useState(null);
|
|
99
|
+
const [pendingTaskIds, setPendingTaskIds] = React.useState(/* @__PURE__ */ new Set());
|
|
100
|
+
const [failedMove, setFailedMove] = React.useState(null);
|
|
101
|
+
const [quickAddPendingStatusId, setQuickAddPendingStatusId] = React.useState(null);
|
|
102
|
+
const [composingStatus, setComposingStatus] = React.useState(false);
|
|
103
|
+
const [statusDraft, setStatusDraft] = React.useState("");
|
|
104
|
+
const ownMoveKeysRef = React.useRef(/* @__PURE__ */ new Map());
|
|
105
|
+
const confirmedVersionsRef = React.useRef(/* @__PURE__ */ new Map());
|
|
106
|
+
const resolveTaskVersion = React.useCallback(
|
|
107
|
+
(taskId, rowVersion) => {
|
|
108
|
+
const confirmed = confirmedVersionsRef.current.get(taskId);
|
|
109
|
+
if (!confirmed) return rowVersion;
|
|
110
|
+
if (rowVersion && !isOlderVersion(rowVersion, confirmed)) {
|
|
111
|
+
confirmedVersionsRef.current.delete(taskId);
|
|
112
|
+
return rowVersion;
|
|
113
|
+
}
|
|
114
|
+
return confirmed;
|
|
115
|
+
},
|
|
116
|
+
[]
|
|
117
|
+
);
|
|
118
|
+
const { runMutation: runMoveMutation, retryLastMutation: retryMoveMutation } = useGuardedMutation({
|
|
119
|
+
contextId: MOVE_MUTATION_CONTEXT_ID,
|
|
120
|
+
blockedMessage: t("staff.time_tracking.board.move.error", "Could not move the task.")
|
|
121
|
+
});
|
|
122
|
+
const { runMutation: runCreateMutation, retryLastMutation: retryCreateMutation } = useGuardedMutation({
|
|
123
|
+
contextId: CREATE_MUTATION_CONTEXT_ID,
|
|
124
|
+
blockedMessage: t("staff.time_tracking.board.quickAdd.error", "Could not create the task.")
|
|
125
|
+
});
|
|
126
|
+
const statusesQuery = useBoardStatuses(timeProjectId);
|
|
127
|
+
const statuses = React.useMemo(() => statusesQuery.data ?? [], [statusesQuery.data]);
|
|
128
|
+
const visibleStatuses = React.useMemo(
|
|
129
|
+
() => visibleBoardStatusIds(statuses, filters),
|
|
130
|
+
[filters, statuses]
|
|
131
|
+
);
|
|
132
|
+
const columnQueries = useQueries({
|
|
133
|
+
queries: visibleStatuses.map((status) => {
|
|
134
|
+
const pages = pagesByStatus[status.id] ?? 1;
|
|
135
|
+
return {
|
|
136
|
+
queryKey: boardColumnQueryKey(scopeVersion, timeProjectId, status.id, pages, serverFilterKey),
|
|
137
|
+
staleTime: 15e3,
|
|
138
|
+
queryFn: async () => fetchTaskPages(
|
|
139
|
+
(page) => `timeProjectId=${encodeURIComponent(timeProjectId)}&taskStatusId=${encodeURIComponent(status.id)}&topLevelOnly=true&page=${page}&pageSize=${BOARD_PAGE_SIZE}&sortField=position&sortDir=asc${serverFilterParams}`,
|
|
140
|
+
pages
|
|
141
|
+
)
|
|
142
|
+
};
|
|
143
|
+
})
|
|
144
|
+
});
|
|
145
|
+
const tasksByStatusId = React.useMemo(() => {
|
|
146
|
+
const map = /* @__PURE__ */ new Map();
|
|
147
|
+
visibleStatuses.forEach((status, index) => {
|
|
148
|
+
const data = columnQueries[index]?.data;
|
|
149
|
+
const loaded = (data?.items ?? []).map(toBoardTask).filter((task) => task !== null);
|
|
150
|
+
map.set(status.id, {
|
|
151
|
+
tasks: sortByPosition(loaded),
|
|
152
|
+
loaded: loaded.length,
|
|
153
|
+
total: data?.total ?? loaded.length
|
|
154
|
+
});
|
|
155
|
+
});
|
|
156
|
+
return map;
|
|
157
|
+
}, [columnQueries, visibleStatuses]);
|
|
158
|
+
const allTasks = React.useMemo(() => {
|
|
159
|
+
const rows = [];
|
|
160
|
+
for (const entry of tasksByStatusId.values()) rows.push(...entry.tasks);
|
|
161
|
+
return rows;
|
|
162
|
+
}, [tasksByStatusId]);
|
|
163
|
+
const hasChildren = React.useMemo(() => allTasks.some((task) => task.childCount > 0), [allTasks]);
|
|
164
|
+
const childrenQuery = useQuery({
|
|
165
|
+
queryKey: [...BOARD_QUERY_ROOT, "children", `scope:${scopeVersion}`, `project:${timeProjectId}`],
|
|
166
|
+
enabled: hasChildren,
|
|
167
|
+
staleTime: 3e4,
|
|
168
|
+
queryFn: async () => {
|
|
169
|
+
const { items } = await fetchTaskPages(
|
|
170
|
+
(page) => `timeProjectId=${encodeURIComponent(timeProjectId)}&page=${page}&pageSize=${BOARD_PAGE_SIZE}&sortField=position&sortDir=asc`,
|
|
171
|
+
BOARD_MAX_CHILD_PAGES
|
|
172
|
+
);
|
|
173
|
+
return items.map(toBoardTask).filter((task) => task !== null && !!task.parentTaskId);
|
|
174
|
+
}
|
|
175
|
+
});
|
|
176
|
+
const doneStatusIds = React.useMemo(
|
|
177
|
+
() => new Set(statuses.filter((status) => status.isDone).map((status) => status.id)),
|
|
178
|
+
[statuses]
|
|
179
|
+
);
|
|
180
|
+
const subtasksByTaskId = React.useMemo(
|
|
181
|
+
() => computeSubtaskProgress(childrenQuery.data ?? [], doneStatusIds),
|
|
182
|
+
[childrenQuery.data, doneStatusIds]
|
|
183
|
+
);
|
|
184
|
+
const assigneeIds = React.useMemo(() => {
|
|
185
|
+
const ids = /* @__PURE__ */ new Set();
|
|
186
|
+
for (const task of allTasks) {
|
|
187
|
+
if (task.assigneeStaffMemberId) ids.add(task.assigneeStaffMemberId);
|
|
188
|
+
}
|
|
189
|
+
return Array.from(ids).sort((a, b) => a < b ? -1 : a > b ? 1 : 0);
|
|
190
|
+
}, [allTasks]);
|
|
191
|
+
const assigneeQuery = useAssigneeNames(assigneeIds);
|
|
192
|
+
const tagIds = React.useMemo(() => {
|
|
193
|
+
const ids = /* @__PURE__ */ new Set();
|
|
194
|
+
for (const task of allTasks) {
|
|
195
|
+
for (const id of task.tagIds) ids.add(id);
|
|
196
|
+
}
|
|
197
|
+
return Array.from(ids).sort((a, b) => a < b ? -1 : a > b ? 1 : 0);
|
|
198
|
+
}, [allTasks]);
|
|
199
|
+
const tagQuery = useTagLabels(tagIds);
|
|
200
|
+
const tagsByTaskId = React.useMemo(() => {
|
|
201
|
+
const labels = tagQuery.data ?? /* @__PURE__ */ new Map();
|
|
202
|
+
const map = /* @__PURE__ */ new Map();
|
|
203
|
+
for (const task of allTasks) {
|
|
204
|
+
if (task.tagIds.length === 0) continue;
|
|
205
|
+
const named = [];
|
|
206
|
+
for (const id of task.tagIds) {
|
|
207
|
+
const label = labels.get(id);
|
|
208
|
+
if (label) named.push({ id, label });
|
|
209
|
+
}
|
|
210
|
+
if (named.length === 0) continue;
|
|
211
|
+
map.set(task.id, named);
|
|
212
|
+
}
|
|
213
|
+
return map;
|
|
214
|
+
}, [allTasks, tagQuery.data]);
|
|
215
|
+
const selfQuery = useBoardSelf();
|
|
216
|
+
const selfStaffMemberId = selfQuery.data?.id ?? null;
|
|
217
|
+
const runningTimerQuery = useQuery({
|
|
218
|
+
queryKey: [...BOARD_QUERY_ROOT, "running-timer", `scope:${scopeVersion}`, selfStaffMemberId ?? "none"],
|
|
219
|
+
enabled: !!selfStaffMemberId,
|
|
220
|
+
staleTime: 15e3,
|
|
221
|
+
refetchInterval: 3e4,
|
|
222
|
+
queryFn: async () => {
|
|
223
|
+
if (!selfStaffMemberId) return { entryId: null, taskId: null };
|
|
224
|
+
const call = await apiCall(
|
|
225
|
+
`/api/staff/timesheets/time-entries?staffMemberId=${encodeURIComponent(selfStaffMemberId)}&running=true&pageSize=${BOARD_PAGE_SIZE}`
|
|
226
|
+
);
|
|
227
|
+
if (!call.ok) return { entryId: null, taskId: null };
|
|
228
|
+
for (const row of readItems(call.result)) {
|
|
229
|
+
const endedAt = readString(row, "ended_at", "endedAt");
|
|
230
|
+
const startedAt = readString(row, "started_at", "startedAt");
|
|
231
|
+
if (!startedAt || endedAt) continue;
|
|
232
|
+
return { entryId: readString(row, "id"), taskId: readString(row, "task_id", "taskId") };
|
|
233
|
+
}
|
|
234
|
+
return { entryId: null, taskId: null };
|
|
235
|
+
}
|
|
236
|
+
});
|
|
237
|
+
const runningTimerTaskId = runningTimerQuery.data?.taskId ?? null;
|
|
238
|
+
const runningTimerEntryId = runningTimerQuery.data?.entryId ?? null;
|
|
239
|
+
const invalidateBoard = React.useCallback(() => {
|
|
240
|
+
queryClient.invalidateQueries({ queryKey: [...BOARD_QUERY_ROOT, "column"] }).catch(() => {
|
|
241
|
+
});
|
|
242
|
+
queryClient.invalidateQueries({ queryKey: [...BOARD_QUERY_ROOT, "children"] }).catch(() => {
|
|
243
|
+
});
|
|
244
|
+
}, [queryClient]);
|
|
245
|
+
const invalidateStatuses = React.useCallback(() => {
|
|
246
|
+
queryClient.invalidateQueries({ queryKey: [...BOARD_QUERY_ROOT, "statuses"] }).catch(() => {
|
|
247
|
+
});
|
|
248
|
+
}, [queryClient]);
|
|
249
|
+
const markOwnMove = React.useCallback((taskId, statusId) => {
|
|
250
|
+
ownMoveKeysRef.current.set(`${taskId}|${statusId}`, Date.now());
|
|
251
|
+
}, []);
|
|
252
|
+
const consumeOwnMove = React.useCallback((taskId, statusId) => {
|
|
253
|
+
const keys = ownMoveKeysRef.current;
|
|
254
|
+
const key = `${taskId}|${statusId}`;
|
|
255
|
+
const stamped = keys.get(key);
|
|
256
|
+
for (const [entry, at] of keys) {
|
|
257
|
+
if (Date.now() - at > OWN_MOVE_ECHO_TTL_MS) keys.delete(entry);
|
|
258
|
+
}
|
|
259
|
+
if (stamped === void 0) return false;
|
|
260
|
+
keys.delete(key);
|
|
261
|
+
return true;
|
|
262
|
+
}, []);
|
|
263
|
+
useAppEvent(
|
|
264
|
+
TASK_STATUS_CHANGED_EVENT,
|
|
265
|
+
(event) => {
|
|
266
|
+
const eventPayload = event.payload;
|
|
267
|
+
if (!eventPayload) return;
|
|
268
|
+
const projectId = typeof eventPayload.timeProjectId === "string" ? eventPayload.timeProjectId : null;
|
|
269
|
+
if (projectId && projectId !== timeProjectId) return;
|
|
270
|
+
const taskId = typeof eventPayload.taskId === "string" ? eventPayload.taskId : typeof eventPayload.id === "string" ? eventPayload.id : null;
|
|
271
|
+
const statusId = typeof eventPayload.taskStatusId === "string" ? eventPayload.taskStatusId : null;
|
|
272
|
+
if (taskId && statusId && consumeOwnMove(taskId, statusId)) return;
|
|
273
|
+
invalidateBoard();
|
|
274
|
+
},
|
|
275
|
+
[consumeOwnMove, invalidateBoard, timeProjectId]
|
|
276
|
+
);
|
|
277
|
+
const setTaskPending = React.useCallback((taskId, pending) => {
|
|
278
|
+
setPendingTaskIds((previous) => {
|
|
279
|
+
const next = new Set(previous);
|
|
280
|
+
if (pending) next.add(taskId);
|
|
281
|
+
else next.delete(taskId);
|
|
282
|
+
return next;
|
|
283
|
+
});
|
|
284
|
+
}, []);
|
|
285
|
+
const moveTask = React.useCallback(
|
|
286
|
+
(taskId, targetStatusId) => {
|
|
287
|
+
const columnCaches = queryClient.getQueriesData({
|
|
288
|
+
queryKey: [...BOARD_QUERY_ROOT, "column"]
|
|
289
|
+
});
|
|
290
|
+
const snapshot = columnCaches.map(([key, data]) => [key, data]);
|
|
291
|
+
let sourceStatusId = null;
|
|
292
|
+
let movingRow = null;
|
|
293
|
+
for (const [key, data] of columnCaches) {
|
|
294
|
+
if (!data) continue;
|
|
295
|
+
const statusId = statusIdFromColumnKey(key);
|
|
296
|
+
if (!statusId) continue;
|
|
297
|
+
const index = data.items.findIndex((item) => readString(item, "id") === taskId);
|
|
298
|
+
if (index < 0) continue;
|
|
299
|
+
sourceStatusId = statusId;
|
|
300
|
+
movingRow = { ...data.items[index], task_status_id: targetStatusId, taskStatusId: targetStatusId };
|
|
301
|
+
queryClient.setQueryData(key, {
|
|
302
|
+
items: data.items.filter((item) => readString(item, "id") !== taskId),
|
|
303
|
+
total: Math.max(0, data.total - 1)
|
|
304
|
+
});
|
|
305
|
+
break;
|
|
306
|
+
}
|
|
307
|
+
if (!movingRow || !sourceStatusId || sourceStatusId === targetStatusId) {
|
|
308
|
+
for (const [key, data] of snapshot) queryClient.setQueryData(key, data);
|
|
309
|
+
return;
|
|
310
|
+
}
|
|
311
|
+
const targetTasks = tasksByStatusId.get(targetStatusId)?.tasks ?? [];
|
|
312
|
+
const position = nextPositionAtColumnTop(targetTasks);
|
|
313
|
+
const landed = { ...movingRow, position };
|
|
314
|
+
for (const [key, data] of columnCaches) {
|
|
315
|
+
if (!data) continue;
|
|
316
|
+
if (statusIdFromColumnKey(key) !== targetStatusId) continue;
|
|
317
|
+
queryClient.setQueryData(key, {
|
|
318
|
+
items: [landed, ...data.items],
|
|
319
|
+
total: data.total + 1
|
|
320
|
+
});
|
|
321
|
+
}
|
|
322
|
+
const taskVersion = resolveTaskVersion(taskId, readString(movingRow, "updated_at", "updatedAt"));
|
|
323
|
+
setTaskPending(taskId, true);
|
|
324
|
+
setFailedMove(null);
|
|
325
|
+
markOwnMove(taskId, targetStatusId);
|
|
326
|
+
runMoveMutation({
|
|
327
|
+
operation: async () => {
|
|
328
|
+
const call = await withScopedApiRequestHeaders(
|
|
329
|
+
buildOptimisticLockHeader(taskVersion),
|
|
330
|
+
() => apiCallOrThrow(
|
|
331
|
+
`/api/staff/timesheets/tasks/${encodeURIComponent(taskId)}/status`,
|
|
332
|
+
{
|
|
333
|
+
method: "PATCH",
|
|
334
|
+
headers: { "content-type": "application/json" },
|
|
335
|
+
body: JSON.stringify({ taskStatusId: targetStatusId, position })
|
|
336
|
+
},
|
|
337
|
+
{ errorMessage: t("staff.time_tracking.board.move.error", "Could not move the task.") }
|
|
338
|
+
)
|
|
339
|
+
);
|
|
340
|
+
return readString(call.result ?? {}, "updatedAt", "updated_at");
|
|
341
|
+
},
|
|
342
|
+
context: {
|
|
343
|
+
formId: MOVE_MUTATION_CONTEXT_ID,
|
|
344
|
+
resourceKind: "staff.timesheets.task",
|
|
345
|
+
resourceId: taskId,
|
|
346
|
+
retryLastMutation: retryMoveMutation
|
|
347
|
+
}
|
|
348
|
+
}).then((confirmedVersion) => {
|
|
349
|
+
if (confirmedVersion) confirmedVersionsRef.current.set(taskId, confirmedVersion);
|
|
350
|
+
invalidateBoard();
|
|
351
|
+
}).catch((error) => {
|
|
352
|
+
for (const [key, data] of snapshot) queryClient.setQueryData(key, data);
|
|
353
|
+
consumeOwnMove(taskId, targetStatusId);
|
|
354
|
+
if (surfaceRecordConflict(error, t)) {
|
|
355
|
+
confirmedVersionsRef.current.delete(taskId);
|
|
356
|
+
invalidateBoard();
|
|
357
|
+
return;
|
|
358
|
+
}
|
|
359
|
+
setFailedMove({ taskId, targetStatusId });
|
|
360
|
+
const message = error instanceof Error && error.message ? error.message : t("staff.time_tracking.board.move.error", "Could not move the task.");
|
|
361
|
+
flash(message, "error");
|
|
362
|
+
}).finally(() => {
|
|
363
|
+
setTaskPending(taskId, false);
|
|
364
|
+
});
|
|
365
|
+
},
|
|
366
|
+
[
|
|
367
|
+
consumeOwnMove,
|
|
368
|
+
invalidateBoard,
|
|
369
|
+
markOwnMove,
|
|
370
|
+
queryClient,
|
|
371
|
+
resolveTaskVersion,
|
|
372
|
+
retryMoveMutation,
|
|
373
|
+
runMoveMutation,
|
|
374
|
+
setTaskPending,
|
|
375
|
+
t,
|
|
376
|
+
tasksByStatusId
|
|
377
|
+
]
|
|
378
|
+
);
|
|
379
|
+
const sensors = useSensors(useSensor(PointerSensor, { activationConstraint: { distance: 4 } }));
|
|
380
|
+
const collisionDetection = React.useCallback((args) => pointerWithin(args), []);
|
|
381
|
+
const measuringConfig = React.useMemo(
|
|
382
|
+
() => ({ droppable: { strategy: MeasuringStrategy.BeforeDragging } }),
|
|
383
|
+
[]
|
|
384
|
+
);
|
|
385
|
+
const statusIdByTaskId = React.useMemo(() => {
|
|
386
|
+
const map = /* @__PURE__ */ new Map();
|
|
387
|
+
for (const [statusId, entry] of tasksByStatusId) {
|
|
388
|
+
for (const task of entry.tasks) map.set(task.id, statusId);
|
|
389
|
+
}
|
|
390
|
+
return map;
|
|
391
|
+
}, [tasksByStatusId]);
|
|
392
|
+
const activeDragTask = React.useMemo(
|
|
393
|
+
() => activeDragTaskId ? allTasks.find((task) => task.id === activeDragTaskId) ?? null : null,
|
|
394
|
+
[activeDragTaskId, allTasks]
|
|
395
|
+
);
|
|
396
|
+
const handleDragStart = React.useCallback((event) => {
|
|
397
|
+
setActiveDragTaskId(typeof event.active.id === "string" ? event.active.id : null);
|
|
398
|
+
}, []);
|
|
399
|
+
const handleDragCancel = React.useCallback(() => setActiveDragTaskId(null), []);
|
|
400
|
+
const targetStatusIdFor = React.useCallback(
|
|
401
|
+
(overId) => {
|
|
402
|
+
if (typeof overId !== "string") return null;
|
|
403
|
+
return overId.startsWith(KANBAN_COLUMN_DROPPABLE_PREFIX) ? overId.slice(KANBAN_COLUMN_DROPPABLE_PREFIX.length) : statusIdByTaskId.get(overId) ?? null;
|
|
404
|
+
},
|
|
405
|
+
[statusIdByTaskId]
|
|
406
|
+
);
|
|
407
|
+
const handleDragEnd = React.useCallback(
|
|
408
|
+
(event) => {
|
|
409
|
+
setActiveDragTaskId(null);
|
|
410
|
+
const taskId = typeof event.active.id === "string" ? event.active.id : null;
|
|
411
|
+
if (!taskId) return;
|
|
412
|
+
const targetStatusId = targetStatusIdFor(event.over?.id);
|
|
413
|
+
if (!targetStatusId) return;
|
|
414
|
+
if (statusIdByTaskId.get(taskId) === targetStatusId) return;
|
|
415
|
+
moveTask(taskId, targetStatusId);
|
|
416
|
+
},
|
|
417
|
+
[moveTask, statusIdByTaskId, targetStatusIdFor]
|
|
418
|
+
);
|
|
419
|
+
const moveTargets = React.useMemo(
|
|
420
|
+
() => visibleStatuses.map((status) => ({ id: status.id, name: status.name })),
|
|
421
|
+
[visibleStatuses]
|
|
422
|
+
);
|
|
423
|
+
const describeTask = React.useCallback(
|
|
424
|
+
(taskId) => {
|
|
425
|
+
if (typeof taskId !== "string") return "";
|
|
426
|
+
return allTasks.find((task) => task.id === taskId)?.title ?? taskId;
|
|
427
|
+
},
|
|
428
|
+
[allTasks]
|
|
429
|
+
);
|
|
430
|
+
const describeColumn = React.useCallback(
|
|
431
|
+
(overId) => {
|
|
432
|
+
const statusId = targetStatusIdFor(overId);
|
|
433
|
+
if (!statusId) return null;
|
|
434
|
+
return statuses.find((status) => status.id === statusId)?.name ?? statusId;
|
|
435
|
+
},
|
|
436
|
+
[statuses, targetStatusIdFor]
|
|
437
|
+
);
|
|
438
|
+
const announcements = React.useMemo(
|
|
439
|
+
() => ({
|
|
440
|
+
onDragStart: ({ active }) => t("staff.time_tracking.board.dnd.dragStart", "Picked up the task {task}.", {
|
|
441
|
+
task: describeTask(active.id)
|
|
442
|
+
}),
|
|
443
|
+
onDragOver: ({ active, over }) => {
|
|
444
|
+
const column = describeColumn(over?.id);
|
|
445
|
+
return column ? t("staff.time_tracking.board.dnd.dragOver", "The task {task} is over the column {column}.", {
|
|
446
|
+
task: describeTask(active.id),
|
|
447
|
+
column
|
|
448
|
+
}) : t("staff.time_tracking.board.dnd.dragOverNothing", "The task {task} is not over a column.", {
|
|
449
|
+
task: describeTask(active.id)
|
|
450
|
+
});
|
|
451
|
+
},
|
|
452
|
+
onDragEnd: ({ active, over }) => {
|
|
453
|
+
const column = describeColumn(over?.id);
|
|
454
|
+
return column ? t("staff.time_tracking.board.dnd.dragEnd", "The task {task} was dropped into the column {column}.", {
|
|
455
|
+
task: describeTask(active.id),
|
|
456
|
+
column
|
|
457
|
+
}) : t("staff.time_tracking.board.dnd.dragEndOutside", "The task {task} was dropped outside the columns.", {
|
|
458
|
+
task: describeTask(active.id)
|
|
459
|
+
});
|
|
460
|
+
},
|
|
461
|
+
onDragCancel: ({ active }) => t("staff.time_tracking.board.dnd.dragCancel", "Moving the task {task} was cancelled.", {
|
|
462
|
+
task: describeTask(active.id)
|
|
463
|
+
})
|
|
464
|
+
}),
|
|
465
|
+
[describeColumn, describeTask, t]
|
|
466
|
+
);
|
|
467
|
+
const screenReaderInstructions = React.useMemo(
|
|
468
|
+
() => ({
|
|
469
|
+
draggable: t(
|
|
470
|
+
"staff.time_tracking.board.dnd.instructions",
|
|
471
|
+
"Drag a card with the pointer to move it between columns. With the keyboard, press Enter on a card to open it, or use the Move button in the card actions to choose a target column."
|
|
472
|
+
)
|
|
473
|
+
}),
|
|
474
|
+
[t]
|
|
475
|
+
);
|
|
476
|
+
const accessibility = React.useMemo(
|
|
477
|
+
() => ({ announcements, screenReaderInstructions }),
|
|
478
|
+
[announcements, screenReaderInstructions]
|
|
479
|
+
);
|
|
480
|
+
const handleQuickAdd = React.useCallback(
|
|
481
|
+
async (statusId, title) => {
|
|
482
|
+
setQuickAddPendingStatusId(statusId);
|
|
483
|
+
try {
|
|
484
|
+
await runCreateMutation({
|
|
485
|
+
operation: () => apiCallOrThrow(
|
|
486
|
+
"/api/staff/timesheets/tasks",
|
|
487
|
+
{
|
|
488
|
+
method: "POST",
|
|
489
|
+
headers: { "content-type": "application/json" },
|
|
490
|
+
body: JSON.stringify({
|
|
491
|
+
timeProjectId,
|
|
492
|
+
taskStatusId: statusId,
|
|
493
|
+
title,
|
|
494
|
+
// US-C1: the creator owns what they just typed until somebody reassigns it.
|
|
495
|
+
assigneeStaffMemberId: selfStaffMemberId
|
|
496
|
+
})
|
|
497
|
+
},
|
|
498
|
+
{ errorMessage: t("staff.time_tracking.board.quickAdd.error", "Could not create the task.") }
|
|
499
|
+
),
|
|
500
|
+
context: {
|
|
501
|
+
formId: CREATE_MUTATION_CONTEXT_ID,
|
|
502
|
+
resourceKind: "staff.timesheets.task",
|
|
503
|
+
resourceId: statusId,
|
|
504
|
+
retryLastMutation: retryCreateMutation
|
|
505
|
+
}
|
|
506
|
+
});
|
|
507
|
+
invalidateBoard();
|
|
508
|
+
} catch (error) {
|
|
509
|
+
if (surfaceRecordConflict(error, t)) return;
|
|
510
|
+
logger.error("staff.time_tracking board quick add failed", { err: error });
|
|
511
|
+
flash(
|
|
512
|
+
error instanceof Error && error.message ? error.message : t("staff.time_tracking.board.quickAdd.error", "Could not create the task."),
|
|
513
|
+
"error"
|
|
514
|
+
);
|
|
515
|
+
} finally {
|
|
516
|
+
setQuickAddPendingStatusId(null);
|
|
517
|
+
}
|
|
518
|
+
},
|
|
519
|
+
[invalidateBoard, retryCreateMutation, runCreateMutation, selfStaffMemberId, t, timeProjectId]
|
|
520
|
+
);
|
|
521
|
+
const handleCreateStatus = React.useCallback(async () => {
|
|
522
|
+
const name = statusDraft.trim();
|
|
523
|
+
if (!name) {
|
|
524
|
+
setComposingStatus(false);
|
|
525
|
+
setStatusDraft("");
|
|
526
|
+
return;
|
|
527
|
+
}
|
|
528
|
+
try {
|
|
529
|
+
await runCreateMutation({
|
|
530
|
+
operation: () => apiCallOrThrow(
|
|
531
|
+
"/api/staff/timesheets/task-statuses",
|
|
532
|
+
{
|
|
533
|
+
method: "POST",
|
|
534
|
+
headers: { "content-type": "application/json" },
|
|
535
|
+
body: JSON.stringify({ timeProjectId, name })
|
|
536
|
+
},
|
|
537
|
+
{ errorMessage: t("staff.time_tracking.board.addStatus.error", "Could not add the column.") }
|
|
538
|
+
),
|
|
539
|
+
context: {
|
|
540
|
+
formId: CREATE_MUTATION_CONTEXT_ID,
|
|
541
|
+
resourceKind: "staff.timesheets.task_status",
|
|
542
|
+
resourceId: timeProjectId,
|
|
543
|
+
retryLastMutation: retryCreateMutation
|
|
544
|
+
}
|
|
545
|
+
});
|
|
546
|
+
setStatusDraft("");
|
|
547
|
+
setComposingStatus(false);
|
|
548
|
+
invalidateStatuses();
|
|
549
|
+
} catch (error) {
|
|
550
|
+
if (surfaceRecordConflict(error, t)) return;
|
|
551
|
+
flash(
|
|
552
|
+
error instanceof Error && error.message ? error.message : t("staff.time_tracking.board.addStatus.error", "Could not add the column."),
|
|
553
|
+
"error"
|
|
554
|
+
);
|
|
555
|
+
}
|
|
556
|
+
}, [invalidateStatuses, retryCreateMutation, runCreateMutation, statusDraft, t, timeProjectId]);
|
|
557
|
+
const handleLoadMore = React.useCallback((statusId) => {
|
|
558
|
+
setPagesByStatus((previous) => ({ ...previous, [statusId]: (previous[statusId] ?? 1) + 1 }));
|
|
559
|
+
}, []);
|
|
560
|
+
const openTask = React.useCallback(
|
|
561
|
+
(taskId) => {
|
|
562
|
+
const params = new URLSearchParams(searchParams?.toString() ?? "");
|
|
563
|
+
params.set("task", taskId);
|
|
564
|
+
router.push(`?${params.toString()}`, { scroll: false });
|
|
565
|
+
},
|
|
566
|
+
[router, searchParams]
|
|
567
|
+
);
|
|
568
|
+
const handleAddTime = React.useCallback(
|
|
569
|
+
(taskId) => {
|
|
570
|
+
const params = new URLSearchParams(searchParams?.toString() ?? "");
|
|
571
|
+
params.set("task", taskId);
|
|
572
|
+
params.set("panel", "time");
|
|
573
|
+
router.push(`?${params.toString()}`, { scroll: false });
|
|
574
|
+
},
|
|
575
|
+
[router, searchParams]
|
|
576
|
+
);
|
|
577
|
+
const drawerTaskId = searchParams?.get("task") ?? null;
|
|
578
|
+
const drawerPanel = searchParams?.get("panel") ?? null;
|
|
579
|
+
const closeTaskDrawer = React.useCallback(() => {
|
|
580
|
+
const params = new URLSearchParams(searchParams?.toString() ?? "");
|
|
581
|
+
params.delete("task");
|
|
582
|
+
params.delete("panel");
|
|
583
|
+
const query = params.toString();
|
|
584
|
+
router.push(query.length > 0 ? `?${query}` : "?", { scroll: false });
|
|
585
|
+
}, [router, searchParams]);
|
|
586
|
+
const handleStartTimer = React.useCallback(
|
|
587
|
+
async (taskId) => {
|
|
588
|
+
if (!selfStaffMemberId) return;
|
|
589
|
+
const task = allTasks.find((entry) => entry.id === taskId) ?? null;
|
|
590
|
+
try {
|
|
591
|
+
const started = await runCreateMutation({
|
|
592
|
+
operation: () => apiCallOrThrow(
|
|
593
|
+
"/api/staff/timesheets/time-entries/start-timer",
|
|
594
|
+
{
|
|
595
|
+
method: "POST",
|
|
596
|
+
headers: { "content-type": "application/json" },
|
|
597
|
+
body: JSON.stringify({
|
|
598
|
+
staffMemberId: selfStaffMemberId,
|
|
599
|
+
timeProjectId,
|
|
600
|
+
date: (/* @__PURE__ */ new Date()).toISOString().slice(0, 10),
|
|
601
|
+
notes: task?.title ?? null
|
|
602
|
+
})
|
|
603
|
+
},
|
|
604
|
+
{ errorMessage: t("staff.time_tracking.board.timer.startError", "Could not start the timer.") }
|
|
605
|
+
),
|
|
606
|
+
context: {
|
|
607
|
+
formId: CREATE_MUTATION_CONTEXT_ID,
|
|
608
|
+
resourceKind: "staff.timesheets.time_entry",
|
|
609
|
+
resourceId: taskId,
|
|
610
|
+
retryLastMutation: retryCreateMutation
|
|
611
|
+
}
|
|
612
|
+
});
|
|
613
|
+
const entryId = typeof started?.result?.id === "string" ? started.result.id : null;
|
|
614
|
+
if (entryId) {
|
|
615
|
+
const linked = await apiCall(`/api/staff/timesheets/time-entries`, {
|
|
616
|
+
method: "PUT",
|
|
617
|
+
headers: { "content-type": "application/json" },
|
|
618
|
+
body: JSON.stringify({ id: entryId, taskId })
|
|
619
|
+
});
|
|
620
|
+
if (!linked.ok) {
|
|
621
|
+
flash(
|
|
622
|
+
t(
|
|
623
|
+
"staff.time_tracking.board.timer.linkWarning",
|
|
624
|
+
"The timer is running but is not linked to this task yet."
|
|
625
|
+
),
|
|
626
|
+
"warning"
|
|
627
|
+
);
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
await runningTimerQuery.refetch();
|
|
631
|
+
} catch (error) {
|
|
632
|
+
if (surfaceRecordConflict(error, t)) return;
|
|
633
|
+
flash(
|
|
634
|
+
error instanceof Error && error.message ? error.message : t("staff.time_tracking.board.timer.startError", "Could not start the timer."),
|
|
635
|
+
"error"
|
|
636
|
+
);
|
|
637
|
+
}
|
|
638
|
+
},
|
|
639
|
+
[allTasks, retryCreateMutation, runCreateMutation, runningTimerQuery, selfStaffMemberId, t, timeProjectId]
|
|
640
|
+
);
|
|
641
|
+
const handleStopTimer = React.useCallback(async () => {
|
|
642
|
+
if (!runningTimerEntryId) return;
|
|
643
|
+
try {
|
|
644
|
+
await runCreateMutation({
|
|
645
|
+
operation: () => apiCallOrThrow(
|
|
646
|
+
`/api/staff/timesheets/time-entries/${encodeURIComponent(runningTimerEntryId)}/timer-stop`,
|
|
647
|
+
{ method: "POST" },
|
|
648
|
+
{ errorMessage: t("staff.time_tracking.board.timer.stopError", "Could not stop the timer.") }
|
|
649
|
+
),
|
|
650
|
+
context: {
|
|
651
|
+
formId: CREATE_MUTATION_CONTEXT_ID,
|
|
652
|
+
resourceKind: "staff.timesheets.time_entry",
|
|
653
|
+
resourceId: runningTimerEntryId,
|
|
654
|
+
retryLastMutation: retryCreateMutation
|
|
655
|
+
}
|
|
656
|
+
});
|
|
657
|
+
await runningTimerQuery.refetch();
|
|
658
|
+
invalidateBoard();
|
|
659
|
+
} catch (error) {
|
|
660
|
+
if (surfaceRecordConflict(error, t)) return;
|
|
661
|
+
flash(
|
|
662
|
+
error instanceof Error && error.message ? error.message : t("staff.time_tracking.board.timer.stopError", "Could not stop the timer."),
|
|
663
|
+
"error"
|
|
664
|
+
);
|
|
665
|
+
}
|
|
666
|
+
}, [invalidateBoard, retryCreateMutation, runCreateMutation, runningTimerEntryId, runningTimerQuery, t]);
|
|
667
|
+
const summary = React.useMemo(
|
|
668
|
+
() => ({ taskCount: allTasks.length, loggedMinutes: sumTaskLoggedMinutes(allTasks) }),
|
|
669
|
+
[allTasks]
|
|
670
|
+
);
|
|
671
|
+
React.useEffect(() => {
|
|
672
|
+
onSummaryChange?.(summary);
|
|
673
|
+
}, [onSummaryChange, summary]);
|
|
674
|
+
if (statusesQuery.isLoading) {
|
|
675
|
+
return /* @__PURE__ */ jsx(LoadingMessage, { label: t("staff.time_tracking.board.loading", "Loading the board\u2026") });
|
|
676
|
+
}
|
|
677
|
+
if (statusesQuery.isError) {
|
|
678
|
+
return /* @__PURE__ */ jsx(
|
|
679
|
+
ErrorMessage,
|
|
680
|
+
{
|
|
681
|
+
label: t("staff.time_tracking.board.loadError", "Could not load the board."),
|
|
682
|
+
action: /* @__PURE__ */ jsx(Button, { type: "button", variant: "outline", size: "sm", onClick: () => void statusesQuery.refetch(), children: t("staff.time_tracking.board.reload", "Try again") })
|
|
683
|
+
}
|
|
684
|
+
);
|
|
685
|
+
}
|
|
686
|
+
if (statuses.length === 0) {
|
|
687
|
+
return /* @__PURE__ */ jsx(
|
|
688
|
+
EmptyState,
|
|
689
|
+
{
|
|
690
|
+
title: t("staff.time_tracking.board.empty.title", "This project has no columns yet"),
|
|
691
|
+
description: t(
|
|
692
|
+
"staff.time_tracking.board.empty.description",
|
|
693
|
+
"A Team Leader configures the board columns for each project."
|
|
694
|
+
)
|
|
695
|
+
}
|
|
696
|
+
);
|
|
697
|
+
}
|
|
698
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-4", children: [
|
|
699
|
+
/* @__PURE__ */ jsx(
|
|
700
|
+
InjectionSpot,
|
|
701
|
+
{
|
|
702
|
+
spotId: extensionPoints.hosts.taskBoardToolbar.spotId,
|
|
703
|
+
context: { timeProjectId, projectName: projectName ?? null, statusIds: visibleStatuses.map((status) => status.id) },
|
|
704
|
+
data: summary
|
|
705
|
+
}
|
|
706
|
+
),
|
|
707
|
+
failedMove ? /* @__PURE__ */ jsx(Alert, { status: "error", "data-testid": "kanban-move-retry", children: /* @__PURE__ */ jsxs(AlertDescription, { className: "flex flex-wrap items-center gap-3", children: [
|
|
708
|
+
/* @__PURE__ */ jsx("span", { children: t("staff.time_tracking.board.move.rolledBack", "The task was moved back \u2014 the change was not saved.") }),
|
|
709
|
+
/* @__PURE__ */ jsxs(
|
|
710
|
+
Button,
|
|
711
|
+
{
|
|
712
|
+
type: "button",
|
|
713
|
+
variant: "outline",
|
|
714
|
+
size: "sm",
|
|
715
|
+
onClick: () => {
|
|
716
|
+
const retry = failedMove;
|
|
717
|
+
setFailedMove(null);
|
|
718
|
+
moveTask(retry.taskId, retry.targetStatusId);
|
|
719
|
+
},
|
|
720
|
+
children: [
|
|
721
|
+
/* @__PURE__ */ jsx(RotateCcw, { className: "size-3.5", "aria-hidden": "true" }),
|
|
722
|
+
t("staff.time_tracking.board.move.retry", "Retry")
|
|
723
|
+
]
|
|
724
|
+
}
|
|
725
|
+
)
|
|
726
|
+
] }) }) : null,
|
|
727
|
+
/* @__PURE__ */ jsxs(
|
|
728
|
+
DndContext,
|
|
729
|
+
{
|
|
730
|
+
sensors,
|
|
731
|
+
accessibility,
|
|
732
|
+
collisionDetection,
|
|
733
|
+
measuring: measuringConfig,
|
|
734
|
+
onDragStart: handleDragStart,
|
|
735
|
+
onDragEnd: handleDragEnd,
|
|
736
|
+
onDragCancel: handleDragCancel,
|
|
737
|
+
children: [
|
|
738
|
+
/* @__PURE__ */ jsxs(
|
|
739
|
+
"div",
|
|
740
|
+
{
|
|
741
|
+
className: `flex min-w-0 gap-3.5 overflow-x-auto pb-6 ${activeDragTaskId ? "cursor-grabbing select-none" : ""}`,
|
|
742
|
+
children: [
|
|
743
|
+
visibleStatuses.map((status, index) => {
|
|
744
|
+
const entry = tasksByStatusId.get(status.id);
|
|
745
|
+
const serverTotal = entry?.total ?? 0;
|
|
746
|
+
const loaded = entry?.loaded ?? 0;
|
|
747
|
+
return /* @__PURE__ */ jsx(
|
|
748
|
+
KanbanColumn,
|
|
749
|
+
{
|
|
750
|
+
status,
|
|
751
|
+
tasks: entry?.tasks ?? [],
|
|
752
|
+
total: serverTotal,
|
|
753
|
+
remaining: Math.max(0, serverTotal - loaded),
|
|
754
|
+
canQuickAdd: canManageTasks,
|
|
755
|
+
loadingMore: columnQueries[index]?.isFetching ?? false,
|
|
756
|
+
activeDragTaskId,
|
|
757
|
+
pendingTaskIds,
|
|
758
|
+
runningTimerTaskId,
|
|
759
|
+
assigneeNames: assigneeQuery.data ?? /* @__PURE__ */ new Map(),
|
|
760
|
+
tagsByTaskId,
|
|
761
|
+
subtasksByTaskId,
|
|
762
|
+
quickAddPending: quickAddPendingStatusId === status.id,
|
|
763
|
+
moveTargets,
|
|
764
|
+
onQuickAdd: handleQuickAdd,
|
|
765
|
+
onLoadMore: handleLoadMore,
|
|
766
|
+
onOpenTask: openTask,
|
|
767
|
+
onStartTimer: handleStartTimer,
|
|
768
|
+
onStopTimer: handleStopTimer,
|
|
769
|
+
onAddTime: handleAddTime,
|
|
770
|
+
onMoveTask: moveTask
|
|
771
|
+
},
|
|
772
|
+
status.id
|
|
773
|
+
);
|
|
774
|
+
}),
|
|
775
|
+
canManageColumns ? /* @__PURE__ */ jsx("div", { className: "flex w-72 flex-none flex-col gap-3", children: composingStatus ? /* @__PURE__ */ jsx(
|
|
776
|
+
Input,
|
|
777
|
+
{
|
|
778
|
+
autoFocus: true,
|
|
779
|
+
value: statusDraft,
|
|
780
|
+
onChange: (event) => setStatusDraft(event.target.value),
|
|
781
|
+
onKeyDown: (event) => {
|
|
782
|
+
if (event.key === "Enter") {
|
|
783
|
+
event.preventDefault();
|
|
784
|
+
void handleCreateStatus();
|
|
785
|
+
}
|
|
786
|
+
if (event.key === "Escape") {
|
|
787
|
+
event.preventDefault();
|
|
788
|
+
setComposingStatus(false);
|
|
789
|
+
setStatusDraft("");
|
|
790
|
+
}
|
|
791
|
+
},
|
|
792
|
+
placeholder: t("staff.time_tracking.board.addStatus.placeholder", "Column name"),
|
|
793
|
+
"aria-label": t("staff.time_tracking.board.addStatus.cta", "Add status"),
|
|
794
|
+
"data-testid": "kanban-add-status-input"
|
|
795
|
+
}
|
|
796
|
+
) : /* @__PURE__ */ jsxs(
|
|
797
|
+
Button,
|
|
798
|
+
{
|
|
799
|
+
type: "button",
|
|
800
|
+
variant: "ghost",
|
|
801
|
+
onClick: () => setComposingStatus(true),
|
|
802
|
+
"data-testid": "kanban-add-status",
|
|
803
|
+
className: "flex h-24 flex-col items-center justify-center gap-2 rounded-lg border border-dashed border-muted-foreground/60 bg-muted/40 text-sm font-semibold leading-normal text-muted-foreground hover:text-foreground",
|
|
804
|
+
children: [
|
|
805
|
+
/* @__PURE__ */ jsx(Plus, { className: "size-5", "aria-hidden": "true" }),
|
|
806
|
+
t("staff.time_tracking.board.addStatus.cta", "Add status")
|
|
807
|
+
]
|
|
808
|
+
}
|
|
809
|
+
) }) : null
|
|
810
|
+
]
|
|
811
|
+
}
|
|
812
|
+
),
|
|
813
|
+
/* @__PURE__ */ jsx(DragOverlay, { dropAnimation: null, children: activeDragTask ? /* @__PURE__ */ jsxs(
|
|
814
|
+
"div",
|
|
815
|
+
{
|
|
816
|
+
"data-testid": "kanban-drag-overlay",
|
|
817
|
+
className: "pointer-events-none w-72 rotate-2 cursor-grabbing select-none rounded-lg border border-border bg-card px-4 py-3 opacity-80 shadow-xl",
|
|
818
|
+
children: [
|
|
819
|
+
/* @__PURE__ */ jsx("div", { className: "text-sm font-semibold leading-normal text-foreground", children: activeDragTask.title }),
|
|
820
|
+
/* @__PURE__ */ jsx("div", { className: "mt-2 text-xs font-semibold tabular-nums leading-normal text-muted-foreground", children: formatBoardMinutes(activeDragTask.loggedMinutes) })
|
|
821
|
+
]
|
|
822
|
+
}
|
|
823
|
+
) : null })
|
|
824
|
+
]
|
|
825
|
+
}
|
|
826
|
+
),
|
|
827
|
+
drawerTaskId ? /* @__PURE__ */ jsx(
|
|
828
|
+
TaskDrawer,
|
|
829
|
+
{
|
|
830
|
+
taskId: drawerTaskId,
|
|
831
|
+
open: true,
|
|
832
|
+
onOpenChange: (next) => {
|
|
833
|
+
if (!next) closeTaskDrawer();
|
|
834
|
+
},
|
|
835
|
+
projectName: projectName ?? null,
|
|
836
|
+
focusPanel: drawerPanel,
|
|
837
|
+
onChanged: invalidateBoard
|
|
838
|
+
}
|
|
839
|
+
) : null
|
|
840
|
+
] });
|
|
841
|
+
}
|
|
842
|
+
var KanbanBoard_default = KanbanBoard;
|
|
843
|
+
export {
|
|
844
|
+
BOARD_DIRECTORY_PAGE_SIZE,
|
|
845
|
+
BOARD_MAX_CHILD_PAGES,
|
|
846
|
+
BOARD_PAGE_SIZE,
|
|
847
|
+
CREATE_MUTATION_CONTEXT_ID,
|
|
848
|
+
KanbanBoard,
|
|
849
|
+
MANAGE_COLUMNS_FEATURE,
|
|
850
|
+
MANAGE_TASKS_FEATURE,
|
|
851
|
+
MOVE_MUTATION_CONTEXT_ID,
|
|
852
|
+
TASK_STATUS_CHANGED_EVENT,
|
|
853
|
+
KanbanBoard_default as default
|
|
854
|
+
};
|
|
855
|
+
//# sourceMappingURL=KanbanBoard.js.map
|