From b439b9fbb20a39be27c38a32a1e3f9736ad2bc7e Mon Sep 17 00:00:00 2001 From: faumaray Date: Sat, 24 Oct 2026 19:43:51 +0300 Subject: [PATCH] Count the status line's calls in docs/ui.md as the files have them Of the 230 `.set_` lines of the seven files at ad20979, 36 are calls of `set_status(`, not 37: the 37th hit was `set_status_text`, the Bridge write inside `set_status`, which is one of the ten direct writes already. Say so, and give the share of Bridge writes (186 of 230) next to the two fractions. `messages.rs` has 11 `.set_` calls since the offline message's text is taken in by the view model (the row said 12). Co-Authored-By: Claude Sonnet 5.5 --- docs/ui.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/docs/ui.md b/docs/ui.md index 2c146d9..337f4aa 100644 --- a/docs/ui.md +++ b/docs/ui.md @@ -197,11 +197,13 @@ engine, and the status line's `self.set_status(…)`, which writes the Bridge's status text too. In the seven largest files before this round's splits (230 calls: `streams.rs`, `chat.rs`, `app.rs`, `servers.rs`, `settings_page.rs`, `social.rs` and `dev.rs`) 150 are direct writes to the Bridge (140 written as -`bridge.set_…`, ten as `ui.global::().set_…` or a chained setter) and -37 go through the status line, so Bridge writes are about four fifths of those -files and direct ones about two thirds; the rest are `Nav`, window and engine -setters (in `dev.rs` mostly those). Each controller was a slice of the same -shape as `settings_pages` and `studio`: the decisions moved into +`bridge.set_…`, ten as `ui.global::().set_…` or a chained setter; +one of the ten is `set_status_text`, the write inside `set_status`, so it is +not one of the 36) and 36 go through the status line, so Bridge writes are 186 +of the 230, about four fifths of those files, and direct ones about two +thirds; the rest are `Nav`, window and engine setters (in `dev.rs` mostly +those). Each controller was a slice of the same shape as `settings_pages` and +`studio`: the decisions moved into `voelin-ui-vm/src//logic.rs`, the writes stayed in `voelin-ui/src//bind.rs`. The `.set_` calls of each file before and after, every number counted with that command: @@ -237,7 +239,7 @@ stand): |---|---|---| | `app.rs` | 31 | setup, the status line, the toolbar and tree refreshes, `setting_changed` (which setting touches what); the event dispatch itself is `vm::events::handle` and `events::apply` | | `images.rs` | 13 | the decoded-picture cache | -| `messages.rs` | 12 | direct messages | +| `messages.rs` | 11 | direct messages | | `appearance.rs` | 11 | theme, font scale and breakpoints | | `popout.rs` | 8 | the viewer's own window | | `members.rs`, `links.rs`, `inbox.rs`, `home.rs`, `events.rs` | 6, 5, 5, 5, 4 | small; split with their neighbours |