You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Site Audit: deleting an audit leaves the trend card and quota counter stale #669
handleDelete on the hub only updates the history list optimistically (setHistory). The trend card and quota counter are populated by a separate effect keyed on [activeBrandId, refreshKey], which delete never touches. So after deleting the most recent primary-domain audit, the big score, its delta, the chart, and the category bars all keep showing the deleted audit — the list and the card sit on screen contradicting each other until a full page refresh. The quota counter goes stale the same way.
Distinct from #614 (which is about the missing delete confirmation).
Fix
After a successful deleteAudit, trigger the existing refetch() so trend and quota reflect reality (keep the optimistic list update for responsiveness).
Acceptance criteria
Deleting the newest audit updates the score card, chart, and delta without a page reload.
A failed delete still restores the list (current behavior preserved).
Activity
BharadwajKanneveti commentedon Aug 7, 2026
Hi @gkhngyk I will work on this issue