feat(precedents): surface auto-detected incoming citations in the "ציטוטים מקושרים" panel #317
Reference in New Issue
Block a user
Delete Branch "worktree-incoming-citations-panel"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
בעיה
דף-התקדים מציג פאנל "ציטוטים מקושרים", אבל הוא רינדר רק קישורים ידניים (שרשרת-ערעור,
case_law_relations). גרף-הציטוטים האוטומטי (precedent_internal_citations) — מי שמצטט את התקדים — מעולם לא הוצג. לכן הפאנל נשאר ריק גם כשהנתון קיים: לדוגמה עע"מ 317/10 (שפר) עם 12 ציטוטים נכנסים ב-DB, אף אחד לא הוצג.פתרון (נתון/לוגיקה בלבד — פטור משער-העיצוב לפי
web-ui/AGENTS.md)ממלא את הפאנל הקיים מגרף-הציטוטים, בלי עיצוב חדש:
citation_extractor.list_citations_to_case_law— מחזיר גםprecedent_level/court/dateשל ההחלטה-המצטטת (additive; שאילתה קנונית אחת, ללא מסלול-פתרון מקביל — G2).precedent_library.get_precedent— מוסיףincoming_citations[]בצורת שורת-RelatedCase.web-ui— מרנדר את הציטוטים-הנכנסים באותו סגנון-שורה, read-only (ללא הסרת-קישור), de-duped מול קישורים ידניים. הקישור-הידני ("קשר") נשמר לצידם.אימות
get_precedent(שפר)→ 12incoming_citationsבצורה תקינה.tsc --noEmit+eslintעל הקבצים שהשתנו — נקי.Invariants
relink_orphan_citationsהקיים בקליטה./api/precedent-library/{id}שכבר מוחזרת כ-dict; ה-type ב-frontend hand-written, אין צורך ב-api:types).🤖 Generated with Claude Code