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 detail: Re-run has no pending state — a double click starts two audits and burns quota twice #667
The detail page's re-run button calls handleRefresh which awaits runAudit and navigates — but sets no pending state, and the button has no disabled. The server responds 202 immediately and runs the audit in the background, and quota is written per completed audit. So on a slow network, a user who clicks twice (because nothing visibly happened) starts two audits and spends two units of their monthly Site Audit quota.
The hub page already guards the identical operation with a running state and disabled={running || quotaExhausted}.
Add a rerunning state: set it before runAudit, bind disabled={rerunning}, and swap the icon for a spinning Loader2 while pending — the hub pattern verbatim.
Activity
BharadwajKanneveti commentedon Aug 7, 2026
hi @gkhngyk I will work on this issue