Split the servers controller: the rail, the card, the tree and the moves into voelin-ui-vm

servers/logic.rs now has what a server does to the state and says in plain
data: which server is shown and forgotten, how it is observed (a plan:
nothing, retry, gateway, query or discover), what finding the gateways
comes to, joining a channel (a move, the password question, or connecting
into it), the members' search, the voice view and the invite link, and the
rail, the server card and the channel tree as rows and values (rail,
toolbar, tree_view, server_tint). The Slint side (servers/bind.rs) keeps
the store, the secrets and the engine commands, and writes the Bridge and
the models from what the logic returns.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
faumarayandClaude Sonnet 5.5 committed 2026-10-21 12:57:24 +03:00
1 parent 02a3b3eab0
commit 156df9d95b
8 files changed
+1385 -829

No files matched your search

-8
View File
@@ -170,14 +170,6 @@ impl App {
// What is read.
/// After anything that can change which chat is on screen (a tab, a
/// server, the page, the window's focus): the chat left is stored and
/// loses its divider; the one on screen, in the focused window, is read.
/// `true` if a tab changed ([`logic::track_reading`]).
pub(crate) fn track_reading(&mut self) -> bool {
self.transition(logic::track_reading)
}
/// The current chat came on screen or left it (`Nav.chat-shown`).
pub(crate) fn chat_shown_changed(&mut self) {
self.transition(logic::chat_shown_changed);