From 85493502f067bc81e869c8e89a7b42d52d901bd4 Mon Sep 17 00:00:00 2001 From: Chaim Date: Wed, 17 Jun 2026 03:33:37 +0000 Subject: [PATCH] =?UTF-8?q?feat(ui):=20=D7=9E=D7=AA=D7=90=D7=9E=D7=99-?= =?UTF-8?q?=D7=A1=D7=95=D7=9B=D7=A0=D7=99=D7=9D=20=D7=9C=D7=98=D7=91=D7=9C?= =?UTF-8?q?=D7=94=20+=20=D7=90=D7=99=D7=9E=D7=95=D7=A5=20=D7=A2=D7=99?= =?UTF-8?q?=D7=A6=D7=95=D7=91-=D7=AA=D7=92=D7=99=D7=9D=20=D7=91=D7=AA?= =?UTF-8?q?=D7=95=D7=A8-=D7=94=D7=94=D7=9C=D7=9B=D7=95=D7=AA=20(=D7=A7?= =?UTF-8?q?=D7=98=D7=92=D7=95=D7=A8=D7=99=D7=94=20B=20#2/#3)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit הכרעות-מוצר מדוח-הנאמנות: - agent-adapters-panel: כרטיסונים → טבלה (6 עמודות: תפקיד+תת-תפקיד / מתאם / מודל / העבר-ל / פעולה / מצב) לפי מוקאפ 02d. כל הלוגיקה נשמרה (preflight-dialog, revert, relax-tools, fallback-bar, דגל-א-סימטרי). עמודת "מצב": תקין/מועבר· fallback/⚠ א-סימטרי. תת-תפקיד דו-לשוני (analyst/writer/qa…). - halacha review card: אימוץ שפת-התגים/צבעים ממוקאפ 19 — תג-זהב "הלכה" בפתח שורת-המטא, ורקע gold-wash לכרטיסים עם התלבטות-פאנל (כמו .rc מול .rc.plain). מבנה-האקורדיון נשמר (החלטת חיים). יישור-קוד למוקאפים-מאושרים — ללא סבב-עיצוב חדש. Co-Authored-By: Claude Opus 4.8 (1M context) --- .../operations/agent-adapters-panel.tsx | 155 ++++++++++++------ .../precedents/halacha-review-panel.tsx | 7 +- 2 files changed, 108 insertions(+), 54 deletions(-) diff --git a/web-ui/src/components/operations/agent-adapters-panel.tsx b/web-ui/src/components/operations/agent-adapters-panel.tsx index d235b1a..3d405ca 100644 --- a/web-ui/src/components/operations/agent-adapters-panel.tsx +++ b/web-ui/src/components/operations/agent-adapters-panel.tsx @@ -27,6 +27,14 @@ import { SelectContent, SelectItem, } from "@/components/ui/select"; +import { + Table, + TableBody, + TableCell, + TableHead, + TableHeader, + TableRow, +} from "@/components/ui/table"; import { Dialog, DialogContent, @@ -51,6 +59,18 @@ const ADAPTERS = [ { value: "deepseek_local", label: "DeepSeek", cls: "bg-gold-wash text-gold-deep border-gold/40" }, ] as const; +// Bilingual role subtitle under the agent name (mockup 02d) — display-only, +// keyed by the agent's Hebrew name. Falls back to none for unmapped agents. +const ROLE_SUBTITLE: Record = { + "עוזר משפטי": "CEO · מתזמר", + "מנתח משפטי": "analyst", + "כותב החלטה": "writer", + "מנהל ידע": "אוצֵר-הלכות", + "בודק איכות": "qa", + "הגהת מסמכים": "proofreader", + "שטן מליץ": "red-team (Gemini)", +}; + function adapterCls(a: string | null | undefined): string { return ADAPTERS.find((x) => x.value === a)?.cls ?? "bg-rule-soft text-ink-muted border-rule"; } @@ -157,60 +177,89 @@ export function AgentAdaptersPanel() { {isLoading || !data ? ( ) : ( -
- {data.pairs.map((p) => { - const cur = currentOf(p); - const tgt = targetFor(p); - const migrated = cur !== "claude_local" && cur !== null; - const asym = isAsymmetric(p); - return ( -
-
-
- {p.name} - - {adapterLabel(cur)} - - - {modelOf(p) || "(default)"} - - {asym ? ( - - ⚠ א-סימטרי בין החברות +
+ + + + תפקיד + מתאם נוכחי + מודל + העבר ל־ + + מצב + + + + {data.pairs.map((p) => { + const cur = currentOf(p); + const tgt = targetFor(p); + const migrated = cur !== "claude_local" && cur !== null; + const asym = isAsymmetric(p); + const subtitle = ROLE_SUBTITLE[p.name]; + return ( + + +
{p.name}
+ {subtitle ? ( +
{subtitle}
+ ) : null} +
+ + + {adapterLabel(cur)} - ) : migrated ? ( - - מועבר · fallback - - ) : null} - - -
- - - {migrated ? ( - - ) : null} -
- - ); - })} +
+ + + {modelOf(p) || "(default)"} + + + + + + +
+ + {migrated ? ( + + ) : null} +
+
+ + {asym ? ( + + ⚠ א-סימטרי + + ) : migrated ? ( + + מועבר · fallback + + ) : ( + + תקין + + )} + +
+ ); + })} +
+
)} diff --git a/web-ui/src/components/precedents/halacha-review-panel.tsx b/web-ui/src/components/precedents/halacha-review-panel.tsx index bf6cbb5..61b9b36 100644 --- a/web-ui/src/components/precedents/halacha-review-panel.tsx +++ b/web-ui/src/components/precedents/halacha-review-panel.tsx @@ -185,11 +185,16 @@ function HalachaCard({
+ {/* gold "הלכה" tag opening the meta row (mockup 19 `.b-hal`) */} + + הלכה + {h.page_reference && ( {h.page_reference} )}