feat(gui): the web half of the Connect page and the first run (P15 B3)

The Connect page gets "On the web": a switch "Allow web assistants" per company,
off by default; three lines of progress in plain words (getting an address,
getting a certificate, connected) with a spinner on the one under way; once it
works, the address for the company with Copy; the three steps for Claude on the
web that the plan stands behind (Settings, Connectors, Add custom connector,
paste, sign in and match the code); and, for ChatGPT and any other assistant,
"we haven't tested this yet" rather than steps nobody tried. What goes wrong is
in words and says whether the window and the assistants on this computer are
affected. A new address is asked for twice.

The first time a company is open and the server says no assistant was ever
connected, the Connect page opens by itself, once, remembered per installation.
The owner trait gains web_state, web_turn_on, web_turn_off and web_new_address;
an owner that does not offer them shows no switch. The tabs tests start with the
first run already done, since they are about tabs.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
swaitsandClaude Fable 5.2 committed 2026-11-21 13:40:00 -07:00
1 parent 861ed57d82
commit 13a3f1b519
7 files changed
+1026 -12

No files matched your search

+7 -6
View File
@@ -225,12 +225,13 @@ impl eframe::Storage for Prefs {
}
fn prefs(pairs: &[(&str, &str)]) -> Prefs {
Prefs(
pairs
.iter()
.map(|(k, v)| (k.to_string(), v.to_string()))
.collect(),
)
// The Connect page opens by itself once, in a window whose server says
// no assistant was ever connected (WB-app-6); these tests are about
// tabs, so that has happened already.
let mut kept: std::collections::BTreeMap<String, String> =
[("first_connect_done".to_string(), "1".to_string())].into();
kept.extend(pairs.iter().map(|(k, v)| (k.to_string(), v.to_string())));
Prefs(kept.into_iter().collect())
}
/// The app as it starts from `kept`, over `world`'s data root, its first