mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-15 06:52:04 +00:00
ux(about): fold About card into the Admin Console
The About surface (version + license + source links + update check) used to live as its own Settings section and the user-card dropdown exposed it from both desktop and mobile. The three cards collectively get opened once or twice a year, mostly by the operator confirming the running version against the latest release. Move the surface to `/admin/about` and drop the dropdown link from both the desktop sidebar and the mobile top-bar. The public-facing landing at `/about` (credits + MaxMind attribution) stays untouched since it's reachable without a session. The legacy `/settings/about` route still resolves so external bookmarks don't break, but is no longer surfaced in any nav. The existing `<AboutSection>` is reused as-is — no markup changes, the component owns its own heading so the admin renderer mounts it without the SectionFrame wrapper.
This commit is contained in:
1 parent
d2bad6943c
commit
23cf9a4a78
11 files changed
+49
-22
No files matched your search
@@ -21,6 +21,7 @@ import {
|
||||
Bell,
|
||||
Database,
|
||||
FileText,
|
||||
Info,
|
||||
KeyRound,
|
||||
Inbox,
|
||||
Plug,
|
||||
@@ -125,6 +126,12 @@ export const ADMIN_SECTIONS: readonly AdminSection[] = [
|
||||
titleKey: "admin.section.danger-zone.title",
|
||||
icon: ShieldAlert,
|
||||
},
|
||||
// v1.4.36 W4e — About / version / update check folded into Admin.
|
||||
{
|
||||
slug: "about",
|
||||
titleKey: "admin.section.about.title",
|
||||
icon: Info,
|
||||
},
|
||||
] as const;
|
||||
|
||||
export interface AdminShellProps {
|
||||
|
||||
@@ -29,6 +29,10 @@ export const ADMIN_SECTION_SLUGS = [
|
||||
"app-logs",
|
||||
"backups",
|
||||
"danger-zone",
|
||||
// v1.4.36 W4e — About / version / update check folded into Admin
|
||||
// Console. Lives at /admin/about; the legacy /settings/about route
|
||||
// is unlinked from the user-card dropdown.
|
||||
"about",
|
||||
] as const;
|
||||
|
||||
export type AdminSectionSlug = (typeof ADMIN_SECTION_SLUGS)[number];
|
||||
|
||||
Reference in new issue
Block a user