+ {workOrder.wo_name} +
+ + {workOrder.wo_description ? ( ++ {workOrder.wo_description} +
+ ) : null} +- {workOrder.wo_name} -
-- {workOrder.wo_description} -
- } - - {/* Toggle button - full width on mobile */} -Note
-{workOrder.note}
-Assignment Timeline
-
- {statusList.length} status changes
+ {/* Expandable Section: Timeline & Team Details */}
+
+ Work Order Note
+
+ {workOrder.note}
Assigned People
-Team members on this work order
+{title}
+ {badgeText ? ( + + {badgeText} + + ) : null} +- {project.name} -
+Work orders
+ + {totalWorkOrders} + +- Client -
-{client?.name}
-- {client?.description ?? "No description available for this client."} -
--
+ {filterAssignments.map((wo: any, i: number) => (
+
- Description -
-- {project.description ?? "No description available for this project."} +
No work orders found
++ Try changing the filter, or add a work order from the client page.
- {stat.label} -
-- {stat.value} -
-Work Orders
-- {totalWorkOrders} work order{totalWorkOrders !== 1 ? 's' : ''} in this project -
-No Project Assignments Found
-- Try to change the filter or create one to get started. -
-+
{projectCount === 0 && imCount === 0 && woCount === 0 ? ( "No active projects, internal memos, or work orders recorded for this client yet." ) : ( diff --git a/app/(dashboard)/task/loading.tsx b/app/(dashboard)/task/loading.tsx new file mode 100644 index 0000000..617f8d2 --- /dev/null +++ b/app/(dashboard)/task/loading.tsx @@ -0,0 +1,54 @@ +export default function Loading() { + return ( +