Files
hats-app/components
Ichsan Kurniawan 6f0d8481a1 Refactor assignment status & assignment form
Normalize project-assignment status handling and improve assignment creation flow.

- Use project_assignment_status / project_assignment_status_detail fields throughout (ClientDetail, AssignmentDetail, WorkOrderCard, StatusTimeline, UpdateTimelineStatus, ProjectDetail filters) and prefer start_date/end_date for timeline ranges.
- Filter timeline lists to only include entries with start_date and format dates using dayjs.
- Update UpdateTimelineStatus to submit detail/master IDs and call PUT /project-assignment/status/:assignmentId; adjust table and editing state types.
- Rework ManageTeam and related types to match API shape (user object nested) and update UI/behaviors.
- Add a dedicated "Clients" step to ProjectAssignmentForm with client & end-user comboboxes, client creation modal, client/end-user fetching, validation, and navigation; fix payload mapping, default values, and post-submit routing.
- Add new project-assignment page entry (app/(dashboard)/task/project-assignment/page.tsx).
- Wrap ClientGrid cards in links and tidy card actions; adjust HomeTask view options and create-button behavior to route to project assignment flow.
- Add optional redirect behavior to FormClient and small UI spacing/structure tweaks.

These changes align front-end data structures with backend fields, improve timeline accuracy, and streamline the project assignment creation UX.
2026-04-28 18:47:02 +07:00
..
2026-04-21 16:00:21 +07:00
2025-12-19 13:57:55 +07:00
2025-12-19 13:57:55 +07:00
2026-01-28 21:10:07 +07:00