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 <noreply@anthropic.com>
This commit is contained in:
faumarayandClaude Sonnet 5.5 committed 2026-10-24 19:43:51 +03:00
1 parent f8447ec9f8
commit b439b9fbb2
1 file changed
+8 -6
+8 -6
View File
@@ -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::<Bridge>().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::<Bridge>().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/<area>/logic.rs`, the writes stayed in
`voelin-ui/src/<area>/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 |