Surface fetch errors and add in-flight guards in Admin and Reports tabs #42
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
AdminTab.load()(AdminTab.jsx:25-49) only handlesres.ok; a 403/500 leaves the panel at defaults with no message, indistinguishable from "no data" — the worst behavior for the tab whose job is diagnostics. Mutations (AdminTab.jsx:82-153: create home, grant/revoke membership, queue job, save settings) have no pending state, so double-clicks double-submit (two homes, duplicate membership calls).ReportsTab.jsx:19-32silently skips failed snapshot/share-link fetches the same way.Fix: track per-section error state and render an inline failure notice; add a
submittingflag per action that disables its button while in flight. Reuse one small helper across both tabs. (AdminTab's login link atAdminTab.jsx:165also hardcodes/auth/loginwhereApp.jsx:858usesauth.loginUrl— align while here.)Acceptance criteria
(Audit finding F-22, 2026-07-16 — Severity: Medium, Confidence: High)