voelin-gpui: the store at start, the shell's actions on the root state, quiet loops
The window opens the client's store as the Slint front end's run() does (backend.rs): the database in the platform's data directory (VOELIN_DATA_DIR moves it), the settings service on it with the UI's keys, the secrets (the OS keyring, memory when it refuses), the default identity (made and kept when the store has none), the chat history and the settings handed to the engine. The state starts from the store's bookmarks, the settings' theme and text size (a development switch still wins), and the sample servers of VOELIN_DEMO_UI through the app's own events with nothing sent to the engine or kept. AppState gains the callbacks of bind/servers.rs that the shell has: select a server (and observe it through its gateway or query login, the gateway looked up on the engine's runtime and handed back through Later), connect and disconnect voice, mute the microphone and the sound, hold to talk, copy an invite, and add, edit, save-and-connect and remove a bookmark, all through voelin-ui-vm's logic; perform() carries out an Update as far as this front end has the parts (commands, status, what to keep, the theme settings). It keeps the window's place in ui.window at the tick and at close, and opens the window where it was left if a screen still shows its corner. The engine-event task takes what is queued (BATCH, 64) in one update with one notification and yields to GPUI's executor between steps; the tick counts and notifies nobody, since nothing the shell shows moves with the clock. Tests: one per behaviour on GPUI's test platform (the store's servers, select, save, edit, remove, connect, the other commands, observe, the sample servers, the theme settings, the window's place, the burst and the quiet tick), and a connect through a real engine with no connector, which answers that none serves the address. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
bc390f433c
commit
e66238847d
7 files changed
+1723
-147
No files matched your search
Generated
+1
@@ -12587,6 +12587,7 @@ dependencies = [
|
||||
"tokio",
|
||||
"tracing",
|
||||
"tracing-subscriber",
|
||||
"tsclientlib",
|
||||
"voelin-core",
|
||||
"voelin-platform",
|
||||
"voelin-store",
|
||||
|
||||
Reference in new issue
Block a user