diff --git a/Home.md b/Home.md index b58f23d..f7d12c0 100644 --- a/Home.md +++ b/Home.md @@ -154,7 +154,7 @@ Security issues: see [SECURITY.md](https://git.faumaray.com/Voelin/VoelinClient/ ## Documentation pages -Mirror of `docs/` on `main` (`cc7c45b`). The repository files are the source; this wiki is regenerated by `.claude/wiki-sync.js`. +Mirror of `docs/` on `main` (`0d44148`). The repository files are the source; this wiki is regenerated by `.claude/wiki-sync.js`. - [android.md](android): Android app - [architecture.md](architecture): Architecture diff --git a/android.md b/android.md index 66e736a..dcbbc8f 100644 --- a/android.md +++ b/android.md @@ -237,4 +237,4 @@ the source then says why). --- -*Mirrored from [`docs/android.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/cc7c45b371cac39b4e23c9eb65c8cf384652299f/docs/android.md) at `cc7c45b` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* +*Mirrored from [`docs/android.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/0d44148ef5f76d01f21b115a5a9656439cadd160/docs/android.md) at `0d44148` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* diff --git a/architecture.md b/architecture.md index eabfd7a..385edb2 100644 --- a/architecture.md +++ b/architecture.md @@ -754,4 +754,4 @@ are defined in the core, which reads them on every use. --- -*Mirrored from [`docs/architecture.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/cc7c45b371cac39b4e23c9eb65c8cf384652299f/docs/architecture.md) at `cc7c45b` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* +*Mirrored from [`docs/architecture.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/0d44148ef5f76d01f21b115a5a9656439cadd160/docs/architecture.md) at `0d44148` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* diff --git a/audio.md b/audio.md index 01f4e56..e02ef1f 100644 --- a/audio.md +++ b/audio.md @@ -135,4 +135,4 @@ of it reappearing). The audio thread reports these changes as session errors. --- -*Mirrored from [`docs/audio.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/cc7c45b371cac39b4e23c9eb65c8cf384652299f/docs/audio.md) at `cc7c45b` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* +*Mirrored from [`docs/audio.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/0d44148ef5f76d01f21b115a5a9656439cadd160/docs/audio.md) at `0d44148` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* diff --git a/building.md b/building.md index c28f8e6..0622650 100644 --- a/building.md +++ b/building.md @@ -229,4 +229,4 @@ voelin-model = { path = "../VoelinProtocol/crates/voelin-model" } --- -*Mirrored from [`docs/building.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/cc7c45b371cac39b4e23c9eb65c8cf384652299f/docs/building.md) at `cc7c45b` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* +*Mirrored from [`docs/building.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/0d44148ef5f76d01f21b115a5a9656439cadd160/docs/building.md) at `0d44148` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* diff --git a/ci.md b/ci.md index 051323a..b51d37b 100644 --- a/ci.md +++ b/ci.md @@ -357,4 +357,4 @@ runner; local shell/API fixtures do not establish deployment acceptance. --- -*Mirrored from [`docs/ci.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/cc7c45b371cac39b4e23c9eb65c8cf384652299f/docs/ci.md) at `cc7c45b` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* +*Mirrored from [`docs/ci.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/0d44148ef5f76d01f21b115a5a9656439cadd160/docs/ci.md) at `0d44148` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* diff --git a/design%2Fgpui-spikes.md b/design%2Fgpui-spikes.md index 69d391e..2b2e153 100644 --- a/design%2Fgpui-spikes.md +++ b/design%2Fgpui-spikes.md @@ -37,13 +37,23 @@ the slices that meet them are in docs/ui.md, "For the next slices". Item 5, the desktop shell, is slice 1 of the step's list and landed on `phase5/gpui-shell` (2026-10-27): the store at start (the client's database, the settings with the UI's keys, the secrets, the default identity), the server rail, the sidebar, -the top bar and the main area as entities that draw when what they show -changed, the eleven callbacks of `bind/servers.rs` as actions through +the top bar and the main area as entities that tell the window when what they +show changed (the window then draws every part: gpui-pre 0.3.10 renders every +uncached child view on every frame), the eleven callbacks of `bind/servers.rs` as actions through `voelin-ui-vm`'s logic and the engine's commands, the window's size and position kept in `ui.window`, the engine-event task in steps and a tick that draws nothing. What it shows, what it costs idle and what it leaves to the slices after it are in docs/ui.md, "The desktop shell"; the next slice is the -channel tree and the members. +channel tree and the members. The shell was reviewed and gated the same day (an +Opus gate: no blocker and no major, six minors), and the minors are closed on +`phase5/gpui-shell-minors`: the records that said the parts draw only when what +they show changed are corrected (a part tells the window, and the window draws +every part, as gpui-pre 0.3.10 renders every uncached child view on every +frame), a window left maximized is maximized again on X11, the pictures are +1440 by 960, the connect test sends no DNS query, the sequences both front ends +ran are shared in `voelin-ui-vm`, and the `ui.window` row is in the settings +table; the gate's four risks of the shell are in docs/ui.md, "For the next +slices". | Spike | The plan's no-go | Seen (software rendering, see Setup) | Verdict | |---|---|---|---| @@ -723,4 +733,4 @@ it now does not. --- -*Mirrored from [`docs/design/gpui-spikes.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/cc7c45b371cac39b4e23c9eb65c8cf384652299f/docs/design/gpui-spikes.md) at `cc7c45b` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* +*Mirrored from [`docs/design/gpui-spikes.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/0d44148ef5f76d01f21b115a5a9656439cadd160/docs/design/gpui-spikes.md) at `0d44148` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* diff --git a/gateway-admin.md b/gateway-admin.md index 3ce9691..361b511 100644 --- a/gateway-admin.md +++ b/gateway-admin.md @@ -456,4 +456,4 @@ with what they store locally. --- -*Mirrored from [`docs/gateway-admin.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/cc7c45b371cac39b4e23c9eb65c8cf384652299f/docs/gateway-admin.md) at `cc7c45b` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* +*Mirrored from [`docs/gateway-admin.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/0d44148ef5f76d01f21b115a5a9656439cadd160/docs/gateway-admin.md) at `0d44148` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* diff --git a/gateway-protocol.md b/gateway-protocol.md index ce278cf..b856293 100644 --- a/gateway-protocol.md +++ b/gateway-protocol.md @@ -194,4 +194,4 @@ for `react`, `pin`, `create_topic`, `create_event`, `rsvp`, `stream`, --- -*Mirrored from [`docs/gateway-protocol.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/cc7c45b371cac39b4e23c9eb65c8cf384652299f/docs/gateway-protocol.md) at `cc7c45b` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* +*Mirrored from [`docs/gateway-protocol.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/0d44148ef5f76d01f21b115a5a9656439cadd160/docs/gateway-protocol.md) at `0d44148` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* diff --git a/i18n.md b/i18n.md index add1d7d..d3518c4 100644 --- a/i18n.md +++ b/i18n.md @@ -141,4 +141,4 @@ therefore the translations. Texts outside Slint need their own mechanism: --- -*Mirrored from [`docs/i18n.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/cc7c45b371cac39b4e23c9eb65c8cf384652299f/docs/i18n.md) at `cc7c45b` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* +*Mirrored from [`docs/i18n.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/0d44148ef5f76d01f21b115a5a9656439cadd160/docs/i18n.md) at `0d44148` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* diff --git a/identity.md b/identity.md index 41ccb74..421f0c6 100644 --- a/identity.md +++ b/identity.md @@ -253,4 +253,4 @@ the repository. Every fixture in the tests is generated by --- -*Mirrored from [`docs/identity.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/cc7c45b371cac39b4e23c9eb65c8cf384652299f/docs/identity.md) at `cc7c45b` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* +*Mirrored from [`docs/identity.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/0d44148ef5f76d01f21b115a5a9656439cadd160/docs/identity.md) at `0d44148` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* diff --git a/media.md b/media.md index b71a68a..88c4935 100644 --- a/media.md +++ b/media.md @@ -1460,4 +1460,4 @@ has not run on Windows yet. --- -*Mirrored from [`docs/media.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/cc7c45b371cac39b4e23c9eb65c8cf384652299f/docs/media.md) at `cc7c45b` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* +*Mirrored from [`docs/media.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/0d44148ef5f76d01f21b115a5a9656439cadd160/docs/media.md) at `0d44148` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* diff --git a/protocol-notes%2Fts6-streaming.md b/protocol-notes%2Fts6-streaming.md index 36430c9..fc42929 100644 --- a/protocol-notes%2Fts6-streaming.md +++ b/protocol-notes%2Fts6-streaming.md @@ -426,4 +426,4 @@ itself with these decoders is still to be confirmed. --- -*Mirrored from [`docs/protocol-notes/ts6-streaming.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/cc7c45b371cac39b4e23c9eb65c8cf384652299f/docs/protocol-notes/ts6-streaming.md) at `cc7c45b` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* +*Mirrored from [`docs/protocol-notes/ts6-streaming.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/0d44148ef5f76d01f21b115a5a9656439cadd160/docs/protocol-notes/ts6-streaming.md) at `0d44148` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* diff --git a/release.md b/release.md index 69a00bc..ee42384 100644 --- a/release.md +++ b/release.md @@ -238,4 +238,4 @@ After: --- -*Mirrored from [`docs/release.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/cc7c45b371cac39b4e23c9eb65c8cf384652299f/docs/release.md) at `cc7c45b` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* +*Mirrored from [`docs/release.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/0d44148ef5f76d01f21b115a5a9656439cadd160/docs/release.md) at `0d44148` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* diff --git a/research%2Fmyteamspeak.md b/research%2Fmyteamspeak.md index 001ebfe..ad2e312 100644 --- a/research%2Fmyteamspeak.md +++ b/research%2Fmyteamspeak.md @@ -423,4 +423,4 @@ Voelin does needs them. --- -*Mirrored from [`docs/research/myteamspeak.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/cc7c45b371cac39b4e23c9eb65c8cf384652299f/docs/research/myteamspeak.md) at `cc7c45b` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* +*Mirrored from [`docs/research/myteamspeak.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/0d44148ef5f76d01f21b115a5a9656439cadd160/docs/research/myteamspeak.md) at `0d44148` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* diff --git a/research%2Fstream-fps.md b/research%2Fstream-fps.md index a7f25a4..e84aa2a 100644 --- a/research%2Fstream-fps.md +++ b/research%2Fstream-fps.md @@ -82,4 +82,4 @@ repository. --- -*Mirrored from [`docs/research/stream-fps.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/cc7c45b371cac39b4e23c9eb65c8cf384652299f/docs/research/stream-fps.md) at `cc7c45b` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* +*Mirrored from [`docs/research/stream-fps.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/0d44148ef5f76d01f21b115a5a9656439cadd160/docs/research/stream-fps.md) at `0d44148` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* diff --git a/research%2Fts6-late-join.md b/research%2Fts6-late-join.md index 7e88c60..35a19d4 100644 --- a/research%2Fts6-late-join.md +++ b/research%2Fts6-late-join.md @@ -239,4 +239,4 @@ between Voelin clients. --- -*Mirrored from [`docs/research/ts6-late-join.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/cc7c45b371cac39b4e23c9eb65c8cf384652299f/docs/research/ts6-late-join.md) at `cc7c45b` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* +*Mirrored from [`docs/research/ts6-late-join.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/0d44148ef5f76d01f21b115a5a9656439cadd160/docs/research/ts6-late-join.md) at `0d44148` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* diff --git a/research%2Fui-review.md b/research%2Fui-review.md index 4d2bda4..83aaf0b 100644 --- a/research%2Fui-review.md +++ b/research%2Fui-review.md @@ -349,4 +349,4 @@ Discord: --- -*Mirrored from [`docs/research/ui-review.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/cc7c45b371cac39b4e23c9eb65c8cf384652299f/docs/research/ui-review.md) at `cc7c45b` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* +*Mirrored from [`docs/research/ui-review.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/0d44148ef5f76d01f21b115a5a9656439cadd160/docs/research/ui-review.md) at `0d44148` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* diff --git a/session-seam.md b/session-seam.md index f451764..67bb2d0 100644 --- a/session-seam.md +++ b/session-seam.md @@ -2042,4 +2042,4 @@ fenix of `spikes/gpui/shell.sh`), on a machine at a load average of about 40. --- -*Mirrored from [`docs/session-seam.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/cc7c45b371cac39b4e23c9eb65c8cf384652299f/docs/session-seam.md) at `cc7c45b` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* +*Mirrored from [`docs/session-seam.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/0d44148ef5f76d01f21b115a5a9656439cadd160/docs/session-seam.md) at `0d44148` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* diff --git a/studio.md b/studio.md index 149aae3..d9b95b0 100644 --- a/studio.md +++ b/studio.md @@ -376,4 +376,4 @@ two threads) takes about 3 ms at its own rate (15 fps by default). --- -*Mirrored from [`docs/studio.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/cc7c45b371cac39b4e23c9eb65c8cf384652299f/docs/studio.md) at `cc7c45b` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* +*Mirrored from [`docs/studio.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/0d44148ef5f76d01f21b115a5a9656439cadd160/docs/studio.md) at `0d44148` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* diff --git a/testing%2Fload.md b/testing%2Fload.md index a614b84..b748800 100644 --- a/testing%2Fload.md +++ b/testing%2Fload.md @@ -262,4 +262,4 @@ What the smoke still does not do reliably, and was not changed for: --- -*Mirrored from [`docs/testing/load.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/cc7c45b371cac39b4e23c9eb65c8cf384652299f/docs/testing/load.md) at `cc7c45b` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* +*Mirrored from [`docs/testing/load.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/0d44148ef5f76d01f21b115a5a9656439cadd160/docs/testing/load.md) at `0d44148` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* diff --git a/testing%2Fmanual-matrix.md b/testing%2Fmanual-matrix.md index 891503c..d1e361a 100644 --- a/testing%2Fmanual-matrix.md +++ b/testing%2Fmanual-matrix.md @@ -224,4 +224,4 @@ noted. --- -*Mirrored from [`docs/testing/manual-matrix.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/cc7c45b371cac39b4e23c9eb65c8cf384652299f/docs/testing/manual-matrix.md) at `cc7c45b` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* +*Mirrored from [`docs/testing/manual-matrix.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/0d44148ef5f76d01f21b115a5a9656439cadd160/docs/testing/manual-matrix.md) at `0d44148` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* diff --git a/ui.md b/ui.md index 561b604..f2ac641 100644 --- a/ui.md +++ b/ui.md @@ -38,7 +38,10 @@ crates/voelin-ui-vm/ view models and state, no UI toolkit viewer's rows and texts servers/logic.rs which server is shown and how it is observed, joining a channel; the rail, the server card and the channel tree as plain data - settings.rs the UI's settings keys, the audio form + servers/sequence.rs what both front ends do for a server over the store, the secrets + and the engine (connect, observe, the gateway lookup, save and + remove a bookmark), as transitions over a `Backing` + settings.rs the UI's settings keys, the audio form, `open_settings` settings_pages/logic.rs, studio/logic.rs the decisions of the settings pages and of the Stream Studio dev/logic.rs the sample data of `VOELIN_DEMO_UI` as plain values and events @@ -87,8 +90,9 @@ crates/voelin-ui/ the Slint front end the Slint side of each area (previews.rs: pictures in chat; popout.rs: the stream's own window) chat/ mod.rs, bind.rs: the chat view's Bridge writes and models - servers/ mod.rs, bind.rs: connecting and observing (store, secrets, engine), - the rail, the server card and the tree on the Bridge + servers/ mod.rs, bind.rs: connecting and observing (the callbacks of + `servers/sequence.rs`, the gateway lookup's thread hop), the rail, + the server card and the tree on the Bridge social/ mod.rs (the models), bind.rs: contacts, the bell and the search on the Bridge, the desktop toasts, the navigation after a move settings_page/ mod.rs, bind.rs: the audio devices, the hotkey, the codec download, @@ -157,8 +161,9 @@ this file is `voelin_ui_vm::chat`. The boundary: to draw again (`Refresh`, each once however many events set it), the status line, the engine commands in order, what to keep (`Persist`: a bookmark, the UI's settings, the audio settings, the clients' volumes), pictures to - decode again, the password dialog, notices for the bell, the chats that - changed and a stream to watch. `Host` is what the transitions ask while + decode again, the servers whose gateway is to be looked up, the password + dialog, notices for the bell, the chats that changed and a stream to watch. + `Host` is what the transitions ask while they run: whether the chat or a private chat is on screen, the store's read markers, the preview limit, the time. The Slint client's `App::handle_event` is `handle` and then `perform`, which carries the update @@ -656,6 +661,7 @@ live when they change (settings page, `--set`, another window): | `ui.narrow_breakpoint` | pixels | 800 | below this width the phone layout | | `ui.image_cache_mb` | megabytes | 256 | decoded images kept in memory (0: none) | | `ui.members_width` | pixels | 280 | width of the members panel (dragging its edge sets it) | +| `ui.window` | JSON `{width, height, x?, y?, maximized}` | none | where the main window was when the last run ended: its size (the one it returns to when `maximized`), its position where the platform tells one (Wayland does not: no `x` and `y`), and whether it was maximized; the next run opens there. Read at start, not applied live; written by the GPUI front end only (the Slint app neither registers nor reads it) | | `ui.voice_compact` | bool | false | the voice channel view's smaller stage (its Smaller stage / Larger stage button sets it; windows under 800 px tall always have it) | | `ui.image_preview_kb` | kilobytes | 8192 | pictures linked in chat (files and `[img]`) up to this size show as pictures (0: never) | | `notify.mentions`, `notify.private_messages`, `notify.pokes`, `notify.event_reminders`, `notify.friends_online` | off / app / desktop | desktop (friends: app) | what the bell and the desktop say about each kind | @@ -981,6 +987,7 @@ crates/voelin-gpui/ app.rs AppState, the root Entity: the voelin-ui-vm state and Social, the backend, the three loops (events in batches, a quiet tick, Later) and the callbacks of the Slint `bind/servers.rs` that the shell has + (over `voelin_ui_vm::servers::sequence`, which Slint calls too) view.rs MainView, the window's root view: the shell or the swatch, the handlers of the actions, the server form, the title, the window's place shell/ the desktop shell (below): rail.rs, sidebar.rs, topbar.rs, @@ -1025,8 +1032,9 @@ crates/voelin-gpui/ is quiet, a job from another thread reaches the entity, the store's servers are the rail's, a server is saved, edited, removed and selected, a connect and the other commands reach the engine's wire, the sample servers send nothing, the - window's place is kept and found again, the theme follows the settings and a - switch), the shell on a drawn window that the tests click (a server added is in + window's place is kept and found again, a window left maximized is zoomed once + and stays remembered so, the theme follows the settings and a switch), the + shell on a drawn window that the tests click (a server added is in the rail, a click selects it and titles the window, an engine event updates the rail and the cards, the form adds and removes, the toast goes, an idle window is not told), a connect through a real engine that has no connector (it answers @@ -1113,9 +1121,16 @@ GPUI_SHOT_HEADLESS=1 DELAY=4 VOELIN_DEMO_UI=1 VOELIN_DEV_THEME=dark spikes/gpui/ Wayland, the desktop's session bus and its portals are out of the environment, and the state directories are temporary ones: a run never touches the desktop -or `~/.local/state/voelin`. `docs/ui/gpui-swatch-dark.png` and -`gpui-swatch-light.png` are two such pictures (truecolour: a reduction to 256 -colours would change the tokens' values). +or `~/.local/state/voelin`. **The screen must be larger than the window**: +`headless.sh`'s default is 3840 by 2160 and `xvfb-run` gets twice the window. +On a screen as large as the window, openbox fits the window and its frame into +it and the picture comes out smaller (1438 by 935 for 1440 by 960, which is how +the first set of pictures was made); on a larger one it is exactly the size +asked for. `docs/ui/gpui-swatch-dark.png` and `gpui-swatch-light.png` are two +such pictures (truecolour: a reduction to 256 colours would change the tokens' +values), and the five of the shell are made the same way (1440 by 960, on +Xvfb `:143` of 3840 by 2160 with openbox and Mesa's lavapipe, the debug build, +a state directory under the checkout's `.scratch/`). ![The swatch page, dark](raw/ui/gpui-swatch-dark.png) ![The swatch page, light](raw/ui/gpui-swatch-light.png) @@ -1134,16 +1149,24 @@ callbacks), on the client's store. The pictures are the shell at 1440 by 960 under `scripts/gpui-shot.sh`; the server on screen is the first of the sample servers (`VOELIN_DEMO_UI=1`), connected, with its voice card and the user's card. `gpui-shell-form-dark.png` -is the server form. +is the server form: the empty shell at the same size, the rail's plus clicked +and an address and a name typed with `xdotool` (the nickname is the login's; +the picture was taken as `nova`). ![the server form, dark](raw/ui/gpui-shell-form-dark.png) What is on screen, each part an entity of `crates/voelin-gpui/src/shell/` that observes the root state, makes its view of it (`voelin_ui_vm::servers::logic`: `rail`, `toolbar`) and tells the window only when the view differs from the one -it showed: an engine event about a talker, a setting that is not the theme's or -a tick draws nothing (the `what_changes_nothing_shown_draws_nothing` test counts -the parts told). +it showed (`cx.notify()`): an engine event about a talker, a setting that is not +the theme's or a tick tells no part, so the window is not drawn at all (the +`what_changes_nothing_shown_draws_nothing` test counts the parts told). A part +that is told tells the window, and **the window draws every part**: in gpui-pre +0.3.10 a child view embedded with `.child(entity)` is rendered again on every +frame (only `Entity::cached` and `AnyView::cached`, which need a definite size, +reuse a subtree until its entity is notified), so the parts' comparison saves the +frames of a window nobody changes, not the work inside a frame ("For the next +slices" says what the heavy panes do about it). - **The rail** (`rail.rs`): the app's mark, then the saved servers as 46 pixel rounded squares (the server's icon from the engine's cache, else its initials @@ -1178,8 +1201,10 @@ minimum size is 640 by 480. The eleven callbacks of `bind/servers.rs` that the shell has are GPUI actions (`shell/actions.rs`); a click dispatches one with `Window::dispatch_action`, `MainView` handles it, and the handler asks the root state for what the Slint -callback did, through `voelin-ui-vm`'s `servers::logic` and the engine's -commands: +callback did, through `voelin-ui-vm`'s `servers::logic` and +`servers::sequence`, the one sequence over the store, the secrets and the +engine's commands that the Slint front end runs too ([Shared with the Slint +front end](#shared-with-the-slint-front-end)): | Slint callback | Action | What it does | |---|---|---| @@ -1201,6 +1226,44 @@ voice page), and `copied`, which the Slint toast of a copy needs and `Invite` does for itself. `AddServer`, `CancelServerForm`, `OpenSearch` and `OpenSettings` are the shell's own. +#### Shared with the Slint front end + +What the Slint crate's `servers/bind.rs` and `app.rs` did and this front end +repeated lives in one place and both call it (the Slint methods are thin +wrappers, so its call sites are unchanged): + +- **`voelin_ui_vm::servers::sequence`**: `connect_voice_to`, `connect_voice`, + `observe`, `discover_gateway`, `gateway_found`, `select_server`, + `save_bookmark`, `save_and_connect`, `delete_bookmark`, `bookmark_form` and + `default_nickname`. Each is a transition over the state, the `Cx` and a + `Backing` (the store, the secrets and the identity a connection is made + with), so the engine's commands, the status line, what is to be kept and the + gateways to look up (`Update::discover`) go out through the update, and + each front end's `perform` and its tests handle them as they handle every + other transition's (the GPUI tests see the commands as `take_sent`, and the + sample servers' are dropped there). `transition_with` of each front end hands + the `Backing` over: the GPUI root state's and the Slint `App`'s own fields. + `stream_peer` is the one input a front end gives (the Slint one's + `video.peer_config`; this one passes none). +- **`voelin_ui_vm::settings::open_settings`** and `register_keys`: the settings + service on `client.db` with the UI's keys, `config.toml`, `VOELIN_SETTING_*` + and `--set`; each front end registers its own key (`ui.window` here, the + Stream Studio's `studio.ui` there) through the function it passes. +- **`voelin_store::FallbackSecrets`** (the keyring first, memory where it + refuses) and **`Store::identity_for`** (the identity a bookmark names, else + the default, else the one made at start). + +Left as copies, because they need the toolkit, the runtime or a front end's own +state: the thread hop of the gateway lookup (`look_up_gateway`: each front end +runs `sequence::find_gateways` on the engine's runtime and comes back through +its own `Later`/`later`), `perform` (what an `Update` does to a window), the +status line's toast, the invite's clipboard write, `HostedEngine` (`engine.rs`), +the guards of the GPUI shell's save (`save_refused`: the sample servers are not +kept, and a server needs an address, which the Slint dialog checks in +`dialogs.slint` before it calls), the store at start (`Backend::open` against +`run()`: the identity import, the crash reports and `--set` of the Slint one) +and the form widgets themselves. + **The store at start** (`backend.rs`) is `run()` of the Slint front end through `voelin-ui-vm`: the client's database at `/client.db` (bookmarks, identities, chat read marks), the settings service on it with the UI's keys @@ -1224,8 +1287,49 @@ it at the next tick and at close, and the next run opens there: the size always, the position when a screen still shows its corner and the window manager lets a window choose (GPUI asks X11 for the place, and openbox, like most window managers, places new windows itself; Wayland tells no position at all, so none -is kept there), maximized if it was. A development switch that sets the size or -the sample data leaves it alone. +is kept there), maximized if it was. **Maximized** is asked for twice: GPUI +asks when it creates the window (`WindowBounds::Maximized`: a Wayland +compositor is expected to honour that, which was not run here), and the window +asks again when its first frame is drawn if it is not maximized by then (`MainView`: `Window::zoom_window`, which +toggles on X11, hence the check), because an X11 window manager manages a window +only from its map, so the early request is lost (openbox: the window opened at +its restored size). Until the window has been seen maximized, what it reports +is the place it opened with and is not kept, so a run that ends before the +window manager answers, or one whose window manager never maximizes (a tiling +one), leaves `maximized: true` as it found it; once it has been seen maximized, +what the window reports is the user's (restoring it is kept). A maximized +window is kept with the size it returns to (X11 reports the screen's; Wayland +the size it returns to). The `maximized` request itself needs a real window: +GPUI's test platform has no zoom, so the tests count the request and report the +window manager's answer themselves; it was seen at run time under openbox +(below). A development switch that sets the size or the sample data leaves the +setting alone. + +Seen at run time (the debug build of the commit that made it, Xvfb `:143` of +3840 by 2160 with openbox and Mesa's lavapipe, a state directory under the +checkout's `.scratch/`, no contact with the desktop's session): a first run +opened at 1280 by 800, openbox's `A-F10` (`ToggleMaximize`, bound in the run's +private `rc.xml`) maximized it (`_NET_WM_STATE_MAXIMIZED_VERT` and `_HORZ`, 3840 +by 2141 below the title bar), Alt+F4 closed it with exit status 0, and `ui.window` +held `{"width":1280,"height":800,"x":1280,"y":687,"maximized":true}`: the size +it returns to, not the screen's. A second run came up maximized with no one +touching it, and closed the same way leaving the same value. The same second +run on the commit before the fix, started on a copy of that database +(`maximized: true`): the window opened at 1280 by 800 with no `_NET_WM_STATE`, and +Alt+F4 left `{"width":1280,"height":800,"x":1280,"y":687,"maximized":false}`, +the two things the gate found; the fixed binary on the same copy came up at 3840 +by 2141 with both maximized atoms and left `maximized: true`. + +**The minors round** (`phase5/gpui-shell-minors`, after the Opus gate accepted +the slice with six minors; the commits say each): the records of what a part's +notify draws (above, and "For the next slices"), a window left maximized is +maximized again on X11 and stays remembered so (the paragraph above), the +pictures at 1440 by 960 (a screen larger than the window), the connect test +makes no DNS query (its lib test binary makes no `connect` or `send` at all +under `strace`), the server sequences shared with the Slint front end +([Shared with the Slint front end](#shared-with-the-slint-front-end)), and the +`ui.window` row of the settings table. The four risks the gate listed are in +"For the next slices". **What the shell costs idle** (`VOELIN_METER=1`, release build of the shell commit `6b4341a`, the later ones change nothing that runs while idle; 1440 by @@ -1358,6 +1462,35 @@ entries); the in-window keys as GPUI key bindings and the global ones through What the foundation's review and the Opus gate (2026-10-27) found and left to the slices that meet it; none of it is a defect of what exists today. +- **A part's notify draws the whole window, and `Update.refresh` is not used + yet.** The root notifies on every batch and each part compares the whole view + it would show with the one it showed; a part that differs tells the window, + and the window renders every uncached child view (gpui-pre 0.3.10: only + `Entity::cached` and `AnyView::cached` skip one). With a rail, a sidebar and a + top bar that costs little; the channel tree and the members of slice 2 (and + later the chat's list and the stream tiles) are heavy, and one talker's + indicator must not render the rail and the chat. Slice 2 embeds the heavy panes + with `Entity::cached` (a definite size is needed: the pane's bounds come from + its place in the layout) and turns `Update.refresh` (`voelin_ui_vm::host:: + Refresh`: `servers`, `toolbar`, `tree`, `chat`, ...; `perform` drops it today) + into per-area signals, a generation or a flag per pane that its entity + observes, so that a change of the tree or the members notifies those panes and + not the rail and the chat. +- **`Update.reloaded` is ignored, and `img()` caches by path.** `perform` drops + `Update.reloaded` (the pictures the engine wrote again, whose decoded copies a + front end drops). GPUI's `img()` caches what it decoded per source in the + asset cache, so a picture rewritten into the same cache file (a server icon or + an avatar that changed) stays stale on screen. The slice that shows engine + pictures (slice 2: avatars, the tree's icons) drops the decoded copy for each + path of `reloaded` (`ImageSource::remove_asset`, and `drop_image` for what the + atlas holds) or keys the image by something that changes with the file. +- **`SettingChanged` for the audio and the playback keys is not reloaded.** + `AppState::setting_changed` follows `ui.theme` and `ui.font_scale` only; the + Slint front end also reloads `audio` (unless the page has unsaved edits) and + `client_playback`, the crash-reports flag and the decoder keys. The values the + window keeps copies of (`vm.audio`, `vm.playback`) go stale when a command, + the config file or another window changes them; the settings slice (5) adds + the reload with the page that shows them. - **Settled by the shell slice: the engine-event task and the tick.** The task takes what is queued (64 events at most) in one `update` with one `cx.notify()` and yields between steps, and the tick notifies nobody (the @@ -1388,9 +1521,10 @@ the slices that meet it; none of it is a defect of what exists today. theme's colours over the `ThemeColor` the second layer wrote. A slice that offers JSON themes or watches a theme directory re-applies `VoelinTheme` after the registry changed. -- **The parity test and `build.rs` read `crates/voelin-ui/ui`** (`theme.slint` - through `include_str!`, the icons directory), and `fonts.rs` the Inter files - there: they move with step 9, when Slint goes (the icons and fonts to this +- **The parity test, `build.rs` and `assets.rs` read `crates/voelin-ui/ui`** + (`theme.slint` through `include_str!`, the icons directory, and `assets.rs`'s + `include_bytes!` of `logo.svg`), and `fonts.rs` the Inter files there: they + move with step 9, when Slint goes (the icons, the logo and the fonts to this crate, `tokens.rs` as the source of truth, the parity test removed). - **System mode's first frame is Light** until the colour-scheme portal answers (`cx.window_appearance()` before the window exists; `set_system_appearance` @@ -1403,7 +1537,15 @@ the slices that meet it; none of it is a defect of what exists today. most window managers) places the window itself; the size is restored, the position is not, and on Wayland there is none to tell. A window manager that honours the request, or a hint GPUI does not set, would make the saved - position count; the setting keeps it either way. + position count; the setting keeps it either way. What the window manager + does give back is the maximized state, which the window now asks for once it + is shown ([The window's place](#the-desktop-shell), the paragraph with the + run under openbox). That request relies on `Window::is_maximized` being + current at the first frame: on a window manager that does honour GPUI's + request before the map (openbox does not) and whose `_NET_WM_STATE` change + has not been read yet, `zoom_window`, which toggles on X11, would undo it. + None is known; if one turns up, ask for the maximize only at the first + `_NET_WM_STATE` change after the map instead. - **The identity import and the crash reports are not started** (`backend.rs` says so): the import reads the official TeamSpeak clients' files and belongs with the identities page, the crash hook with the settings pages. @@ -1422,6 +1564,29 @@ the slices that meet it; none of it is a defect of what exists today. shell](#the-desktop-shell)). `run()` waits `CLOSE_GRACE` (500 ms) for the engine to send the closes only when the window's close found sessions to close. +- **Four risks of the shell the gate found by reading, left to the slices that + meet them** (none reproduced here, none is a defect of a path the shell's + tests exercise): + - *The server on screen is not remembered across restarts.* `AppState::new` + takes the first saved server (`bookmarks.first()`), whichever the user had + on screen; the Slint app does the same and keeps only the last voice channel + (`ui.last_voice`, for its Home page). Remembering the server needs a + value of its own in the settings (a key, or a field beside `ui.window`). + - *A click on a server of the rail, or Remove, closes an open server form + without asking*, and what was typed in it is gone (`MainView::select_server` + and `delete_server` drop `form`). The dialogs slice (9) turns the form into + a dialog; it keeps the draft or asks. + - *Hold to talk stays on if voice drops while the button is held.* The voice + card, with the button, goes when voice leaves `Connected`, so the release + (`on_mouse_up`, `on_mouse_up_out`) has no element to land on: `Sidebar` + keeps `holding` and the session keeps `transmitting` until the next press. + Releasing on the window, or clearing the flag when voice drops, belongs + with the voice page (slice 3). + - *A tiling compositor's tile is stored as the window size* (and, on X11 + under a tiling window manager, as its position): `ui.window` takes what the + window reports without asking whether it is tiled or floating, so the next + run under a floating window manager opens at the tile's size. + ## Limits - No drop shadows or blur (the software renderer draws none): glows are @@ -1470,4 +1635,4 @@ the slices that meet it; none of it is a defect of what exists today. --- -*Mirrored from [`docs/ui.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/cc7c45b371cac39b4e23c9eb65c8cf384652299f/docs/ui.md) at `cc7c45b` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* +*Mirrored from [`docs/ui.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/0d44148ef5f76d01f21b115a5a9656439cadd160/docs/ui.md) at `0d44148` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* diff --git a/ui/gpui-shell-empty-dark.png b/ui/gpui-shell-empty-dark.png index 9238fda..4f9f068 100644 Binary files a/ui/gpui-shell-empty-dark.png and b/ui/gpui-shell-empty-dark.png differ diff --git a/ui/gpui-shell-empty-light.png b/ui/gpui-shell-empty-light.png index a838e85..e2c3fb2 100644 Binary files a/ui/gpui-shell-empty-light.png and b/ui/gpui-shell-empty-light.png differ diff --git a/ui/gpui-shell-form-dark.png b/ui/gpui-shell-form-dark.png index c893f2e..512c100 100644 Binary files a/ui/gpui-shell-form-dark.png and b/ui/gpui-shell-form-dark.png differ diff --git a/ui/gpui-shell-server-dark.png b/ui/gpui-shell-server-dark.png index 89313c1..67fa05b 100644 Binary files a/ui/gpui-shell-server-dark.png and b/ui/gpui-shell-server-dark.png differ diff --git a/ui/gpui-shell-server-light.png b/ui/gpui-shell-server-light.png index a298a9f..eb18a96 100644 Binary files a/ui/gpui-shell-server-light.png and b/ui/gpui-shell-server-light.png differ diff --git a/ui/gpui-swatch-dark.png b/ui/gpui-swatch-dark.png index ce50013..f9c4aa7 100644 Binary files a/ui/gpui-swatch-dark.png and b/ui/gpui-swatch-dark.png differ diff --git a/ui/gpui-swatch-light.png b/ui/gpui-swatch-light.png index edef9ee..7116da0 100644 Binary files a/ui/gpui-swatch-light.png and b/ui/gpui-swatch-light.png differ