fix(#77 frontend): separate מספר-תיק field on committee upload + editable case_number #41

Merged
chaim merged 1 commits from fix/77-precedent-identity-frontend into main 2026-06-02 12:17:35 +00:00
Owner

חלק 2/2 של #77 (frontend), משלים את ה-backend ב-PR #40.

שינויים

  • טופס העלאה: שדה חדש "מספר תיק (מזהה ייחודי)" (חובה) להחלטות ועדה → נשלח כ-case_number; שדה "מראה המקום" נשלח עכשיו כ-citation נפרד (→ citation_formatted) במקום בתור case_number.
  • טופס עריכה: בלוק מספר-התיק עכשיו שדה קלט ניתן-לעריכה (היה קריאה-בלבד). הלכות/chunks מצביעים ל-case_law_id (UUID), אז שינוי case_number בטוח.
  • precedent-library.ts: InternalDecisionUploadInput += citation; PrecedentPatch += case_number.
  • types.ts: חודש (api:types) — PrecedentUpdateRequest כולל עכשיו case_number.

נבדק: npm run build עובר.

🤖 Generated with Claude Code

חלק 2/2 של #77 (frontend), משלים את ה-backend ב-PR #40. ## שינויים - **טופס העלאה**: שדה חדש "מספר תיק (מזהה ייחודי)" (חובה) להחלטות ועדה → נשלח כ-`case_number`; שדה "מראה המקום" נשלח עכשיו כ-`citation` נפרד (→ `citation_formatted`) במקום בתור case_number. - **טופס עריכה**: בלוק מספר-התיק עכשיו שדה קלט ניתן-לעריכה (היה קריאה-בלבד). הלכות/chunks מצביעים ל-`case_law_id` (UUID), אז שינוי `case_number` בטוח. - **precedent-library.ts**: `InternalDecisionUploadInput` += `citation`; `PrecedentPatch` += `case_number`. - **types.ts**: חודש (`api:types`) — `PrecedentUpdateRequest` כולל עכשיו `case_number`. נבדק: `npm run build` עובר. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
chaim added 1 commit 2026-06-02 12:17:31 +00:00
Pairs with the backend PR. Stops the citation (מראה-מקום) from being stored
as the identifier, and lets a wrong identifier be corrected after the fact.

- upload sheet: new required 'מספר תיק (מזהה ייחודי)' field for committee
  decisions → sent as case_number; the citation field is now sent as the
  separate citation (→ citation_formatted) instead of as case_number.
- edit sheet: the case_number block is now an editable input (was read-only).
  Halachot/chunks key off case_law_id (UUID), so renaming case_number is safe.
- precedent-library.ts: InternalDecisionUploadInput += citation; PrecedentPatch
  += case_number.
- types.ts: regenerated (api:types) — PrecedentUpdateRequest now carries
  case_number.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
chaim merged commit 901ec9f869 into main 2026-06-02 12:17:35 +00:00
chaim deleted branch fix/77-precedent-identity-frontend 2026-06-02 12:17:36 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ezer-mishpati/legal-ai#41