From c9f3fcd0129443f3983a2620d7225011f84a660d Mon Sep 17 00:00:00 2001 From: Chaim Date: Wed, 15 Apr 2026 11:55:31 +0000 Subject: [PATCH] Translate agent role badges and issue status to Hebrew MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Role labels: ceo→מנהל, researcher→חוקר, engineer→מהנדס, qa→בודק איכות Issue status: in_progress→בביצוע, done→הושלם, todo→לביצוע, etc. Co-Authored-By: Claude Opus 4.6 (1M context) --- .../components/cases/agent-activity-feed.tsx | 30 +++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/web-ui/src/components/cases/agent-activity-feed.tsx b/web-ui/src/components/cases/agent-activity-feed.tsx index 540913e..7143c26 100644 --- a/web-ui/src/components/cases/agent-activity-feed.tsx +++ b/web-ui/src/components/cases/agent-activity-feed.tsx @@ -33,6 +33,24 @@ const ROLE_DOT: Record = { qa: "bg-amber-500", }; +const ROLE_LABELS: Record = { + ceo: "מנהל", + researcher: "חוקר", + engineer: "מהנדס", + qa: "בודק איכות", + general: "כללי", +}; + +const ISSUE_STATUS_LABELS: Record = { + backlog: "ממתין", + todo: "לביצוע", + in_progress: "בביצוע", + in_review: "בבדיקה", + done: "הושלם", + cancelled: "בוטל", + blocked: "חסום", +}; + function roleColor(role: string | null) { return ROLE_COLORS[role ?? ""] ?? "bg-gray-100 text-gray-700 border-gray-200"; } @@ -41,6 +59,14 @@ function roleDot(role: string | null) { return ROLE_DOT[role ?? ""] ?? "bg-gray-400"; } +function roleLabel(role: string | null) { + return ROLE_LABELS[role ?? ""] ?? role ?? ""; +} + +function issueStatusLabel(status: string) { + return ISSUE_STATUS_LABELS[status] ?? status; +} + /* ── Time formatting ─────────────────────────────────────────── */ function timeAgo(iso: string | null): string { @@ -104,7 +130,7 @@ function CommentCard({ className={`inline-flex items-center gap-1 text-[11px] px-1.5 py-0.5 rounded-full border ${roleColor(comment.agent_role)}`} > - {comment.agent_role} + {roleLabel(comment.agent_role)} )} {identifier && ( @@ -209,7 +235,7 @@ export function AgentActivityFeed({ variant={iss.status === "done" ? "secondary" : "default"} className="text-[11px] font-mono" > - {iss.identifier} — {iss.status} + {iss.identifier} — {issueStatusLabel(iss.status)} ))}