account: new login page, kept away while signed in; profile and avatar

The login page no longer opens when a session is saved: the session is
checked in the background and only an expired one brings the page back.
Continue without an account is remembered (ui.skip_account_prompt) until
the next sign-in.

The page is redesigned: the night artwork with what an account gives
beside the form on wide windows, the form alone on narrow ones; email,
password with a show button, the one-time code when asked, notices as
banners. Settings -> My Account shows the profile instead of a list of
notes.

voelin-myts asks the user service (/user, the route of the official
client) for getAccountData (description, registration, previous sign-in,
badges, devices, avatar file names) and requestAvatarSignedUrl, then
fetches the avatar (HTTPS only, at most 4 MiB). The UI keeps the profile
in the session's keyring bundle and the picture in <data>/account/avatar,
fetches it again only when its name changes, and uses it as the sidebar's
profile picture where a server has none for us.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VZBWxxMsxUzp4PSTKVzbZN
This commit is contained in:
Claude committed 2026-10-04 22:12:07 +00:00
1 parent a44f994236
commit a57dfee83a
13 files changed
+1182 -143

No files matched your search

+12
View File
@@ -184,6 +184,18 @@ pub(crate) fn start(ui: &MainWindow, switches: &Switches) -> Running {
account.uuid = "00000000-0000-0000-0000-000000000001".into();
account.myts_id = "AQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEB".into();
account.identity_status = 1;
account.initials = "AE".into();
account.description = "Usually in the Raid channel after 8.".into();
account.member_since = "2019-03-14".into();
account.last_login = "2026-10-03".into();
let strings = |items: &[&str]| {
slint::ModelRc::new(slint::VecModel::from(
items.iter().map(|s| slint::SharedString::from(*s)).collect::<Vec<_>>(),
))
};
account.badges = strings(&["TeamSpeak 6 Beta", "Early supporter"]);
account.devices =
strings(&["Voelin · EU · 2026-10-03", "TeamSpeak · EU · 2026-09-28"]);
nav.invoke_open_settings(SettingsSection::Account);
}
account.otp_required = arg == "otp";