garage44.eu/jeroen/cartopolis

logclone: git clone https://garage44.eu/jeroen/cartopolis.git

cartopolis-agent · 2026-11-28T16:54:12Z

test(shots): --ui adminservers, the Blocked servers page with stand-in blocks
crates/cartopolis/src/systems/dev/shot_harness.rs | 16 ++++++++++++----
 docs/phone-ui-shots.toml                          |  7 +++++++
 2 files changed, 19 insertions(+), 4 deletions(-)

diff --git a/crates/cartopolis/src/systems/dev/shot_harness.rs b/crates/cartopolis/src/systems/dev/shot_harness.rs
index 02468762..0855b5dc 100644
--- a/crates/cartopolis/src/systems/dev/shot_harness.rs
+++ b/crates/cartopolis/src/systems/dev/shot_harness.rs
@@ -2439,7 +2439,7 @@ pub struct ScriptedTalk<'w, 's> {
     sign_in: ResMut<'w, crate::systems::login_screen::LoginScreen>,
     chat: ScriptedChat<'w, 's>,
     /// The Admin pages (`--ui admin` / `adminreports` / `adminreport` /
-    /// `adminaccount`).
+    /// `adminaccount` / `adminservers`).
     admin: ResMut<'w, crate::systems::admin::AdminState>,
     /// Settings ▸ Access tokens (`--ui tokens`).
     tokens: ResMut<'w, crate::systems::access_tokens::AccessTokens>,
@@ -2623,6 +2623,7 @@ const UI_ELEMENTS: &[&str] = &[
     "adminreports",
     "adminreport",
     "adminaccount",
+    "adminservers",
     "contacts",
     "requests",
     "request",
@@ -3061,6 +3062,7 @@ fn open_scripted_talk(
         || want("adminreports")
         || want("adminreport")
         || want("adminaccount")
+        || want("adminservers")
         || CALENDAR_PAGES.iter().any(|p| want(p))
         || want("share")
     {
@@ -3187,9 +3189,15 @@ fn open_scripted_talk(
     // sees it, with the Admin row and its waiting reports.
     talk.chat.chats.you = want("you") || want("youadmin");
     // The Admin pages: stand-in reports, accounts, roles and claims.
-    let admin_screen = ["adminreports", "adminreport", "adminaccount", "admin"]
-        .into_iter()
-        .find(|k| want(k));
+    let admin_screen = [
+        "adminreports",
+        "adminreport",
+        "adminaccount",
+        "adminservers",
+        "admin",
+    ]
+    .into_iter()
+    .find(|k| want(k));
     match admin_screen {
         Some(screen) => {
             crate::systems::admin::seed_demo(&mut talk.admin, screen);
diff --git a/docs/phone-ui-shots.toml b/docs/phone-ui-shots.toml
index de8e6af9..97d2f21d 100644
--- a/docs/phone-ui-shots.toml
+++ b/docs/phone-ui-shots.toml
@@ -398,6 +398,13 @@ look = [-50.0, 0.0]
 time = 12.0
 ui = ["adminaccount"]
 
+[[shot]]
+name = "adminservers"
+at = [53.2190, 6.5680, 350.0]
+look = [-50.0, 0.0]
+time = 12.0
+ui = ["adminservers"]
+
 [[shot]]
 name = "chatworld"
 at = [53.2190, 6.5680, 350.0]