docs: replace long dashes, document icons, emoji and avatar rules

Update the status of the client UX defects handled by the interface work.
This commit is contained in:
Loki 2026-10-25 10:26:02 +01:00
parent 220af2d6a4
commit ca3465daa5
Signed by: boba
GPG key ID: 253067914055423B
19 changed files with 311 additions and 303 deletions

View file

@ -1,4 +1,4 @@
# Slint UI Migration Plan — VNOX Client
# Slint UI Migration Plan - VNOX Client
## Current Architecture (egui)
@ -18,7 +18,7 @@ main.rs
└─ settings::show_window()
```
State: `UiState` — single large struct (131+ lines) with conn, channels, messages, DMs, guilds, friends, audio settings, voice state. Mutated directly in place every frame.
State: `UiState` - single large struct (131+ lines) with conn, channels, messages, DMs, guilds, friends, audio settings, voice state. Mutated directly in place every frame.
UI: 80+ Rust files in `ui/`, all immediate-mode egui. Every widget redrawn every frame.
@ -31,19 +31,19 @@ main.rs
└─ slint::MainWindow::new() → .run()
│
├─ .slint files (declarative UI)
│ ├─ main.slint — window layout
│ ├─ sidebar.slint — guild bar + channel list
│ ├─ chat.slint — message list + input bar
│ ├─ voice.slint — voice channel panel
│ ├─ connect.slint — connect/bookmarks screen
│ ├─ settings.slint — settings dialog
│ └─ theme.slint — color/font/spacing definitions
│ ├─ main.slint - window layout
│ ├─ sidebar.slint - guild bar + channel list
│ ├─ chat.slint - message list + input bar
│ ├─ voice.slint - voice channel panel
│ ├─ connect.slint - connect/bookmarks screen
│ ├─ settings.slint - settings dialog
│ └─ theme.slint - color/font/spacing definitions
│
└─ Rust code (logic only)
├─ app.rs — VnoxApp, init, event wiring
├─ bridge.rs — UiState ↔ Slint property sync
├─ state/ — UiState (unchanged, slimmed)
└─ net/ audio/ — no changes
├─ app.rs - VnoxApp, init, event wiring
├─ bridge.rs - UiState ↔ Slint property sync
├─ state/ - UiState (unchanged, slimmed)
└─ net/ audio/ - no changes
```
Key difference: Slint only re-renders changed properties. UI is declared once in `.slint` files. Rust code pushes state updates via `in-out property` setters.
@ -52,14 +52,14 @@ Key difference: Slint only re-renders changed properties. UI is declared once in
## Migration Phases
### Phase 1 — Infrastructure (day 1)
### Phase 1 - Infrastructure (day 1)
1. Add `slint` crate to `Cargo.toml`:
```toml
slint = { version = "1", features = ["backend-winit", "compat-1-2"] }
```
2. Create `ui/main.slint` — empty window with a placeholder text
2. Create `ui/main.slint` - empty window with a placeholder text
3. Rewrite `main.rs`:
- Remove `eframe::run_native()`
@ -72,9 +72,9 @@ Key difference: Slint only re-renders changed properties. UI is declared once in
---
### Phase 2 — Sidebar (day 2)
### Phase 2 - Sidebar (day 2)
Sidebar is the most isolated component — no complex interaction, just a list of channels + guild bar + user bar.
Sidebar is the most isolated component - no complex interaction, just a list of channels + guild bar + user bar.
```slint
// theme.slint
@ -104,7 +104,7 @@ fn sync_sidebar(window: &MainWindow, state: &UiState) {
---
### Phase 3 — Chat (days 3-4)
### Phase 3 - Chat (days 3-4)
The complex one: text messages, reactions, editing, typing indicators, reply chain, DMs, friends list.
@ -138,7 +138,7 @@ component ChatPanel {
---
### Phase 4 — Connect Screen (day 4)
### Phase 4 - Connect Screen (day 4)
```slint
component ConnectScreen {
@ -154,7 +154,7 @@ component ConnectScreen {
---
### Phase 5 — Settings + Polish (day 5)
### Phase 5 - Settings + Polish (day 5)
Settings dialog with tabs: Audio, Network, Identity, Appearance.
@ -214,10 +214,10 @@ The bridge pattern:
## What stays the same
- **`net/`** — all networking code, `NetHandle`, `NetCommand`, `NetEvent`
- **`audio/`** — capture/playback pipeline, Opus encode/decode, RNNoise
- **`identity.rs`**, **`identity_vault.rs`** — keypair management
- **`jitter/`** — jitter buffer (copied from voice-node)
- **`net/`** - all networking code, `NetHandle`, `NetCommand`, `NetEvent`
- **`audio/`** - capture/playback pipeline, Opus encode/decode, RNNoise
- **`identity.rs`**, **`identity_vault.rs`** - keypair management
- **`jitter/`** - jitter buffer (copied from voice-node)
---