feat(precedent-library): add district and chair_name to edit form
All checks were successful
Build & Deploy / build-and-deploy (push) Successful in 3m11s

Fields existed in DB and Precedent type but were missing from:
- PrecedentUpdateRequest (backend model)
- update_case_law allowed set (db layer)
- PrecedentPatch (frontend type)
- precedent-edit-sheet form state, inputs, and patch payload

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-19 12:16:43 +00:00
parent 1da2a9a2cb
commit 1496e520fd
4 changed files with 25 additions and 3 deletions

View File

@@ -1985,7 +1985,7 @@ async def update_case_law(case_law_id: UUID, **fields) -> dict | None:
allowed = {
"case_number", "case_name", "court", "date", "practice_area", "appeal_subtype",
"subject_tags", "summary", "headnote", "key_quote", "source_url",
"source_type", "precedent_level", "is_binding",
"source_type", "precedent_level", "is_binding", "district", "chair_name",
}
updates = {k: v for k, v in fields.items() if k in allowed}
if not updates: