diff --git a/web-ui/src/app/approvals/page.tsx b/web-ui/src/app/approvals/page.tsx index be4dbc4..0d78299 100644 --- a/web-ui/src/app/approvals/page.tsx +++ b/web-ui/src/app/approvals/page.tsx @@ -24,6 +24,15 @@ const SEVERITY_BADGE: Record = { ok: "bg-emerald-50 text-emerald-800 border-emerald-300/60", }; +// Severity expressed as a colored dot next to the title (matches the approved +// IA-redesign mockup): high=danger, medium=warn, low=info, ok=success. +const SEVERITY_DOT: Record = { + high: "bg-danger", + medium: "bg-warn", + low: "bg-info", + ok: "bg-success", +}; + function formatDate(iso?: string | null): string { if (!iso) return ""; try { @@ -42,10 +51,14 @@ function ApprovalCard({ cat }: { cat: ApprovalCategory }) { return ( -
-

{cat.label}

+
+

{cat.label}

+ {cat.count} @@ -98,9 +111,19 @@ function ApprovalCard({ cat }: { cat: ApprovalCategory }) {
{cat.href ? ( - + cleared ? ( + + ) : ( + + ) ) : ( סקירה ידנית (ראה דוח FU-5) )} @@ -133,13 +156,11 @@ export default function ApprovalsPage() {

{typeof data?.total_pending === "number" ? ( -
-
+
+ {data.total_pending} -
-
- פריטים ממתינים -
+ + פריטים ממתינים
) : null}