Commit Graph
96 Commits
Author SHA1 Message Date
MoepchiandClaude Sonnet 5 46ae5b120e Add Whisperlisten (saved whisper target lists)
Lets you save the current whisper channel/client selection as a named
list and reactivate it later. Lists are matched by name rather than id
on activation, since ids only stay stable for the current connection.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-04 19:37:14 +02:00
MoepchiandClaude Sonnet 5 284645f18d Save local recordings as WAV instead of webm
Swaps the MediaRecorder-based capture for a raw PCM tap (ScriptProcessorNode)
and a hand-rolled WAV encoder, since MediaRecorder's output format/codec is
browser-dependent (webm/opus) and the user wants a plain, universally
compatible file.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-04 19:28:46 +02:00
MoepchiandClaude Sonnet 5 67c4bc1072 Add local session recording (Aufnahme)
Wires up the Extras menu's Aufnahme starten/beenden items: mixes the
incoming voice playback and outgoing mic signal into a MediaRecorder
and downloads the result as webm on stop. Multitrack recording stays
disabled (needs a plugin-equivalent per-client split not modeled here).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-04 19:21:29 +02:00
Moepchi 7bcced06fd Add Kontakte (contacts) feature
Threads the client's persistent unique identifier through the
connector/gateway/frontend pipeline (previously only the ephemeral
session client id was exposed) so contacts can be keyed by the same
person across reconnects, not by name. The Kontakte dialog supports
adding currently-online clients, per-contact category/phonetic name,
ignoring (filters their chat messages), and quick-whisper/show actions
that reuse existing whisper and channel-selection logic.
2026-08-04 18:37:49 +02:00
Moepchi f5cb4dd160 Add Whisper Verlauf dialog and complete the Selbst menu
Whisper Verlauf logs outgoing whisper-target changes with timestamps
(incoming-whisper detection isn't observable yet, so it's outgoing-only
for now). The Selbst menu now wires Abwesend/Mikrofon/Lautsprecher to
the existing toolbar actions and adds a real nickname-change flow,
backed by a new "nickname" connector command using tsclientlib's
existing client_update().set_name().
2026-08-04 18:14:04 +02:00
Moepchi a0ede4a12a Add Gesammelte URLs, Freund einladen, and Client Protokoll dialogs
Three of the Extras menu's placeholder items are now functional:
collected chat URLs with counts/timestamps, a ts3server:// invite
link generator, and a local client-side event log with level
filtering and search.
2026-08-04 17:53:12 +02:00
Moepchi 6c1fec8dcc Remove Overwolf, File Transfers, and Offline Messages menu items
These pointed at features that don't exist in this project and were
never going to be built - Overwolf integration is out of scope
entirely, and the other two are covered by planned real features
instead.
2026-08-04 16:52:00 +02:00
Moepchi 5858631e6d Add whisper (targeted voice to channels/clients)
Connector: a new "whisper <channelIds>;<clientIds>" stdin command sets
persistent whisper targets; outgoing audio then goes out as
AudioData::C2SWhisper instead of the normal C2S broadcast until
"unwhisper" clears it. Gateway relays a setWhisperTargets message the
same way.

Frontend: a toolbar toggle lists channels as checkboxes, and the
client context menu gets an "add/remove as whisper target" entry;
selecting any target switches all subsequent outgoing voice to
whisper mode.

Verified against the real test server: setting a channel target and
sending a frame produced no connector error, and clearing targets
resumed normal voice cleanly.
2026-08-02 14:41:54 +02:00
Moepchi 7217bc146a Persist client identity across sessions
Previously every connect generated a fresh tsclientlib identity, so
the server saw a new client UID each session. The connector now
accepts a saved identity via --identity and always reports the one
actually used (freshly generated or reused) back in the "connected"
event; the frontend round-trips it through localStorage so
reconnecting keeps the same UID.

Verified end-to-end against the real test server: two separate
connects with the identity carried over produced byte-identical
identity blobs.
2026-08-02 14:29:00 +02:00
Moepchi 249687d98a Support importing .ts3soundpack files
Real TS3 soundpacks have no documented, stable manifest format across
client versions, so instead of parsing a manifest this unzips the
pack (via fflate) and matches each audio file to one of our sound
events by keyword against its filename. Unmatched files are reported
rather than silently dropped, since match confidence varies by pack.
2026-08-02 14:21:55 +02:00
Moepchi 3644ae7c41 Show country flags next to client nicknames
Threads TeamSpeak's per-client country_code field through the
connector snapshot and gateway relay, then renders it as a flag
emoji (regional indicator symbols, no image assets needed) next to
the nickname. Renders nothing when the server has no geo-IP data for
a client (most common on non-official/self-hosted servers).
2026-08-02 14:15:39 +02:00
Moepchi 0529ab72f1 Add right-click context menu on channel tree clients
Works for both other clients (private chat, poke, copy name, plus
disabled placeholders for group assignment/kick/ban) and the own
client (copy name and group placeholders only, since you can't poke
or private-message yourself).
2026-08-02 14:03:01 +02:00
Moepchi af3a7c97cf Support Shift+Enter for newlines in chat input
The chat field was a single-line <input>, unable to hold a line
break. Switch it to an auto-growing <textarea>: plain Enter still
sends, Shift+Enter inserts a newline.
2026-08-02 13:55:23 +02:00
Moepchi 69b256eb42 Add demo-only mobile view toggle
Simulates a narrow viewport by capping .ts-app's own width and using
a container query (instead of a media query) for the mobile
breakpoint, so the toggle exercises the exact same CSS path real
narrow browsers hit. Only rendered when VITE_DEMO_MODE is set.
2026-08-02 13:43:17 +02:00
Moepchi 530415b50b Fix mobile menu bar clipping its own dropdown menus
overflow-x: auto on the menu bar also forces overflow-y to auto,
which clipped the absolutely-positioned dropdown to the bar's own
height instead of letting it float over the page. Let the bar wrap
onto a second line instead, since overflow isn't needed at this
breakpoint anyway.
2026-08-02 13:37:59 +02:00
Moepchi fcbf3ea40d Fix Connect dialog closing on text-selection drag; add mobile layout
Backdrop click-to-close now requires the mousedown to also start on
the backdrop, so selecting text inside any dialog and releasing the
drag outside it no longer closes the dialog.

Add a responsive breakpoint that stacks the tree/side/chat panels and
dialogs into a single column on narrow viewports instead of clipping
the fixed-width desktop layout.
2026-08-02 13:28:53 +02:00
MoepchiandClaude Sonnet 5 42f82d49aa Add Server Log tab notifications for client/channel/permission events
Surfaces join/leave/channel-switch/group-assignment/channel- and
server-edit events inline in the Server tab, matching the native TS3
client's behavior. Own missing-permission errors are shown; other
clients' permission failures are not. Sourced from tsclientlib's
book-event diffs rather than admin-only ServerQuery logs, so it works
for any connected user regardless of log-view permissions. Also
upgrades the channel-switch command to report permission errors
instead of failing silently, and adds a scripted demo-mode preview of
the feature for the GitHub Pages demo.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-01 10:54:18 +02:00
MoepchiandClaude Sonnet 5 f6170f0576 Fix pre-existing TypeScript errors blocking CI build
npm run build runs tsc -b before vite build, and the Pages workflow uses it - these four errors were already present but never surfaced locally since testing here used vite build directly. Removes truly-dead outputDeviceLabel state (its value was never read, only the dropdown's own device list rendered labels), narrows the PmThread lookup to a proper number check, and replaces two constructor parameter properties with explicit fields (disallowed under erasableSyntaxOnly).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-01 00:27:40 +02:00
MoepchiandClaude Sonnet 5 65813b6367 Fix logo not loading under a non-root base path
The logo <img> used a hardcoded absolute "/logo.png" path, which only resolves correctly when the app is served from the domain root. Under the GitHub Pages demo (served from /webspeak3/), this 404'd. Vite already rewrites asset references in index.html for the configured base path, but plain string literals in JSX aren't touched, so this needs import.meta.env.BASE_URL explicitly.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-01 00:23:56 +02:00
MoepchiandClaude Sonnet 5 fe1b5ff991 Add a static demo mode for a GitHub Pages showcase
GitHub Pages only serves static files, but the real app needs a Node gateway and Rust connector to speak the TS3 protocol - neither of which can run there. This adds a fake WebSocket (DemoSocket) that simulates a connection with canned channels/clients entirely client-side, gated behind VITE_DEMO_MODE so the normal Docker build is unaffected, plus a GitHub Actions workflow that builds and publishes it to Pages.

Also fixes a real bug surfaced while testing the disconnect flow: a clean disconnect incorrectly showed "Connection closed before the server responded" because the socket's onclose handler couldn't tell a clean disconnect apart from one that never connected.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-01 00:19:22 +02:00
MoepchiandClaude Sonnet 5 8fb6d72957 Implement Nachrichten options panel: named away-message presets + disconnect message
Wires up the previously placeholder-only "Nachrichten" options section: users can now save/delete named away-message templates and set a default leave message that's sent to the server (via DisconnectOptions) when disconnecting.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-30 23:22:08 +02:00
MoepchiandClaude Sonnet 5 234feb4d55 Add per-event checkbox to mute individual sound notifications
Lets users disable e.g. join/leave chimes while keeping others on, without touching the master sounds toggle.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-30 23:10:19 +02:00
Moepchi 7a69d8602c Add sound notifications for connect/disconnect, join/leave, chat, and poke
New Sounds options panel (Extras > Optionen > Sounds) with a master
enable toggle, volume control, and per-event upload/test/reset. Falls
back to synthesized soft two-note chimes when no custom file is set.
Sounds are routed through the same output device as voice playback.

Custom .ts3soundpack (ZIP+XML) import is left for later - this covers
the simpler per-event custom-file approach first.
2026-07-30 22:58:53 +02:00
Moepchi 507f9e8e3c Fix disconnect on large servers, remove nickname placeholder
Fork tsclientlib to Moepchi/tsclientlib and bump the out-of-order
command queue limit (200 -> 4096). Large servers like
voice.teamspeak.com burst hundreds of command packets during the
initial channel/client sync; a single dropped packet in that burst
previously exceeded the queue and aborted the connection with
"Maximum length exceeded for command queue".

Also clear the "Claude Code" default nickname so the field starts
empty.
2026-07-30 17:35:01 +02:00
Moepchi 85b48fe214 Add German/English UI localization with language switcher
Introduces an i18n layer (src/i18n.tsx) with auto-detection (defaulting
to English) and a persisted override, wires every user-facing string in
App.tsx through it, and adds a language selector to the Anwendung
options panel in the same spot the native TeamSpeak client uses.
2026-07-30 16:58:30 +02:00
Moepchi ddf4f149f7 Add WebSpeak3 logo, favicons, and Open Graph preview image
Wires the official logo into the header, README, and browser tab; generates
favicon.ico/apple-touch-icon/OG image via a new ImageMagick script from a
single source PNG at web/public/logo.png.
2026-07-30 16:34:39 +02:00
Moepchi a77172b55a Rename project from TS Web Client to WebSpeak3
Rebrands the app as an independent project, adds a trademark disclaimer
to the README, and migrates localStorage keys with a compatibility shim
so existing favorites/settings survive the rename. The TeamSpeak
protocol bridge itself (Ts3Connection, ts-connector binary) is untouched.
2026-07-30 16:21:46 +02:00
Moepchi 0b7d2b7346 Allow switching servers via Favoriten while already connected 2026-07-30 16:04:35 +02:00
Moepchi f523005972 Remove myTeamSpeak from Options sidebar (proprietary, not implementable) 2026-07-29 23:05:56 +02:00
Moepchi 26eff72528 Remove non-implementable/non-sensible cosmetic options from Wiedergabe/Aufnahme panels 2026-07-29 23:02:08 +02:00
Moepchi 8af60bd0c2 Enlarge Options dialog so the Aufnahme panel fits without scrolling 2026-07-29 22:56:09 +02:00
Moepchi deb3f7b131 Fix Options dialog content overflow by making the body scrollable 2026-07-29 22:47:19 +02:00
Moepchi 0f24c4b092 Wire up the real Wiedergabe/Aufnahme options panels
Builds out the Wiedergabe and Aufnahme sections of the Options dialog to
match the real TS3 client's layout, with the "Standard" profile only.
Everything technically feasible in a browser is wired to real behavior:
output/input device pickers (input device selection is new - MicCapture
can now target a specific deviceId), playback volume (new gain stage in
AudioPlayer), a real test tone, the voice-activation threshold/hangover
(hangover was previously hardcoded), noise suppression/echo cancellation
toggles (restart capture to apply new getUserMedia constraints), a live
mic level meter, and a mic self-monitoring ("Test starten") loopback.
Settings persist to localStorage. Everything the browser genuinely can't
do (Windows audio session mode, mono/surround downmix, ducking, typing
attenuation, mic-click sounds, comfort noise) stays as a disabled
placeholder control. Local-only for now, not deployed.
2026-07-29 21:43:47 +02:00
Moepchi e5c5cc3f80 Add Options dialog with the real client's settings sidebar
Opens via Extras -> Optionen. Sidebar navigation matches the real TS3
client (Anwendung/myTeamSpeak/Wiedergabe/.../Meldungen) and switches the
content panel, but the settings themselves are still placeholders - none
of the actual options are wired up yet. Local-only for now, not deployed.
2026-07-29 21:08:25 +02:00
Moepchi a2863520a5 Add Extras menu as a layout-only dropdown
Matches the real TS3 client's Extras menu items/grouping/shortcuts, but
every entry is disabled - none of these (identities, ban list, recording,
ServerQuery, etc.) are implemented yet. Local-only for now, not deployed.
2026-07-29 20:54:55 +02:00
Moepchi 0d65c3b123 Enable the mic automatically on page load instead of requiring a click
Voice activation already gates what's actually transmitted, so there's no
reason to make the user click "Enable microphone" every time - it's now
requested once on mount via the same handleToggleMic() path a manual click
uses. Also resume the AudioContext if it starts suspended (autoplay policy),
since granting the permission prompt itself counts as a user gesture and
unblocks it even when start() wasn't triggered by a click.
2026-07-29 20:46:17 +02:00
Moepchi 41559c7712 Allow enabling the mic (and picking an output device) before connecting
The AudioContext/AudioPlayer were only created inside handleConnect, so
clicking the mic button while disconnected silently did nothing - no
permission prompt, no error. Lazily create them on first use instead
(ensureAudioContext), and drop the mic button's connected-only disabled
state, matching the real TS3 client where you can test your devices before
joining a server.
2026-07-29 20:39:51 +02:00
Moepchi c48534dbc4 Add Docker deployment and fix crash in insecure (non-HTTPS) contexts
Adds a multi-stage Dockerfile (Rust connector + gateway + web build) and
docker-compose.yml for running the whole stack as a single container behind
a reverse proxy; the gateway now serves the built web app and the WebSocket
endpoint (/ws) from one port, and the frontend derives its gateway URL from
window.location in production instead of a hardcoded localhost address.

Also guards all navigator.mediaDevices usage against being undefined, which
happens when the page is loaded over plain HTTP on a non-localhost address
(not a secure context) - previously this crashed the whole React app on
mount instead of just disabling the affected voice features.
2026-07-29 18:45:23 +02:00
Moepchi 3715a52de6 Add Favoriten menu, Away/AFK status, and mic/output mute toggles
Implements the real TS3 client's Favoriten menu (add/manage/list, with a
FavoritesDialog), the toolbar Away/AFK dropdown with saved presets and an
AwayDialog, plus input/output mute toggle buttons on the toolbar. Reorders
the toolbar to AFK -> Mic -> Speaker -> Theme and removes the standalone
Connect button in favor of the Verbindungen menu.
2026-07-29 17:24:56 +02:00
Moepchi 53e2887e14 Add Verbindungen menu, TS3-style Connect dialog, and layout restructure
- Replace inline toolbar connect fields with a modal Connect dialog matching
  the real TS3 client's layout, including a functional Standard Channel field
  wired through a new connector --default-channel flag
- Add a Verbindungen dropdown menu (Verbinden/Aktuelle Verbindung trennen/
  Alle Verbindungen trennen) with click-outside/Escape close and Ctrl+S/Ctrl+D
  shortcuts
- Restructure layout: chat area (messages/tabs/input) now spans the full
  width at the bottom; right side shows a separate, non-scrollable server
  banner (object-fit scaled, shown only when set) above the client/server
  info panel; tree width and upper-area height are now drag-resizable
- Surface server version, license, and banner URL from tsclientlib through
  the connector and gateway
2026-07-29 16:38:40 +02:00
MoepchiandClaude Sonnet 5 95a3761235 Rework layout to match the real TS3 client's structure
Adds a menu bar, an icon-based toolbar, and splits the right side into
a channel/server info panel (topic, codec, password, client count) on
top of the chat log - previously a single click switched channels, now
that only selects/shows info while a double-click actually joins, like
the native client. Required exposing a few more real protocol fields
from tsclientlib (channel codec/topic/max clients/password, server
name/max clients) that weren't surfaced before.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-28 21:31:45 +02:00
MoepchiandClaude Sonnet 5 ec034d2d6b Add client poking (send and receive)
Uses tsclientlib's existing MessageTarget::Poke support end to end: a
poke button on each client row opens a small compose overlay (an
optional message, like TeamSpeak's own poke), and incoming pokes show
as a dismissible, auto-expiring banner.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-28 20:51:50 +02:00
MoepchiandClaude Sonnet 5 76cb90360c Add server/channel passwords, connection autofill, and client status icons
Server/channel passwords are now optional connect fields (hidden behind a
lock toggle so the normal flow stays uncluttered). The last successfully
used server/nickname is remembered via localStorage and autofilled on
load. The channel tree now shows per-client status badges (channel
commander, away, mic muted, deafened) sourced directly from tsclientlib's
existing client data.

Also credits Claude Code in the README, since it wrote the vast majority
of this project's code.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-28 20:41:29 +02:00
MoepchiandClaude Sonnet 5 4306da474b Surface connection errors clearly instead of hanging or failing silently
Bounds the connector's initial connect/login wait with a 15s timeout (an
unreachable host previously hung forever with no error), rewrites
tsclientlib's Debug-formatted errors into plain text, and adds a
connecting/error UI state in the frontend with a dismissible banner
instead of burying failures in the bottom log.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-28 19:58:47 +02:00
Moepchi a5c1ae62ff Route voice playback through a hidden <audio> element for device switching
AudioContext.setSinkId only exists in Chrome; HTMLMediaElement.setSinkId is
supported more broadly (including Firefox 130+). Playback now goes through
a MediaStreamAudioDestinationNode into a hidden <audio> element so output
device switching actually takes effect outside Chrome/Edge.
2026-07-28 19:37:14 +02:00
Moepchi b3e55a60b5 Initial commit: browser-based TeamSpeak client
React frontend + Node gateway + Rust connector (tsclientlib) providing
connect, channel tree/switching, channel/server/private text chat, and
voice with voice activation and output device selection.
2026-07-28 19:25:46 +02:00