git clone https://garage44.eu/jeroen/cartopolis.gitcartopolis-agent · 2026-11-28T18:15:52Z
test(shots): --ui addcontactown, the Add screen signed in to a server of one's own
crates/cartopolis/src/systems/dev/shot_harness.rs | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/crates/cartopolis/src/systems/dev/shot_harness.rs b/crates/cartopolis/src/systems/dev/shot_harness.rs
index 0855b5dc..5e933856 100644
--- a/crates/cartopolis/src/systems/dev/shot_harness.rs
+++ b/crates/cartopolis/src/systems/dev/shot_harness.rs
@@ -2628,6 +2628,8 @@ const UI_ELEMENTS: &[&str] = &[
"requests",
"request",
"addcontact",
+ // The same, signed in to a server of one's own (`rug.example`).
+ "addcontactown",
"privacy",
"personcard",
"friends",
@@ -3227,7 +3229,7 @@ fn open_scripted_talk(
Some(None)
} else if want("privacy") {
Some(Some(Sub::Privacy))
- } else if want("addcontact") {
+ } else if want("addcontact") || want("addcontactown") {
Some(Some(Sub::Add))
} else if want("request") {
Some(Some(Sub::Request("jeroen".into())))
@@ -3246,6 +3248,8 @@ fn open_scripted_talk(
"list",
);
crate::systems::contacts::seed_demo(&mut talk.chat.contacts, &mut talk.chat.state);
+ // Signed in to a server of one's own, whose name the link carries.
+ talk.chat.contacts.server = want("addcontactown").then(|| "rug.example".into());
talk.chat.chats.open = None;
if sub.is_none() {
*right_panel = crate::resources::RightPanel::None;