diff --git a/web-ui/src/app/approvals/page.tsx b/web-ui/src/app/approvals/page.tsx index 25dee49..646bac5 100644 --- a/web-ui/src/app/approvals/page.tsx +++ b/web-ui/src/app/approvals/page.tsx @@ -26,6 +26,15 @@ const SEVERITY_DOT: Record = { ok: "bg-success", }; +// #2 refresh — a thin severity rail on the card's inline-start edge replaces the +// old small count-pill; the big count number stays. high=danger…ok=success. +const SEVERITY_RAIL: Record = { + high: "border-s-danger", + medium: "border-s-warn", + low: "border-s-info", + ok: "border-s-success", +}; + function formatDate(iso?: string | null): string { if (!iso) return ""; try { @@ -42,7 +51,11 @@ function formatDate(iso?: string | null): string { function ApprovalCard({ cat }: { cat: ApprovalCategory }) { const cleared = cat.count === 0; return ( - + {/* top row — severity dot · title+age · big count number (mockup 01) */}
@@ -54,8 +67,8 @@ function ApprovalCard({ cat }: { cat: ApprovalCategory }) {

{cat.label}

{cleared ? ( - - תור נקי + + ✓ תור נקי ) : cat.oldest_at ? ( <>הוותיק ביותר — {formatDate(cat.oldest_at)} @@ -65,7 +78,9 @@ function ApprovalCard({ cat }: { cat: ApprovalCategory }) {
{cat.count}