fix(precedents): translate practice_area slugs to Hebrew in halacha review
All checks were successful
Build & Deploy / build-and-deploy (push) Successful in 35s
All checks were successful
Build & Deploy / build-and-deploy (push) Successful in 35s
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) <noreply@anthropic.com>
This commit is contained in:
@@ -7,6 +7,7 @@ import { Button } from "@/components/ui/button";
|
|||||||
import { Badge } from "@/components/ui/badge";
|
import { Badge } from "@/components/ui/badge";
|
||||||
import { Skeleton } from "@/components/ui/skeleton";
|
import { Skeleton } from "@/components/ui/skeleton";
|
||||||
import { Textarea } from "@/components/ui/textarea";
|
import { Textarea } from "@/components/ui/textarea";
|
||||||
|
import { practiceAreaLabel } from "./practice-area";
|
||||||
import {
|
import {
|
||||||
useHalachotPending, useUpdateHalacha, type Halacha,
|
useHalachotPending, useUpdateHalacha, type Halacha,
|
||||||
} from "@/lib/api/precedent-library";
|
} from "@/lib/api/precedent-library";
|
||||||
@@ -163,7 +164,7 @@ function HalachaCard({
|
|||||||
<div className="flex items-center gap-2 flex-wrap">
|
<div className="flex items-center gap-2 flex-wrap">
|
||||||
{h.practice_areas?.map((p) => (
|
{h.practice_areas?.map((p) => (
|
||||||
<Badge key={p} variant="outline" className="text-[0.65rem] bg-navy-soft/30 text-navy">
|
<Badge key={p} variant="outline" className="text-[0.65rem] bg-navy-soft/30 text-navy">
|
||||||
{p}
|
{practiceAreaLabel(p)}
|
||||||
</Badge>
|
</Badge>
|
||||||
))}
|
))}
|
||||||
{h.subject_tags?.map((t) => (
|
{h.subject_tags?.map((t) => (
|
||||||
|
|||||||
Reference in New Issue
Block a user