Split the development switches: the sample data into voelin-ui-vm

dev/logic.rs now has the sample of VOELIN_DEMO_UI as plain values and as
the events a server would send: the servers and their presence, the
pictures (PNG bytes the front end saves), the chats with their pins and
topics, the contacts, the private chats, the poke, the offline messages,
the gateway's events, the notices and the recordings, and the older pages
that answer scrolling up. The helpers that only look at the state (the
divider of VOELIN_OPEN=unread, the first locked channel) moved with it. The
Slint side (dev/bind.rs) keeps the switches, the window and the screenshot,
and feeds the sample through the app's own events; a test replays the
whole sample through events::handle and checks the state it leaves.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
faumarayandClaude Sonnet 5.5 committed 2026-10-21 13:57:42 +03:00
1 parent 2d6cbf66af
commit bf72d85a22
11 files changed
+1447 -1036

No files matched your search

File diff suppressed because it is too large. Load diff
+6
View File
@@ -0,0 +1,6 @@
//! The sample data of `VOELIN_DEMO_UI` and the helpers of the development
//! switches that only look at the state. [`logic`] has the sample servers,
//! people, chats, contacts, notices and pictures as plain values and as the
//! events a server would send.
pub mod logic;