Add a server with its address alone
The add-server dialog asked for a name, the address with a port, a nickname, a gateway URL and ServerQuery settings before anything could be saved. Now it asks for the address (host, host:port, IP or server nickname; the resolver finds the port) and an optional server password; the rest is under an Advanced disclosure, open when editing. Empty fields are filled in: the name is the address until the first connection, then the server's own name; the nickname is the default identity's (one imported from TeamSpeak keeps its nickname), else the system user's; the default identity, no default channel; the gateway is looked up in DNS (voelin_core::discover) when the server is saved without one and when it connects, and one found is stored as if typed. Editing keeps what the form does not show (identity, default channel, client version, the query's server port), which saving dropped before. The form-to-bookmark conversion is a pure function with tests. New development switch bookmark:edit opens the current server's dialog; docs/ui.md describes the dialog, with the desktop screenshot redone and a phone one added. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
feaf6fa76c
commit
dfec897794
8 files changed
+313
-93
No files matched your search
Binary file not shown.
|
Before Width: | Height: | Size: 105 KiB After Width: | Height: | Size: 98 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 25 KiB |
+18
-1
@@ -200,6 +200,22 @@ goes to the running capture at once (`Capture::follow_audio`, which calls
|
||||
to add sources to. With sample data `share:live` shares the test pattern
|
||||
with the sample studio's sources, live at once with sample viewers.
|
||||
|
||||
## Adding a server
|
||||
|
||||
The add-server dialog (`BookmarkDialog` in `screens/dialogs.slint`, logic in
|
||||
`servers.rs`) asks for the address (host, host:port, IP or server
|
||||
nickname; the resolver finds the port through SRV records and TSDNS) and
|
||||
an optional server password. *Advanced* (open when editing) has the rest,
|
||||
and empty fields there are filled in: the name is the address until the
|
||||
first connection, then the server's own name (`adopt_server_name`); the
|
||||
nickname is the default identity's (one imported from TeamSpeak keeps its
|
||||
nickname there), else the system user's; the identity is the default one,
|
||||
there is no default channel; the gateway is looked up in DNS when the
|
||||
server is saved without one and when it connects
|
||||
([gateway-admin.md](gateway-admin.md#letting-voelin-find-the-gateway)),
|
||||
and one found is stored as if typed. `bookmark` and `bookmark:edit` open
|
||||
it (below).
|
||||
|
||||
## Adding a screen
|
||||
|
||||
1. Write the screen in `ui/screens/<name>.slint` from the components
|
||||
@@ -262,7 +278,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]`,
|
||||
`about`, `share[:live]`, `bookmark`, `emoji`, `client`, `panel`, `no-panel`,
|
||||
`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
|
||||
layout). With sample data, `watch` plays the local test pattern in the
|
||||
@@ -322,6 +338,7 @@ the window's size so the pointer is not over the window, and passes
|
||||
|---|---|---|---|---|
|
||||
|  |  |  |  |  |
|
||||
|  |  |  |  |  |
|
||||
|  | | | | |
|
||||
|
||||
## Limits
|
||||
|
||||
|
||||
Reference in new issue
Block a user