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:
1 parent
4ef5b422f0
commit
c551378729
11 files changed
+249
-17
No files matched your search
+21
-8
@@ -171,14 +171,27 @@ voelinctl identity export <id> <path> [--store <db>]
|
||||
**On every start** the app does the same as `import --auto`
|
||||
(`voelin_core::identity::import_new`): identities found in the default
|
||||
locations that the client database does not have yet are added, the files
|
||||
are only read. The identity the official client uses by default (field 5 of
|
||||
its payload, below) goes in first, so when Voelin has no identity of its own
|
||||
yet, that one becomes Voelin's default (the first identity) and servers see
|
||||
the same unique id; otherwise Voelin's default stays. What was imported is
|
||||
shown once, in the status line (the toast on desktop), by nickname. The
|
||||
runtime setting `identity.import_from_teamspeak` (default on) turns it off,
|
||||
e.g. `--set identity.import_from_teamspeak=false`. The sample data of
|
||||
`VOELIN_DEMO_UI` never imports.
|
||||
are only read. The user should appear as on the official client, so the
|
||||
identity the official client uses by default (field 5 of its payload, below;
|
||||
TeamSpeak 6's before TeamSpeak 3's) becomes Voelin's default when Voelin has
|
||||
none, or only the one it created on its own the first time it started,
|
||||
which nobody chose. That happens once: the created identity is kept, and
|
||||
choosing it again in Settings → Identities makes it the user's own, which
|
||||
no import replaces; identities that were imported or chosen are never
|
||||
replaced. The store keeps where each identity came from and which one is the
|
||||
default (`identities.origin`: `created`, `imported`, `user`;
|
||||
`identities.is_default`; schema version 4, which marks the first identity
|
||||
named `Default` of an older database as created). What happened is shown
|
||||
once in the status line (the toast on desktop), by nickname, e.g. "You now
|
||||
use your TeamSpeak identity "X"; your previous one is kept". The runtime
|
||||
setting `identity.import_from_teamspeak` (default on, also in Settings →
|
||||
Identities) turns it off, e.g. `--set identity.import_from_teamspeak=false`.
|
||||
The sample data of `VOELIN_DEMO_UI` never imports.
|
||||
|
||||
**Settings → Identities** lists the stored identities with where they came
|
||||
from, their security level and unique id; "Use as default" picks the one
|
||||
servers see from the next connection on. `voelinctl identity list` shows
|
||||
the same (origin and default).
|
||||
|
||||
- **Import** prints what it found as nickname, unique id and security level —
|
||||
all three are public, everything else in an identity is the private key —
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 101 KiB |
+8
-1
@@ -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
|
||||
|  |  |
|
||||
|  |  |
|
||||
|  |  |
|
||||
|  | |
|
||||
|
||||
| Phone layout | | | | |
|
||||
|---|---|---|---|---|
|
||||
|
||||
Reference in new issue
Block a user