mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 04:50:59 +00:00
When `/api/admin/status` 500s (rolling deploy, transient DB blip), the section's error state previously rendered a static "refresh the page" message — forcing a full reload + cookie revalidation just to recover from a 5-second hiccup. Pairing the alert with an inline Retry button (`refetch()` from React Query) lets the admin recover in-place without losing scroll position or any other open admin tab. The button is `min-h-9` desktop-tight (this is admin, not mobile- critical), shows a spinner while `isFetching`, and disables itself during the request. The German + English message strings drop the "refresh the page" tail since the button now does that work.