feat: highlight source element when navigating from tables to edit page

Clicking the pencil icon in revenus/depenses tables now passes query
params to identify the source row. The edit page auto-expands the
matching section, scrolls to the element, and briefly highlights it
with a blue ring that fades after 2 seconds.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-13 06:16:29 +01:00
parent 04db85c688
commit 5c9a8c9b5e
7 changed files with 145 additions and 13 deletions

View File

@@ -99,6 +99,7 @@ class RevenuDetailResponse(BaseModel):
"""Detail d'un revenu."""
id: int
document_id: int
document_date: str
document_reference: str | None
immeuble_code: str
@@ -442,6 +443,7 @@ async def get_revenus_details(
results.append(
RevenuDetailResponse(
id=rev.id,
document_id=rev.document_id,
document_date=str(row.document_date),
document_reference=row.document_reference,
immeuble_code=row.immeuble_code,