- Assigned to {task.assignments.map((a) => a.user.displayName || a.user.email).join(', ')}
+
+ {/* Left: main content */}
+
+
- )}
+
+ {task.client && (
+ Client {task.client.name}
+ )}
+ Policy # {task.policy?.policyNumber || '—'}
+ Type {task.policy?.policyType || '—'}
+ Renewal {task.policy?.expirationDate ? formatRenewalDate(task.policy.expirationDate) : '—'}
+
+ {task.assignments.length > 0 && (
+
+ Assigned to {task.assignments.map((a) => a.user.displayName || a.user.email).join(', ')}
+
+ )}
+
+
+ {/* Right sidebar */}
+
+ {/* Info: Due / Status / Level */}
+
+
+ Due
+ {formatDate(task.dueDate)}
+
+
+ Status
+
+
+
+ Level
+ {levelLabel}
+
+
+ {/* Actions: 2×2 grid */}
+
+
+
+
+
+ {task.status !== 'COMPLETED' && task.status !== 'NA' && task.status !== 'CANCELLED' ? (
+
+ ) : (
+
+ )}
+
+
+