- {/* 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 */}
-
+ {/* 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 */}