diff --git a/app/(dashboard)/components/Overview.tsx b/app/(dashboard)/components/Overview.tsx index 616e166..a99fbbf 100644 --- a/app/(dashboard)/components/Overview.tsx +++ b/app/(dashboard)/components/Overview.tsx @@ -109,7 +109,7 @@ export default function Overview() { }; return ( -
End User: {client.endUser}
-- This client doesn't have any projects or internal memos yet. Create one to get started. -
-- WO: {assignment.workOrder.name} -
- )} - -- {assignment.description} -
- -{emp?.name}
-{emp?.role}
-{client.name}
-{client.endUser}
-{new Date(client?.createdAt)?.toLocaleDateString()}
-
-
-
{assignment.startDate ? new Date(assignment.startDate).toLocaleDateString() : 'N/A'}
-{assignment.endDate ? new Date(assignment.endDate).toLocaleDateString() : 'N/A'}
-{client?.name}
-{assignment.description}
-{assignment.workOrder?.description}
-WO Status History
-{history.note}
-{history.note}
-- Recorded: {new Date(history.createdAt).toLocaleString()} -
-No history recorded yet.
- )} -No employees assigned yet.
- ) : ( - assignment.assignedEmployees.map(empId => { - const emp = DUMMY_EMPLOYEES.find(e => e.id === empId); - return ( -{emp?.name}
-{emp?.role}
-- {currentClient ? `For ${currentClient.name}` : 'Assign a new project or IM to a client'} -
-- Standard project assignment. Requires Work Orders and detailed planning. -
-- Used for Proof of Concept (PoC) stages. Can be converted to a Project later. -
-Define the initial task for this project.
-Double check everything before saving.
-{currentClient?.name}
-{name || 'Untitled Assignment'}
-{description || 'No description provided.'}
-{workOrder.name}
-{workOrder.description}
-- Note: Employees can be assigned after the assignment is created. -
-Something that can be done at any time is often done at no time. Do it now, or decide when you'll do it.
-{client.endUser}
-- Currently managing a portfolio of {projectCount} projects and {imCount} internal memos. - A dedicated team of {assignedEmployeeIds.length} experts is handling {woCount} work orders to ensure successful delivery for {client.endUser}. -
*/} -- {projectCount === 0 && imCount === 0 && woCount === 0 ? - "No active projects, internal memos, or work orders recorded for this client yet." - : - <> - {(projectCount > 0 || imCount > 0) && ( - <> - Currently managing a portfolio of{" "} - {projectCount > 0 && - {projectCount} project{projectCount > 1 ? 's' : ''} - } - {projectCount > 0 && imCount > 0 && " and "} - {imCount > 0 && - {imCount} internal memo{imCount > 1 ? 's' : ''} - } - .{" "} - > - )} - {woCount > 0 && ( - <> - A dedicated team of{" "} - {assignedEmployeeIds.length} experts is handling{" "} - {woCount} work order{woCount > 1 ? 's' : ''}{" "}to ensure successful delivery for {client.endUser}. - > - )} - > - } -
-{emp?.name}
-{emp?.role}
-Try adjusting your search or add new entries.
-