From f94201c577606a6d8342c3af2624e6743802f3bf Mon Sep 17 00:00:00 2001 From: Chaim Date: Sun, 10 May 2026 09:01:26 +0000 Subject: [PATCH] feat(precedents): make citation link to detail page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Both CourtRow and CommitteeRow citation cells are now Next.js Links → /precedents/{id}, letting users navigate directly from the list. Co-Authored-By: Claude Sonnet 4.6 --- web-ui/src/components/precedents/library-list-panel.tsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/web-ui/src/components/precedents/library-list-panel.tsx b/web-ui/src/components/precedents/library-list-panel.tsx index d87c3e1..38eaea8 100644 --- a/web-ui/src/components/precedents/library-list-panel.tsx +++ b/web-ui/src/components/precedents/library-list-panel.tsx @@ -1,6 +1,7 @@ "use client"; import { useState } from "react"; +import Link from "next/link"; import { Trash2, Plus, Pencil, Wand2 } from "lucide-react"; import { toast } from "sonner"; import { @@ -151,7 +152,9 @@ function CourtRow({ p, onEdit }: { p: Precedent; onEdit: (id: string) => void }) className="font-semibold text-navy text-right whitespace-normal break-words min-w-[280px] max-w-[420px] py-3" dir="rtl" > - {cleanCitation(p.case_number)} + + {cleanCitation(p.case_number)} +
{cleanCitation(p.case_name)}
@@ -233,7 +236,9 @@ function CommitteeRow({ p, onEdit }: { p: Precedent; onEdit: (id: string) => voi className="font-semibold text-navy text-right whitespace-normal break-words min-w-[200px] max-w-[320px] py-3" dir="rtl" > - {cleanCitation(p.case_number)} + + {cleanCitation(p.case_number)} +
{cleanCitation(p.case_name)}