diff --git a/.mirror-manifest b/.mirror-manifest index 818ce98..8727c1b 100644 --- a/.mirror-manifest +++ b/.mirror-manifest @@ -87,6 +87,7 @@ ui/gpui-shell-server-dark.png ui/gpui-shell-server-light.png ui/gpui-swatch-dark.png ui/gpui-swatch-light.png +ui/gpui-tree-banner-selected-dark.png ui/gpui-tree-dark.png ui/gpui-tree-empty-dark.png ui/gpui-tree-empty-light.png diff --git a/Home.md b/Home.md index 8e6eb7d..a1db117 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` (`e61919e`). The repository files are the source; this wiki is regenerated by `.claude/wiki-sync.js`. +Mirror of `docs/` on `main` (`42d74b9`). 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 ae63f0d..10aec95 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/e61919ebf4f027db08ca17bcf56eaeefddadb74a/docs/android.md) at `e61919e` 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/42d74b9594ce35a64b979475c97c8136036c19e3/docs/android.md) at `42d74b9` 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 a7cd4c9..64a6aa2 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/e61919ebf4f027db08ca17bcf56eaeefddadb74a/docs/architecture.md) at `e61919e` 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/42d74b9594ce35a64b979475c97c8136036c19e3/docs/architecture.md) at `42d74b9` 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 0db9e6d..f3d4f0a 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/e61919ebf4f027db08ca17bcf56eaeefddadb74a/docs/audio.md) at `e61919e` 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/42d74b9594ce35a64b979475c97c8136036c19e3/docs/audio.md) at `42d74b9` 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 e5e4d52..6f138db 100644 --- a/building.md +++ b/building.md @@ -234,4 +234,4 @@ voelin-model = { path = "../VoelinProtocol/crates/voelin-model" } --- -*Mirrored from [`docs/building.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/e61919ebf4f027db08ca17bcf56eaeefddadb74a/docs/building.md) at `e61919e` 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/42d74b9594ce35a64b979475c97c8136036c19e3/docs/building.md) at `42d74b9` 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 c243f71..be2daf1 100644 --- a/ci.md +++ b/ci.md @@ -573,4 +573,4 @@ runner; local shell/API fixtures do not establish deployment acceptance. --- -*Mirrored from [`docs/ci.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/e61919ebf4f027db08ca17bcf56eaeefddadb74a/docs/ci.md) at `e61919e` 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/42d74b9594ce35a64b979475c97c8136036c19e3/docs/ci.md) at `42d74b9` 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 d3428d3..cf645a0 100644 --- a/design%2Fgpui-spikes.md +++ b/design%2Fgpui-spikes.md @@ -747,4 +747,4 @@ it now does not. --- -*Mirrored from [`docs/design/gpui-spikes.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/e61919ebf4f027db08ca17bcf56eaeefddadb74a/docs/design/gpui-spikes.md) at `e61919e` 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/42d74b9594ce35a64b979475c97c8136036c19e3/docs/design/gpui-spikes.md) at `42d74b9` 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 9fb4a2d..0117d0f 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/e61919ebf4f027db08ca17bcf56eaeefddadb74a/docs/gateway-admin.md) at `e61919e` 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/42d74b9594ce35a64b979475c97c8136036c19e3/docs/gateway-admin.md) at `42d74b9` 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 0d2688a..e3f91bf 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/e61919ebf4f027db08ca17bcf56eaeefddadb74a/docs/gateway-protocol.md) at `e61919e` 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/42d74b9594ce35a64b979475c97c8136036c19e3/docs/gateway-protocol.md) at `42d74b9` 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 3437f70..81dd702 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/e61919ebf4f027db08ca17bcf56eaeefddadb74a/docs/i18n.md) at `e61919e` 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/42d74b9594ce35a64b979475c97c8136036c19e3/docs/i18n.md) at `42d74b9` 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 3155ad5..215aead 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/e61919ebf4f027db08ca17bcf56eaeefddadb74a/docs/identity.md) at `e61919e` 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/42d74b9594ce35a64b979475c97c8136036c19e3/docs/identity.md) at `42d74b9` 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 ee9b82e..6adf5b5 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/e61919ebf4f027db08ca17bcf56eaeefddadb74a/docs/media.md) at `e61919e` 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/42d74b9594ce35a64b979475c97c8136036c19e3/docs/media.md) at `42d74b9` 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 39fb08a..01e0e7e 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/e61919ebf4f027db08ca17bcf56eaeefddadb74a/docs/protocol-notes/ts6-streaming.md) at `e61919e` 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/42d74b9594ce35a64b979475c97c8136036c19e3/docs/protocol-notes/ts6-streaming.md) at `42d74b9` 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 4f51e22..c08b4b0 100644 --- a/release.md +++ b/release.md @@ -248,4 +248,4 @@ After: --- -*Mirrored from [`docs/release.md`](https://git.faumaray.com/Voelin/VoelinClient/src/commit/e61919ebf4f027db08ca17bcf56eaeefddadb74a/docs/release.md) at `e61919e` 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/42d74b9594ce35a64b979475c97c8136036c19e3/docs/release.md) at `42d74b9` 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 f68272b..bf46668 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/e61919ebf4f027db08ca17bcf56eaeefddadb74a/docs/research/myteamspeak.md) at `e61919e` 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/42d74b9594ce35a64b979475c97c8136036c19e3/docs/research/myteamspeak.md) at `42d74b9` 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 e4c9379..0c57cd9 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/e61919ebf4f027db08ca17bcf56eaeefddadb74a/docs/research/stream-fps.md) at `e61919e` 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/42d74b9594ce35a64b979475c97c8136036c19e3/docs/research/stream-fps.md) at `42d74b9` 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 4473ede..625daa5 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/e61919ebf4f027db08ca17bcf56eaeefddadb74a/docs/research/ts6-late-join.md) at `e61919e` 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/42d74b9594ce35a64b979475c97c8136036c19e3/docs/research/ts6-late-join.md) at `42d74b9` 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 1fe55d1..603106c 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/e61919ebf4f027db08ca17bcf56eaeefddadb74a/docs/research/ui-review.md) at `e61919e` 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/42d74b9594ce35a64b979475c97c8136036c19e3/docs/research/ui-review.md) at `42d74b9` 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 eacaf04..946da2c 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/e61919ebf4f027db08ca17bcf56eaeefddadb74a/docs/session-seam.md) at `e61919e` 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/42d74b9594ce35a64b979475c97c8136036c19e3/docs/session-seam.md) at `42d74b9` 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 edc7564..fb35a24 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/e61919ebf4f027db08ca17bcf56eaeefddadb74a/docs/studio.md) at `e61919e` 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/42d74b9594ce35a64b979475c97c8136036c19e3/docs/studio.md) at `42d74b9` 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 2c640fb..13c6cec 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/e61919ebf4f027db08ca17bcf56eaeefddadb74a/docs/testing/load.md) at `e61919e` 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/42d74b9594ce35a64b979475c97c8136036c19e3/docs/testing/load.md) at `42d74b9` 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 68fac62..c38a181 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/e61919ebf4f027db08ca17bcf56eaeefddadb74a/docs/testing/manual-matrix.md) at `e61919e` 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/42d74b9594ce35a64b979475c97c8136036c19e3/docs/testing/manual-matrix.md) at `42d74b9` 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 f615165..49a5534 100644 --- a/ui.md +++ b/ui.md @@ -1053,8 +1053,8 @@ crates/voelin-gpui/ not told), the channel tree and the members panel on the sample server's events (the rows, folds kept in the settings and found by the next run, a double-click that joins, the password prompt, a move and a mute as their - exact row operations, a talker that redraws the members panel and no other - pane, the member card, an avatar written again), a connect through a real + exact row operations, a talker that redraws the tree and the members panel + and no other pane, the member card, an avatar written again), a connect through a real engine that has no connector (it answers that none serves the address, which reaches the status line), the store on a directory of its own, the theme (it reaches gpui-component, follows the window's @@ -1237,7 +1237,7 @@ front end](#shared-with-the-slint-front-end)): | `edit_bookmark` | `EditServer { id }` | opens the form with `servers::form` | | `save_bookmark` | `SaveServer` | `logic::bookmark_from_form`, the store, the secrets; shows the server | | `save_and_connect` | `SaveAndConnect` | saves, then connects into the form's channel or the default one (`servers::connect_to`) | -| `delete_bookmark` | `DeleteServer { id }` | `CloseSession`, the secrets and the store, `logic::forget_server` | +| `delete_bookmark` | `DeleteServer { id }` | `CloseSession`, the secrets and the store, `logic::forget_server`; the server that comes on screen has its remembered folds put back (as has any server a transition puts on screen: a save, a connect) | | `invite` | `Invite` | `logic::invite_link`, the link on the clipboard, the status line's note | The others of that file: `join_channel`, `join_with_password`, `toggle_collapse`, @@ -1425,6 +1425,15 @@ through Vulkan on Xvfb `:201` of 3840 by 2160 with openbox, 1440 by 960): the banner rows, Raid Night and Music, are under the veil, and the avatars of the tree show one letter. +![the tree with a banner row selected and one under the pointer, dark](raw/ui/gpui-tree-banner-selected-dark.png) + +`gpui-tree-banner-selected-dark.png` is the same window with Raid Night selected +(a click) and the pointer on Music: a banner row shows its selection and its +hover as a tint over the picture, as the speaking ring and bars show on Kairo's +row (release build of the commit that tinted them, lavapipe through Vulkan on +Xvfb `:233` of 3840 by 2160 with openbox, 1440 by 960, two `xdotool` moves and +`xwd`, the state under the checkout's `.scratch/`). + What is on screen: - **The channel tree** (`channels.rs`, in the sidebar between the server card @@ -1437,9 +1446,14 @@ What is on screen: the banner picture behind it and our channel highlighted. The banner has the veil of `components/banner-picture.slint` over it (`widgets::banner_scrim`: the surface colour, 74 % opaque on the left to 66 % on the right, under the - tint of our channel), so the name keeps more than 4.5 to 1 against any + tints of the row), so the name keeps more than 4.5 to 1 against any picture in both themes (a test states it for the weakest end over a black - and a white picture). A person's row has their avatar (the first letter + and a white picture). The row's own background (the selected one's and the + hover's) is under the picture, which covers it from the indent on, so a row + with a banner shows its states as translucent tints over the veil: our + channel's accent tint, the selected row's (surface 3 at 75 %) and the hover's + (surface 3 at 50 %, as `channels.slint` tints it). A person's row has their + avatar (the first letter only, at half the size, under 28 pixels as `avatar.slint` does), name (ours in the accent colour, someone away muted), badges, a LIVE tag while they stream, the marks of local mute (or volume) and of their @@ -1467,13 +1481,14 @@ What is on screen: password was not given this connection asks for it (a card over the window, Enter joins); a password the server refuses asks again, in words. As in the Slint dialog, Join is off and Enter does nothing while the field is empty - (the prompt stays), and Escape closes it without joining. + (the prompt stays), and Escape closes it without joining, wherever in the + prompt the last click was (below). #### Per-area signals and cached panes The foundation's and the shell's reviews left the design for this slice: a -change of the channel tree must not draw the rail, and a talker must not draw -the tree. Two parts of it came from reading gpui-pre 0.3.10 and were checked by +change of the channel tree must not draw the rail, and a talker draws the tree +and the members panel and nothing else (the gate's parity ruling, below). Two parts of it came from reading gpui-pre 0.3.10 and were checked by the tests: - **`Update.refresh` is raised as signals** (`signals.rs`). The root state @@ -1502,15 +1517,24 @@ the tests: entity builds the rows for both panes on the tree, toolbar and member-card signals, compares them with the rows it had (`voelin_ui_vm::list::diff`, the operations the Slint front end applies to its `VecModel`) and emits what - differs. A pane applies the operations to its list state (`gpui::ListState`: - a person who joins is a row inserted and the scroll stays where it was), and a - change that moves none of the rows of a pane emits nothing to it. -- **The tree carries no `talking`.** Its rows are built with the flag cleared, - so someone who starts or stops talking changes the members panel (and the - sidebar's own card when it is us) and not the tree: its pane is not rendered - (the `a_talker_does_not_draw_the_tree_again` test counts it). The Slint tree - draws speaking bars on the row, which would redraw the tree with every start - and stop of someone's voice; this front end leaves them to the members panel. + differs, with the rows the operations lead to (`TreeEvent::Rows(Changes, + Arc>)`, `People` the same). A pane applies the operations to its + list state (`gpui::ListState`: a person who joins is a row inserted and the + scroll stays where it was) and to the rows it has, and keeps the rows the + event carries, not the model's at the moment it hears of them; a change that + moves none of the rows of a pane emits nothing to it. +- **The tree marks who talks, and is drawn once for each start and stop.** Its + rows keep `talking`, so the avatar has the green ring and the row the three + speaking bars, as `channels.slint` draws them (the bars stand still: nothing + here draws the window with the clock). Someone who starts or stops talking + changes one row of the tree and one of the members panel, and each of those + two panes is rendered once for it, with the sidebar, which every frame + renders; no other pane is (the `a_talker_changes_one_row_and_draws_the_tree_once` + and `a_talker_redraws_the_tree_and_the_members_panel_and_no_other_pane` tests + count it). The first version of the slice cleared the flag to keep the tree out + of it; the gate ruled for parity with the Slint tree, and the cost was + measured: 9.97 renders of the tree a second for 9.97 starts and stops a second + ([what a change costs](#what-a-change-costs)). #### What a change costs @@ -1532,20 +1556,18 @@ window's frames, and each pane's passes): A window nobody touches is not drawn, with the tree and the panel on screen as before (the shell alone was 192.7 MiB; the pictures and the two panes' state are the difference, not itemized). Someone who talks is one engine event and so -one frame: the members panel is the only pane that is rendered for it, and the -sidebar, which every frame renders (its cards are small and have no size of -their own to cache at); the rail, the top bar, the main area and the tree are -not rendered at all in the 570 events of the run. GPUI's own thread spends 5 % +one frame: the members panel was the only pane that was rendered for it (the +tree carried no `talking` then; the figures of the talking marks are below), +and the sidebar, which every frame renders (its cards are small and have no size +of their own to cache at); the rail, the top bar, the main area and the tree +were not rendered at all in the 570 events of the run. GPUI's own thread spends 5 % of a core on the 9.7 frames a second (the first run, of the `aa640cf` tree on a quieter machine, 3.4 % at 10.0 frames, with `llvmpipe` at 100.9 % and 105.4 % in all; the loaded machine starved the process of a frame in ten). The rest is the software device: `llvmpipe` draws the whole 1440 by 960 window again for every frame, about 90 ms of CPU a frame on this machine, which a GPU does; so the figure that says what a talker costs the app is the thread's, and -the one that says what a window nobody touches costs is the idle row. (The -Slint tree draws speaking bars on its rows; with them the tree pane would be -rendered for each of those frames too, which is why this one does not: not -measured.) +the one that says what a window nobody touches costs is the idle row. **Again after the review's fixes** (the banner veil, one letter on small avatars and the password prompt change what a row draws, not when a pane is rendered): @@ -1556,6 +1578,23 @@ person talking 10 times a second: 106.4 % (111 %) in all, `llvmpipe` 102.3 %, GPUI's thread 3.1 %, 225.9 MiB, 10.0 frames a second, rendered per second 0, 0, 10.0, 0, 0, 10.0 (the sidebar and the members panel only, as above). +**Again with the talking marks on the tree** (the speaking ring and bars on the +tree's rows, which the gate's ruling restored; they make the tree pane change +with every start and stop): the talking run on the release build of the commit +that restored them, lavapipe (Mesa 26.2.5, `llvmpipe (LLVM 21.1.8, 256 bits)` +through Vulkan) on Xvfb `:231` of 3840 by 2160 with openbox, 1440 by 960, the +state under the checkout's `.scratch/`, the machine at a load average of 83 at +the start and 41 at the end, 60 samples after the first 15 of 75. A sample person +talking 10 times a second (`VOELIN_DEMO_TALK=10`): 102.2 % (112 %) in all, +`llvmpipe` 95.6 %, GPUI's thread 5.0 % (8 % at most), 224.0 MiB, 9.97 engine +events and 9.97 window frames a second, rendered per second 0, 0, 9.97, 9.97, 0, +9.97 (rail, top bar, sidebar, tree, main, members): the tree pane is rendered +once for each start and stop, as the members panel is, and the rail, the top bar +and the main area not at all. The tree's pane costs no measurable CPU on top: the +thread's 5.0 % is the figure of the first run (5.0 %) and above the second's +(3.1 %), a spread the load of the machine makes, and `llvmpipe` draws the whole +window for a frame whichever pane asked for it. + **Seen against a server** (the TeamSpeak 3 development server of `dev/docker-compose.yml`, 3.13.8, release build of the tree committed as `aa640cf` (built just before that commit, whose own changes to the tests came @@ -1595,6 +1634,34 @@ Alt+F4 ended the app with status 0, 3.3 s after the key, and left no ghost client on the server. Against the TeamSpeak 6 server the form showed "1 online · 1 channel", the tree and the panel, and the close ended with status 0. +**Seen again after the minors round** (`phase5/gpui-tree-minors`, the release +build of `1dbe5d5`; one Xvfb of 3840 by 2160 with openbox for each run, `:236` +(the prompt), `:239` (TeamSpeak 3), `:242` (TeamSpeak 6), `:243` (the sample +server's tree) and `:245` (the talking run), after runs on `:235`, `:237` and +`:238` that only found where to click; Mesa 26.2.5's lavapipe, +`llvmpipe (LLVM 21.1.8, 256 bits)` through Vulkan, 1440 by 960; the state under +the checkout's `.scratch/`, no Wayland, no session bus and no XDG directory of +the desktop in any run; the load average 16 to 25; the two development servers +used read-only, nothing created, deleted or reset on them, and one connect to +each). On the sample +server (`VOELIN_DEMO_UI=1`, nobody talks on the real ones): Kairo's row in the +tree has the green ring and the three bars; a click on Raid Night tints the row +over its picture and the pointer on Music tints that one (the picture above); a +double-click on the locked Officers opens the password prompt, a click on the +card's corner takes the focus from the field and the prompt stays, and Escape +closes it. Against the TeamSpeak 3 server (3.13.8, `127.0.0.1:9987`, a nickname +set in the form, Save and connect): "1 online · 1 channel", Default Channel with +the client in it, "Members — 1"; the members search with `zzz` typed says "Nobody +matches." where it said to connect; Alt+F4 ended the app with status 0 and +`clientlist` over ServerQuery after the close showed the query client only, no +ghost. Against the TeamSpeak 6 server (6.0.0-beta13.1, `127.0.0.1:9988`) the +same tree, panel and "Nobody matches.", and the close ended with status 0 (its +ghosts were not looked for: its ServerQuery is SSH). The talking run again on +this build (`VOELIN_DEMO_TALK=10`, 60 samples after the first 15 of 75, load +average 24 to 17): 106 % (114 %) in all, `llvmpipe` 100.7 %, GPUI's thread +4.2 % (7 % at most), 221.8 MiB, 9.98 engine events and frames a second, rendered +per second 0, 0, 9.98, 9.98, 0, 9.98: the tree once for each start and stop. + #### The callbacks and the properties The plan counts "about 13 properties and 6 callbacks" for the two panes. The @@ -1631,13 +1698,13 @@ seventh standing in for the chat. The callbacks are GPUI actions | Slint property (used by) | Here | |---|---| -| `tree` (`channels.slint`) | `TreeModel::rows`, the `talking` flag cleared | +| `tree` (`channels.slint`) | `TreeModel::rows` | | `server_members` (`members.slint`) | `TreeModel::people` | | `member_total` (`members.slint`) | `TreeModel::total` ("Members — N") | | `member_card` (`members.slint`) | `TreeModel::card` (`voelin_ui_vm::tree::member_card`), shown by `MemberCardView` | | `members` (the people in our channel: the voice page, not the two files) | built by `tree_view` and not shown: the voice page (slice 3) draws it | | `current_server` (`channels.slint`) | `AppState::vm.current` (slice 1) | -| `observing` (`channels.slint`, `members.slint`) | `SidebarView::observing` (slice 1: the user's card says Observing); here also `Emptiness`, the words of a list with nothing in it ("No server yet.", "Loading the channels…", "Connect to see the channels.") | +| `observing` (`channels.slint`, `members.slint`) | `SidebarView::observing` (slice 1: the user's card says Observing); here also `Emptiness`, the words of a list with nothing in it: the tree's ("No server yet.", "Loading the channels…", "Connect to see the channels.") and the panel's ("Loading who is here…", "Connect to see who is here.", and "Nobody matches." for a search that leaves nobody of a server that has people); a server whose voice is connecting is loading | | `server_title`, `server_icon`, `server_stats` (`channels.slint`, the server card) | slice 1: the sidebar's server card (`ServerItem`'s name and icon, `SidebarView::stats`, "9 online · 9 channels") | | `voice_connected`, `voice_connecting` (`channels.slint`, the server card and its Connect) | slice 1: `SidebarView::voice_connected` and `voice_connecting`, the voice card ("Voice Connected", "Connecting…") | | `server_banner` (`channels.slint`, the server card's picture) | not drawn: the sidebar's server card has no banner behind it. The same `BannerPicture` and veil (`widgets::banner_scrim`, which the tree's rows use) would do; it comes with the slice that lays the sidebar's cards again, the voice page and call bar (3) | @@ -1647,7 +1714,7 @@ seventh standing in for the chat. The callbacks are GPUI actions dialog) are the other server callbacks of the Bridge that these panes will meet later; neither file uses them. -What differs from the Slint tree and panel, beside the tree's talkers above: +What differs from the Slint tree and panel: the speaking bars stand still (nothing here may draw the window with the clock); the lists scroll with the wheel and have no scrollbar; a click on a channel selects it where Slint opens its chat; the card has no buttons; the members @@ -1766,6 +1833,60 @@ the slices that meet it; none of it is a defect of what exists today. panes (a cached view inside a view that renders again is rendered again), and raises its flag from `Signals::areas`. A new area is one more variant of `signals::Area`. +- **No state change from a signal's observer, inside a flush.** The model + listens to three signals (tree, toolbar, member card) and a batch raises + several of them, so it may refresh twice in one flush of GPUI's effects, and + what it emitted the first time is delivered after the second refresh has + run. An observer that changes the state in that window (`select_server`, + say, in the observer of a signal) makes the second refresh a different list + from the one the first operations were made for. The events carry their rows + for that reason, and the panes check in debug builds that the operations lead + from the rows they have to the rows carried (`debug_check`); a probe in the + tests makes exactly this change, from the observer of the toolbar signal + during a Presence flush, and found the old code indexing past the end of the + rows (`a_state_change_inside_a_flush_does_not_apply_old_operations_to_new_rows`). + The rule for a new part is that an observer of a signal reads the state and + sets its own fields, and a change of the root state belongs to an action's + handler or a task of its own, not to a signal's observer. The events that + carry no rows (`Selection`, `Lists`, `Card`) are read from the model at + delivery and end right whatever the order. +- **The model builds everything for every batch it hears of.** A raised batch + builds the whole `tree_view` again: every channel and every person, O(people + + channels) rows, and for each picture a row refers to the stat of its file + (`ImageSource::file`'s stamp, the review counted two per picture); then + `list::diff` against the rows it had. A talker's start or stop is one row of + change and the whole list built. The batches themselves are one build each + now (the model keeps the generations of its three signals it last built at, + so the signals of one change, three for a picture that arrives, are one + build: `a_picture_that_arrives_builds_the_rows_once`), but what a build costs + is what a server of hundreds of people will pay for each event. A refresh that + only flips `talking` of the rows it has (the talker's row, from the event's + client) or a reuse of the `ImageRef`s of the rows that did not change is the + voice page's (slice 3) or a later slice's, when a measurement on a large + server says it matters; the 9-person sample server does not. +- **The rail, the top bar and the main area refresh on the servers flag only.** + Before the tree slice they compared what they would show with what they + showed on every notify of the root; they listen to `Refresh::servers` now + (`signals.rs`, the per-area signals). A transition of `voelin-ui-vm` that + changes what they show and forgets to set `servers` leaves them stale, and + the Slint front end, which redraws by the same flags, is stale with it: the + flags of `Refresh` are the contract between the transitions and both front + ends, and a new transition sets every flag of what it touches. Nothing tests + that for the transitions that exist; a test per front end that plays the + events through `events::handle` and compares the parts with a rebuild from + the state would. +- **The members search's caret blink draws the window twice a second.** While + the search box is open and focused, the widget's caret blinks every 500 ms and + notifies its input, which the members panel and the window draw again: on the + first sample server, 2.00 window frames a second, 2.00 renders of the sidebar + and of the members panel and none of the others, `llvmpipe` at 21 % of a + core and GPUI's thread at 0.6 % (the release build of `f28c02a`, Xvfb `:234` + with openbox and lavapipe, the search opened with a click, 27 samples after + the first 15 of 42, load average 8 to 12). On a GPU that is two frames a second + of a mostly static window; the software device pays 90 ms of CPU for each. The + field of the chat's composer (slice 4) has the same blink; turning it off or + slowing it is the widget's option, if gpui-component has one, else a + property of the field the slice decides. - **A click renders every pane; a hover only the pane it is over.** In gpui-pre 0.3.10 pressing a clickable element and releasing it call `window.refresh()` (`elements/div.rs`), which ignores every cache for that frame, so a click on a @@ -1786,7 +1907,13 @@ the slices that meet it; none of it is a defect of what exists today. `join_with_password` and its `connect_into`), the card `refresh_member_card` builds inline (`tree::member_card`), and `open_member` setting the session's field (`logic::open_member`). They go with Slint (step 9), or each is a call - of the shared one when the Slint crate is next touched. + of the shared one when the Slint crate is next touched. Until then the + shared versions in `voelin-ui-vm` (`sequence::join_channel`, + `join_with_password` and `connect_into`, `logic::join_channel`, + `join_with_password` and `open_member`, `tree::member_card`) are called by + the GPUI front end alone, and Slint's copies can drift from them: a change + to the rules of a join or of the card is made in both, or the Slint copy + becomes the call first. - **`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 @@ -1808,7 +1935,19 @@ the slices that meet it; none of it is a defect of what exists today. start and takes the focus back when the element that had it is gone (`on_focus_lost`: the form closed, a button replaced by another). A later window (the Stream Studio's) does the same, and a new page's buttons dispatch - actions the root handles rather than listeners of their own. + actions the root handles rather than listeners of their own. A key that + belongs to an overlay needs the overlay on that path. The root's handle takes + the focus on every mouse down inside the window (GPUI transfers it to the + element under the pointer that has a handle, the root being under all of + them), and the overlay is a child of the root, not an ancestor of the root's + handle: a click on the overlay that no handle inside it takes leaves the + focus on the root, and the overlay's key context is off the path. The + password prompt therefore holds a focus handle of its own on its scrim (the + card is on it), and Escape is a key binding of its key context + (`shell::bind_keys`, called beside `gpui_kit::init`), not a listener on the + field's `Escape`: with the field focused its Escape passes the key on and the + binding closes the prompt, with anything else in the prompt focused the + binding is the only one there. - **The hotkey portal calls `tokio::spawn`** (`voelin-platform`, `hotkey/portal.rs`, `PortalBackend::new`): it panics where no tokio runtime is current, and a GPUI foreground task has none. The GPUI front end starts @@ -1861,6 +2000,17 @@ the slices that meet it; none of it is a defect of what exists today. `overlay` gets `scrim`), and gpui-base's non-colour tokens (radii, spacing, type, shadows, motion) are not written: gpui-base 0.8.1 has no storage to write them to, so those live in `VoelinTheme::metrics` only. +- **The TeamSpeak 3 development server bans an address that connects in a + burst** (tooling, not the app). `dev/docker-compose.yml` allowlists the + private ranges so that the addresses clients reach it from skip the + anti-flood bans "that rapid test connections would otherwise trigger"; a + client that is not in them, or a script that connects and closes many times + in a few seconds, gets banned by it for a while, and its connects are refused + until the ban ends (ServerQuery's `banlist` shows it, `banclear` lifts it, + which is for whoever owns the server). A live run of the front end connects + once, and runs that follow one another are spaced; the servers are used + read-only by a run, never reset (`docker compose down` or `-v` is not part of + one). - **The close grace is seen end to end now** (the shell opens sessions): a connected window closed with Alt+F4 leaves no ghost client on the TeamSpeak 3 development server and exits with status 0 ([The desktop @@ -1938,4 +2088,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/e61919ebf4f027db08ca17bcf56eaeefddadb74a/docs/ui.md) at `e61919e` 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/42d74b9594ce35a64b979475c97c8136036c19e3/docs/ui.md) at `42d74b9` by `.claude/wiki-sync.js`. Edit the file in the repository, not this page: the next sync overwrites it.* diff --git a/ui/gpui-tree-banner-selected-dark.png b/ui/gpui-tree-banner-selected-dark.png new file mode 100644 index 0000000..29197ef Binary files /dev/null and b/ui/gpui-tree-banner-selected-dark.png differ