mirror of
https://github.com/ichsankurnia/hats-app.git
synced 2026-12-05 10:56:28 +00:00
6f0d8481a1
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.