VAPP-26: Server administration page: version, config view, backup, server console #22
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/server-admin-page-vapp-26"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
VAPP-26: Server administration page
Adds a site-admin Server page at
/adminthat surfaces the four admin-only control actions the console never used:serverversion,serverconfig(read-only config dump),serverBackup(back up now), andserverconsole. Frame shapes were verified against vervain-server'scrates/meshcentral-web/src/user_session.rsdispatch.Server fns (
src/server_fns/mod.rs)All four use
control::ADMIN_ONLY_TIMEOUT, so a non-admin (the server silently drops the action) gets the explanatory error quickly rather than a 10s hang.get_server_version()joins theserverversionreplytagsinto a label (empty until the server-update feature lands upstream).get_server_config()returns theserverconfigdatatext, orNonewhen the server has no config file.server_backup()acksserverBackupwith the written path asresult(not"ok"); theno-database,not-configured, and leadingerror:sentinels are mapped to inline errors instead of being treated as success.server_console(command)sendsserverconsoleand returns the replyvalue.Page (
src/components/pages/admin.rs)get_relay_stats) load in one server future, so a non-admin sees a single explanatory error for the page rather than four broken cards (the Plugins/Relays admin-only timeout precedent).Also: new
/adminroute, sidebar "Server" entry below Relays, topbar title, andPartialEqonRelayStatsso it can pass as a component prop.Acceptance criteria
/adminrenders version, config dump (read-only), backup button, and console for a site adminjust checkpasses🤖 Generated with Claude Code