Move backups into the settings pages

Admin settings gains a super-admin Backups page at
/admin/settings/backups, with restore nested at .../backups/restore.
Both use SettingsShell and SettingsGroup like the other settings sub
pages instead of the retired admin hero.
This commit is contained in:
2026-10-19 17:37:03 +01:00
parent 53cf054d70
commit b390306166
30 changed files with 183 additions and 165 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
/**
* The admin sections that are live. Any other `/admin/*` path redirects to
* `AdminHomePath`. People and backups exist in code but stay closed until
* they are added back here. Logs (Activity) is super admins only.
* `AdminHomePath`. People exists in code but stays closed until it is added
* back here. Logs (Activity) is super admins only.
*/
export const AdminSections = [
"/admin/bots",
+9
View File
@@ -2,6 +2,7 @@ import {
Bell,
Bot,
CpuAi,
DatabaseBackup,
KeyRound,
Layers,
Monitor,
@@ -32,6 +33,8 @@ export type SettingsPage = {
};
export const SettingsComputersPath = "/admin/settings/computers";
export const SettingsBackupsPath = "/admin/settings/backups";
export const SettingsBackupsRestorePath = `${SettingsBackupsPath}/restore`;
/**
* The `/admin/settings/*` sub pages, listed in the rail on every settings
@@ -77,6 +80,12 @@ export const SettingsPages: SettingsPage[] = [
Icon: Variable,
super_admin_only: true,
},
{
title: "Backups",
url: SettingsBackupsPath,
Icon: DatabaseBackup,
super_admin_only: true,
},
];
export const SettingsDefaultPath = "/admin/settings/general";