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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user