feat(admin): surface the running version on the overview

Add a dedicated version tile to the admin overview showing the running
version, short build SHA, and build timestamp, alongside a best-effort
'update available' hint computed against the latest GitHub release tag. The
hint reuses the existing /api/version/check-updates proxy (server-side
safeFetch past the CSP) so no new route or OpenAPI schema is introduced; the
check is day-stale and never blocks the render. Cookie-admin only by virtue of
the admin layout.
This commit is contained in:
Marc-André Bombeck committed 2026-06-07 17:46:31 +02:00
1 parent 4be7d8ac5b
commit 7b171cc5e3
9 files changed
+173

No files matched your search

+3
View File
@@ -4,6 +4,7 @@ import { useAuth } from "@/hooks/use-auth";
import { useTranslations } from "@/lib/i18n/context";
import { AdminShell } from "@/components/admin/admin-shell";
import { SystemStatusSummary } from "@/components/admin/system-status-summary";
import { VersionTileSection } from "@/components/admin/version-tile-section";
import { RecentAuditPreview } from "@/components/admin/recent-audit-preview";
import { useAdminSettings } from "@/components/admin/_shared";
@@ -61,6 +62,8 @@ export default function AdminOverviewPage() {
</p>
</section>
<VersionTileSection />
<SystemStatusSummary />
<RecentAuditPreview />