chore(client): checkpoint deployed features and unfinished server management

User requested a checkpoint and stopped all agents. Deployed artifacts remain the last verified releases; unfinished settings/categories/forums are preserved as WIP. See TODO/roadmap for verification and remaining release/updater work.
This commit is contained in:
Loki 2026-11-01 15:31:21 +01:00
parent 15f03bf8df
commit f04691c3cd
Signed by: boba
GPG key ID: 253067914055423B
90 changed files with 9599 additions and 371 deletions

View file

@ -6,13 +6,99 @@ export { EmojiCatalog, EmojiItem } from "emoji-picker.slint";
import { Theme, ActionButton } from "theme.slint";
import { Sidebar, ChannelItem, GuildItem, DmItem } from "sidebar.slint";
import { ChatPanel, MessageItem, MemberItem } from "chat.slint";
import { ForumPanel, ForumTopicItem } from "forum.slint";
import { FriendsPanel, FriendItem } from "friends.slint";
import { VoicePanel, VoiceMemberItem } from "voice.slint";
import { BookmarkItem, ConnectScreen } from "connect.slint";
import { SettingsWindow } from "settings.slint";
import { AvatarCropper } from "avatar-cropper.slint";
import { AccountAuth } from "account-auth.slint";
import { ChannelAdminDialog } from "channel-admin.slint";
import { ServerSettingsDialog } from "server-settings.slint";
import { ManagementMenu, ManagementAction } from "management-menu.slint";
export component MainWindow inherits Window {
in-out property <bool> show-forum;
in-out property <string> forum-channel-name;
in-out property <[ForumTopicItem]> forum-topics;
in-out property <[MessageItem]> forum-replies;
in-out property <string> forum-topic-title;
in-out property <bool> forum-topic-open;
in-out property <bool> forum-creating;
in-out property <bool> forum-loading;
in-out property <bool> forum-busy;
in-out property <bool> forum-supported;
in-out property <bool> forum-more-topics;
in-out property <bool> forum-more-replies;
in-out property <string> forum-error;
in-out property <string> forum-title-draft;
in-out property <string> forum-body-draft;
in-out property <string> forum-reply-draft;
callback forum-refresh();
callback forum-create();
callback forum-cancel-create();
callback forum-open-topic(string);
callback forum-back();
callback forum-submit-topic();
callback forum-submit-reply();
callback forum-load-more-topics();
callback forum-load-more-replies();
callback forum-title-edited(string);
callback forum-body-edited(string);
callback forum-reply-edited(string);
in-out property <bool> account-authenticated;
in-out property <string> account-name;
in-out property <string> profile-display-name;
in-out property <bool> profile-saving;
in-out property <string> profile-initials;
in-out property <string> profile-error;
callback save-profile-name(string);
in-out property <string> account-status;
in-out property <bool> account-signing-in;
in-out property <string> account-public-key;
callback account-sign-in();
callback account-sign-out();
callback account-cancel();
callback account-open-browser();
in-out property <bool> management-menu-open;
in-out property <float> management-menu-x;
in-out property <float> management-menu-y;
in-out property <[ManagementAction]> management-actions;
callback open-node-menu(float,float);
callback open-channel-menu(string,float,float);
callback management-menu-chosen(string);
callback management-menu-close();
callback toggle-category(string);
in-out property <bool> node-structure;
in-out property <bool> node-forums;
in-out property <[string]> channel-admin-parent-names;
in-out property <int> channel-admin-parent-index;
callback channel-admin-parent-selected(int);
in-out property <bool> server-settings-open;
in-out property <bool> server-settings-busy;
in-out property <bool> server-settings-loaded;
in-out property <string> server-settings-error;
in-out property <string> server-name-draft;
in-out property <string> server-description-draft;
callback open-server-settings();
callback server-settings-save();
callback server-settings-reload();
callback server-settings-close();
callback server-name-edited(string);
callback server-description-edited(string);
in-out property <bool> node-admin;
in-out property <bool> channel-admin-open;
in-out property <string> channel-admin-operation;
in-out property <string> channel-admin-kind;
in-out property <string> channel-admin-name;
in-out property <bool> channel-admin-busy;
in-out property <string> channel-admin-error;
callback create-global-channel(string);
callback rename-global-channel(string);
callback delete-global-channel(string);
callback channel-admin-name-edited(string);
callback channel-admin-submit();
callback channel-admin-cancel();
in-out property <[ChannelItem]> channels;
in-out property <[GuildItem]> guilds;
in-out property <[DmItem]> dm-conversations;
@ -33,6 +119,7 @@ export component MainWindow inherits Window {
in-out property <float> avatar-offset-x;
in-out property <float> avatar-offset-y;
in-out property <string> avatar-error;
in-out property <bool> avatar-saving;
private property <string> pending-delete-id;
in-out property <string> active-dm-id;
in-out property <bool> voice-connected;
@ -84,6 +171,13 @@ export component MainWindow inherits Window {
in-out property <bool> vault-enabled: false;
in-out property <string> voice-input-device: "";
in-out property <string> voice-output-device: "";
in-out property <bool> noise-suppress;
in property <bool> noise-suppress-available;
in property <bool> mic-test-running;
in property <float> mic-test-level;
in property <string> mic-test-error;
callback toggle-microphone-test();
callback noise-suppression-changed(bool);
in-out property <float> voice-bitrate: 64.0;
in-out property <int> vad-mode: 1;
in-out property <float> volume: 100.0;
@ -96,7 +190,7 @@ export component MainWindow inherits Window {
callback preview-sound();
in-out property <string> language-choice: "system";
callback language-selected(string);
in-out property <string> theme-mode: "dark";
in-out property <string> theme-mode: "black";
in-out property <string> theme-css;
in-out property <string> theme-file-path;
in-out property <float> text-size: 16;
@ -147,11 +241,21 @@ export component MainWindow inherits Window {
callback open-webhooks();
callback show-voice-view();
callback show-friends-view();
in-out property <bool> local-speaking;
callback refresh-audio-devices();
callback device-selected(int, int);
callback audio-settings-changed(int, int, float, int, float);
callback channel-selected(string);
callback guild-selected(int);
callback dm-selected(string);
callback disconnect();
in-out property <image> pending-image;
in-out property <bool> has-pending-image;
in-out property <bool> image-uploading;
in-out property <string> image-status;
callback paste-image() -> bool;
callback cancel-image();
callback send-image();
callback send-message(string, string);
callback load-more(string);
callback react(string, string);
@ -188,7 +292,16 @@ export component MainWindow inherits Window {
background: Theme.bg-base;
if node-name == "" : ConnectScreen {
if !root.account-authenticated : AccountAuth {
signing-in: root.account-signing-in;
status: root.account-status;
public-key: root.account-public-key;
sign-in => { root.account-sign-in(); }
cancel => { root.account-cancel(); }
open-browser => { root.account-open-browser(); }
settings => { root.open-settings(); }
}
if node-name == "" && root.account-authenticated : ConnectScreen {
bookmarks: root.bookmarks;
address-input <=> root.address-input;
status-text: root.status-text;
@ -210,12 +323,24 @@ export component MainWindow inherits Window {
remove-bookmark(address) => { root.remove-bookmark(address); }
add-bookmark(address) => { root.add-bookmark(address); }
}
if node-name != "" : HorizontalLayout {
if node-name != "" && root.account-authenticated : HorizontalLayout {
sidebar := Sidebar {
local-speaking: root.local-speaking;
input-devices: root.input-devices; output-devices: root.output-devices;
input-device-index: root.input-device-index; output-device-index: root.output-device-index;
refresh-devices => { root.refresh-audio-devices(); }
device-selected(input, output) => { root.device-selected(input, output); }
channels: root.channels;
guilds: root.guilds;
dm-conversations: root.dm-conversations;
node-name: root.node-name;
node-admin: root.node-admin;
open-node-menu(x,y) => {root.open-node-menu(x,y);}
open-channel-menu(id,x,y) => {root.open-channel-menu(id,x,y);}
toggle-category(id) => {root.toggle-category(id);}
create-global-channel(kind) => { root.create-global-channel(kind); }
rename-global-channel(id) => { root.rename-global-channel(id); }
delete-global-channel(id) => { root.delete-global-channel(id); }
active-dm-id: root.active-dm-id;
voice-connected: root.voice-connected;
voice-channel-name: root.voice-channel-name;
@ -250,7 +375,38 @@ export component MainWindow inherits Window {
VerticalLayout { alignment: center; ActionButton { text: @tr("Dismiss"); icon: "x"; width: 28px; quiet: true; clicked => { root.dismiss-status(); } } }
}
}
if root.show-chat : ChatPanel {
if root.show-forum : ForumPanel {
channel-name: root.forum-channel-name;
topics: root.forum-topics; replies: root.forum-replies;
topic-title: root.forum-topic-title; topic-open: root.forum-topic-open;
creating: root.forum-creating; loading: root.forum-loading;
busy: root.forum-busy; supported: root.forum-supported;
more-topics: root.forum-more-topics; more-replies: root.forum-more-replies;
error: root.forum-error;
title-draft <=> root.forum-title-draft;
body-draft <=> root.forum-body-draft;
reply-draft <=> root.forum-reply-draft;
refresh => { root.forum-refresh(); }
create => { root.forum-create(); }
cancel-create => { root.forum-cancel-create(); }
open-topic(id) => { root.forum-open-topic(id); }
back => { root.forum-back(); }
submit-topic => { root.forum-submit-topic(); }
submit-reply => { root.forum-submit-reply(); }
load-more-topics => { root.forum-load-more-topics(); }
load-more-replies => { root.forum-load-more-replies(); }
title-edited(value) => { root.forum-title-edited(value); }
body-edited(value) => { root.forum-body-edited(value); }
reply-edited(value) => { root.forum-reply-edited(value); }
}
if root.show-chat && !root.show-forum : ChatPanel {
pending-image: root.pending-image;
has-pending-image: root.has-pending-image;
image-uploading: root.image-uploading;
image-status: root.image-status;
paste-image => { return root.paste-image(); }
cancel-image => { root.cancel-image(); }
send-image => { root.send-image(); }
own-avatar: root.own-avatar;
has-own-avatar: root.has-avatar;
active-channel-id: root.is-dm ? "" : root.active-channel-id;
@ -315,6 +471,15 @@ export component MainWindow inherits Window {
own-avatar: root.own-avatar;
has-avatar: root.has-avatar;
avatar-error: root.avatar-error;
avatar-saving: root.avatar-saving;
account-name: root.account-name;
central-authenticated: root.account-authenticated;
profile-display-name <=> root.profile-display-name;
profile-saving: root.profile-saving;
profile-initials: root.profile-initials;
profile-error: root.profile-error;
save-profile-name(name) => { root.save-profile-name(name); }
account-sign-out => { root.account-sign-out(); root.close-settings(); }
choose-avatar => { root.choose-avatar(); }
remove-avatar => { root.remove-avatar(); }
theme-mode <=> root.theme-mode;
@ -340,6 +505,13 @@ export component MainWindow inherits Window {
vault-enabled: root.vault-enabled;
voice-input-device: root.voice-input-device;
voice-output-device: root.voice-output-device;
noise-suppress <=> root.noise-suppress;
noise-suppress-available: root.noise-suppress-available;
mic-test-running: root.mic-test-running;
mic-test-level: root.mic-test-level;
mic-test-error: root.mic-test-error;
toggle-microphone-test => { root.toggle-microphone-test(); }
noise-suppression-changed(enabled) => { root.noise-suppression-changed(enabled); }
voice-bitrate <=> root.voice-bitrate;
vad-mode <=> root.vad-mode;
volume <=> root.volume;
@ -375,6 +547,17 @@ export component MainWindow inherits Window {
import-keyfile(input, pass) => { root.import-keyfile(input, pass); }
}
if root.account-authenticated && node-name == "" && !root.settings-open : Rectangle {
x: parent.width - self.width - 12px; y: 6px;
width: Math.min(340px, parent.width / 3); height: 32px;
background: Theme.bg-elevated; border-radius: 6px;
HorizontalLayout {
padding-left: 10px; padding-right: 4px; spacing: 8px;
Text { text: root.account-name; color: Theme.text-primary; font-size: 12px; overflow: elide; vertical-alignment: center; horizontal-stretch: 1; }
ActionButton { text: @tr("Sign out of Central"); icon: "log-out"; width: 28px; clicked => { root.account-sign-out(); } }
}
}
if root.pending-delete-id != "" : Rectangle {
background: Theme.overlay;
TouchArea { }
@ -401,9 +584,38 @@ export component MainWindow inherits Window {
offset-x: root.avatar-offset-x;
offset-y: root.avatar-offset-y;
error: root.avatar-error;
saving: root.avatar-saving;
crop-moved(x,y) => { root.avatar-crop-moved(x,y); }
zoom-changed(value) => { root.avatar-zoom-changed(value); }
confirm => { root.confirm-avatar(); }
cancel => { root.cancel-avatar(); }
}
if root.server-settings-open && root.node-admin && root.account-authenticated : ServerSettingsDialog {
width:parent.width;height:parent.height;
name <=>root.server-name-draft;description <=>root.server-description-draft;
busy:root.server-settings-busy;loaded:root.server-settings-loaded;error:root.server-settings-error;
channels:root.channels;structure:root.node-structure;forums:root.node-forums;
name-edited(value)=>{root.server-name-edited(value);}description-edited(value)=>{root.server-description-edited(value);}
save=>{root.server-settings-save();}reload=>{root.server-settings-reload();}close=>{root.server-settings-close();}
create(kind)=>{root.create-global-channel(kind);}rename(id)=>{root.rename-global-channel(id);}remove(id)=>{root.delete-global-channel(id);}
}
if root.channel-admin-open && root.node-admin && root.account-authenticated : ChannelAdminDialog {
width: parent.width; height: parent.height;
parent-names:root.channel-admin-parent-names;parent-index <=>root.channel-admin-parent-index;parent-selected(index)=>{root.channel-admin-parent-selected(index);}
operation: root.channel-admin-operation;
kind: root.channel-admin-kind;
name <=> root.channel-admin-name;
busy: root.channel-admin-busy;
error: root.channel-admin-error;
name-edited(value) => { root.channel-admin-name-edited(value); }
submit => { root.channel-admin-submit(); }
cancel => { root.channel-admin-cancel(); }
}
if root.management-menu-open :ManagementMenu {
width:parent.width;height:parent.height;
actions:root.management-actions;anchor-x:root.management-menu-x;anchor-y:root.management-menu-y;
chosen(action)=>{root.management-menu-chosen(action);}dismiss=>{root.management-menu-close();}
}
}