docs: the ui.tree row, every property and callback of the two panes, the long lines

The review of the channel tree slice: the Settings table of docs/ui.md has a
ui.tree row (JSON by server id, written by the GPUI front end only); "The
callbacks and the properties" lists every Bridge property and callback (and
the Nav functions) that channels.slint and members.slint use, with the plan's
13 and 6 named inside them and each with its GPUI counterpart or the slice
that takes it (watch_client, member_action, member_volume and server_banner
included); the tree's banner veil, the one-letter small avatars and the
password prompt's empty field and Escape are described; the two tree pictures
with banners (light and dark) are taken again on the release build of bad5312.
The paragraphs the previous re-wrap left long are wrapped, the CHANGELOG entry
and the spikes report's status say what the review closed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
faumarayandClaude Sonnet 5.5 committed 2026-10-28 03:54:35 +03:00
1 parent bad5312bfd
commit 14091c4202
5 files changed
+131 -89

No files matched your search

+13 -12
View File
@@ -37,18 +37,19 @@ User-visible changes of the apps and the `tsgw` gateway. The format follows
`VOELIN_DEMO_UI=1` shows the Slint app's sample servers without sending or
keeping anything (docs/ui.md, "The desktop shell").
- The GPUI front end's channel tree and members panel. The server on screen's
channels nest in the sidebar with their spacers, icons, banners, locks and
counts, and the people in them with their badges and marks; a click selects
a channel, a double-click joins it (a locked one asks for its password), the
chevron folds it, a right-click offers the same, and what is folded and
selected is kept for each server (setting `ui.tree`). The panel on the right
lists everyone on the server in sections, with a search; a click on a person
opens their card. A person who starts or stops talking redraws the members
panel and nothing else of the window (the tree does not mark who talks), and
the pictures the engine writes again show at once. `VOELIN_METER=1` counts
the renders of each pane; `VOELIN_DEMO_SERVER` and `VOELIN_DEMO_TALK` pick
the sample server and make a sample person talk (docs/ui.md, "The channel
tree and the members").
channels nest in the sidebar with their spacers, icons, banners (under a veil
that keeps the names readable on any picture), locks and counts, and the
people in them with their badges and marks; a click selects a channel, a
double-click joins it (a locked one asks for its password: Enter joins, and
Escape closes the prompt), the chevron folds it, a right-click offers the
same, and what is folded and selected is kept for each server (setting
`ui.tree`). The panel on the right lists everyone on the server in sections,
with a search; a click on a person opens their card. A person who starts or
stops talking redraws the members panel and nothing else of the window (the
tree does not mark who talks), and the pictures the engine writes again show
at once. `VOELIN_METER=1` counts the renders of each pane;
`VOELIN_DEMO_SERVER` and `VOELIN_DEMO_TALK` pick the sample server and make a
sample person talk (docs/ui.md, "The channel tree and the members").
- Log files: each run logs to `<state>/voelin/logs/voelin.log`, the previous
four runs are kept; `VOELIN_LOG` sets what is logged. Settings → Advanced
opens the folder.
+18 -12
View File
@@ -44,24 +44,30 @@ 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. 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". Slice 2, the channel tree and the members panel, landed on
slice is the 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". Slice 2, the channel tree and the members panel, landed on
`phase5/gpui-tree` (2026-10-28): `Update.refresh` as per-area signals and the
shell's panes cached (the design the shell's review left for it), the pictures
the engine writes again shown and the old copies dropped, the tree over a
virtual list that applies the row operations of `voelin-ui-vm`'s `list::diff`,
the members panel, the member card and the password prompt, with the folds and
the selection kept per server; what a change costs, figure by figure, is in
docs/ui.md, "The channel tree and the members". The next slice is the voice
page and the call bar.
docs/ui.md, "The channel tree and the members". The slice was reviewed the same
day (one major and five minors) and the commits after it close them: a channel's
banner is drawn under the surface veil of the Slint tree's `BannerPicture`, an
avatar under 28 pixels shows one letter, the password prompt ignores an empty
field and closes on Escape, and the `ui.tree` row of the settings table, the
list of the Bridge's properties and callbacks that the two panes use and some
long lines are corrected in docs/ui.md. The next slice is the voice page and the
call bar.
| Spike | The plan's no-go | Seen (software rendering, see Setup) | Verdict |
|---|---|---|---|
+100 -65
View File
@@ -662,6 +662,7 @@ live when they change (settings page, `--set`, another window):
| `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.tree` | JSON by server id: `{"<id>": {collapsed, selected}}` | none | what each server's channel tree remembers: the channels folded shut (`collapsed`, channel ids) and the channel last selected (`selected`), under the id of the server's bookmark; a server with nothing folded or selected has no entry. Read at start, written at every fold, unfold and selection (not with the sample servers); written by the GPUI front end only (the Slint app neither registers nor reads it: its tree forgets both when it ends) |
| `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 |
@@ -1258,14 +1259,14 @@ wrappers, so its call sites are unchanged):
`default_nickname` and, since the channel tree, `join_channel` and
`join_with_password` (over `connect_into`). 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).
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
@@ -1332,11 +1333,11 @@ whether or not the window was seen maximized (a resize before the window
manager answered, or under one that never maximizes, a tiling one, is kept),
and once it has been seen maximized what it reports is the user's too
(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.
(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
@@ -1418,7 +1419,11 @@ recipe above, on a display of its own, with the state under the checkout's
nine people in four groups and the streaming section, nested channels with a
centred, a right-aligned and a line spacer, banners, icons, badges, a locked
channel), the left ones the third (`VOELIN_DEMO_SERVER=2`: not connected, so
its tree and its panel say to connect).
its tree and its panel say to connect). The two of the first sample server were
taken again for the review's fixes (the release build of `bad5312`, lavapipe
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.
What is on screen:
@@ -1429,8 +1434,14 @@ What is on screen:
name as the server set it out (a spacer is centred, right-aligned or a line
cut where the row ends), its lock at the end when it has an icon of its own,
how many are in it ("3" or "3/50", with a users mark on ours), the chevron,
the banner picture behind it and our channel highlighted. A person's row has
their avatar, name (ours in the accent colour, someone away muted), badges, a
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
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
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
microphone and sound, "away", and the icons of their groups. A click selects a
channel, a double-click joins it, the chevron folds it, a right-click offers
@@ -1454,7 +1465,9 @@ What is on screen:
is open and goes when they leave.
- **The password prompt**: joining a channel that has a password and whose
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.
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.
#### Per-area signals and cached panes
@@ -1505,11 +1518,11 @@ the tests:
lavapipe through Vulkan on Xvfb `:151` and `:152` with openbox, the first sample
server on screen (nine people, nine channels), the machine's other jobs at a
load average of 38 to 100 (the first run, of the tree committed as `aa640cf`,
which was built just before that commit, at 21 to 43, is below); the first 15 seconds of 75 left out, 60
samples of one second (59 for the second run: the loaded machine left a second
out); CPU in percent of one core, whose
resolution is the 1 % of a clock tick; renders per second as the meter counts
them (the window's frames, and each pane's passes):
which was built just before that commit, at 21 to 43, is below); the first 15
seconds of 75 left out, 60 samples of one second (59 for the second run: the
loaded machine left a second out); CPU in percent of one core, whose resolution
is the 1 % of a clock tick; renders per second as the meter counts them (the
window's frames, and each pane's passes):
| | CPU, mean (max) | Of it `llvmpipe` | GPUI's thread | Resident memory | Window frames a second | Rendered a second: rail, top bar, sidebar, tree, main, members |
|---|---|---|---|---|---|---|
@@ -1538,20 +1551,20 @@ measured.)
`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
after; the fixup `faef132` touches the sample pictures and two small things the
run did not meet), Xvfb `:160` of its own with openbox, lavapipe, no sound card, the state under the
checkout's `.scratch/`; a spacer heading, a sub-channel, a channel with a
password and one limited to five clients were made over ServerQuery for the run
and deleted after it): the form's Save and connect shows the real tree (Default
Channel with our client, "1 online · 7 channels", the lock, "0/5") and the
panel ("Members — 1", "Guest — 1"). A double-click on a channel moved the
client there (`clientlist -voice` over ServerQuery: channel 4); the locked
channel asked for its password, the server refused a wrong one and the prompt
asked again in words, the right one moved the client (channel 6); a click on
the person opened their card with their group. What was folded and selected
was in `ui.tree` and found by the next two processes (the fold of one channel
and the selection of another, after a restart and a reconnect). Closing the
window with Alt+F4 ended the app with exit status 0 and left no ghost client on
the server. The machine's load average was 355 to 497 from other builds while
run did not meet), Xvfb `:160` of its own with openbox, lavapipe, no sound card,
the state under the checkout's `.scratch/`; a spacer heading, a sub-channel, a
channel with a password and one limited to five clients were made over
ServerQuery for the run and deleted after it): the form's Save and connect shows
the real tree (Default Channel with our client, "1 online · 7 channels", the
lock, "0/5") and the panel ("Members — 1", "Guest — 1"). A double-click on a
channel moved the client there (`clientlist -voice` over ServerQuery: channel
4); the locked channel asked for its password, the server refused a wrong one
and the prompt asked again in words, the right one moved the client (channel 6);
a click on the person opened their card with their group. What was folded and
selected was in `ui.tree` and found by the next two processes (the fold of one
channel and the selection of another, after a restart and a reconnect). Closing
the window with Alt+F4 ended the app with exit status 0 and left no ghost client
on the server. The machine's load average was 355 to 497 from other builds while
the closes were timed (7 s from the key to the exit, 14 s against TeamSpeak 6),
so no bound is taken from them. Against the TeamSpeak 6 server (6.0.0-beta13.1)
the same form shows "1 online · 1 channel", the tree and the panel, and the
@@ -1560,41 +1573,62 @@ SSH).
#### The callbacks and the properties
The Slint front end's `Bridge` has what the two panes read; the plan counts
"about 13 properties and 6 callbacks" for them, and these are they. The
callbacks are GPUI actions (`shell/actions.rs`) handled by `MainView` as the
shell's are, over `voelin-ui-vm`'s `servers::logic` and `servers::sequence`:
The plan counts "about 13 properties and 6 callbacks" for the two panes. The
tables list every property and callback of the Slint `Bridge` (and of `Nav`,
whose functions call it) that `screens/channels.slint` and
`screens/members.slint` use, and the password dialog's, each with what takes it
here or the slice that will: 12 properties and 9 callbacks of the `Bridge` and
3 functions of `Nav` in the two files, the `members` property that the voice
page reads, and `join_with_password` of `dialogs.slint`. The 13 properties are
the first 13 of the second table, up to `server_banner`, each name counted once;
the 6 callbacks are the first six rows of the first (the sixth only logs), the
seventh standing in for the chat. The callbacks are GPUI actions
(`shell/actions.rs`) handled by `MainView` as the shell's are, over
`voelin-ui-vm`'s `servers::logic` and `servers::sequence`:
| Slint callback | Action | What it does |
| Slint callback (used by) | Action | What it does, or the slice that takes it |
|---|---|---|
| `join_channel` | `JoinChannel { channel }` | `sequence::join_channel`: `Command::MoveToChannel` with voice up, the password prompt for a locked channel unless its password was given this connection, a connect into the channel (by its id) without voice |
| `join_with_password` | `SubmitChannelPassword`, `CancelChannelPassword` | the prompt's Join, `sequence::join_with_password` with what its field holds; its Cancel |
| `toggle_collapse` | `ToggleChannel { channel }` | `logic::toggle_collapse`, kept for the server in `ui.tree` |
| `search_members` | `SearchMembers { text }` | `logic::search_members` |
| `open_member` (of `members.rs`) | `OpenMember { client }` | `logic::open_member` (-1 closes the card) |
| `open_client` | `OpenClient { client }` | logged: the volume dialog comes with the dialogs slice |
| (a click on a channel opens its chat) | `SelectChannel { channel }` | selects it, kept in `ui.tree`; the chat comes with the chat slice |
| `join_channel` (`channels.slint`) | `JoinChannel { channel }` | `sequence::join_channel`: `Command::MoveToChannel` with voice up, the password prompt for a locked channel unless its password was given this connection, a connect into the channel (by its id) without voice |
| `join_with_password` (`dialogs.slint`, `ChannelPasswordDialog`) | `SubmitChannelPassword`, `CancelChannelPassword` | the prompt's Join, `sequence::join_with_password` with what its field holds (an empty field joins nothing and leaves the prompt open); its Cancel, and Escape |
| `toggle_collapse` (`channels.slint`) | `ToggleChannel { channel }` | `logic::toggle_collapse`, kept for the server in `ui.tree` |
| `search_members` (`members.slint`) | `SearchMembers { text }` | `logic::search_members` |
| `open_member` (`members.slint`) | `OpenMember { client }` | `logic::open_member` (-1 closes the card) |
| `open_client` (`channels.slint`, through `Nav.open_client`, which says whether the dialog opened) | `OpenClient { client }` | logged: the person's volume dialog comes with the dialogs slice (9) |
| `open_channel_chat` (`channels.slint`, a click on a channel's row) | `SelectChannel { channel }` | selects the channel, kept in `ui.tree`; it opens the channel's chat with the chat slice (4) |
| `connect_voice` (`channels.slint`, the server card's Connect) | `ConnectVoice` | slice 1 (the shell) |
| `Nav.add_server`, `Nav.edit_server` (`channels.slint`, the server card's menu) | `AddServer`, `EditServer { id }` | slice 1 (the shell) |
| `watch_client` (`channels.slint`, the LIVE tag of a person who streams) | none | the tag is drawn and not clickable: the stream viewer, slice 6 |
| `member_action("mute")` and `member_volume` (`members.slint`, the card's mute button and volume slider) | none | the card has no buttons yet: the person's volume, with `open_client` and `client_audio_changed`, the dialogs slice (9) |
| `member_action("watch")` | none | the stream viewer, slice 6 |
| `member_action("message")` | none | the chat, slice 4 |
| `member_action("poke")` | none | the poke dialog, the dialogs slice (9) |
| `member_action("friend")`, `member_action("blocked")` | none | friends, slice 7 |
| (no Slint counterpart: the context menus) | `EditChannel`, `MoveClient` | logged: the channel editor, and a command for moving a client |
| Slint property | Here |
| Slint property (used by) | Here |
|---|---|
| `tree` | `TreeModel::rows`, the `talking` flag cleared |
| `server_members`, `member_total` | `TreeModel::people`, `TreeModel::total` ("Members — N") |
| `member_card` | `TreeModel::card` (`voelin_ui_vm::tree::member_card`), shown by `MemberCardView` |
| `members` (the people in our channel) | built by `tree_view` and not shown: the voice page (slice 3) draws it |
| `current_server`, `observing` | `AppState::vm.current`, and `Emptiness`, the words of a list with nothing in it ("No server yet.", "Loading the channels…", "Connect to see the channels.") |
| `Nav.right-panel-width`, `Nav.right-panel-open` | `ui.members_width`, read at start (no resize handle yet), and the panel is there while a server is on screen (the pins and topics drawers that share it come with the chat) |
| `tree` (`channels.slint`) | `TreeModel::rows`, the `talking` flag cleared |
| `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.") |
| `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) |
| `Nav.right_panel_width`, `Nav.right_panel_open` (the frame, `desktop.slint`, not the two files) | `ui.members_width`, read at start (no resize handle yet), and the panel is there while a server is on screen (the pins and topics drawers that share it come with the chat) |
`show_voice_view` (the voice page), `client_audio_changed` (the volume dialog)
and the card's buttons (`member_action`, `member_volume`: the volume and mute of
a person, a message, a poke, friends, blocking) are the slices after this one's.
`show_voice_view` (the voice page) and `client_audio_changed` (the volume
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:
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
panel has no resize handle; the fill spacer's line is drawn with the channel's
own characters, as the rows give it.
own characters, as the rows give it; the sidebar's server card has no banner.
### The theme
@@ -1657,12 +1691,13 @@ Slint `Bridge` (`ui/bridge.slint:801-1206`; properties / callbacks):
1. the **desktop shell** (done, [above](#the-desktop-shell)): the server rail,
the sidebar, the top bar, the empty main area, window state (about 13 / 11,
`bind/servers.rs`), the store and the settings opened as in Slint's `run()`;
2. the **channel tree and the members** (done, [above](#the-channel-tree-and-the-members);
about 13 / 6): `logic::tree_view`'s rows (`TreeItem`, `MemberItem`) in the
sidebar and the members panel, the callbacks `join_channel`,
`join_with_password`, `toggle_collapse`, `search_members` and `open_member`
as actions beside the shell's (`open_client` logged), and the password
prompt the transitions ask for;
2. the **channel tree and the members** (done,
[above](#the-channel-tree-and-the-members); about 13 / 6):
`logic::tree_view`'s rows (`TreeItem`, `MemberItem`) in the sidebar and the
members panel, the callbacks `join_channel`, `join_with_password`,
`toggle_collapse`, `search_members` and `open_member` as actions beside the
shell's (`open_client` logged), and the password prompt the transitions ask
for;
3. **next: the voice page and the call bar** (6 / 6): the people of our
channel (`TreeView::members`, built and not shown yet), `show_voice_view`,
the voice card's controls, and the release guard of Hold to talk (below);
Binary file not shown.

Before

Width:  |  Height:  |  Size: 145 KiB

After

Width:  |  Height:  |  Size: 144 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 153 KiB

After

Width:  |  Height:  |  Size: 153 KiB