@hed-hog/operations 0.0.328 → 0.0.330
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/controllers/operations-tasks.controller.d.ts +5 -5
- package/dist/operations.service.d.ts +5 -5
- package/dist/operations.service.d.ts.map +1 -1
- package/dist/operations.service.js +24 -4
- package/dist/operations.service.js.map +1 -1
- package/dist/operations.service.spec.js +1 -1
- package/dist/operations.service.spec.js.map +1 -1
- package/hedhog/data/dashboard_component_role.yaml +8 -8
- package/hedhog/data/dashboard_role.yaml +1 -1
- package/hedhog/data/menu.yaml +6 -16
- package/hedhog/data/role.yaml +1 -1
- package/hedhog/data/route.yaml +55 -55
- package/hedhog/frontend/app/_components/async-options-combobox.tsx.ejs +15 -9
- package/hedhog/frontend/app/_components/collaborator-form-screen.tsx.ejs +7 -7
- package/hedhog/frontend/app/_components/department-picker.tsx.ejs +125 -0
- package/hedhog/frontend/app/_components/department-select-with-create.tsx.ejs +64 -325
- package/hedhog/frontend/app/_components/project-costs-section.tsx.ejs +51 -81
- package/hedhog/frontend/app/_components/project-details-screen.tsx.ejs +39 -11
- package/hedhog/frontend/app/_components/project-form-screen.tsx.ejs +37 -20
- package/hedhog/frontend/app/_components/system-user-picker.tsx.ejs +198 -0
- package/hedhog/frontend/app/_components/system-user-select-with-create.tsx.ejs +107 -569
- package/hedhog/frontend/app/_components/task-file-attachments.tsx.ejs +10 -8
- package/hedhog/frontend/app/_lib/hooks/use-values-visibility.ts.ejs +61 -0
- package/hedhog/frontend/app/approvals/page.tsx.ejs +5 -1
- package/hedhog/frontend/app/collaborators/page.tsx.ejs +68 -34
- package/hedhog/frontend/app/my-projects/page.tsx.ejs +45 -6
- package/hedhog/frontend/app/my-tasks/page.tsx.ejs +1 -1
- package/hedhog/frontend/app/projects/page.tsx.ejs +60 -5
- package/hedhog/frontend/app/reports/collaborators/page.tsx.ejs +65 -52
- package/hedhog/frontend/app/reports/projects/page.tsx.ejs +80 -82
- package/hedhog/frontend/app/schedule-adjustments/page.tsx.ejs +7 -1
- package/hedhog/frontend/messages/en.json +284 -8
- package/hedhog/frontend/messages/operations/en.json +67 -3
- package/hedhog/frontend/messages/operations/pt.json +67 -3
- package/hedhog/frontend/messages/pt.json +282 -6
- package/package.json +5 -5
- package/src/operations.service.spec.ts +1 -1
- package/src/operations.service.ts +25 -5
- package/hedhog/frontend/app/_components/collaborator-details-screen.tsx.ejs +0 -476
- package/hedhog/frontend/app/_components/collaborator-select-with-create.tsx.ejs +0 -261
- package/hedhog/frontend/app/_components/contract-content-editor.tsx.ejs +0 -258
- package/hedhog/frontend/app/_components/person-select-with-create.tsx.ejs +0 -1
- package/hedhog/frontend/messages/en.json.ejs +0 -2060
- package/hedhog/frontend/messages/operations/operations/en.json +0 -2102
- package/hedhog/frontend/messages/operations/operations/pt.json +0 -2111
- package/hedhog/frontend/messages/pt.json.ejs +0 -2067
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/async-options-combobox.d.ts +0 -29
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/async-options-combobox.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/async-options-combobox.js +0 -95
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/async-options-combobox.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/async-options-combobox.tsx +0 -233
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-costs-section.d.ts +0 -10
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-costs-section.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-costs-section.js +0 -577
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-costs-section.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-costs-section.tsx +0 -868
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-details-screen.d.ts +0 -4
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-details-screen.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-details-screen.js +0 -337
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-details-screen.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-details-screen.tsx +0 -476
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-form-screen.d.ts +0 -9
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-form-screen.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-form-screen.js +0 -1348
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-form-screen.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-form-screen.tsx +0 -2233
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-select-with-create.d.ts +0 -12
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-select-with-create.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-select-with-create.js +0 -162
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-select-with-create.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/collaborator-select-with-create.tsx +0 -261
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-content-editor.d.ts +0 -18
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-content-editor.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-content-editor.js +0 -145
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-content-editor.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-content-editor.tsx +0 -258
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-details-screen.d.ts +0 -4
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-details-screen.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-details-screen.js +0 -223
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-details-screen.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-details-screen.tsx +0 -342
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-form-screen.d.ts +0 -58
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-form-screen.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-form-screen.js +0 -438
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-form-screen.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/contract-form-screen.tsx +0 -698
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/department-select-with-create.d.ts +0 -20
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/department-select-with-create.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/department-select-with-create.js +0 -233
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/department-select-with-create.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/department-select-with-create.tsx +0 -392
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/my-project-summary-screen.d.ts +0 -4
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/my-project-summary-screen.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/my-project-summary-screen.js +0 -814
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/my-project-summary-screen.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/my-project-summary-screen.tsx +0 -1288
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/operations-calendar-view.d.ts +0 -21
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/operations-calendar-view.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/operations-calendar-view.js +0 -174
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/operations-calendar-view.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/operations-calendar-view.tsx +0 -306
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/operations-header.d.ts +0 -10
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/operations-header.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/operations-header.js +0 -12
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/operations-header.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/operations-header.tsx +0 -29
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/person-select-with-create.d.ts +0 -15
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/person-select-with-create.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/person-select-with-create.js +0 -501
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/person-select-with-create.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/person-select-with-create.tsx +0 -853
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-costs-section.d.ts +0 -6
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-costs-section.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-costs-section.js +0 -847
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-costs-section.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-costs-section.tsx +0 -1340
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-details-screen.d.ts +0 -4
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-details-screen.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-details-screen.js +0 -2930
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-details-screen.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-details-screen.tsx +0 -4378
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-form-screen.d.ts +0 -9
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-form-screen.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-form-screen.js +0 -1013
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-form-screen.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/project-form-screen.tsx +0 -1745
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/section-card.d.ts +0 -13
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/section-card.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/section-card.js +0 -38
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/section-card.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/section-card.tsx +0 -74
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/status-badge.d.ts +0 -7
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/status-badge.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/status-badge.js +0 -11
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/status-badge.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/status-badge.tsx +0 -15
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/system-user-select-with-create.d.ts +0 -18
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/system-user-select-with-create.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/system-user-select-with-create.js +0 -406
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/system-user-select-with-create.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/system-user-select-with-create.tsx +0 -660
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/task-detail-sheet.d.ts +0 -26
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/task-detail-sheet.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/task-detail-sheet.js +0 -332
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/task-detail-sheet.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/task-detail-sheet.tsx +0 -518
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/task-file-attachments.d.ts +0 -6
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/task-file-attachments.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/task-file-attachments.js +0 -255
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/task-file-attachments.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/task-file-attachments.tsx +0 -388
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/timesheet-task-create-sheet.d.ts +0 -10
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/timesheet-task-create-sheet.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/timesheet-task-create-sheet.js +0 -131
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/timesheet-task-create-sheet.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_components/timesheet-task-create-sheet.tsx +0 -214
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/api.d.ts +0 -108
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/api.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/api.js +0 -162
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/api.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/api.ts +0 -428
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/hooks/use-operations-access.d.ts +0 -8
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/hooks/use-operations-access.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/hooks/use-operations-access.js +0 -36
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/hooks/use-operations-access.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/hooks/use-operations-access.ts +0 -44
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/types.d.ts +0 -837
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/types.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/types.js +0 -3
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/types.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/types.ts +0 -861
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/utils/format.d.ts +0 -16
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/utils/format.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/utils/format.js +0 -182
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/utils/format.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/utils/format.ts +0 -250
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/utils/forms.d.ts +0 -4
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/utils/forms.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/utils/forms.js +0 -51
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/utils/forms.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/_lib/utils/forms.ts +0 -61
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/approvals/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/approvals/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/approvals/page.js +0 -954
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/approvals/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/approvals/page.tsx +0 -1277
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborator-types/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborator-types/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborator-types/page.js +0 -488
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborator-types/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborator-types/page.tsx +0 -805
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/[id]/edit/page.d.ts +0 -6
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/[id]/edit/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/[id]/edit/page.js +0 -9
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/[id]/edit/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/[id]/edit/page.tsx +0 -11
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/[id]/page.d.ts +0 -6
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/[id]/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/[id]/page.js +0 -9
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/[id]/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/[id]/page.tsx +0 -11
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/new/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/new/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/new/page.js +0 -8
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/new/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/new/page.tsx +0 -5
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/page.js +0 -612
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/collaborators/page.tsx +0 -939
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/[id]/edit/page.d.ts +0 -6
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/[id]/edit/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/[id]/edit/page.js +0 -9
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/[id]/edit/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/[id]/edit/page.tsx +0 -11
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/[id]/page.d.ts +0 -6
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/[id]/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/[id]/page.js +0 -9
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/[id]/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/[id]/page.tsx +0 -11
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/new/page.d.ts +0 -6
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/new/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/new/page.js +0 -9
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/new/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/new/page.tsx +0 -17
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/page.js +0 -348
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/contracts/page.tsx +0 -536
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/departments/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/departments/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/departments/page.js +0 -401
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/departments/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/departments/page.tsx +0 -607
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/layout.d.ts +0 -5
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/layout.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/layout.js +0 -7
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/layout.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/layout.tsx +0 -9
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-projects/[id]/page.d.ts +0 -6
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-projects/[id]/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-projects/[id]/page.js +0 -9
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-projects/[id]/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-projects/[id]/page.tsx +0 -11
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-projects/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-projects/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-projects/page.js +0 -321
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-projects/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-projects/page.tsx +0 -440
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-tasks/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-tasks/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-tasks/page.js +0 -939
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-tasks/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/my-tasks/page.tsx +0 -1499
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/async-options-combobox.d.ts +0 -29
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/async-options-combobox.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/async-options-combobox.js +0 -95
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/async-options-combobox.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/async-options-combobox.tsx +0 -233
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-costs-section.d.ts +0 -10
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-costs-section.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-costs-section.js +0 -577
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-costs-section.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-costs-section.tsx +0 -868
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-details-screen.d.ts +0 -4
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-details-screen.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-details-screen.js +0 -337
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-details-screen.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-details-screen.tsx +0 -476
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-form-screen.d.ts +0 -9
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-form-screen.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-form-screen.js +0 -1348
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-form-screen.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-form-screen.tsx +0 -2233
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-select-with-create.d.ts +0 -12
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-select-with-create.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-select-with-create.js +0 -162
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-select-with-create.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/collaborator-select-with-create.tsx +0 -261
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-content-editor.d.ts +0 -18
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-content-editor.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-content-editor.js +0 -145
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-content-editor.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-content-editor.tsx +0 -258
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-details-screen.d.ts +0 -4
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-details-screen.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-details-screen.js +0 -223
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-details-screen.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-details-screen.tsx +0 -342
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-form-screen.d.ts +0 -58
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-form-screen.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-form-screen.js +0 -438
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-form-screen.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/contract-form-screen.tsx +0 -698
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/department-select-with-create.d.ts +0 -20
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/department-select-with-create.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/department-select-with-create.js +0 -233
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/department-select-with-create.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/department-select-with-create.tsx +0 -392
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/my-project-summary-screen.d.ts +0 -4
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/my-project-summary-screen.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/my-project-summary-screen.js +0 -814
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/my-project-summary-screen.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/my-project-summary-screen.tsx +0 -1288
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/operations-calendar-view.d.ts +0 -21
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/operations-calendar-view.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/operations-calendar-view.js +0 -174
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/operations-calendar-view.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/operations-calendar-view.tsx +0 -306
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/operations-header.d.ts +0 -10
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/operations-header.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/operations-header.js +0 -12
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/operations-header.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/operations-header.tsx +0 -29
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/person-select-with-create.d.ts +0 -15
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/person-select-with-create.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/person-select-with-create.js +0 -501
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/person-select-with-create.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/person-select-with-create.tsx +0 -853
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-cost-report-screen.d.ts +0 -6
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-cost-report-screen.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-cost-report-screen.js +0 -459
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-cost-report-screen.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-cost-report-screen.tsx +0 -598
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-costs-section.d.ts +0 -6
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-costs-section.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-costs-section.js +0 -876
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-costs-section.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-costs-section.tsx +0 -1368
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-details-screen.d.ts +0 -4
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-details-screen.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-details-screen.js +0 -2930
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-details-screen.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-details-screen.tsx +0 -4378
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-form-screen.d.ts +0 -9
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-form-screen.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-form-screen.js +0 -1013
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-form-screen.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/project-form-screen.tsx +0 -1745
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/section-card.d.ts +0 -13
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/section-card.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/section-card.js +0 -38
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/section-card.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/section-card.tsx +0 -74
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/status-badge.d.ts +0 -7
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/status-badge.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/status-badge.js +0 -11
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/status-badge.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/status-badge.tsx +0 -15
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/system-user-select-with-create.d.ts +0 -18
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/system-user-select-with-create.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/system-user-select-with-create.js +0 -406
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/system-user-select-with-create.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/system-user-select-with-create.tsx +0 -660
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/task-detail-sheet.d.ts +0 -26
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/task-detail-sheet.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/task-detail-sheet.js +0 -332
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/task-detail-sheet.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/task-detail-sheet.tsx +0 -518
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/task-file-attachments.d.ts +0 -6
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/task-file-attachments.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/task-file-attachments.js +0 -255
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/task-file-attachments.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/task-file-attachments.tsx +0 -388
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/timesheet-task-create-sheet.d.ts +0 -10
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/timesheet-task-create-sheet.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/timesheet-task-create-sheet.js +0 -131
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/timesheet-task-create-sheet.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_components/timesheet-task-create-sheet.tsx +0 -214
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/api.d.ts +0 -108
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/api.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/api.js +0 -162
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/api.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/api.ts +0 -428
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/hooks/use-operations-access.d.ts +0 -8
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/hooks/use-operations-access.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/hooks/use-operations-access.js +0 -36
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/hooks/use-operations-access.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/hooks/use-operations-access.ts +0 -44
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/types.d.ts +0 -837
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/types.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/types.js +0 -3
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/types.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/types.ts +0 -861
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/utils/format.d.ts +0 -16
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/utils/format.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/utils/format.js +0 -182
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/utils/format.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/utils/format.ts +0 -250
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/utils/forms.d.ts +0 -4
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/utils/forms.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/utils/forms.js +0 -51
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/utils/forms.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/_lib/utils/forms.ts +0 -61
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/approvals/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/approvals/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/approvals/page.js +0 -954
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/approvals/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/approvals/page.tsx +0 -1277
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborator-types/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborator-types/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborator-types/page.js +0 -488
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborator-types/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborator-types/page.tsx +0 -805
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/[id]/edit/page.d.ts +0 -6
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/[id]/edit/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/[id]/edit/page.js +0 -9
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/[id]/edit/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/[id]/edit/page.tsx +0 -11
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/[id]/page.d.ts +0 -6
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/[id]/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/[id]/page.js +0 -9
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/[id]/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/[id]/page.tsx +0 -11
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/new/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/new/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/new/page.js +0 -8
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/new/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/new/page.tsx +0 -5
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/page.js +0 -612
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/collaborators/page.tsx +0 -939
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/[id]/edit/page.d.ts +0 -6
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/[id]/edit/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/[id]/edit/page.js +0 -9
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/[id]/edit/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/[id]/edit/page.tsx +0 -11
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/[id]/page.d.ts +0 -6
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/[id]/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/[id]/page.js +0 -9
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/[id]/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/[id]/page.tsx +0 -11
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/new/page.d.ts +0 -6
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/new/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/new/page.js +0 -9
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/new/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/new/page.tsx +0 -17
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/page.js +0 -348
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/contracts/page.tsx +0 -536
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/departments/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/departments/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/departments/page.js +0 -401
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/departments/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/departments/page.tsx +0 -607
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/layout.d.ts +0 -5
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/layout.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/layout.js +0 -7
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/layout.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/layout.tsx +0 -9
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-projects/[id]/page.d.ts +0 -6
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-projects/[id]/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-projects/[id]/page.js +0 -9
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-projects/[id]/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-projects/[id]/page.tsx +0 -11
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-projects/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-projects/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-projects/page.js +0 -321
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-projects/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-projects/page.tsx +0 -440
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-tasks/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-tasks/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-tasks/page.js +0 -939
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-tasks/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/my-tasks/page.tsx +0 -1499
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/page.js +0 -8
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/page.tsx +0 -5
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/project-cost-categories/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/project-cost-categories/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/project-cost-categories/page.js +0 -436
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/project-cost-categories/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/project-cost-categories/page.tsx +0 -675
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/project-cost-types/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/project-cost-types/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/project-cost-types/page.js +0 -563
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/project-cost-types/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/project-cost-types/page.tsx +0 -846
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/costs-report/page.d.ts +0 -6
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/costs-report/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/costs-report/page.js +0 -9
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/costs-report/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/costs-report/page.tsx +0 -10
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/edit/page.d.ts +0 -6
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/edit/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/edit/page.js +0 -9
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/edit/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/edit/page.tsx +0 -11
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/page.d.ts +0 -6
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/page.js +0 -9
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/[id]/page.tsx +0 -11
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/new/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/new/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/new/page.js +0 -8
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/new/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/new/page.tsx +0 -5
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/page.js +0 -492
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/projects/page.tsx +0 -757
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/reports/collaborators/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/reports/collaborators/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/reports/collaborators/page.js +0 -342
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/reports/collaborators/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/reports/collaborators/page.tsx +0 -430
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/reports/projects/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/reports/projects/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/reports/projects/page.js +0 -338
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/reports/projects/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/reports/projects/page.tsx +0 -428
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/schedule-adjustments/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/schedule-adjustments/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/schedule-adjustments/page.js +0 -660
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/schedule-adjustments/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/schedule-adjustments/page.tsx +0 -992
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/time-off/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/time-off/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/time-off/page.js +0 -515
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/time-off/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/time-off/page.tsx +0 -707
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/timesheets/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/timesheets/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/timesheets/page.js +0 -1141
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/timesheets/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/operations/timesheets/page.tsx +0 -1705
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/page.js +0 -8
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/page.tsx +0 -5
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/project-cost-categories/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/project-cost-categories/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/project-cost-categories/page.js +0 -436
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/project-cost-categories/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/project-cost-categories/page.tsx +0 -675
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/project-cost-types/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/project-cost-types/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/project-cost-types/page.js +0 -563
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/project-cost-types/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/project-cost-types/page.tsx +0 -846
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/[id]/edit/page.d.ts +0 -6
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/[id]/edit/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/[id]/edit/page.js +0 -9
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/[id]/edit/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/[id]/edit/page.tsx +0 -11
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/[id]/page.d.ts +0 -6
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/[id]/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/[id]/page.js +0 -9
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/[id]/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/[id]/page.tsx +0 -11
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/new/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/new/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/new/page.js +0 -8
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/new/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/new/page.tsx +0 -5
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/page.js +0 -492
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/projects/page.tsx +0 -757
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/reports/collaborators/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/reports/collaborators/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/reports/collaborators/page.js +0 -342
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/reports/collaborators/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/reports/collaborators/page.tsx +0 -430
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/reports/projects/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/reports/projects/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/reports/projects/page.js +0 -338
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/reports/projects/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/reports/projects/page.tsx +0 -428
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/schedule-adjustments/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/schedule-adjustments/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/schedule-adjustments/page.js +0 -660
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/schedule-adjustments/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/schedule-adjustments/page.tsx +0 -992
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/time-off/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/time-off/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/time-off/page.js +0 -515
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/time-off/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/time-off/page.tsx +0 -707
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/timesheets/page.d.ts +0 -2
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/timesheets/page.d.ts.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/timesheets/page.js +0 -1141
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/timesheets/page.js.map +0 -1
- package/hedhog/frontend/src/app/(app)/(libraries)/operations/timesheets/page.tsx +0 -1705
|
@@ -1,939 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
'use client';
|
|
3
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
|
-
};
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.default = OperationsMyTasksPage;
|
|
8
|
-
const entity_list_1 = require("@/components/entity-list");
|
|
9
|
-
const rich_text_editor_1 = require("@/components/rich-text-editor");
|
|
10
|
-
const button_1 = require("@/components/ui/button");
|
|
11
|
-
const card_1 = require("@/components/ui/card");
|
|
12
|
-
const dialog_1 = require("@/components/ui/dialog");
|
|
13
|
-
const input_1 = require("@/components/ui/input");
|
|
14
|
-
const kpi_cards_grid_1 = require("@/components/ui/kpi-cards-grid");
|
|
15
|
-
const label_1 = require("@/components/ui/label");
|
|
16
|
-
const select_1 = require("@/components/ui/select");
|
|
17
|
-
const table_1 = require("@/components/ui/table");
|
|
18
|
-
const progress_1 = require("@/components/ui/progress");
|
|
19
|
-
const toggle_group_1 = require("@/components/ui/toggle-group");
|
|
20
|
-
const core_1 = require("@dnd-kit/core");
|
|
21
|
-
const utilities_1 = require("@dnd-kit/utilities");
|
|
22
|
-
const next_app_provider_1 = require("@hed-hog/next-app-provider");
|
|
23
|
-
const framer_motion_1 = require("framer-motion");
|
|
24
|
-
const lucide_react_1 = require("lucide-react");
|
|
25
|
-
const next_intl_1 = require("next-intl");
|
|
26
|
-
const link_1 = __importDefault(require("next/link"));
|
|
27
|
-
const react_1 = require("react");
|
|
28
|
-
const operations_header_1 = require("../_components/operations-header");
|
|
29
|
-
const status_badge_1 = require("../_components/status-badge");
|
|
30
|
-
const task_detail_sheet_1 = require("../_components/task-detail-sheet");
|
|
31
|
-
const api_1 = require("../_lib/api");
|
|
32
|
-
const format_1 = require("../_lib/utils/format");
|
|
33
|
-
const KANBAN_COLUMNS = [
|
|
34
|
-
{ id: 'todo', label: 'Backlog' },
|
|
35
|
-
{ id: 'doing', label: 'Em execução' },
|
|
36
|
-
{ id: 'review', label: 'Revisão' },
|
|
37
|
-
{ id: 'done', label: 'Concluído' },
|
|
38
|
-
];
|
|
39
|
-
const EMPTY_TASK_FORM = {
|
|
40
|
-
projectId: '',
|
|
41
|
-
name: '',
|
|
42
|
-
description: '',
|
|
43
|
-
priority: 'medium',
|
|
44
|
-
status: 'todo',
|
|
45
|
-
dueDate: '',
|
|
46
|
-
estimateHours: '',
|
|
47
|
-
tags: '',
|
|
48
|
-
};
|
|
49
|
-
function taskDragId(taskId) {
|
|
50
|
-
return `task-${taskId}`;
|
|
51
|
-
}
|
|
52
|
-
function columnDropId(columnId) {
|
|
53
|
-
return `col-${columnId}`;
|
|
54
|
-
}
|
|
55
|
-
function parseTaskId(value) {
|
|
56
|
-
if (!value)
|
|
57
|
-
return null;
|
|
58
|
-
const match = String(value).match(/^task-(\d+)$/);
|
|
59
|
-
return match ? Number(match[1]) : null;
|
|
60
|
-
}
|
|
61
|
-
function parseColumnId(value) {
|
|
62
|
-
if (!value)
|
|
63
|
-
return null;
|
|
64
|
-
const match = String(value).match(/^col-(.+)$/);
|
|
65
|
-
const id = match === null || match === void 0 ? void 0 : match[1];
|
|
66
|
-
return KANBAN_COLUMNS.some((c) => c.id === id) ? id : null;
|
|
67
|
-
}
|
|
68
|
-
function splitTasksByColumn(tasks) {
|
|
69
|
-
return {
|
|
70
|
-
todo: tasks.filter((t) => t.status === 'todo'),
|
|
71
|
-
doing: tasks.filter((t) => t.status === 'doing'),
|
|
72
|
-
review: tasks.filter((t) => t.status === 'review'),
|
|
73
|
-
done: tasks.filter((t) => t.status === 'done'),
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
function getTaskPriorityLabel(value) {
|
|
77
|
-
var _a;
|
|
78
|
-
const labels = {
|
|
79
|
-
low: 'Baixa',
|
|
80
|
-
medium: 'Média',
|
|
81
|
-
high: 'Alta',
|
|
82
|
-
};
|
|
83
|
-
return (_a = labels[value !== null && value !== void 0 ? value : '']) !== null && _a !== void 0 ? _a : String(value !== null && value !== void 0 ? value : '');
|
|
84
|
-
}
|
|
85
|
-
function getPriorityClassName(priority) {
|
|
86
|
-
if (priority === 'high')
|
|
87
|
-
return 'border-rose-300 bg-rose-100 text-rose-700';
|
|
88
|
-
if (priority === 'medium')
|
|
89
|
-
return 'border-amber-300 bg-amber-100 text-amber-700';
|
|
90
|
-
return 'border-emerald-300 bg-emerald-100 text-emerald-700';
|
|
91
|
-
}
|
|
92
|
-
function getTaskProgress(status) {
|
|
93
|
-
var _a;
|
|
94
|
-
const map = {
|
|
95
|
-
todo: 0,
|
|
96
|
-
doing: 33,
|
|
97
|
-
review: 66,
|
|
98
|
-
done: 100,
|
|
99
|
-
};
|
|
100
|
-
return (_a = map[status !== null && status !== void 0 ? status : '']) !== null && _a !== void 0 ? _a : 0;
|
|
101
|
-
}
|
|
102
|
-
function isPastDue(dueDate) {
|
|
103
|
-
if (!dueDate)
|
|
104
|
-
return false;
|
|
105
|
-
return new Date(dueDate) < new Date();
|
|
106
|
-
}
|
|
107
|
-
function getInitials(value) {
|
|
108
|
-
const parts = String(value !== null && value !== void 0 ? value : '')
|
|
109
|
-
.trim()
|
|
110
|
-
.split(/\s+/)
|
|
111
|
-
.filter(Boolean)
|
|
112
|
-
.slice(0, 2);
|
|
113
|
-
if (!parts.length)
|
|
114
|
-
return '??';
|
|
115
|
-
return parts.map((part) => { var _a, _b; return (_b = (_a = part[0]) === null || _a === void 0 ? void 0 : _a.toUpperCase()) !== null && _b !== void 0 ? _b : ''; }).join('');
|
|
116
|
-
}
|
|
117
|
-
function getPersonAvatarUrl(avatarId) {
|
|
118
|
-
return typeof avatarId === 'number' && avatarId > 0
|
|
119
|
-
? `${process.env.NEXT_PUBLIC_API_BASE_URL}/person/avatar/${avatarId}`
|
|
120
|
-
: '/placeholder.png';
|
|
121
|
-
}
|
|
122
|
-
function getUserPhotoUrl(photoId) {
|
|
123
|
-
return typeof photoId === 'number' && photoId > 0
|
|
124
|
-
? `${process.env.NEXT_PUBLIC_API_BASE_URL}/file/open/${photoId}`
|
|
125
|
-
: null;
|
|
126
|
-
}
|
|
127
|
-
function normalizeDateInputValue(value) {
|
|
128
|
-
if (!value) {
|
|
129
|
-
return '';
|
|
130
|
-
}
|
|
131
|
-
const normalizedValue = String(value).trim();
|
|
132
|
-
const directMatch = normalizedValue.match(/^\d{4}-\d{2}-\d{2}/);
|
|
133
|
-
if (directMatch === null || directMatch === void 0 ? void 0 : directMatch[0]) {
|
|
134
|
-
return directMatch[0];
|
|
135
|
-
}
|
|
136
|
-
const parsedDate = new Date(normalizedValue);
|
|
137
|
-
if (Number.isNaN(parsedDate.getTime())) {
|
|
138
|
-
return '';
|
|
139
|
-
}
|
|
140
|
-
return parsedDate.toISOString().slice(0, 10);
|
|
141
|
-
}
|
|
142
|
-
function DraggableTaskCard({ task, children, }) {
|
|
143
|
-
const { attributes, listeners, setNodeRef, transform, isDragging } = (0, core_1.useDraggable)({
|
|
144
|
-
id: taskDragId(task.id),
|
|
145
|
-
});
|
|
146
|
-
return (<div ref={setNodeRef} style={{ transform: utilities_1.CSS.Translate.toString(transform) }} {...listeners} {...attributes} className={isDragging ? 'z-20' : undefined}>
|
|
147
|
-
{children(isDragging)}
|
|
148
|
-
</div>);
|
|
149
|
-
}
|
|
150
|
-
function DroppableColumn({ columnId, children, }) {
|
|
151
|
-
const { setNodeRef, isOver } = (0, core_1.useDroppable)({ id: columnDropId(columnId) });
|
|
152
|
-
return <div ref={setNodeRef}>{children(isOver)}</div>;
|
|
153
|
-
}
|
|
154
|
-
const MY_TASKS_VIEW_STORAGE_KEY = 'operations-my-tasks-view-mode';
|
|
155
|
-
function OperationsMyTasksPage() {
|
|
156
|
-
var _a, _b, _c, _d, _e, _f;
|
|
157
|
-
const t = (0, next_intl_1.useTranslations)('operations.MyTasksPage');
|
|
158
|
-
const commonT = (0, next_intl_1.useTranslations)('operations.Common');
|
|
159
|
-
const detailT = (0, next_intl_1.useTranslations)('operations.ProjectDetailsPage');
|
|
160
|
-
const { request, currentLocaleCode, getSettingValue } = (0, next_app_provider_1.useApp)();
|
|
161
|
-
const [search, setSearch] = (0, react_1.useState)('');
|
|
162
|
-
const [statusFilter, setStatusFilter] = (0, react_1.useState)('all');
|
|
163
|
-
const [page, setPage] = (0, react_1.useState)(1);
|
|
164
|
-
const [pageSize, setPageSize] = (0, react_1.useState)(20);
|
|
165
|
-
const [taskCollection, setTaskCollection] = (0, react_1.useState)('active');
|
|
166
|
-
const [viewMode, setViewMode] = (0, react_1.useState)(() => {
|
|
167
|
-
if (typeof window === 'undefined') {
|
|
168
|
-
return 'table';
|
|
169
|
-
}
|
|
170
|
-
const savedViewMode = window.localStorage.getItem(MY_TASKS_VIEW_STORAGE_KEY);
|
|
171
|
-
if (savedViewMode === 'cards' || savedViewMode === 'board')
|
|
172
|
-
return savedViewMode;
|
|
173
|
-
return 'table';
|
|
174
|
-
});
|
|
175
|
-
const [boardOverride, setBoardOverride] = (0, react_1.useState)(null);
|
|
176
|
-
const [selectedTask, setSelectedTask] = (0, react_1.useState)(null);
|
|
177
|
-
const [deletePromptTask, setDeletePromptTask] = (0, react_1.useState)(null);
|
|
178
|
-
const [taskFormOpen, setTaskFormOpen] = (0, react_1.useState)(false);
|
|
179
|
-
const [editingTaskId, setEditingTaskId] = (0, react_1.useState)(null);
|
|
180
|
-
const [taskFormLoading, setTaskFormLoading] = (0, react_1.useState)(false);
|
|
181
|
-
const [taskFormData, setTaskFormData] = (0, react_1.useState)(EMPTY_TASK_FORM);
|
|
182
|
-
const [inlineCreateColumn, setInlineCreateColumn] = (0, react_1.useState)(null);
|
|
183
|
-
const [inlineCreateName, setInlineCreateName] = (0, react_1.useState)('');
|
|
184
|
-
const [inlineCreateLoading, setInlineCreateLoading] = (0, react_1.useState)(false);
|
|
185
|
-
// Paginated query for table/cards views
|
|
186
|
-
const { data: tasksResponse, refetch } = (0, next_app_provider_1.useQuery)({
|
|
187
|
-
queryKey: [
|
|
188
|
-
'operations-my-tasks-list',
|
|
189
|
-
currentLocaleCode,
|
|
190
|
-
search,
|
|
191
|
-
statusFilter,
|
|
192
|
-
taskCollection,
|
|
193
|
-
page,
|
|
194
|
-
pageSize,
|
|
195
|
-
],
|
|
196
|
-
queryFn: () => {
|
|
197
|
-
const params = new URLSearchParams({
|
|
198
|
-
page: String(page),
|
|
199
|
-
pageSize: String(pageSize),
|
|
200
|
-
sortField: 'createdAt',
|
|
201
|
-
sortOrder: 'desc',
|
|
202
|
-
});
|
|
203
|
-
if (search.trim())
|
|
204
|
-
params.set('search', search.trim());
|
|
205
|
-
if (statusFilter !== 'all')
|
|
206
|
-
params.set('status', statusFilter);
|
|
207
|
-
if (taskCollection === 'archived')
|
|
208
|
-
params.set('archived', 'true');
|
|
209
|
-
return (0, api_1.fetchOperations)(request, `/operations/my-tasks?${params.toString()}`);
|
|
210
|
-
},
|
|
211
|
-
placeholderData: (previous) => previous,
|
|
212
|
-
});
|
|
213
|
-
// Full-load query for board view (no pagination limit)
|
|
214
|
-
const { data: boardTasksResponse, refetch: refetchBoard } = (0, next_app_provider_1.useQuery)({
|
|
215
|
-
queryKey: ['operations-my-tasks-board', currentLocaleCode],
|
|
216
|
-
queryFn: () => (0, api_1.fetchOperations)(request, `/operations/my-tasks?pageSize=1000&sortField=createdAt&sortOrder=desc`),
|
|
217
|
-
enabled: viewMode === 'board' && taskCollection === 'active',
|
|
218
|
-
placeholderData: (previous) => previous,
|
|
219
|
-
});
|
|
220
|
-
const { data: projectOptionsResponse } = (0, next_app_provider_1.useQuery)({
|
|
221
|
-
queryKey: ['operations-my-task-project-options', currentLocaleCode],
|
|
222
|
-
queryFn: () => (0, api_1.fetchOperations)(request, '/operations/projects/options?pageSize=200&sortField=name&sortOrder=asc'),
|
|
223
|
-
placeholderData: (previous) => previous,
|
|
224
|
-
});
|
|
225
|
-
const tasks = (_a = tasksResponse === null || tasksResponse === void 0 ? void 0 : tasksResponse.data) !== null && _a !== void 0 ? _a : [];
|
|
226
|
-
const boardApiTasks = (_b = boardTasksResponse === null || boardTasksResponse === void 0 ? void 0 : boardTasksResponse.data) !== null && _b !== void 0 ? _b : [];
|
|
227
|
-
const projectOptions = (_c = projectOptionsResponse === null || projectOptionsResponse === void 0 ? void 0 : projectOptionsResponse.data) !== null && _c !== void 0 ? _c : [];
|
|
228
|
-
const boardColumns = (0, react_1.useMemo)(() => {
|
|
229
|
-
if (boardOverride)
|
|
230
|
-
return boardOverride.columns;
|
|
231
|
-
return splitTasksByColumn(boardApiTasks);
|
|
232
|
-
}, [boardOverride, boardApiTasks]);
|
|
233
|
-
const statsCards = (0, react_1.useMemo)(() => [
|
|
234
|
-
{
|
|
235
|
-
key: 'total',
|
|
236
|
-
title: t('cards.total'),
|
|
237
|
-
description: t('cards.totalDescription'),
|
|
238
|
-
value: tasks.length,
|
|
239
|
-
icon: lucide_react_1.ClipboardList,
|
|
240
|
-
accentClassName: 'from-slate-500/20 via-slate-400/10 to-transparent',
|
|
241
|
-
iconContainerClassName: 'bg-slate-100 text-slate-700',
|
|
242
|
-
},
|
|
243
|
-
{
|
|
244
|
-
key: 'doing',
|
|
245
|
-
title: t('cards.doing'),
|
|
246
|
-
description: t('cards.doingDescription'),
|
|
247
|
-
value: tasks.filter((item) => item.status === 'doing').length,
|
|
248
|
-
icon: lucide_react_1.PlayCircle,
|
|
249
|
-
accentClassName: 'from-blue-500/20 via-cyan-500/10 to-transparent',
|
|
250
|
-
iconContainerClassName: 'bg-blue-50 text-blue-600',
|
|
251
|
-
},
|
|
252
|
-
{
|
|
253
|
-
key: 'review',
|
|
254
|
-
title: t('cards.review'),
|
|
255
|
-
description: t('cards.reviewDescription'),
|
|
256
|
-
value: tasks.filter((item) => item.status === 'review').length,
|
|
257
|
-
icon: lucide_react_1.Loader2,
|
|
258
|
-
accentClassName: 'from-amber-500/20 via-orange-500/10 to-transparent',
|
|
259
|
-
iconContainerClassName: 'bg-amber-50 text-amber-600',
|
|
260
|
-
},
|
|
261
|
-
{
|
|
262
|
-
key: 'done',
|
|
263
|
-
title: t('cards.done'),
|
|
264
|
-
description: t('cards.doneDescription'),
|
|
265
|
-
value: tasks.filter((item) => item.status === 'done').length,
|
|
266
|
-
icon: lucide_react_1.CheckCircle2,
|
|
267
|
-
accentClassName: 'from-green-500/20 via-emerald-500/10 to-transparent',
|
|
268
|
-
iconContainerClassName: 'bg-green-50 text-green-600',
|
|
269
|
-
},
|
|
270
|
-
], [tasks, t]);
|
|
271
|
-
const handleViewModeChange = (value) => {
|
|
272
|
-
if (taskCollection === 'archived' && value === 'board')
|
|
273
|
-
return;
|
|
274
|
-
if (value !== 'table' && value !== 'cards' && value !== 'board')
|
|
275
|
-
return;
|
|
276
|
-
setViewMode(value);
|
|
277
|
-
if (typeof window !== 'undefined') {
|
|
278
|
-
window.localStorage.setItem(MY_TASKS_VIEW_STORAGE_KEY, value);
|
|
279
|
-
}
|
|
280
|
-
};
|
|
281
|
-
const sensors = (0, core_1.useSensors)((0, core_1.useSensor)(core_1.PointerSensor, { activationConstraint: { distance: 6 } }));
|
|
282
|
-
const findColumnByTask = (0, react_1.useCallback)((taskId) => {
|
|
283
|
-
var _a;
|
|
284
|
-
const match = KANBAN_COLUMNS.find((column) => boardColumns[column.id].some((task) => task.id === taskId));
|
|
285
|
-
return (_a = match === null || match === void 0 ? void 0 : match.id) !== null && _a !== void 0 ? _a : null;
|
|
286
|
-
}, [boardColumns]);
|
|
287
|
-
const moveTaskToColumn = (0, react_1.useCallback)((taskId, targetColumn) => {
|
|
288
|
-
const originColumn = findColumnByTask(taskId);
|
|
289
|
-
if (!originColumn || originColumn === targetColumn)
|
|
290
|
-
return;
|
|
291
|
-
const sourceTask = boardColumns[originColumn].find((task) => task.id === taskId);
|
|
292
|
-
if (!sourceTask)
|
|
293
|
-
return;
|
|
294
|
-
setBoardOverride({
|
|
295
|
-
columns: Object.assign(Object.assign({}, boardColumns), { [originColumn]: boardColumns[originColumn].filter((task) => task.id !== taskId), [targetColumn]: [
|
|
296
|
-
Object.assign(Object.assign({}, sourceTask), { status: targetColumn }),
|
|
297
|
-
...boardColumns[targetColumn],
|
|
298
|
-
] }),
|
|
299
|
-
});
|
|
300
|
-
(0, api_1.mutateOperations)(request, `/operations/tasks/${taskId}`, 'PATCH', {
|
|
301
|
-
status: targetColumn,
|
|
302
|
-
}).catch(() => {
|
|
303
|
-
setBoardOverride(null);
|
|
304
|
-
void refetchBoard();
|
|
305
|
-
});
|
|
306
|
-
}, [boardColumns, findColumnByTask, request, refetchBoard]);
|
|
307
|
-
const onBoardDragEnd = (event) => {
|
|
308
|
-
var _a;
|
|
309
|
-
const taskId = parseTaskId(event.active.id);
|
|
310
|
-
const targetColumn = parseColumnId((_a = event.over) === null || _a === void 0 ? void 0 : _a.id);
|
|
311
|
-
if (!taskId || !targetColumn)
|
|
312
|
-
return;
|
|
313
|
-
moveTaskToColumn(taskId, targetColumn);
|
|
314
|
-
};
|
|
315
|
-
const refetchAll = (0, react_1.useCallback)(async () => {
|
|
316
|
-
await Promise.all([refetch(), refetchBoard()]);
|
|
317
|
-
}, [refetch, refetchBoard]);
|
|
318
|
-
const handleArchiveTask = (0, react_1.useCallback)(async (taskId) => {
|
|
319
|
-
await (0, api_1.mutateOperations)(request, `/operations/tasks/${taskId}`, 'PATCH', {
|
|
320
|
-
archived: true,
|
|
321
|
-
});
|
|
322
|
-
setSelectedTask(null);
|
|
323
|
-
setBoardOverride(null);
|
|
324
|
-
await refetchAll();
|
|
325
|
-
}, [request, refetchAll]);
|
|
326
|
-
const handleRestoreTask = (0, react_1.useCallback)(async (taskId) => {
|
|
327
|
-
await (0, api_1.mutateOperations)(request, `/operations/tasks/${taskId}`, 'PATCH', {
|
|
328
|
-
archived: false,
|
|
329
|
-
});
|
|
330
|
-
setSelectedTask(null);
|
|
331
|
-
setBoardOverride(null);
|
|
332
|
-
await refetchAll();
|
|
333
|
-
}, [request, refetchAll]);
|
|
334
|
-
const handlePermanentDeleteTask = (0, react_1.useCallback)(async (taskId) => {
|
|
335
|
-
await (0, api_1.mutateOperations)(request, `/operations/tasks/${taskId}?permanent=true`, 'DELETE');
|
|
336
|
-
setDeletePromptTask(null);
|
|
337
|
-
setSelectedTask(null);
|
|
338
|
-
setBoardOverride(null);
|
|
339
|
-
await refetchAll();
|
|
340
|
-
}, [request, refetchAll]);
|
|
341
|
-
const handleInlineCreateTask = (0, react_1.useCallback)(async (column) => {
|
|
342
|
-
const trimmed = inlineCreateName.trim();
|
|
343
|
-
if (!trimmed) {
|
|
344
|
-
setInlineCreateColumn(null);
|
|
345
|
-
setInlineCreateName('');
|
|
346
|
-
return;
|
|
347
|
-
}
|
|
348
|
-
setInlineCreateLoading(true);
|
|
349
|
-
try {
|
|
350
|
-
await (0, api_1.mutateOperations)(request, '/operations/tasks', 'POST', {
|
|
351
|
-
name: trimmed,
|
|
352
|
-
status: column,
|
|
353
|
-
priority: 'medium',
|
|
354
|
-
});
|
|
355
|
-
setBoardOverride(null);
|
|
356
|
-
setInlineCreateColumn(null);
|
|
357
|
-
setInlineCreateName('');
|
|
358
|
-
await refetchBoard();
|
|
359
|
-
}
|
|
360
|
-
finally {
|
|
361
|
-
setInlineCreateLoading(false);
|
|
362
|
-
}
|
|
363
|
-
}, [inlineCreateName, request, refetchBoard]);
|
|
364
|
-
const openCreateTaskForm = (0, react_1.useCallback)(() => {
|
|
365
|
-
setEditingTaskId(null);
|
|
366
|
-
setTaskFormData(EMPTY_TASK_FORM);
|
|
367
|
-
setSelectedTask(null);
|
|
368
|
-
setTaskFormOpen(true);
|
|
369
|
-
}, []);
|
|
370
|
-
const openEditTaskForm = (0, react_1.useCallback)((task) => {
|
|
371
|
-
var _a, _b, _c;
|
|
372
|
-
setEditingTaskId(task.id);
|
|
373
|
-
setTaskFormData({
|
|
374
|
-
projectId: String(task.projectId),
|
|
375
|
-
name: task.name,
|
|
376
|
-
description: (_a = task.description) !== null && _a !== void 0 ? _a : '',
|
|
377
|
-
priority: (_b = task.priority) !== null && _b !== void 0 ? _b : 'medium',
|
|
378
|
-
status: KANBAN_COLUMNS.some((column) => column.id === task.status)
|
|
379
|
-
? task.status
|
|
380
|
-
: 'todo',
|
|
381
|
-
dueDate: normalizeDateInputValue(task.dueDate),
|
|
382
|
-
estimateHours: task.estimateHours != null ? String(task.estimateHours) : '',
|
|
383
|
-
tags: (_c = task.tags) !== null && _c !== void 0 ? _c : '',
|
|
384
|
-
});
|
|
385
|
-
setSelectedTask(null);
|
|
386
|
-
setTaskFormOpen(true);
|
|
387
|
-
}, []);
|
|
388
|
-
const handleTaskFormSubmit = (0, react_1.useCallback)(async () => {
|
|
389
|
-
var _a;
|
|
390
|
-
const selectedProject = projectOptions.find((project) => String(project.id) === taskFormData.projectId);
|
|
391
|
-
const normalizedName = taskFormData.name.trim();
|
|
392
|
-
if (!selectedProject || !normalizedName)
|
|
393
|
-
return;
|
|
394
|
-
setTaskFormLoading(true);
|
|
395
|
-
try {
|
|
396
|
-
const payload = {
|
|
397
|
-
projectId: selectedProject.id,
|
|
398
|
-
projectAssignmentId: (_a = selectedProject.projectAssignmentId) !== null && _a !== void 0 ? _a : null,
|
|
399
|
-
name: normalizedName,
|
|
400
|
-
description: taskFormData.description.trim() || null,
|
|
401
|
-
priority: taskFormData.priority,
|
|
402
|
-
status: taskFormData.status,
|
|
403
|
-
dueDate: taskFormData.dueDate || null,
|
|
404
|
-
estimateHours: taskFormData.estimateHours
|
|
405
|
-
? Number(taskFormData.estimateHours)
|
|
406
|
-
: null,
|
|
407
|
-
tags: taskFormData.tags.trim() || null,
|
|
408
|
-
};
|
|
409
|
-
if (editingTaskId) {
|
|
410
|
-
await (0, api_1.mutateOperations)(request, `/operations/tasks/${editingTaskId}`, 'PATCH', payload);
|
|
411
|
-
}
|
|
412
|
-
else {
|
|
413
|
-
await (0, api_1.mutateOperations)(request, '/operations/tasks', 'POST', payload);
|
|
414
|
-
}
|
|
415
|
-
setTaskFormOpen(false);
|
|
416
|
-
setEditingTaskId(null);
|
|
417
|
-
setTaskFormData(EMPTY_TASK_FORM);
|
|
418
|
-
setTaskCollection('active');
|
|
419
|
-
setPage(1);
|
|
420
|
-
setBoardOverride(null);
|
|
421
|
-
await refetchAll();
|
|
422
|
-
}
|
|
423
|
-
finally {
|
|
424
|
-
setTaskFormLoading(false);
|
|
425
|
-
}
|
|
426
|
-
}, [editingTaskId, projectOptions, request, refetchAll, taskFormData]);
|
|
427
|
-
return (<entity_list_1.Page>
|
|
428
|
-
<operations_header_1.OperationsHeader title={t('title')} description={t('description')} current={t('breadcrumb')} actions={<button_1.Button size="sm" className="gap-2" onClick={openCreateTaskForm}>
|
|
429
|
-
<lucide_react_1.Plus className="size-4"/>
|
|
430
|
-
{t('actions.create')}
|
|
431
|
-
</button_1.Button>}/>
|
|
432
|
-
|
|
433
|
-
<kpi_cards_grid_1.KpiCardsGrid items={statsCards} columns={4}/>
|
|
434
|
-
|
|
435
|
-
<div className="flex min-w-0 flex-wrap items-center gap-2">
|
|
436
|
-
{viewMode !== 'board' ? (<entity_list_1.SearchBar className="w-auto" searchQuery={search} onSearchChange={(value) => {
|
|
437
|
-
setSearch(value);
|
|
438
|
-
setPage(1);
|
|
439
|
-
}} showSearchButton={false} debounceMs={500} placeholder={t('searchPlaceholder')} controls={[
|
|
440
|
-
{
|
|
441
|
-
id: 'status',
|
|
442
|
-
type: 'select',
|
|
443
|
-
value: statusFilter,
|
|
444
|
-
onChange: (value) => {
|
|
445
|
-
setStatusFilter(value);
|
|
446
|
-
setPage(1);
|
|
447
|
-
},
|
|
448
|
-
placeholder: commonT('labels.status'),
|
|
449
|
-
options: [
|
|
450
|
-
{ value: 'all', label: commonT('filters.allStatuses') },
|
|
451
|
-
{ value: 'todo', label: t('status.todo') },
|
|
452
|
-
{ value: 'doing', label: t('status.doing') },
|
|
453
|
-
{ value: 'review', label: t('status.review') },
|
|
454
|
-
{ value: 'done', label: t('status.done') },
|
|
455
|
-
],
|
|
456
|
-
},
|
|
457
|
-
]}/>) : null}
|
|
458
|
-
|
|
459
|
-
<button_1.Button variant={taskCollection === 'active' ? 'default' : 'outline'} size="sm" onClick={() => {
|
|
460
|
-
setTaskCollection('active');
|
|
461
|
-
setPage(1);
|
|
462
|
-
}}>
|
|
463
|
-
{t('collections.active')}
|
|
464
|
-
</button_1.Button>
|
|
465
|
-
<button_1.Button variant={taskCollection === 'archived' ? 'default' : 'outline'} size="sm" onClick={() => {
|
|
466
|
-
setTaskCollection('archived');
|
|
467
|
-
setPage(1);
|
|
468
|
-
if (viewMode === 'board') {
|
|
469
|
-
handleViewModeChange('table');
|
|
470
|
-
}
|
|
471
|
-
}}>
|
|
472
|
-
{t('collections.archived')}
|
|
473
|
-
</button_1.Button>
|
|
474
|
-
|
|
475
|
-
<div className="flex-1"/>
|
|
476
|
-
|
|
477
|
-
<toggle_group_1.ToggleGroup type="single" value={viewMode} onValueChange={handleViewModeChange} variant="outline" size="sm" aria-label={t('viewMode')}>
|
|
478
|
-
<toggle_group_1.ToggleGroupItem value="table" className="gap-1.5 px-2.5" aria-label={t('viewModeTable')}>
|
|
479
|
-
<lucide_react_1.List className="h-4 w-4"/>
|
|
480
|
-
<span className="hidden sm:inline">{t('viewModeTable')}</span>
|
|
481
|
-
</toggle_group_1.ToggleGroupItem>
|
|
482
|
-
<toggle_group_1.ToggleGroupItem value="cards" className="gap-1.5 px-2.5" aria-label={t('viewModeCards')}>
|
|
483
|
-
<lucide_react_1.LayoutGrid className="h-4 w-4"/>
|
|
484
|
-
<span className="hidden sm:inline">{t('viewModeCards')}</span>
|
|
485
|
-
</toggle_group_1.ToggleGroupItem>
|
|
486
|
-
{taskCollection === 'active' ? (<toggle_group_1.ToggleGroupItem value="board" className="gap-1.5 px-2.5" aria-label={t('viewModeBoard')}>
|
|
487
|
-
<lucide_react_1.KanbanSquare className="h-4 w-4"/>
|
|
488
|
-
<span className="hidden sm:inline">{t('viewModeBoard')}</span>
|
|
489
|
-
</toggle_group_1.ToggleGroupItem>) : null}
|
|
490
|
-
</toggle_group_1.ToggleGroup>
|
|
491
|
-
</div>
|
|
492
|
-
|
|
493
|
-
{viewMode === 'board' ? (boardApiTasks.length > 0 ? (<core_1.DndContext sensors={sensors} collisionDetection={core_1.closestCenter} onDragEnd={onBoardDragEnd}>
|
|
494
|
-
<div className="grid gap-4 xl:grid-cols-4">
|
|
495
|
-
{KANBAN_COLUMNS.map((column) => (<DroppableColumn key={column.id} columnId={column.id}>
|
|
496
|
-
{(isOver) => (<div className={[
|
|
497
|
-
'rounded-xl border bg-muted/20 p-3 transition-colors',
|
|
498
|
-
isOver
|
|
499
|
-
? 'border-primary bg-primary/5'
|
|
500
|
-
: 'border-border',
|
|
501
|
-
].join(' ')}>
|
|
502
|
-
<div className="mb-3 flex items-center justify-between">
|
|
503
|
-
<div className="flex items-center gap-2 text-sm font-semibold">
|
|
504
|
-
<lucide_react_1.Rows3 className="size-4 text-muted-foreground"/>
|
|
505
|
-
{column.label}
|
|
506
|
-
</div>
|
|
507
|
-
<div className="flex items-center gap-1">
|
|
508
|
-
<span className="rounded-full bg-background px-2 py-0.5 text-xs text-muted-foreground">
|
|
509
|
-
{boardColumns[column.id].length}
|
|
510
|
-
</span>
|
|
511
|
-
<button type="button" className="flex size-5 cursor-pointer items-center justify-center rounded-full text-muted-foreground transition hover:bg-muted hover:text-foreground" onClick={() => {
|
|
512
|
-
setInlineCreateColumn(column.id);
|
|
513
|
-
setInlineCreateName('');
|
|
514
|
-
}}>
|
|
515
|
-
<lucide_react_1.Plus className="size-3.5"/>
|
|
516
|
-
</button>
|
|
517
|
-
</div>
|
|
518
|
-
</div>
|
|
519
|
-
|
|
520
|
-
<div className="flex flex-1 flex-col gap-2">
|
|
521
|
-
<framer_motion_1.AnimatePresence initial={false}>
|
|
522
|
-
{boardColumns[column.id].map((task) => {
|
|
523
|
-
var _a;
|
|
524
|
-
const taskTags = task.tags ? task.tags.split(',').map((t) => t.trim()).filter(Boolean) : [];
|
|
525
|
-
const comments = (_a = task.commentCount) !== null && _a !== void 0 ? _a : 0;
|
|
526
|
-
return (<DraggableTaskCard key={task.id} task={task}>
|
|
527
|
-
{(isDragging) => {
|
|
528
|
-
var _a;
|
|
529
|
-
return (<framer_motion_1.motion.div initial={{ opacity: 0, scale: 0.96 }} animate={{ opacity: 1, scale: 1 }} exit={{ opacity: 0, scale: 0.95, y: -4 }} transition={{ duration: 0.18 }} role="button" tabIndex={0} onClick={() => !isDragging && setSelectedTask(task)} onKeyDown={(event) => {
|
|
530
|
-
if (event.key === 'Enter' || event.key === ' ') {
|
|
531
|
-
event.preventDefault();
|
|
532
|
-
setSelectedTask(task);
|
|
533
|
-
}
|
|
534
|
-
}} className={[
|
|
535
|
-
'group w-full cursor-pointer rounded-2xl border bg-card p-3 text-left shadow-xs transition',
|
|
536
|
-
isDragging
|
|
537
|
-
? 'opacity-0'
|
|
538
|
-
: 'hover:border-primary/40 hover:shadow-lg',
|
|
539
|
-
].join(' ')}>
|
|
540
|
-
<div className="mb-3 flex items-start justify-between gap-2">
|
|
541
|
-
<div className="min-w-0 space-y-1">
|
|
542
|
-
<p className="line-clamp-2 text-sm font-semibold leading-snug">
|
|
543
|
-
{task.name}
|
|
544
|
-
</p>
|
|
545
|
-
<p className="truncate text-[11px] text-muted-foreground">
|
|
546
|
-
{[task.projectName, task.projectCode]
|
|
547
|
-
.filter(Boolean)
|
|
548
|
-
.join(' • ') ||
|
|
549
|
-
commonT('labels.notAvailable')}
|
|
550
|
-
</p>
|
|
551
|
-
{task.description ? (<p className="line-clamp-2 text-xs leading-5 text-muted-foreground">
|
|
552
|
-
{task.description.replace(/<[^>]*>/g, '')}
|
|
553
|
-
</p>) : null}
|
|
554
|
-
</div>
|
|
555
|
-
<div className="flex items-start gap-2">
|
|
556
|
-
<span className={[
|
|
557
|
-
'shrink-0 rounded-full border px-2 py-0.5 text-[10px] font-semibold uppercase tracking-wide',
|
|
558
|
-
getPriorityClassName(task.priority),
|
|
559
|
-
].join(' ')}>
|
|
560
|
-
{getTaskPriorityLabel(task.priority)}
|
|
561
|
-
</span>
|
|
562
|
-
<button_1.Button type="button" variant="ghost" size="icon" className="size-7 shrink-0 rounded-full opacity-0 transition group-hover:opacity-100" onPointerDown={(event) => event.stopPropagation()} onClick={(event) => {
|
|
563
|
-
event.stopPropagation();
|
|
564
|
-
openEditTaskForm(task);
|
|
565
|
-
}}>
|
|
566
|
-
<lucide_react_1.Pencil className="size-3.5"/>
|
|
567
|
-
</button_1.Button>
|
|
568
|
-
</div>
|
|
569
|
-
</div>
|
|
570
|
-
|
|
571
|
-
{taskTags.length > 0 ? (<div className="mb-3 flex flex-wrap gap-1">
|
|
572
|
-
{taskTags.slice(0, 4).map((tag) => (<span key={`${task.id}-${tag}`} className="rounded-full border bg-muted/60 px-2 py-0.5 text-[10px] font-medium text-muted-foreground">
|
|
573
|
-
{tag}
|
|
574
|
-
</span>))}
|
|
575
|
-
{taskTags.length > 4 ? (<span className="rounded-full border bg-muted/60 px-2 py-0.5 text-[10px] font-medium text-muted-foreground">
|
|
576
|
-
+{taskTags.length - 4}
|
|
577
|
-
</span>) : null}
|
|
578
|
-
</div>) : null}
|
|
579
|
-
|
|
580
|
-
<div className="grid grid-cols-2 gap-2 text-xs">
|
|
581
|
-
<div className={[
|
|
582
|
-
'rounded-xl border bg-muted/20 px-2 py-1.5',
|
|
583
|
-
isPastDue(task.dueDate) && task.status !== 'done'
|
|
584
|
-
? 'border-rose-500/30 bg-rose-500/10 text-rose-700 dark:text-rose-300'
|
|
585
|
-
: 'text-muted-foreground',
|
|
586
|
-
].join(' ')}>
|
|
587
|
-
<span className="flex items-center gap-1">
|
|
588
|
-
<lucide_react_1.AlarmClock className="size-3.5"/>
|
|
589
|
-
{(0, format_1.formatDate)(task.dueDate, getSettingValue, currentLocaleCode)}
|
|
590
|
-
</span>
|
|
591
|
-
</div>
|
|
592
|
-
<div className="rounded-xl border bg-muted/20 px-2 py-1.5 text-muted-foreground">
|
|
593
|
-
<span className="flex items-center gap-1">
|
|
594
|
-
<lucide_react_1.Timer className="size-3.5"/>
|
|
595
|
-
{task.estimateHours != null
|
|
596
|
-
? `${task.estimateHours}h`
|
|
597
|
-
: '—'}
|
|
598
|
-
</span>
|
|
599
|
-
</div>
|
|
600
|
-
</div>
|
|
601
|
-
|
|
602
|
-
<div className="mt-3 space-y-1.5">
|
|
603
|
-
<div className="flex items-center justify-between text-[11px] text-muted-foreground">
|
|
604
|
-
<span>Progresso</span>
|
|
605
|
-
<span>{getTaskProgress(task.status)}%</span>
|
|
606
|
-
</div>
|
|
607
|
-
<progress_1.Progress value={getTaskProgress(task.status)} className="h-1.5"/>
|
|
608
|
-
</div>
|
|
609
|
-
|
|
610
|
-
<div className="mt-3 flex items-center justify-between gap-3 border-t pt-3">
|
|
611
|
-
<div className="flex min-w-0 items-center gap-2">
|
|
612
|
-
<div className="flex size-7 shrink-0 items-center justify-center overflow-hidden rounded-full bg-muted text-[10px] font-semibold uppercase text-muted-foreground ring-1 ring-border">
|
|
613
|
-
{(() => {
|
|
614
|
-
var _a;
|
|
615
|
-
const photoUrl = getUserPhotoUrl(task.assigneeUserPhotoId);
|
|
616
|
-
const avatarUrl = task.assigneePersonAvatarId
|
|
617
|
-
? getPersonAvatarUrl(task.assigneePersonAvatarId)
|
|
618
|
-
: null;
|
|
619
|
-
const imgSrc = photoUrl !== null && photoUrl !== void 0 ? photoUrl : avatarUrl;
|
|
620
|
-
return imgSrc ? (
|
|
621
|
-
// eslint-disable-next-line @next/next/no-img-element
|
|
622
|
-
<img src={imgSrc} alt={(_a = task.assigneeName) !== null && _a !== void 0 ? _a : ''} className="size-full object-cover"/>) : (getInitials(task.assigneeName));
|
|
623
|
-
})()}
|
|
624
|
-
</div>
|
|
625
|
-
<span className="truncate text-[11px] text-muted-foreground">
|
|
626
|
-
{(_a = task.assigneeName) !== null && _a !== void 0 ? _a : '—'}
|
|
627
|
-
</span>
|
|
628
|
-
</div>
|
|
629
|
-
<div className="flex shrink-0 items-center gap-2 text-[11px] text-muted-foreground">
|
|
630
|
-
<span className="inline-flex items-center gap-1">
|
|
631
|
-
<lucide_react_1.MessageSquare className="size-3.5"/>
|
|
632
|
-
{comments}
|
|
633
|
-
</span>
|
|
634
|
-
<span className="inline-flex items-center gap-1">
|
|
635
|
-
<lucide_react_1.Paperclip className="size-3.5"/>
|
|
636
|
-
0
|
|
637
|
-
</span>
|
|
638
|
-
</div>
|
|
639
|
-
</div>
|
|
640
|
-
</framer_motion_1.motion.div>);
|
|
641
|
-
}}
|
|
642
|
-
</DraggableTaskCard>);
|
|
643
|
-
})}
|
|
644
|
-
</framer_motion_1.AnimatePresence>
|
|
645
|
-
</div>
|
|
646
|
-
|
|
647
|
-
{inlineCreateColumn === column.id ? (<div className="space-y-1.5 rounded-lg border bg-card p-2">
|
|
648
|
-
<input_1.Input autoFocus placeholder={detailT('taskForm.namePlaceholder')} value={inlineCreateName} onChange={(e) => setInlineCreateName(e.target.value)} onKeyDown={(e) => {
|
|
649
|
-
if (e.key === 'Enter') {
|
|
650
|
-
e.preventDefault();
|
|
651
|
-
void handleInlineCreateTask(column.id);
|
|
652
|
-
}
|
|
653
|
-
else if (e.key === 'Escape') {
|
|
654
|
-
setInlineCreateColumn(null);
|
|
655
|
-
setInlineCreateName('');
|
|
656
|
-
}
|
|
657
|
-
}} onBlur={() => {
|
|
658
|
-
if (!inlineCreateName.trim()) {
|
|
659
|
-
setInlineCreateColumn(null);
|
|
660
|
-
setInlineCreateName('');
|
|
661
|
-
}
|
|
662
|
-
}} disabled={inlineCreateLoading} className="h-8 text-sm"/>
|
|
663
|
-
<div className="flex gap-1">
|
|
664
|
-
<button_1.Button type="button" size="sm" className="h-7 px-2 text-xs" disabled={!inlineCreateName.trim() || inlineCreateLoading} onMouseDown={(e) => e.preventDefault()} onClick={() => void handleInlineCreateTask(column.id)}>
|
|
665
|
-
{t('actions.create')}
|
|
666
|
-
</button_1.Button>
|
|
667
|
-
<button_1.Button type="button" variant="ghost" size="sm" className="h-7 px-2 text-xs" onMouseDown={(e) => e.preventDefault()} onClick={() => {
|
|
668
|
-
setInlineCreateColumn(null);
|
|
669
|
-
setInlineCreateName('');
|
|
670
|
-
}}>
|
|
671
|
-
{commonT('actions.cancel')}
|
|
672
|
-
</button_1.Button>
|
|
673
|
-
</div>
|
|
674
|
-
</div>) : (<button type="button" className="flex w-full cursor-pointer items-center gap-1 rounded-md px-1 py-1 text-xs text-muted-foreground transition hover:bg-muted hover:text-foreground" onClick={() => {
|
|
675
|
-
setInlineCreateColumn(column.id);
|
|
676
|
-
setInlineCreateName('');
|
|
677
|
-
}}>
|
|
678
|
-
<lucide_react_1.Plus className="size-3"/>
|
|
679
|
-
{t('actions.create')}
|
|
680
|
-
</button>)}
|
|
681
|
-
</div>)}
|
|
682
|
-
</DroppableColumn>))}
|
|
683
|
-
</div>
|
|
684
|
-
</core_1.DndContext>) : (<entity_list_1.EmptyState icon={<lucide_react_1.ClipboardList className="size-12"/>} title={commonT('states.emptyTitle')} description={t('emptyDescription')} actionLabel={commonT('actions.refresh')} onAction={() => void refetchBoard()}/>)) : tasks.length > 0 ? (viewMode === 'cards' ? (<div className="grid gap-4 md:grid-cols-2 2xl:grid-cols-3">
|
|
685
|
-
{tasks.map((task) => (<card_1.Card key={task.id} className="cursor-pointer overflow-hidden border-border/60 py-0 shadow-sm transition-all hover:-translate-y-0.5 hover:shadow-md" onClick={() => setSelectedTask(task)}>
|
|
686
|
-
<card_1.CardContent className="space-y-4 p-4">
|
|
687
|
-
<div className="flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between">
|
|
688
|
-
<div className="min-w-0">
|
|
689
|
-
<div className="truncate font-semibold">{task.name}</div>
|
|
690
|
-
<div className="truncate text-xs text-muted-foreground">
|
|
691
|
-
{[task.projectName, task.projectCode]
|
|
692
|
-
.filter(Boolean)
|
|
693
|
-
.join(' • ') || commonT('labels.notAvailable')}
|
|
694
|
-
</div>
|
|
695
|
-
</div>
|
|
696
|
-
<status_badge_1.StatusBadge label={t(`status.${task.status}`)} className={(0, format_1.getStatusBadgeClass)(task.status)}/>
|
|
697
|
-
</div>
|
|
698
|
-
|
|
699
|
-
{task.description ? (<p className="line-clamp-3 text-sm text-muted-foreground">
|
|
700
|
-
{task.description}
|
|
701
|
-
</p>) : null}
|
|
702
|
-
|
|
703
|
-
<div className="flex justify-end border-t border-border/60 pt-3">
|
|
704
|
-
{task.projectId ? (<button_1.Button variant="outline" size="icon" asChild onClick={(event) => event.stopPropagation()}>
|
|
705
|
-
<link_1.default href={`/operations/my-projects/${task.projectId}`}>
|
|
706
|
-
<lucide_react_1.Eye className="size-4"/>
|
|
707
|
-
</link_1.default>
|
|
708
|
-
</button_1.Button>) : null}
|
|
709
|
-
</div>
|
|
710
|
-
</card_1.CardContent>
|
|
711
|
-
</card_1.Card>))}
|
|
712
|
-
</div>) : (<div className="overflow-x-auto rounded-md border">
|
|
713
|
-
<table_1.Table>
|
|
714
|
-
<table_1.TableHeader>
|
|
715
|
-
<table_1.TableRow>
|
|
716
|
-
<table_1.TableHead>{commonT('labels.task')}</table_1.TableHead>
|
|
717
|
-
<table_1.TableHead>{commonT('labels.project')}</table_1.TableHead>
|
|
718
|
-
<table_1.TableHead>{commonT('labels.status')}</table_1.TableHead>
|
|
719
|
-
<table_1.TableHead className="w-20 text-right">
|
|
720
|
-
{commonT('labels.actions')}
|
|
721
|
-
</table_1.TableHead>
|
|
722
|
-
</table_1.TableRow>
|
|
723
|
-
</table_1.TableHeader>
|
|
724
|
-
<table_1.TableBody>
|
|
725
|
-
{tasks.map((task) => (<table_1.TableRow key={task.id} className="cursor-pointer hover:bg-muted/30" onClick={() => setSelectedTask(task)}>
|
|
726
|
-
<table_1.TableCell>
|
|
727
|
-
<div className="min-w-0">
|
|
728
|
-
<div className="truncate font-medium">{task.name}</div>
|
|
729
|
-
{task.description ? (<div className="truncate text-xs text-muted-foreground">
|
|
730
|
-
{task.description}
|
|
731
|
-
</div>) : null}
|
|
732
|
-
</div>
|
|
733
|
-
</table_1.TableCell>
|
|
734
|
-
<table_1.TableCell>
|
|
735
|
-
<div className="truncate text-sm">
|
|
736
|
-
{[task.projectName, task.projectCode]
|
|
737
|
-
.filter(Boolean)
|
|
738
|
-
.join(' • ') || commonT('labels.notAvailable')}
|
|
739
|
-
</div>
|
|
740
|
-
</table_1.TableCell>
|
|
741
|
-
<table_1.TableCell>
|
|
742
|
-
<status_badge_1.StatusBadge label={t(`status.${task.status}`)} className={(0, format_1.getStatusBadgeClass)(task.status)}/>
|
|
743
|
-
</table_1.TableCell>
|
|
744
|
-
<table_1.TableCell>
|
|
745
|
-
<div className="flex justify-end">
|
|
746
|
-
{task.projectId ? (<button_1.Button variant="outline" size="icon" asChild onClick={(event) => event.stopPropagation()}>
|
|
747
|
-
<link_1.default href={`/operations/my-projects/${task.projectId}`}>
|
|
748
|
-
<lucide_react_1.Eye className="size-4"/>
|
|
749
|
-
</link_1.default>
|
|
750
|
-
</button_1.Button>) : null}
|
|
751
|
-
</div>
|
|
752
|
-
</table_1.TableCell>
|
|
753
|
-
</table_1.TableRow>))}
|
|
754
|
-
</table_1.TableBody>
|
|
755
|
-
</table_1.Table>
|
|
756
|
-
</div>)) : (<entity_list_1.EmptyState icon={<lucide_react_1.ClipboardList className="size-12"/>} title={commonT('states.emptyTitle')} description={t('emptyDescription')} actionLabel={commonT('actions.refresh')} onAction={() => void refetch()}/>)}
|
|
757
|
-
|
|
758
|
-
{viewMode !== 'board' ? (<entity_list_1.PaginationFooter currentPage={(_d = tasksResponse === null || tasksResponse === void 0 ? void 0 : tasksResponse.page) !== null && _d !== void 0 ? _d : page} pageSize={(_e = tasksResponse === null || tasksResponse === void 0 ? void 0 : tasksResponse.pageSize) !== null && _e !== void 0 ? _e : pageSize} totalItems={(_f = tasksResponse === null || tasksResponse === void 0 ? void 0 : tasksResponse.total) !== null && _f !== void 0 ? _f : 0} onPageChange={setPage} onPageSizeChange={(value) => {
|
|
759
|
-
setPageSize(value);
|
|
760
|
-
setPage(1);
|
|
761
|
-
}} pageSizeOptions={[10, 20, 50]}/>) : null}
|
|
762
|
-
|
|
763
|
-
<task_detail_sheet_1.TaskDetailSheet task={selectedTask} open={selectedTask !== null} onOpenChange={(open) => {
|
|
764
|
-
if (!open)
|
|
765
|
-
setSelectedTask(null);
|
|
766
|
-
}} statusLabel={(status) => {
|
|
767
|
-
try {
|
|
768
|
-
return t(`status.${status}`);
|
|
769
|
-
}
|
|
770
|
-
catch (_a) {
|
|
771
|
-
return status;
|
|
772
|
-
}
|
|
773
|
-
}} footer={selectedTask ? (<div className="grid grid-cols-2 gap-3">
|
|
774
|
-
{taskCollection === 'archived' ? (<>
|
|
775
|
-
<button_1.Button variant="outline" className="gap-2" onClick={() => void handleRestoreTask(selectedTask.id)}>
|
|
776
|
-
<lucide_react_1.ArchiveRestore className="size-4"/>
|
|
777
|
-
{commonT('actions.unarchive')}
|
|
778
|
-
</button_1.Button>
|
|
779
|
-
<button_1.Button variant="destructive" className="gap-2" onClick={() => setDeletePromptTask(selectedTask)}>
|
|
780
|
-
<lucide_react_1.Trash2 className="size-4"/>
|
|
781
|
-
{commonT('actions.delete')}
|
|
782
|
-
</button_1.Button>
|
|
783
|
-
</>) : (<>
|
|
784
|
-
<button_1.Button variant="outline" className="gap-2" onClick={() => openEditTaskForm(selectedTask)}>
|
|
785
|
-
<lucide_react_1.Pencil className="size-4"/>
|
|
786
|
-
{commonT('actions.edit')}
|
|
787
|
-
</button_1.Button>
|
|
788
|
-
<button_1.Button variant="outline" className="gap-2" onClick={() => void handleArchiveTask(selectedTask.id)}>
|
|
789
|
-
<lucide_react_1.Archive className="size-4"/>
|
|
790
|
-
{commonT('actions.archive')}
|
|
791
|
-
</button_1.Button>
|
|
792
|
-
</>)}
|
|
793
|
-
</div>) : null}/>
|
|
794
|
-
|
|
795
|
-
<dialog_1.Dialog open={deletePromptTask !== null} onOpenChange={(open) => {
|
|
796
|
-
if (!open)
|
|
797
|
-
setDeletePromptTask(null);
|
|
798
|
-
}}>
|
|
799
|
-
<dialog_1.DialogContent className="sm:max-w-sm">
|
|
800
|
-
<dialog_1.DialogHeader>
|
|
801
|
-
<dialog_1.DialogTitle>{t('dialogs.deleteTitle')}</dialog_1.DialogTitle>
|
|
802
|
-
</dialog_1.DialogHeader>
|
|
803
|
-
<p className="text-sm text-muted-foreground">
|
|
804
|
-
{t('dialogs.deleteDescription')}
|
|
805
|
-
</p>
|
|
806
|
-
<dialog_1.DialogFooter className="mt-4">
|
|
807
|
-
<button_1.Button variant="outline" onClick={() => setDeletePromptTask(null)}>
|
|
808
|
-
{commonT('actions.cancel')}
|
|
809
|
-
</button_1.Button>
|
|
810
|
-
{deletePromptTask ? (<button_1.Button variant="destructive" onClick={() => void handlePermanentDeleteTask(deletePromptTask.id)}>
|
|
811
|
-
{commonT('actions.delete')}
|
|
812
|
-
</button_1.Button>) : null}
|
|
813
|
-
</dialog_1.DialogFooter>
|
|
814
|
-
</dialog_1.DialogContent>
|
|
815
|
-
</dialog_1.Dialog>
|
|
816
|
-
|
|
817
|
-
<dialog_1.Dialog open={taskFormOpen} onOpenChange={(open) => {
|
|
818
|
-
if (!taskFormLoading) {
|
|
819
|
-
setTaskFormOpen(open);
|
|
820
|
-
if (!open) {
|
|
821
|
-
setEditingTaskId(null);
|
|
822
|
-
setTaskFormData(EMPTY_TASK_FORM);
|
|
823
|
-
}
|
|
824
|
-
}
|
|
825
|
-
}}>
|
|
826
|
-
<dialog_1.DialogContent className="sm:max-w-2xl">
|
|
827
|
-
<dialog_1.DialogHeader>
|
|
828
|
-
<dialog_1.DialogTitle>
|
|
829
|
-
{editingTaskId
|
|
830
|
-
? detailT('taskForm.titleEdit')
|
|
831
|
-
: detailT('taskForm.titleNew')}
|
|
832
|
-
</dialog_1.DialogTitle>
|
|
833
|
-
</dialog_1.DialogHeader>
|
|
834
|
-
<div className="space-y-4">
|
|
835
|
-
<div className="space-y-2">
|
|
836
|
-
<label_1.Label htmlFor="task-project">{commonT('labels.project')}</label_1.Label>
|
|
837
|
-
<select_1.Select value={taskFormData.projectId} onValueChange={(value) => setTaskFormData((prev) => (Object.assign(Object.assign({}, prev), { projectId: value })))}>
|
|
838
|
-
<select_1.SelectTrigger className="w-full" id="task-project">
|
|
839
|
-
<select_1.SelectValue placeholder={t('dialogs.createProjectPlaceholder')}/>
|
|
840
|
-
</select_1.SelectTrigger>
|
|
841
|
-
<select_1.SelectContent>
|
|
842
|
-
{projectOptions.map((project) => (<select_1.SelectItem key={project.id} value={String(project.id)}>
|
|
843
|
-
{project.label}
|
|
844
|
-
</select_1.SelectItem>))}
|
|
845
|
-
</select_1.SelectContent>
|
|
846
|
-
</select_1.Select>
|
|
847
|
-
</div>
|
|
848
|
-
|
|
849
|
-
<div className="space-y-2">
|
|
850
|
-
<label_1.Label htmlFor="task-name">
|
|
851
|
-
{detailT('taskForm.nameLabel')} *
|
|
852
|
-
</label_1.Label>
|
|
853
|
-
<input_1.Input id="task-name" value={taskFormData.name} onChange={(event) => setTaskFormData((prev) => (Object.assign(Object.assign({}, prev), { name: event.target.value })))} placeholder={detailT('taskForm.namePlaceholder')}/>
|
|
854
|
-
</div>
|
|
855
|
-
|
|
856
|
-
<div className="space-y-2">
|
|
857
|
-
<label_1.Label htmlFor="task-description">
|
|
858
|
-
{detailT('taskForm.descriptionLabel')}
|
|
859
|
-
</label_1.Label>
|
|
860
|
-
<rich_text_editor_1.RichTextEditor value={taskFormData.description} onChange={(val) => setTaskFormData((prev) => (Object.assign(Object.assign({}, prev), { description: val })))}/>
|
|
861
|
-
</div>
|
|
862
|
-
|
|
863
|
-
<div className="grid grid-cols-2 gap-3">
|
|
864
|
-
<div className="space-y-2">
|
|
865
|
-
<label_1.Label>{detailT('taskForm.priorityLabel')}</label_1.Label>
|
|
866
|
-
<select_1.Select value={taskFormData.priority} onValueChange={(value) => setTaskFormData((prev) => (Object.assign(Object.assign({}, prev), { priority: value })))}>
|
|
867
|
-
<select_1.SelectTrigger className="w-full">
|
|
868
|
-
<select_1.SelectValue />
|
|
869
|
-
</select_1.SelectTrigger>
|
|
870
|
-
<select_1.SelectContent>
|
|
871
|
-
<select_1.SelectItem value="low">
|
|
872
|
-
{getTaskPriorityLabel('low')}
|
|
873
|
-
</select_1.SelectItem>
|
|
874
|
-
<select_1.SelectItem value="medium">
|
|
875
|
-
{getTaskPriorityLabel('medium')}
|
|
876
|
-
</select_1.SelectItem>
|
|
877
|
-
<select_1.SelectItem value="high">
|
|
878
|
-
{getTaskPriorityLabel('high')}
|
|
879
|
-
</select_1.SelectItem>
|
|
880
|
-
</select_1.SelectContent>
|
|
881
|
-
</select_1.Select>
|
|
882
|
-
</div>
|
|
883
|
-
|
|
884
|
-
<div className="space-y-2">
|
|
885
|
-
<label_1.Label>{detailT('taskForm.columnLabel')}</label_1.Label>
|
|
886
|
-
<select_1.Select value={taskFormData.status} onValueChange={(value) => setTaskFormData((prev) => (Object.assign(Object.assign({}, prev), { status: value })))}>
|
|
887
|
-
<select_1.SelectTrigger className="w-full">
|
|
888
|
-
<select_1.SelectValue />
|
|
889
|
-
</select_1.SelectTrigger>
|
|
890
|
-
<select_1.SelectContent>
|
|
891
|
-
{KANBAN_COLUMNS.map((column) => (<select_1.SelectItem key={column.id} value={column.id}>
|
|
892
|
-
{column.label}
|
|
893
|
-
</select_1.SelectItem>))}
|
|
894
|
-
</select_1.SelectContent>
|
|
895
|
-
</select_1.Select>
|
|
896
|
-
</div>
|
|
897
|
-
</div>
|
|
898
|
-
|
|
899
|
-
<div className="grid grid-cols-2 gap-3">
|
|
900
|
-
<div className="space-y-2">
|
|
901
|
-
<label_1.Label htmlFor="task-due-date">
|
|
902
|
-
{detailT('taskForm.deadlineLabel')}
|
|
903
|
-
</label_1.Label>
|
|
904
|
-
<input_1.Input id="task-due-date" type="date" value={taskFormData.dueDate} onChange={(event) => setTaskFormData((prev) => (Object.assign(Object.assign({}, prev), { dueDate: event.target.value })))}/>
|
|
905
|
-
</div>
|
|
906
|
-
|
|
907
|
-
<div className="space-y-2">
|
|
908
|
-
<label_1.Label htmlFor="task-estimate">
|
|
909
|
-
{detailT('taskForm.estimateLabel')}
|
|
910
|
-
</label_1.Label>
|
|
911
|
-
<input_1.Input id="task-estimate" type="number" min="0" step="0.5" placeholder="0" value={taskFormData.estimateHours} onChange={(event) => setTaskFormData((prev) => (Object.assign(Object.assign({}, prev), { estimateHours: event.target.value })))}/>
|
|
912
|
-
</div>
|
|
913
|
-
</div>
|
|
914
|
-
|
|
915
|
-
<div className="space-y-2">
|
|
916
|
-
<label_1.Label htmlFor="task-tags">{detailT('taskForm.tagsLabel')}</label_1.Label>
|
|
917
|
-
<input_1.Input id="task-tags" value={taskFormData.tags} onChange={(event) => setTaskFormData((prev) => (Object.assign(Object.assign({}, prev), { tags: event.target.value })))} placeholder={detailT('taskForm.tagsPlaceholder')}/>
|
|
918
|
-
</div>
|
|
919
|
-
</div>
|
|
920
|
-
<dialog_1.DialogFooter className="gap-2 sm:justify-between">
|
|
921
|
-
<button_1.Button variant="ghost" onClick={() => {
|
|
922
|
-
setTaskFormOpen(false);
|
|
923
|
-
setEditingTaskId(null);
|
|
924
|
-
setTaskFormData(EMPTY_TASK_FORM);
|
|
925
|
-
}} disabled={taskFormLoading}>
|
|
926
|
-
{commonT('actions.cancel')}
|
|
927
|
-
</button_1.Button>
|
|
928
|
-
<button_1.Button onClick={() => void handleTaskFormSubmit()} disabled={taskFormLoading ||
|
|
929
|
-
!taskFormData.projectId ||
|
|
930
|
-
!taskFormData.name.trim()}>
|
|
931
|
-
{taskFormLoading ? (<lucide_react_1.Loader2 className="size-4 animate-spin"/>) : null}
|
|
932
|
-
{editingTaskId ? commonT('actions.save') : t('actions.create')}
|
|
933
|
-
</button_1.Button>
|
|
934
|
-
</dialog_1.DialogFooter>
|
|
935
|
-
</dialog_1.DialogContent>
|
|
936
|
-
</dialog_1.Dialog>
|
|
937
|
-
</entity_list_1.Page>);
|
|
938
|
-
}
|
|
939
|
-
//# sourceMappingURL=page.js.map
|