docs/ui.md: the records of the tree slice's gate and review for the next slices

What the gate and the review left to the slices that meet them, in "For the
next slices": the model builds the whole tree_view for every batch it hears of
(O(people), a stat per picture; a batch is one build now, a talking-only
refresh path or a reuse of the ImageRefs belongs to the voice page or later);
the rail, the top bar and the main area refresh on the servers flag only, so a
flag voelin-ui-vm forgets to set leaves both front ends stale; the members
search's caret blink draws the window twice a second (measured: 2.00 frames, 2.00
renders of the sidebar and the panel, llvmpipe at 21 % of a core); the
voelin-ui-vm versions of the joins and the card that only the GPUI front end
calls, whose Slint copies can drift; and the TeamSpeak 3 development server's
ban of a burst of connects from one address. The coalescing of the three
signals of a picture that arrives is the commit before, and the first of the
round's has the rule for observers of the signals.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
faumarayandClaude Sonnet 5.5 committed 2026-10-28 08:07:11 +03:00
1 parent 0352d67651
commit 1dbe5d5dca
1 file changed
+55 -1
+55 -1
View File
@@ -1822,6 +1822,43 @@ the slices that meet it; none of it is a defect of what exists today.
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
@@ -1842,7 +1879,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
@@ -1929,6 +1972,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