From b9cdcf980d3917709bd83a5632b2eaa3d048b807 Mon Sep 17 00:00:00 2001 From: Chaim Date: Sun, 3 May 2026 19:13:48 +0000 Subject: [PATCH] fix(precedents): translate practice_area slugs to Hebrew in halacha review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The halacha-review panel was rendering raw slugs (`betterment_levy`, `rishuy_uvniya`, `compensation_197`) as English badges. Pipe them through the existing `practiceAreaLabel()` helper so the chair sees "היטל השבחה", "רישוי ובניה", "פיצויים לפי ס' 197". All other UI sites (library-list-panel, library-stats-panel, precedent-edit-sheet) were already using the helper — this was the sole place left rendering the raw slug. Co-Authored-By: Claude Opus 4.7 (1M context) --- web-ui/src/components/precedents/halacha-review-panel.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web-ui/src/components/precedents/halacha-review-panel.tsx b/web-ui/src/components/precedents/halacha-review-panel.tsx index 66a001a..52e8f0f 100644 --- a/web-ui/src/components/precedents/halacha-review-panel.tsx +++ b/web-ui/src/components/precedents/halacha-review-panel.tsx @@ -7,6 +7,7 @@ import { Button } from "@/components/ui/button"; import { Badge } from "@/components/ui/badge"; import { Skeleton } from "@/components/ui/skeleton"; import { Textarea } from "@/components/ui/textarea"; +import { practiceAreaLabel } from "./practice-area"; import { useHalachotPending, useUpdateHalacha, type Halacha, } from "@/lib/api/precedent-library"; @@ -163,7 +164,7 @@ function HalachaCard({
{h.practice_areas?.map((p) => ( - {p} + {practiceAreaLabel(p)} ))} {h.subject_tags?.map((t) => (