Home, friends, direct messages, the bell, search, events and settings pages

The screens of design mockups 01, 02, 03 (server sidebar links) and 11
on the existing pattern (Bridge models synced row by row, view models
in vm/, callbacks in bind/), mapped onto what TeamSpeak has:

- Home: a banner with Voelin and each server, friends online from the
  sessions' presence, live streams of our servers (our channel, the
  gateways' directories, clients flagged streaming), the servers with
  Join, the latest chats across servers (history store), friend
  activity, quick actions (add, join by address, find friends) and
  what is happening (gateway events, scheduled streams, server news).
  The Library lists the Stream Studio's recordings and clips.
- Friends: contacts with where they are, message, poke, join, watch,
  relation, note, volume and mute.
- Direct messages: private chats of every server and of the store,
  pokes among the messages, a clear state when the peer cannot be
  reached, TS3/TS6 offline messages (list, read, send, delete).
- The bell (mentions, pokes, messages, event reminders, friends coming
  online; a setting per kind, desktop notifications), the Ctrl+K
  search (servers, channels, people, settings pages; keyboard).
- A server's events page (RSVP, attendees, create/edit/delete,
  scheduled streams) and the Events/Members entries above the tree.
- Inline pictures in chat (downloaded into memory up to
  ui.image_preview_kb, decoded once into the image cache).
- Settings: My Account, Profiles (identities: default, rename, delete,
  export, import from the official clients, security level on every
  core, identity per bookmark), Appearance, Voice & Video (camera
  preview with blur, video and stream quality, streaming permissions),
  Streaming (defaults, simulcast layers, audio sources), Devices,
  Notifications, Privacy & Safety, Keybinds, Integrations (gateways,
  gateway administration, encoders) and Advanced (SRTP order, history,
  cache, every setting as JSON).

The top bar's field now opens the search instead of filtering the
channel tree; the search finds channels of every server.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
selikhovandClaude Opus 5.5 committed 2026-10-03 11:56:06 +03:00
1 parent 1cd45af7fb
commit c0ea5a3e46
69 files changed
+11751 -487

No files matched your search

+4
View File
@@ -3,8 +3,10 @@
mod chat;
mod emoji;
mod pages;
mod servers;
mod settings;
mod social;
mod streams;
use crate::app::MainWindow;
@@ -16,4 +18,6 @@ pub(crate) fn wire(ui: &MainWindow) {
streams::wire(ui);
settings::wire(ui);
emoji::wire(ui);
social::wire(ui);
pages::wire(ui);
}
+120
View File
@@ -0,0 +1,120 @@
//! The settings pages of the new design (settings_pages.rs).
use slint::ComponentHandle;
use crate::app::{Bridge, MainWindow, with_app};
pub(super) fn wire(ui: &MainWindow) {
let bridge = ui.global::<Bridge>();
bridge.on_settings_section(|section| {
with_app(|app| app.settings_section(section));
});
// Profiles.
bridge.on_identity_action(|id, action| {
with_app(|app| app.identity_action(id, &action));
});
bridge.on_rename_identity(|id, name| {
with_app(|app| app.rename_identity(id, &name));
});
bridge.on_improve_target(|id, target| {
with_app(|app| app.improve_identity(id, target));
});
bridge.on_find_identities(|| {
with_app(|app| app.find_identities());
});
bridge.on_pick_found(|index, on| {
with_app(|app| app.pick_found(index, on));
});
bridge.on_import_identities(|| {
with_app(|app| app.import_identities());
});
bridge.on_bookmark_identity(|bookmark, index| {
with_app(|app| app.bookmark_identity(bookmark, index));
});
// Voice & Video.
bridge.on_video_changed(|form| {
with_app(|app| app.video_changed(&form));
});
bridge.on_toggle_camera_preview(|| {
with_app(|app| app.toggle_camera_preview());
});
bridge.on_test_sound(|| {
with_app(|app| app.test_sound());
});
// Streaming.
bridge.on_streaming_changed(|form| {
with_app(|app| app.streaming_changed(&form));
});
bridge.on_layer_changed(|index, item| {
with_app(|app| app.layer_changed(index, &item));
});
bridge.on_add_layer(|| {
with_app(|app| app.add_layer());
});
bridge.on_remove_layer(|index| {
with_app(|app| app.remove_layer(index));
});
bridge.on_audio_source_changed(|index, item| {
with_app(|app| app.audio_source_changed(index, &item));
});
bridge.on_add_audio_source(|kind, name| {
with_app(|app| app.add_audio_source(&kind, &name));
});
bridge.on_remove_audio_source(|index| {
with_app(|app| app.remove_audio_source(index));
});
// Notifications, privacy.
bridge.on_notify_changed(|form| {
with_app(|app| app.notify_changed(&form));
});
bridge.on_test_notification(|| {
with_app(|app| app.test_notification());
});
bridge.on_privacy_changed(|form| {
with_app(|app| app.privacy_changed(&form));
});
// Integrations.
bridge.on_gateway_admin(|session| {
with_app(|app| app.gateway_admin(session));
});
bridge.on_config_set(|key, value| {
with_app(|app| app.config_set(&key, &value));
});
bridge.on_config_reset(|key| {
with_app(|app| app.config_reset(&key));
});
bridge.on_config_reload(|| {
with_app(|app| app.config_reload());
});
bridge.on_perm_set(|action, everyone, server, channel| {
with_app(|app| app.perm_set(&action, everyone, &server, &channel));
});
bridge.on_perm_reset(|action| {
with_app(|app| app.perm_reset(&action));
});
bridge.on_refresh_encoders(|| {
with_app(|app| app.refresh_encoders());
});
// Advanced.
bridge.on_advanced_changed(|form| {
with_app(|app| app.advanced_changed(&form));
});
bridge.on_srtp_move(|index, by| {
with_app(|app| app.srtp_move(index, by));
});
bridge.on_srtp_toggle(|name| {
with_app(|app| app.srtp_toggle(&name));
});
bridge.on_setting_set(|key, value| {
with_app(|app| app.setting_set(&key, &value)).unwrap_or_default().into()
});
bridge.on_setting_reset(|key| {
with_app(|app| app.setting_reset(&key));
});
bridge.on_search_settings(|text| {
with_app(|app| app.search_settings(text.to_string()));
});
bridge.on_open_logs(|| {
with_app(|app| app.open_logs());
});
}
-3
View File
@@ -11,9 +11,6 @@ pub(super) fn wire(ui: &MainWindow) {
bridge.on_select_server(|id| {
with_app(|app| app.select_server(id as i64));
});
bridge.on_search(|text| {
with_app(|app| app.search(text.to_string()));
});
bridge.on_search_members(|text| {
with_app(|app| app.search_members(text.to_string()));
});
+118
View File
@@ -0,0 +1,118 @@
//! Home, friends, direct messages, the bell, the search, a server's events
//! and pictures in chat.
use slint::ComponentHandle;
use crate::app::{Bridge, MainWindow, with_app};
pub(super) fn wire(ui: &MainWindow) {
let bridge = ui.global::<Bridge>();
// Home.
bridge.on_open_conversation(|key| {
with_app(|app| app.open_conversation(key));
});
bridge.on_watch_live(|session, id| {
with_app(|app| app.watch_live(i64::from(session), &id));
});
bridge.on_open_happening(|index| {
with_app(|app| app.open_happening(index));
});
bridge.on_open_recording(|path| {
with_app(|app| app.open_recording(&path));
});
bridge.on_open_recordings_folder(|| {
with_app(|app| app.open_recordings_folder());
});
bridge.on_connect_server(|id| {
with_app(|app| app.connect_server(i64::from(id)));
});
// Friends.
bridge.on_friends_tab(|tab| {
with_app(|app| app.friends_tab(tab));
});
bridge.on_search_contacts(|text| {
with_app(|app| app.search_contacts(text.to_string()));
});
bridge.on_select_contact(|uid| {
with_app(|app| app.select_contact(uid.to_string()));
});
bridge.on_contact_action(|uid, action| {
with_app(|app| app.contact_action(&uid, &action));
});
bridge.on_contact_note(|uid, note| {
with_app(|app| app.contact_note(&uid, note.to_string()));
});
bridge.on_contact_volume(|uid, percent| {
with_app(|app| app.contact_volume(&uid, percent));
});
// Direct messages.
bridge.on_dm_tab(|tab| {
with_app(|app| app.dm_tab(tab));
});
bridge.on_search_conversations(|text| {
with_app(|app| app.search_conversations(text.to_string()));
});
bridge.on_dm_action(|action| {
with_app(|app| app.dm_action(&action));
});
bridge.on_dm_volume(|percent| {
with_app(|app| app.dm_volume(percent));
});
bridge.on_send_offline(|form| {
with_app(|app| app.send_offline(form));
});
// The bell.
bridge.on_open_notice(|key| {
with_app(|app| app.open_notice(key));
});
bridge.on_mark_notices_read(|| {
with_app(|app| app.mark_notices_read());
});
bridge.on_clear_notices(|| {
with_app(|app| app.clear_notices());
});
// The search: the top bar's field used to filter the channel tree;
// it now opens the search (Ctrl+K), whose results are everywhere.
bridge.on_search(|text| {
with_app(|app| app.search(text.to_string()));
});
bridge.on_search_activate(|index| {
with_app(|app| app.search_activate(index));
});
// Events.
bridge.on_open_events(|| {
with_app(|app| app.open_events());
});
bridge.on_rsvp(|id, status| {
with_app(|app| app.rsvp(id, &status));
});
bridge.on_toggle_event(|id| {
with_app(|app| app.toggle_event(id));
});
bridge.on_edit_event(|id| with_app(|app| app.edit_event(id)).unwrap_or_default());
bridge.on_save_event(|form| with_app(|app| app.save_event(&form)).unwrap_or_default().into());
bridge.on_delete_event(|id| {
with_app(|app| app.delete_event(id));
});
bridge.on_watch_event(|id| {
with_app(|app| app.watch_event(id));
});
// Pictures in chat.
bridge.on_open_preview(|key, index| {
with_app(|app| app.open_preview(key, index)).unwrap_or_default()
});
// Opening the messages or the Library loads what they list.
bridge.on_open_messages(|| {
with_app(|app| app.load_recent_chats());
});
bridge.on_open_library(|| {
with_app(|app| app.load_library());
});
}