mirror of
https://github.com/ichsankurnia/hats-app.git
synced 2026-12-06 19:56:28 +00:00
Add admin status updates and modal polish
Adds a dedicated administration-status workflow across client, assignment, and project views, including a new UpdateAdministrationStatus modal and action entries in assignment menus. It also improves modal layout consistency, prioritizes project-assignment status badges in list/grid views, and expands badge variants for administration and technical lifecycle states.
This commit is contained in:
@@ -23,6 +23,7 @@ interface AssignmentGridProps {
|
||||
clientId?: string;
|
||||
onManageTeam?: (assignment: IProjectAssignment) => void;
|
||||
onUpdateStatus?: (assignment: IProjectAssignment) => void;
|
||||
onUpdateAdministrationStatus?: (assignment: IProjectAssignment) => void;
|
||||
onDelete?: (assignment: IProjectAssignment) => void;
|
||||
}
|
||||
|
||||
@@ -31,6 +32,7 @@ export default function AssignmentGrid({
|
||||
clientId,
|
||||
onManageTeam,
|
||||
onUpdateStatus,
|
||||
onUpdateAdministrationStatus,
|
||||
onDelete,
|
||||
}: AssignmentGridProps) {
|
||||
return (
|
||||
@@ -43,7 +45,7 @@ export default function AssignmentGrid({
|
||||
const assignmentStartDate = assignment.wo_start_date || assignment.im_start_date || assignment.project?.start_date;
|
||||
const assignmentEndDate = assignment.wo_end_date || assignment.im_end_date || assignment.project?.end_date;
|
||||
const assignmentDesc = assignment.wo_description || assignment.im_description || assignment.project?.description;
|
||||
const assignmentStatus = assignment.project?.status || assignment.project_assignment_status?.name;
|
||||
const assignmentStatus = assignment.project_assignment_status?.name || assignment.project?.status;
|
||||
|
||||
const illustrationSrc = isProject
|
||||
? '/assets/illustrations/work_order.jpg'
|
||||
@@ -144,6 +146,11 @@ export default function AssignmentGrid({
|
||||
Manage Team
|
||||
</DropdownMenuItem>
|
||||
)}
|
||||
{onUpdateAdministrationStatus && (
|
||||
<DropdownMenuItem onSelect={() => onUpdateAdministrationStatus(assignment)}>
|
||||
Update Administration Status
|
||||
</DropdownMenuItem>
|
||||
)}
|
||||
{onUpdateStatus && (
|
||||
<DropdownMenuItem onSelect={() => onUpdateStatus(assignment)}>
|
||||
Update Technical Status
|
||||
|
||||
Reference in New Issue
Block a user