Document the two UI crates, the adapter boundary and the controllers still to split

docs/ui.md: the structure of voelin-ui-vm and voelin-ui, a "Two crates"
section (values, lists, conversion, state, logic/bind) and the written list
of the controllers that still interleave logic with Bridge writes, with
their .set_ counts, for the next round; the pointers to the moved files
(Twemoji archive, BBCode reader, settings pages, studio) are corrected.
docs/architecture.md: the crate table has voelin-ui-vm. README.md and
CHANGELOG.md name the new crate. Module comments that pointed at studio.rs
and vm/ point at studio/ and the crate.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
faumarayandClaude Sonnet 5.5 committed 2026-10-20 16:06:29 +03:00
1 parent ce0e6e1f62
commit 767a9dad46
7 files changed
+135 -33

No files matched your search

+6 -4
View File
@@ -3,8 +3,10 @@
//!
//! The screens' logic is elsewhere: servers and the channel tree in
//! `servers.rs`, chat in `chat.rs`, streams in `streams.rs`, the settings
//! page in `settings_page.rs` and `appearance.rs`, the view models in `vm/`,
//! callbacks in `bind/`, development switches in `dev.rs`.
//! page in `settings_page.rs` and `appearance.rs`, the settings pages in
//! `settings_pages/`, the Stream Studio in `studio/`, the view models in the
//! `voelin-ui-vm` crate (`vm`), callbacks in `bind/`, development switches in
//! `dev.rs`.
use std::cell::RefCell;
use std::path::{Path, PathBuf};
@@ -241,7 +243,7 @@ pub(crate) struct App {
pub social: crate::social::Social,
/// The settings pages of the new design.
pub pages: crate::settings_pages::Pages,
/// The Stream Studio (studio.rs).
/// The Stream Studio (studio/).
pub studio: crate::studio::StudioState,
/// The stream's own window (popout.rs).
pub popout: crate::popout::Popout,
@@ -872,7 +874,7 @@ impl App {
Event::SettingRejected { key, message } => {
self.set_status(format!("Setting {key}: {message}"));
}
// The Stream Studio's stream (studio.rs).
// The Stream Studio's stream (studio/).
Event::StreamState { session, state } if self.studio_streams_to(session as i64) => {
self.studio_stream_state(state);
}
+1 -1
View File
@@ -305,7 +305,7 @@ impl App {
/// The lines of a tab's messages (`main`) or of its open topic, grouped
/// and with everything the row shows (also the stream chat of the
/// Stream Studio, studio.rs). The server chat starts with what the
/// Stream Studio, studio/). The server chat starts with what the
/// server says to everyone who connects ([`Self::server_lines`]).
pub(crate) fn lines_of(&self, view: &SessionView, tab: &Tab, main: bool) -> Vec<ChatLine> {
let messages = if main { &tab.messages } else { &tab.topic_messages };
+2 -2
View File
@@ -543,7 +543,7 @@ impl App {
if self.share.is_some() {
self.refresh_streams();
}
// The share dialog's audio mixer (studio.rs).
// The share dialog's audio mixer (studio/).
self.mixer_tick();
if self.watch.is_some() {
self.refresh_viewer();
@@ -755,7 +755,7 @@ impl App {
}
}
/// The running share's streamer (the mixer's rows, studio.rs).
/// The running share's streamer (the mixer's rows, studio/).
pub(crate) fn share_streamer(&self) -> Option<&Streamer> {
self.share.as_ref().map(|s| s.capture.streamer())
}