From b85aafa8f9162ab4d606206ffb998d4f1ad243a4 Mon Sep 17 00:00:00 2001 From: Chaim Date: Thu, 11 Jun 2026 22:07:24 +0000 Subject: [PATCH] =?UTF-8?q?feat(ui):=20IA=20redesign=20=E2=86=92=20product?= =?UTF-8?q?ion=20=C2=B7=20/approvals=20polish=20(1/17)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit תרגום המוקאפ המאושר (Claude Design) לפרודקשן — דף ראשון, מקבע את דפוס-התרגום: מרעננים UI בלבד, שומרים את כל ה-hooks/לוגיקה (usePendingApprovals + כל שדות ApprovalCategory). /approvals: - נקודת-חומרה צבעונית ליד כל כותרת (high=danger/medium=warn/low=info/ok=success). - "פריטים ממתינים" כ-pill ב-gold-wash (במקום מספר-ימני). - CTA "לטיפול ←" gold-filled לשערים פעילים; "צפייה ←" outline כשהתור נקי. - מספרים tabular. בדיקה: npx tsc --noEmit ✓. אין שינוי-לוגיקה/API. Co-Authored-By: Claude Opus 4.8 (1M context) --- web-ui/src/app/approvals/page.tsx | 45 ++++++++++++++++++++++--------- 1 file changed, 33 insertions(+), 12 deletions(-) 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}