Commit Graph
102 Commits
Author SHA1 Message Date
Nico B. a118c0f58e Merge pull request #1 from Moepchi/fix/pr-4-review-bugs
Fix 8 correctness bugs found in review of TeaSpeak/GTS + multi-join PR
2026-09-06 01:20:59 +02:00
Nico B.andCursor 3db5d90d89 Merge upstream/main into GreenTeaSpeak main to resolve PR #4 conflicts.
Keep TeaSpeak/GTS multi-tab work while integrating channel-password prompts and the Pulse theme.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-06 00:54:04 +02:00
Moepchi 9702c671e8 Fix 8 correctness bugs found in code review of PR #4
- Connection log only ever rendered the single latest entry
  (log.slice(-1) -> log.slice(-50)), and appendLog grew log[] unbounded
- Mic stayed off after switching back to a parked multi-join tab
  (added ParkedSessionState.micWasOn, restore mic on switch-back)
- Packet-loss heuristic guessed fraction-vs-percent by magnitude, which
  can't disambiguate; now branches on actual server type (GTS vs TS3)
- serverGroups/channelGroups/permissionCatalog/banList/fileBrowser were
  page-global caches never invalidated on multi-join tab switch, so a
  newly active tab could show another server's stale data
- ServerQuery clients were filtered from the client list but still
  counted in the online-total fallback; total now matches the list
- gateway disconnect() resolved before the connector child process
  actually exited, allowing two connector processes to run briefly on
  a fast reconnect; now waits for exit (with a hard-kill fallback)
- switching a parked multi-join tab back in replayed a spurious
  whisper-target log entry and resent setWhisperTargets even when
  nothing changed, because the diff was against the wrong tab's ref
- double-click-to-join channel detection used module-level state,
  so a click in one multi-join tab could pair with a click in another
  tab's tree as a false double-click; now keyed per session

Note: could not verify with a full cargo build - the PR's own
'Update tsclientlib' commit (cd6928b) points at a tsclientlib submodule
commit that isn't pushed to any reachable branch (not even the PR
author's own fork), so nobody can currently build this PR end-to-end.
That is unrelated to these fixes.
2026-09-06 00:20:33 +02:00
Moepchi 27ac828641 Add channel password prompt on mid-session join (fixes #3)
Joining a password-protected channel after connecting silently failed
with only a generic error in the log - there was no way to enter a
password except the initial-connect "default channel" field.

- connector: "switch" now accepts an optional base64-encoded password
  and wires it through tsclientlib's existing set_password() API; a
  ChannelInvalidPassword failure is reported as a distinct
  channelPasswordRequired event instead of a generic error.
- gateway: forwards channelPassword through switchChannel and remaps
  the connector's snake_case event to the frontend's camelCase shape.
- web: new ChannelPasswordDialog prompts for the password (and flags
  a wrong retry); the password is cached in memory for the session so
  re-entering an already-unlocked channel doesn't prompt again, and
  the cache is cleared on disconnect.

Also includes two earlier Pulse-theme CSS fixes (bottom-toolbar
dropdowns opening off-screen; caret button height mismatch) and the
Speaking Now bar / Pulse Phase D wiring from this session.
2026-09-05 23:49:43 +02:00
Nico B. e9ee12c7b5 Add TeaSpeak/GTS support, multi-join & GTS theme
Adds TeaSpeak/GreenTeaSpeak protocol support and multi-join session tabs plus a GreenteaSpeak UI theme. Key changes: connector (Rust) supports --server-type, privilege key, server variables, license formatting, Query-client filtering and extra metrics; gateway accepts serverType/privilegeKey, optional static serving (WEB_STATIC), and per-tab /ws sessions; web frontend: multi-session parking (connectionSessions), channel spacer parsing, talk-lamp UI, extended server connection info, connect dialog serverType/privilegeKey, GreenteaSpeak CSS & chrome, i18n updates, and demo updates. Also adds docs/teaspeak.md and dependency num-traits.
2026-09-05 22:45:21 +02:00
MoepchiandClaude Sonnet 5 804fa44ab6 fix: update stale moepchi.de OG/Twitter meta tags to webspeak3.de
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-03 20:35:49 +02:00
MoepchiandClaude Sonnet 5 563bca2a4b feat: add Simplified Chinese (zh-CN) locale, harden runtime image
zh-CN i18n adapted from MIKU-N's fork (github.com/MIKU-N/webspeak3):
new web/src/locales/zh-CN.ts, wired into i18n.tsx's Lang type, system
language detection, language preference persistence, the app.language
option list, and a new document.documentElement.lang sync effect.
App.tsx's language dropdown and the README feature table updated to
match. Missing keys naturally fall back to English via the existing
translations[lang][key] ?? translations.en[key] ?? key chain.

Also adapted from the same fork: the runtime stage's Dockerfile now
strips npm/npx (and npm's cache/package tree) after installing the
gateway's production deps, since nothing in the running container
invokes either afterwards - shrinks the image and drops npm's own CVEs
from the final attack surface. Adds a HEALTHCHECK that curls the
gateway's own port via Node's fetch.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-01 18:50:01 +02:00
Moepchi f490ca5776 Add auto gain control toggle for echo cancellation tuning (#2)
Exposes autoGainControl as its own Options -> Aufnahme toggle (was
implicitly left to the browser default) and requests the pipeline's own
48kHz sample rate explicitly, so the mic doesn't need an extra internal
resample before the browser's own AEC runs. Both are standard
getUserMedia constraints, honored the same way by Chromium and Firefox
(unlike vendor-prefixed googEchoCancellation-style flags, which only
affect Chromium).

Helps speaker+mic (no headset) setups where AGC re-amplifying the mic
signal after AEC can bring back audible echo residue - see #2.
2026-08-29 04:29:04 +02:00
Moepchi 8c954f9540 Add user-created custom design themes
Lets users build their own theme packages from Options > Design: pick a
structural base (Standard or Nova), write free-form CSS, and save/select
it locally. Supports duplicate, export/import (JSON), and delete.

Custom CSS is injected via a dedicated <style> tag while the theme is
active. Fixes the built-in theme variable rules (.ts-app,
.ts-app.ts-theme-dark, .ts-app.ts-design-nova) so a plain .ts-app { ... }
override in custom CSS always wins, by wrapping them in :where() to
strip their specificity - previously the compound selectors always beat
a same-specificity custom rule regardless of injection order.

Standard/Nova behavior is unchanged when no custom theme is selected.
2026-08-29 04:05:18 +02:00
Moepchi 3ad086aedd Add Nova design theme: redesigned menu bar, connect splash screen
- Restyle classic top menu bar into pill-chip items merged into the
  same row as the WebSpeak3 logo/server/status cluster, collapsed
  behind a hamburger button with an outside-click/Escape-aware
  dropdown panel (nested submenus flip to open leftward to avoid
  clipping at the viewport edge).
- Make the Connect dialog the sole visible surface while
  disconnected in Nova: it auto-opens on load and after every
  disconnect, and the app chrome (menu/toolbar/body/log) is hidden
  behind it until a connection succeeds.
- Rebuild the Connect dialog for Nova to match the TS6 Redesign
  mockup's dedicated Connect screen: centered hero (logo/title/
  subtitle) above an elevated card, a chevron-toggle "Erweiterte
  Optionen" moved under the nickname field, reordered ghost/primary
  footer buttons, and a fixed settings-gear shortcut into Options.
  The 11 existing form fields/handlers are shared with the Standard
  dialog via one JSX tree, decorated only through small nova ternaries.
- Nova starts with an empty server-address field instead of the
  Standard theme's "localhost" default.
- All changes scoped under .ts-app.ts-design-nova (or nested
  classes); Standard theme verified pixel- and behavior-identical
  throughout via repeated live comparisons.
2026-08-29 03:15:06 +02:00
MoepchiandClaude Sonnet 5 8e78ae98c9 Remove non-functional myTeamSpeak ID feature
Both checkboxes were disabled stubs; the underlying protocol field is
hardcoded to None in tsclientlib and not exposed as a settable option,
so the feature can't be implemented. Removed from Connect and
Favorites dialogs plus the now-orphaned i18n keys (DE+EN).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-28 22:28:51 +02:00
Moepchi e2c67ef23c Remove landing page from client repository 2026-08-23 10:09:28 +02:00
Moepchi b0eda9a22c Add mobile navigation and release updates 2026-08-22 23:35:59 +02:00
Moepchi bdfc0bcc10 Expand landing navigation sections 2026-08-22 23:25:20 +02:00
Moepchi 6bdd0fa171 Stabilize landing navigation scroll state 2026-08-22 23:19:17 +02:00
Moepchi ccceacba07 Polish landing navigation and section motion 2026-08-22 23:17:31 +02:00
Moepchi f56990f033 Add landing community feedback section 2026-08-22 23:10:56 +02:00
Moepchi 27fbd3cd10 Fix connection status indicator spacing 2026-08-22 22:41:29 +02:00
Moepchi dfae1b53d2 Expand landing onboarding and project details 2026-08-22 22:37:51 +02:00
Moepchi e221c9d73d Overlay Android camera and gesture bar 2026-08-22 22:23:07 +02:00
Moepchi 8ff35abdf1 Refine iPhone preview frame 2026-08-22 22:19:58 +02:00
Moepchi bb152a9bda Add device-aware phone frames 2026-08-22 22:14:09 +02:00
Moepchi 0b76f2e354 Show real mobile client preview 2026-08-22 22:09:50 +02:00
Moepchi 0ad64fd4f8 Update interactive client preview 2026-08-22 22:04:07 +02:00
Moepchi c6fbc04236 Clarify connection to any TeamSpeak server 2026-08-22 21:37:58 +02:00
Moepchi 7deee1a8c3 Expand landing page with product details 2026-08-22 21:31:02 +02:00
Moepchi 69efb64db6 Add bilingual WebSpeak3 landing page 2026-08-22 12:47:09 +02:00
MoepchiandClaude Sonnet 5 b70b4d1fc9 Fix: VITE_GATEWAY_URL override was missing the /ws path
The gateway's WebSocketServer only listens on /ws (gateway/src/index.ts),
but the VITE_GATEWAY_URL build-time override connected to the bare host
instead - causing 'Could not reach the gateway' on split-hosted deploys
(e.g. client.webspeak3.de -> gateway.webspeak3.de). Now /ws is always
appended, whether the URL comes from the same-origin fallback or the
override.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-11 02:17:53 +02:00
Moepchi c10572feda Support VITE_GATEWAY_URL to point the built frontend at a gateway on another host 2026-08-10 21:46:39 +02:00
Moepchi c305fc4e1e Remove redundant poke hover-button from client tree rows (already in context menu) 2026-08-10 21:31:13 +02:00
Moepchi ec3a693292 Fix icon right-alignment: remove duplicate margin-left:auto from poke button 2026-08-10 21:28:16 +02:00
Moepchi 6bc3dca567 Add colored-letter badges for TS3 built-in default group icons; only fetch real custom icon files 2026-08-10 21:23:54 +02:00
Moepchi 0a1163d4f9 Widen tree row to fill panel width; add ftdownload debug logging 2026-08-10 20:47:13 +02:00
Moepchi fee0169463 Right-align client row icons flush to the edge; add debug logging for group icon ids
Status icons and group badges previously sat right after the name with no
push-right, so they clustered close to it instead of at the row's right
edge like the poke button already does. Wrapped them in a flex span with
margin-left: auto to match.

Also added temporary eprintln logging of each channel/server group's
resolved icon_id, to check whether this server's groups actually have
custom icons assigned (native TS3 doesn't show a badge for groups without
one either) before assuming the icon feature itself is broken.
2026-08-10 20:09:10 +02:00
Moepchi b7ef6f78e7 Add server group icon badges and a 'no talk power' status icon
Group icons were entirely missing from the data model - GroupEntry only
carried id/name. Added icon_id (from ServerGroup/ChannelGroup's Icon field)
through connector -> gateway -> frontend, matching the same channel-0
icon_<id> file convention already used for server icons (#77), reusing
that dialog's fetch/cache/render plumbing (serverIconImages, iconDataUrl).

Client rows now render a small badge per server group with a non-zero
icon, positioned after the name/status icons (i.e. on the right), instead
of not existing at all. Also added a 🔒 status icon for clients who aren't
muted but still can't talk due to insufficient talk power in a moderated
channel (previously no icon indicated this state at all).
2026-08-10 19:11:03 +02:00
Moepchi 6e343c4d4c Fix talking indicator: also respect missing talk power in moderated channels
The previous fix only accounted for the local mute toggle. In a moderated
channel (one with a talk power requirement) a client without sufficient
talk power still has selfActive/VAD firing locally and no local concept of
whether they're actually allowed to transmit, so the indicator stayed on
regardless.

The connector now computes has_talk_power per client from the book state
(talk_power_granted || talk_power >= channel.needed_talk_power), mirroring
tsclientlib's own internal intern_can_send_audio moderated-channel check,
and threads it through gateway and frontend. The talking indicator (both
the own-client injection into displayTalkers and the general per-client
render in ChannelTree) now requires hasTalkPower too.
2026-08-10 18:47:37 +02:00
Moepchi 4847972c80 Fix: don't show local talking indicator while mic is muted
selfActive is driven by MicCapture's local VAD (raw input level), which has
no notion of the input-muted state - only the actual audio send (onFrame)
checked inputMutedRef. So muting the mic still lit up the green talking
indicator on your own row locally, even though nothing was being
transmitted.
2026-08-10 18:30:37 +02:00
Moepchi b4ec2a26b6 Fix blank Server/Channel Gruppen tabs when the group list can't load
servergrouplist/channelgrouplist decline silently on the server when the
account lacks permission to see them (no reply at all - same behavior as
banlist/complainlist elsewhere in this app). The permissions editor's
group list only rendered when it had data, so a permission-limited
account just saw a permanently blank left panel with no explanation
(reported by a screenshot from the real server).

Added the same loading/6s-timeout/"nicht verfügbar" fallback every other
list dialog in this app already uses (GroupAssignDialog, banlist, etc.) -
now shows a loading indicator, then a clear "unavailable" message
instead of nothing.

Verified in demo mode: both Server Gruppen and Channel Gruppen tabs still
list their (demo) groups correctly - no regression from the loading-state
change.
2026-08-06 01:50:53 +02:00
Moepchi ecc07308f6 Fix mojibake in imported .ini identity names/nicknames
The previous \xHH unescaper treated every escape as exactly 2 hex digits
representing one raw byte. The native client's .ini format (Qt's
QSettings escaping) actually uses \x followed by 1-4 hex digits for one
UTF-16 code unit - astral characters (emoji) become two consecutive
escapes forming a surrogate pair, e.g. "\xd83d\xde43" for 🙃. The old
code only consumed the first 2 digits of each escape, leaving the rest as
stray literal text - exactly the mojibake ("Ø3dÞ43" etc.) a user hit
when importing an identity with emoji/Greek/Turkish letters in the name.

Root-caused directly from the user's screenshot (reverse-engineered the
old buggy output back to the real escape sequence) and confirmed against
their actual .ini file content. New parser correctly reconstructs
"[🙃 ] λşşαşşỉŋş88 / Möpchi" and a real connect using that identity's
exact key + nickname succeeds against the live server.
2026-08-06 01:20:51 +02:00
Moepchi 53ccb22189 Support importing native TeamSpeak .ini identity files
The connector now parses --identity either as our own JSON blob or as a
raw TS3 identity string ("<counter>V<base64-key>", the format inside a
native client's exported .ini and in teamspeak:// URLs) via tsproto's
Identity::new_from_str, which already handles both.

The web client's "Identitäten" > Importieren now recognizes a native
.ini file (looks for a [Identity] section), unescapes its \xHH-escaped
name field, and pulls out id/identity/nickname/phonetic_nickname directly
- no conversion needed, the raw identity string is stored as-is and self-
migrates to our JSON format after the first successful connect (same as
any other imported/created identity).

Verified with a real exported .ini file: parsing extracts the right
name/nickname/blob, and connecting the connector directly against the
real server with that exact identity string succeeds and is recognized
as the already-known account (its own channel/server group, not the
default guest group) - not just a fresh/anonymous identity.
2026-08-06 00:48:42 +02:00
Moepchi 17899ae137 Rework Identitäten dialog to match the native client's layout
The old dialog was a flat list with an inline rename field and a radio
button per row - visually and structurally nothing like the native
myTeamSpeak-style Identitäten window. Reworked to the same list + detail
panel layout: pick an identity on the left, edit its Name/Nickname/
Phonetischer Nickname on the right, see its Eindeutige ID (once known)
and creation status, Standard/Löschen/Exportieren buttons per identity.

Also added what was actually missing functionally, not just visually:
- Import/Export: an identity's opaque tsclientlib blob can be downloaded
  as a JSON file and re-imported later (backup/transfer between browsers).
- Per-identity nickname: each identity now remembers its own nickname
  (like native TS3), applied when switching identities in the connect
  dialog and saved back after a successful connect - previously there was
  only one global nickname shared by every identity.

Deliberately left out of scope (documented inline in the component):
myTeamSpeak cloud-synced identities (a whole separate account system this
self-hosted client has no equivalent of) and the manual "Sicherheitsstufe
erhöhen" button (tsclientlib already runs that proof-of-work step
automatically during connect whenever a server demands a higher level,
so a manual trigger wouldn't add functionality, only let you pre-compute
it before connecting).

Verified interactively in demo mode: dialog renders in the new layout,
fields are all editable, Standard/Löschen/Export honor their expected
enabled/disabled states.
2026-08-06 00:39:26 +02:00
Moepchi ea7b97b161 Add full permissions editor window (#71)
The "Rechte" top menu's four previously-disabled items now open a tabbed
editor matching the real TS3 client's window: Server Gruppen, Client
Rechte, Channel Rechte, Channel Gruppen, Channel Client Rechte. For each
tab you pick a group/channel/client (or combination), see its currently
assigned permissions in a filterable table, add new ones from a searchable
catalog, and remove existing ones.

Connector: new servergrouppermlist/channelgrouppermlist/channelpermlist/
clientpermlist/channelclientpermlist request handling (unified behind one
"permlist <scope> ..." stdin command and a single-target pending-list
mechanism, mirroring the existing permoverview pattern's name-resolution
cache) plus servergroupaddperm/-delperm, channelgroupaddperm/-delperm,
channeladdperm/-delperm, clientaddperm/-delperm, channelclientaddperm/
-delperm for mutating them, and a "permissionlist" command to expose the
full permission catalog (needed for the "add permission" picker).

Verified against the real server: permission list/catalog requests reach
the server correctly. The test guest account turns out to lack rights to
see permission names/IDs at all (server replies with only the hierarchy's
group-boundary markers, no populated permid/permname) - same class of
account-permission ceiling as banlist/file uploads/etc. earlier in this
project, not a bug in this feature. Add/remove wire commands support both
numeric permid and permsid addressing per the protocol, so this should
work fully for an account with actual view rights (e.g. the real server
admin), even though it couldn't be exercised end-to-end with this guest
account. Full interactive verification (list, add, remove) done in demo
mode instead.

"Rechteübersicht" (viewing another client's computed effective
permissions with grant provenance) stays disabled - a materially
different feature the connector doesn't support.
2026-08-06 00:16:30 +02:00
Moepchi 6d6803d9b3 Add server icons window (#77)
Right-click on the server row -> "Server-Icons..." opens a grid of the
server's icon repository (TS3's special "channel 0" filebase). Reuses the
file-transfer plumbing from #83 (ftgetfilelist/download/upload/delete)
rather than adding new connector commands - icon_<id> files under channel
0 *are* the server icon repository, so no new protocol handling was
needed. Lets you view existing icons as real thumbnails (sniffed from the
downloaded bytes - PNG/GIF/JPEG/BMP), upload a new one under a chosen
numeric ID, and delete icons.

Out of scope for this pass: actually assigning an icon to the server/a
channel/a group (there's no icon-picker wired into the server/channel
edit dialogs yet) - this delivers the icon repository browser only.

Demo mode gets a small fake icon repository (two placeholder icons) so
the window is interactive in the GitHub Pages demo too.
2026-08-05 23:36:45 +02:00
Moepchi 7901aafbb1 Add file transfer support (#83)
Channel-scoped file browser reachable via right-click on a channel:
navigate directories, create folders, rename/delete, and upload/download
files. Backed by tsclientlib's built-in download_file/upload_file (which
already handles the ftinitdownload/ftinitupload -> TCP data-port dance),
plus raw ftgetfilelist/ftcreatedir/ftdeletefile/ftrenamefile commands for
everything else. Downloads/uploads are buffered whole in memory and
base64-relayed over the existing stdin/WebSocket text protocol - fine for
a channel filebase's typical file sizes, not meant for huge transfers.

Verified against the real server: upload/list/download round-trip reaches
the server correctly (list succeeds, upload correctly surfaces the
guest account's missing permission via the new FiletransferFailed
handling instead of hanging or crashing).

Demo mode gets a small in-memory per-channel filesystem so the file
browser is fully interactive in the GitHub Pages demo too.
2026-08-05 22:39:35 +02:00
MoepchiandClaude Sonnet 5 41ac845fbc Add read-only permission overview ("Eigene Rechte anzeigen")
Partial progress on #71 (full permissions editor). A genuine full
editor - server/channel/group permission grids across 5 permission
scopes with add/remove/modify for hundreds of possible permissions -
is a much bigger undertaking than fits in one pass, so this lands a
real, useful slice of it first: a read-only view of the caller's own
effective permissions in their current channel.

- Connector: "permoverview" (raw command, no typed builder exists)
  requests the caller's effective permission set for cid+cldbid.
  Permission IDs are opaque numeric values server-side, so results are
  name-resolved via a "permissionlist" id->name/description lookup
  that's fetched once and cached for the connection's lifetime. The two
  requests are chained (list first, overview second) with buffering in
  case the overview reply somehow arrives first.
- Gateway: typed passthrough for the merged, name-resolved entries.
- Frontend: new dialog wired to "Eigene Rechte anzeigen" in the Rechte
  menu (previously disabled) - a filterable table of permission
  name/value/negated/skip.

Verified against the real server: initially got a clean
"ParameterNotFound" error revealing that permoverview needs an
explicit permid=0 ("all permissions") even though tsclientlib's
generated type treats it as optional; after adding that argument the
command reaches the server correctly and returns the expected
permission-denied response for the guest test account (same pattern
as every other admin-gated feature this session).

The remaining scope of #71 - editable server-group/channel-group/
channel/client permission grids - is unchanged and left for later.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-05 21:35:09 +02:00
MoepchiandClaude Sonnet 5 0f8576ac6c Add ServerQuery Login dialog
Wires up the previously-disabled "ServerQuery Login" Extras menu item
with a username/password form. Sends the raw TS3 "login" command
(client_login_name/client_login_password) over the existing
connection - no typed builder exists for it upstream, same situation
as the other raw-command features this session. Credentials are
base64-encoded over the connector's stdin protocol (rather than naive
space-splitting) so passwords with spaces or special characters
survive the trip intact.

Fire-and-forget like kick/ban: the dialog closes on submit and relies
on the existing generic error/permission-error event path for
feedback. Verified against the real server end-to-end - bogus
credentials round-tripped through connector -> gateway -> frontend
and surfaced as a clean error event (this particular server responds
"NotImplemented" to post-connect query login, which is itself proof
the command reached the server and got a real protocol-level reply).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-05 21:02:16 +02:00
MoepchiandClaude Sonnet 5 db8b5ea958 Complete client context menu: channel/server group assignment
Fills out the last two disabled entries in the client right-click menu
(#72): "Channel-Gruppe zuweisen" and "Server-Gruppe zuweisen".

- Connector: exposes each client's database_id, channel_group, and
  server_groups (already present in tsclientlib's bookkeeping Client
  struct, just not threaded through before) on the "channels" snapshot.
  Adds raw commands for channelgrouplist/servergrouplist (list requests,
  same InMessage pattern as banlist/complainlist) and
  setclientchannelgroup/servergroupaddclient/servergroupdelclient
  (assignment, fire-and-forget like kick/ban).
- Gateway: typed passthrough for the new client fields and five new
  message types (getChannelGroupList, getServerGroupList,
  setChannelGroup, addServerGroup, removeServerGroup).
- Frontend: new GroupAssignDialog reused for both channel groups
  (single-select, closes after assigning) and server groups
  (multi-select, checkmarked entries toggle add/remove and the dialog
  stays open). Demo mode simulates real group membership changes,
  including live re-render after assignment.

Verified against the real server: the client's own database_id/
channel_group/server_groups now flow correctly end-to-end (confirmed
via a throwaway gateway test script). The list-request commands are
permission-gated for the guest test account and decline silently, same
as serverlog/serverconninfo before them - the dialog's existing 6s
"unavailable" timeout already covers this.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-05 20:40:52 +02:00
MoepchiandClaude Sonnet 5 203e8fba51 Add "Rechte" top menu
Turns the previously-static "Rechte" label into a real dropdown menu,
matching the layout of TeamSpeak's native permissions menu: server
groups, channel groups, server/channel permission editors, a
permission overview, and "eigene Rechte anzeigen".

All entries are disabled with the standard "not yet supported in the
web client" tooltip - actual permission querying/editing needs new
protocol plumbing (permlist/permidgetbyname etc., same class of work
as the full permissions editor tracked separately) that doesn't exist
yet. This gives the menu real content and correct TS3-parity structure
without faking functionality that isn't there.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-05 20:22:58 +02:00
MoepchiandClaude Sonnet 5 b9d4bd533d Complete server right-click context menu
Right-clicking the server row in the tree previously did nothing.
Adds a context menu (same styling/dismiss pattern as the client
context menu) offering: server connection info, edit virtual server,
copy server address, add to favorites, server protocol log, ban list,
complaint list, and disconnect - all wired to handlers that already
existed for the menu bar / info panel equivalents.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-05 20:17:55 +02:00
MoepchiandClaude Sonnet 5 dbe9a3c2df Add offline messages (Offline Nachrichten) dialog
Wires up raw TS3 protocol commands for offline messages, since
tsclientlib's generated code has no typed builder for them (same
situation as banlist/complainlist in the previous feature):

- Connector: messagelist, messageget, messageadd, messagedel,
  messageupdateflag as raw OutCommand invocations. Replies parsed via
  the existing StreamItem::MessageEvent pending-flag pattern, reusing
  InMessage::OfflineMessageList (list, no body) and InMessage::OfflineMessage
  (single message with full body, response to messageget).
- Gateway: typed events/methods threading the new commands from
  WebSocket clients through to the connector's stdin protocol.
- Frontend: new "Offline Nachrichten" dialog in the Extras menu with a
  message list (subject/from/timestamp, unread dot), a detail view
  (full body + mark-as-read), delete, and a compose form to send a new
  message to a target client UID. Demo mode gets one scripted message.

Verified against the real test server (192.168.178.108): messagelist
returns a clean DatabaseEmptyResult error for an account with no
messages (falls back to the dialog's existing 6s "unavailable" timeout,
same as banlist/complainlist), and messageadd correctly surfaces a
permissionError for a guest account lacking send rights - both proving
the raw command round-trip works end to end.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-05 19:57:05 +02:00