Triage counts come from grouping records by status. Include zero-count states explicitly if the dashboard must always display the same columns.
Worked example
// app/issues/page.tsx
export default function TriageStatusTotals() {
const issues = [
{ id: 12, title: "Header spacing", owner: "Kim", severity: 1, open: true },
{ id: 14, title: "Invoice rounding", owner: "Sam", severity: 3, open: true },
{ id: 21, title: "Alt text", owner: "Kim", severity: 2, open: false },
];
return (
<dl>
<dt>Open</dt>
<dd>{issues.filter((i) => i.open).length}</dd>
<dt>Closed</dt>
<dd>{issues.filter((i) => !i.open).length}</dd>
</dl>
);
}Implementation notes
A total count should reconcile with the displayed status groups. Decide where unknown statuses go before presenting a complete-looking dashboard.
Try it yourself
Resolve every open issue and inspect the empty status group.
Open the Next.js example →Editorial date December 31, 2025 · Published December 6, 2026