@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.
- package/dist/controllers/operations-projects.controller.d.ts +15 -0
- package/dist/controllers/operations-projects.controller.d.ts.map +1 -1
- package/dist/controllers/operations-tasks.controller.d.ts +41 -10
- package/dist/controllers/operations-tasks.controller.d.ts.map +1 -1
- package/dist/controllers/operations-tasks.controller.js +11 -0
- package/dist/controllers/operations-tasks.controller.js.map +1 -1
- package/dist/dto/create-task.dto.d.ts +7 -1
- package/dist/dto/create-task.dto.d.ts.map +1 -1
- package/dist/dto/create-task.dto.js +38 -5
- package/dist/dto/create-task.dto.js.map +1 -1
- package/dist/dto/list-tasks.dto.d.ts +1 -1
- package/dist/dto/list-tasks.dto.d.ts.map +1 -1
- package/dist/dto/list-tasks.dto.js +2 -2
- package/dist/dto/list-tasks.dto.js.map +1 -1
- package/dist/dto/update-task.dto.d.ts +7 -1
- package/dist/dto/update-task.dto.d.ts.map +1 -1
- package/dist/dto/update-task.dto.js +38 -5
- package/dist/dto/update-task.dto.js.map +1 -1
- package/dist/operations.service.d.ts +68 -12
- package/dist/operations.service.d.ts.map +1 -1
- package/dist/operations.service.js +380 -101
- package/dist/operations.service.js.map +1 -1
- package/hedhog/data/route.yaml +13 -0
- package/hedhog/frontend/app/_components/collaborator-details-screen.tsx.ejs +44 -44
- package/hedhog/frontend/app/_components/collaborator-form-screen.tsx.ejs +168 -213
- package/hedhog/frontend/app/_components/collaborator-select-with-create.tsx.ejs +256 -256
- package/hedhog/frontend/app/_components/contract-form-screen.tsx.ejs +7 -7
- package/hedhog/frontend/app/_components/contract-template-form-screen.tsx.ejs +306 -306
- package/hedhog/frontend/app/_components/contract-template-select-with-create.tsx.ejs +247 -247
- package/hedhog/frontend/app/_components/contract-wizard-sheet.tsx.ejs +3520 -3520
- package/hedhog/frontend/app/_components/project-details-screen.tsx.ejs +1504 -52
- package/hedhog/frontend/app/_components/project-form-screen.tsx.ejs +528 -403
- package/hedhog/frontend/app/_components/section-card.tsx.ejs +25 -18
- package/hedhog/frontend/app/_components/system-user-select-with-create.tsx.ejs +609 -0
- package/hedhog/frontend/app/_lib/types.ts.ejs +5 -0
- package/hedhog/frontend/app/_lib/utils/format.ts.ejs +7 -7
- package/hedhog/frontend/app/_lib/utils/forms.ts.ejs +48 -1
- package/hedhog/frontend/app/collaborator-types/page.tsx.ejs +502 -502
- package/hedhog/frontend/app/collaborators/page.tsx.ejs +10 -7
- package/hedhog/frontend/app/contracts/page.tsx.ejs +938 -938
- package/hedhog/frontend/app/projects/[id]/edit/page.tsx.ejs +1 -1
- package/hedhog/frontend/app/projects/page.tsx.ejs +360 -133
- package/hedhog/frontend/messages/en.json +27 -4
- package/hedhog/frontend/messages/pt.json +27 -4
- package/hedhog/table/operations_project.yaml +9 -0
- package/hedhog/table/operations_task.yaml +43 -4
- package/package.json +5 -5
- package/src/controllers/operations-tasks.controller.ts +11 -0
- package/src/dto/create-task.dto.ts +47 -7
- package/src/dto/list-tasks.dto.ts +3 -3
- package/src/dto/update-task.dto.ts +47 -7
- 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<
|
|
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(
|
|
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(
|
|
651
|
+
? formatCurrency(
|
|
652
|
+
Number(collaborator.compensationAmount)
|
|
653
|
+
)
|
|
651
654
|
: commonT('labels.notAvailable')}
|
|
652
655
|
</TableCell>
|
|
653
656
|
<TableCell className="hidden xl:table-cell">
|