mirror of
https://github.com/ichsankurnia/hats-app.git
synced 2026-12-05 10:56:28 +00:00
83330418bc
Introduce a promote-to-project workflow and related UI/logic changes. Key changes: - Add Promote button/link in AssignmentDetail, AssignmentGrid, and AssignmentList to open the ProjectAssignmentForm in promote mode. - Propagate isPromote flag through pages and ProjectAssignmentForm: lock type to Project, prevent selecting IM, adjust headings/labels, and show badges. - When promoting, set payload fields (project_id, im_id) accordingly and POST to create a Project from an existing IM. - Autofill project/work-order fields from existing project selection and fetch WO sequence when project selected. - Update validation messages, toasts, and minor UI/text sizing tweaks. - Update UpdateAdministrationStatus to read/write notes (project_assignment_status_notes) and use it as initial remark. - Extend IProjectAssignment type with im_id and project_assignment_status_notes. - Remove .env.production.local (deleted). Files changed: multiple components under app/(dashboard)/task and type.assignment.ts (see diff).