Settings → Identities: see and choose the identity servers see

With the official client's identity taking the place of the one Voelin
made, the user needs to see which identity is in use and switch either
way. Settings has an Identities section now (a sixth tab, ID, on the
phone): every stored identity with where it came from, its security
level and unique id, "Default" on the one servers see and "Use as
default" on the others. A choice applies from the next connection,
says so in the status, and is the user's: no import replaces it (the
store marks a created identity chosen this way as the user's). The
section also has the switch for importing the official clients'
identities on start (identity.import_from_teamspeak).

The rows are a pure function with a test; screenshots, headless, of a
store with the created identity and two synthetic TeamSpeak ones.
docs/identity.md describes the one-time replacement and the section;
VOELIN_OPEN=settings:identities opens it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
selikhovandClaude Opus 5.5 committed 2026-10-04 04:43:02 +03:00
1 parent 4ef5b422f0
commit c551378729
11 files changed
+249 -17

No files matched your search

+8 -1
View File
@@ -216,6 +216,12 @@ server is saved without one and when it connects
and one found is stored as if typed. `bookmark` and `bookmark:edit` open
it (below).
Settings → Identities (`IdentitiesSection` in `screens/settings.slint`,
`identities.rs`) lists the stored identities, marks the default and has
"Use as default" for the others, plus the switch for importing the
official clients' identities on start ([identity.md](identity.md)).
`settings:identities` opens it.
## Adding a screen
1. Write the screen in `ui/screens/<name>.slint` from the components
@@ -277,7 +283,7 @@ Environment variables (see `src/dev.rs`):
- `VOELIN_DEMO_UI=1`: sample servers, channels, members, chat with emoji and
a stream, without a server (nothing is stored).
- `VOELIN_OPEN=<what>[,<what>...]`: `home`, `server`, `settings[:voice|keybinds|streaming|privacy|appearance]`,
- `VOELIN_OPEN=<what>[,<what>...]`: `home`, `server`, `settings[:voice|keybinds|streaming|privacy|appearance|identities]`,
`about`, `share[:live]`, `bookmark[:edit]`, `emoji`, `client`, `panel`, `no-panel`,
`voice`, `pins`, `topics`, `topic:<id>`, `member`, `watch`, `popout`
(the server page, above), `tab:<home|servers|chat|activity|you>` (phone
@@ -333,6 +339,7 @@ the window's size so the pointer is not over the window, and passes
| ![emoji](screenshots/desktop-emoji-picker.png) | ![volume](screenshots/desktop-client-volume.png) |
| ![share](screenshots/desktop-share-dialog.png) | ![sharing](screenshots/desktop-share-live.png) |
| ![add server](screenshots/desktop-add-server.png) | ![about](screenshots/desktop-about.png) |
| ![identities](screenshots/desktop-settings-identities.png) | |
| Phone layout | | | | |
|---|---|---|---|---|