diff --git a/ondeck/src/app/(dashboard)/tasks/page-client.tsx b/ondeck/src/app/(dashboard)/tasks/page-client.tsx index ec9e237..b2e27aa 100644 --- a/ondeck/src/app/(dashboard)/tasks/page-client.tsx +++ b/ondeck/src/app/(dashboard)/tasks/page-client.tsx @@ -200,7 +200,7 @@ function TaskCard({ task: initial }: { task: Task }) { return (
-
-
- {/* Title row */} -
-

- {task.title} -

- - - {task.policyGroup ? ( - Group - ) : task.policy ? ( - Policy - ) : ( - Client - )} - -
- - {task.description && ( -

{task.description}

- )} - - {/* Meta row — always show policy number, type, renewal date */} -
- {task.client && ( - - Client:{' '} - {task.client.name} - - )} - {task.policyGroup && ( - - Group:{' '} - - {task.policyGroup.name ?? (task.policyGroup.renewalDate ? formatDate(task.policyGroup.renewalDate) : task.policyGroup.id)} - - - )} - - Policy #:{' '} - {task.policy?.policyNumber || '—'} - - - Type:{' '} - {task.policy?.policyType || '—'} - - - Renewal:{' '} - - {task.policy?.expirationDate ? formatRenewalDate(task.policy.expirationDate) : '—'} - - - - Due:{' '} - - {formatDate(task.dueDate)} - - -
- - {task.assignments.length > 0 && ( -

- Assigned to:{' '} - {task.assignments.map((a) => a.user.displayName || a.user.email).join(', ')} -

+ {/* Header: title + badges + actions */} +
+
+

+ {task.title} +

+ + + {task.policyGroup ? ( + Group + ) : task.policy ? ( + Policy + ) : ( + Client )}
- - {/* Action buttons */}
- {task.status !== 'COMPLETED' && task.status !== 'NA' && task.status !== 'CANCELLED' && ( - )}
+ {/* Meta: structured two-row grid */} +
+
+ {task.client && ( + Client {task.client.name} + )} + Policy # {task.policy?.policyNumber || '—'} + Type {task.policy?.policyType || '—'} + Renewal {task.policy?.expirationDate ? formatRenewalDate(task.policy.expirationDate) : '—'} + Due {formatDate(task.dueDate)} +
+ {task.assignments.length > 0 && ( +
+ Assigned to {task.assignments.map((a) => a.user.displayName || a.user.email).join(', ')} +
+ )} +
+ {/* Completion Dialog */} @@ -413,7 +356,7 @@ function TaskCard({ task: initial }: { task: Task }) { {/* Notes panel */} {noteOpen && ( -
+
{/* Existing notes feed */} {notes.length > 0 ? (