diff --git a/app/(dashboard)/shot-status/ShotStatusClient.tsx b/app/(dashboard)/shot-status/ShotStatusClient.tsx index d102162..e40840e 100644 --- a/app/(dashboard)/shot-status/ShotStatusClient.tsx +++ b/app/(dashboard)/shot-status/ShotStatusClient.tsx @@ -909,6 +909,23 @@ function DeliveryCell({ delivery, shotVersion }: { delivery: ShotDeliverySummary ); } +/** On a section header: how many of its shots have new comments, so a + * collapsed episode, scene or group still shows there is something to read. */ +function SectionUnreadBadge({ shots }: { shots: ShotRow[] }) { + const flagged = shots.filter((s) => s.unreadComments).length; + if (!flagged) return null; + const label = `${flagged} shot${flagged !== 1 ? "s" : ""} with new comments`; + return ( + + !{flagged} + + ); +} + function ShotTable({ shots, canManage, @@ -1680,6 +1697,7 @@ export function ShotStatusClient({ {episodeShots.length} shot{episodeShots.length !== 1 ? "s" : ""} + {epDueDate && ( {sceneShots.length} shot{sceneShots.length !== 1 ? "s" : ""} + {!collapsed && ( @@ -1789,6 +1808,7 @@ export function ShotStatusClient({ {groupShots.length} shot{groupShots.length !== 1 ? "s" : ""} + {!collapsed && (