feat(arguments): פופאפ פרופוזיציות גולמיות בלחיצה על "מסתמך על N"

הקישור טיעון↔פרופוזיציות כבר נשמר ב-DB (legal_argument_propositions),
אך ה-UI הציג רק את המספר. מעשיר את get_legal_arguments באותו round-trip
(JOIN ל-claims) להחזיר supporting_propositions = {id, text, source_document},
ועוטף את שורת "מסתמך על N פרופוזיציות" ב-Popover שמציג את הטענות הגולמיות
verbatim עם מקור. שקיפות ועקיבוּת מהטיעון המאוגד חזרה לטענות-המקור.

- supporting_claims נשאר id-only (תאימות לאחור: מונה, צרכני MCP)
- supporting_propositions שדה חדש אופציונלי; fallback לטקסט סטטי כשחסר
- אין מסלול מקביל (G2) — העשרה של אותו endpoint; נרמול-במקור (G1)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-09 06:51:09 +00:00
parent c0af8c7cda
commit d4d2ab4d68
3 changed files with 80 additions and 11 deletions

View File

@@ -22,6 +22,12 @@ export type LegalArgumentPriority =
| "procedural"
| "relief";
export type SupportingProposition = {
id: string;
text: string;
source_document: string | null;
};
export type LegalArgument = {
id: string;
case_id: string;
@@ -35,6 +41,8 @@ export type LegalArgument = {
created_at?: string;
updated_at?: string;
supporting_claims: string[];
/** Raw extracted propositions (id + full text) backing this argument. */
supporting_propositions?: SupportingProposition[];
};
export type LegalArgumentsResponse = {