Merge main (ad20979) into phase4/session-seam

Main brings the merge of phase5/ui-vm: the toolkit-free crates/voelin-ui-vm
crate and the logic/bind split of crates/voelin-ui. Conflicts, and what each
resolution keeps:

- crates/voelin-ui/src/settings_pages.rs: main deleted it (it is
  settings_pages/{mod,bind}.rs and voelin-ui-vm's settings_pages/logic.rs
  now), this branch had changed its voelin_core::identity paths. Deleted; the
  paths are voelin_core::ts::identity:: in bind.rs and in logic.rs.
- crates/voelin-ui/src/identities.rs: the module comment names
  voelin_core::ts::identity::import_new (this branch) and settings_pages/
  (main).
- docs/architecture.md: the voelin-core row of this branch with the
  voelin-ui-vm and voelin-ui rows of main.

Not conflicts, but needed to compile: voelin-ui-vm named the in-tree
voelin-model by path, which this branch moved to the protocol repository
(workspace dependency), and imported voelin_core::identity::Found, which is
voelin_core::ts::identity::Found. Cargo.lock merged without a conflict and
resolves with --locked; THIRD_PARTY_NOTICES.md is up to date
(scripts/notices.sh --check).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
faumarayandClaude Sonnet 5.5 committed 2026-10-24 10:32:05 +03:00
commit e13d401b9c
73 files changed
+11836 -5281

No files matched your search

+1 -24
View File
@@ -2,23 +2,13 @@
//! `Store::default_identity`), chosen under Settings → Profiles, and the
//! import of the official clients' identities on start
//! (`voelin_core::ts::identity::import_new`, app.rs). The rest of the Profiles
//! page is in `settings_pages.rs`.
//! page is in `settings_pages/`.
use tracing::warn;
use voelin_core::settings::IDENTITY_IMPORT;
use voelin_store::IdentityOrigin;
use crate::app::App;
/// Where an identity came from, as Profiles says it.
pub(crate) fn origin_label(origin: IdentityOrigin) -> &'static str {
match origin {
IdentityOrigin::Created => "Made in Voelin",
IdentityOrigin::Imported => "Imported",
IdentityOrigin::User => "Chosen by you",
}
}
impl App {
/// The user's choice of the identity servers see us as, from the next
/// connection on; no import replaces it.
@@ -51,16 +41,3 @@ impl App {
self.refresh_identities();
}
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn rows_say_where_an_identity_came_from() {
assert_eq!(origin_label(IdentityOrigin::Created), "Made in Voelin");
assert_eq!(origin_label(IdentityOrigin::Imported), "Imported");
// Made by the app, then chosen: an import never replaces it.
assert_eq!(origin_label(IdentityOrigin::User), "Chosen by you");
}
}