@hed-hog/operations 0.0.304 → 0.0.305

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.
Files changed (52) hide show
  1. package/dist/controllers/operations-projects.controller.d.ts +15 -0
  2. package/dist/controllers/operations-projects.controller.d.ts.map +1 -1
  3. package/dist/controllers/operations-tasks.controller.d.ts +41 -10
  4. package/dist/controllers/operations-tasks.controller.d.ts.map +1 -1
  5. package/dist/controllers/operations-tasks.controller.js +11 -0
  6. package/dist/controllers/operations-tasks.controller.js.map +1 -1
  7. package/dist/dto/create-task.dto.d.ts +7 -1
  8. package/dist/dto/create-task.dto.d.ts.map +1 -1
  9. package/dist/dto/create-task.dto.js +38 -5
  10. package/dist/dto/create-task.dto.js.map +1 -1
  11. package/dist/dto/list-tasks.dto.d.ts +1 -1
  12. package/dist/dto/list-tasks.dto.d.ts.map +1 -1
  13. package/dist/dto/list-tasks.dto.js +2 -2
  14. package/dist/dto/list-tasks.dto.js.map +1 -1
  15. package/dist/dto/update-task.dto.d.ts +7 -1
  16. package/dist/dto/update-task.dto.d.ts.map +1 -1
  17. package/dist/dto/update-task.dto.js +38 -5
  18. package/dist/dto/update-task.dto.js.map +1 -1
  19. package/dist/operations.service.d.ts +68 -12
  20. package/dist/operations.service.d.ts.map +1 -1
  21. package/dist/operations.service.js +380 -101
  22. package/dist/operations.service.js.map +1 -1
  23. package/hedhog/data/route.yaml +13 -0
  24. package/hedhog/frontend/app/_components/collaborator-details-screen.tsx.ejs +44 -44
  25. package/hedhog/frontend/app/_components/collaborator-form-screen.tsx.ejs +168 -213
  26. package/hedhog/frontend/app/_components/collaborator-select-with-create.tsx.ejs +256 -256
  27. package/hedhog/frontend/app/_components/contract-form-screen.tsx.ejs +7 -7
  28. package/hedhog/frontend/app/_components/contract-template-form-screen.tsx.ejs +306 -306
  29. package/hedhog/frontend/app/_components/contract-template-select-with-create.tsx.ejs +247 -247
  30. package/hedhog/frontend/app/_components/contract-wizard-sheet.tsx.ejs +3520 -3520
  31. package/hedhog/frontend/app/_components/project-details-screen.tsx.ejs +1504 -52
  32. package/hedhog/frontend/app/_components/project-form-screen.tsx.ejs +528 -403
  33. package/hedhog/frontend/app/_components/section-card.tsx.ejs +25 -18
  34. package/hedhog/frontend/app/_components/system-user-select-with-create.tsx.ejs +609 -0
  35. package/hedhog/frontend/app/_lib/types.ts.ejs +5 -0
  36. package/hedhog/frontend/app/_lib/utils/format.ts.ejs +7 -7
  37. package/hedhog/frontend/app/_lib/utils/forms.ts.ejs +48 -1
  38. package/hedhog/frontend/app/collaborator-types/page.tsx.ejs +502 -502
  39. package/hedhog/frontend/app/collaborators/page.tsx.ejs +10 -7
  40. package/hedhog/frontend/app/contracts/page.tsx.ejs +938 -938
  41. package/hedhog/frontend/app/projects/[id]/edit/page.tsx.ejs +1 -1
  42. package/hedhog/frontend/app/projects/page.tsx.ejs +360 -133
  43. package/hedhog/frontend/messages/en.json +27 -4
  44. package/hedhog/frontend/messages/pt.json +27 -4
  45. package/hedhog/table/operations_project.yaml +9 -0
  46. package/hedhog/table/operations_task.yaml +43 -4
  47. package/package.json +5 -5
  48. package/src/controllers/operations-tasks.controller.ts +11 -0
  49. package/src/dto/create-task.dto.ts +47 -7
  50. package/src/dto/list-tasks.dto.ts +3 -3
  51. package/src/dto/update-task.dto.ts +47 -7
  52. package/src/operations.service.ts +556 -88
@@ -166,7 +166,9 @@ export default function OperationsCollaboratorsPage() {
166
166
  ),
167
167
  });
168
168
 
169
- const { data: collaboratorTypes = [] } = useQuery<OperationsCollaboratorType[]>({
169
+ const { data: collaboratorTypes = [] } = useQuery<
170
+ OperationsCollaboratorType[]
171
+ >({
170
172
  queryKey: ['operations-collaborator-types-list', currentLocaleCode],
171
173
  enabled: access.isCollaborator,
172
174
  queryFn: () =>
@@ -445,7 +447,9 @@ export default function OperationsCollaboratorsPage() {
445
447
  {formT('fields.compensationAmount')}:
446
448
  </span>{' '}
447
449
  {collaborator.compensationAmount != null
448
- ? formatCurrency(collaborator.compensationAmount)
450
+ ? formatCurrency(
451
+ Number(collaborator.compensationAmount)
452
+ )
449
453
  : commonT('labels.notAvailable')}
450
454
  </div>
451
455
  <div>
@@ -579,10 +583,7 @@ export default function OperationsCollaboratorsPage() {
579
583
  {collaborator.displayName}
580
584
  </div>
581
585
  <div className="truncate text-xs text-muted-foreground">
582
- {[
583
- collaborator.code,
584
- collaborator.department,
585
- ]
586
+ {[collaborator.code, collaborator.department]
586
587
  .filter(Boolean)
587
588
  .join(' • ') ||
588
589
  collaborator.title ||
@@ -647,7 +648,9 @@ export default function OperationsCollaboratorsPage() {
647
648
  </TableCell>
648
649
  <TableCell className="hidden 2xl:table-cell">
649
650
  {collaborator.compensationAmount != null
650
- ? formatCurrency(collaborator.compensationAmount)
651
+ ? formatCurrency(
652
+ Number(collaborator.compensationAmount)
653
+ )
651
654
  : commonT('labels.notAvailable')}
652
655
  </TableCell>
653
656
  <TableCell className="hidden xl:table-cell">