feat: fix wizard step-skip bug + extend case edit with all fields + Paperclip title sync
All checks were successful
Build & Deploy / build-and-deploy (push) Successful in 1m38s
All checks were successful
Build & Deploy / build-and-deploy (push) Successful in 1m38s
- Fix keyboard navigation bug: React was reusing the submit button DOM element when transitioning "הבא" → "צור תיק", retaining focus and causing Enter to auto-submit step 3. Added key props to force element replacement. - CaseEditDialog now covers all wizard fields: appellants, respondents, property_address, permit_number (in addition to existing title, subject, hearing_date, expected_outcome, notes). - When case title changes, Paperclip project name is updated in background via new update_project_name() in paperclip_client.py. - Extended CaseUpdateRequest, case_update MCP tool, and caseUpdateSchema to carry the new fields end-to-end. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -231,6 +231,21 @@ async def restore_project(case_number: str) -> dict:
|
||||
await conn.close()
|
||||
|
||||
|
||||
async def update_project_name(case_number: str, new_title: str) -> None:
|
||||
"""Update the Paperclip project name when a case title changes."""
|
||||
project_name = f"ערר {case_number} — {new_title}"[:200]
|
||||
conn = await asyncpg.connect(PAPERCLIP_DB_URL)
|
||||
try:
|
||||
await conn.execute(
|
||||
"UPDATE projects SET name = $1, updated_at = now() WHERE name LIKE $2",
|
||||
project_name, f"%{case_number}%",
|
||||
)
|
||||
except Exception:
|
||||
logger.warning("Failed to update Paperclip project name for case %s", case_number)
|
||||
finally:
|
||||
await conn.close()
|
||||
|
||||
|
||||
async def _ensure_default_workspace(
|
||||
conn: asyncpg.Connection,
|
||||
project_id: str,
|
||||
|
||||
Reference in New Issue
Block a user