Add version update check feature for admin users

Checks current version against latest GitHub release every 6 hours via
cron job, caches result in appSettings, and surfaces updates through a
toast notification (once per browser session) and an animated badge in
the settings footer. Includes an admin toggle to enable/disable checks
(enabled by default). Also renames ServerSection to RegistrationSection
now that update checks are in their own card.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-05 10:36:05 -05:00
co-authored by Claude Opus 4.6
parent cd63d4f92a
commit a5791b150f
12 changed files with 277 additions and 3 deletions
+7
View File
@@ -0,0 +1,7 @@
import { atomWithStorage, createJSONStorage } from "jotai/utils";
export const updateToastShownAtom = atomWithStorage<boolean>(
"sofa:update-toast-shown",
false,
createJSONStorage(() => sessionStorage),
);