Commit Graph
231 Commits
Author SHA1 Message Date
MoepchiandClaude Sonnet 5 b0495367cb Link ToS modal to legal pages, add report feedback category
- ToS modal: Datenschutzerklärung/Impressum words are now real links
- Feedback form: new "report" category (abuse/violation), hidden
  GitHub-issue option since reports must stay private
- Gateways: accept "report" in FEEDBACK_CATEGORIES

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-14 18:33:27 +00:00
MoepchiandClaude Sonnet 5 73303e1229 Add SIGTERM restart-warning broadcast and first-visit ToS modal
- Gateway: on SIGTERM, broadcast a "notice" event to every connected
  socket before shutting down, so an active call/stream doesn't just
  silently drop during a redeploy.
- Web client: new "notice" event handling shows a non-dismissable
  restart-warning dialog; new ToS modal shown on first visit to the
  own-hosted instance (client.webspeak3.de only), versioned via
  localStorage, reopenable from the menu.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-14 18:15:15 +00:00
MoepchiandClaude Opus 5 0b34e7ecfb web: put the donation pill below the feedback button
The two floating buttons swap places: the Ko-fi pill now sits in the
corner at bottom: 5.5rem and the feedback button stacks above it at
8.5rem, which keeps the same 12px gap the previous arrangement had.

The offset still follows the instance rather than the dialog, it just
moved to the other element: the feedback button only shifts up where the
donation pill is actually rendered, and takes the corner spot where the
build dropped it via VITE_DONATE_URL=.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-11 16:28:18 +00:00
MoepchiandClaude Opus 5 6ebc3e22e0 web: add a Ko-fi donation button
A small pill in the bottom right corner, in Ko-fi's own red rather than
the theme colors so it reads as what it is. It sits above the feedback
button where that one exists and takes its place where it does not; the
offset follows the instance rather than the dialog, so opening feedback
does not make it jump.

Unlike the feedback button this is not limited to the maintainer's own
instance - it ships in every build, the Docker image included. Since
that means self-hosters carry someone else's donation link, there is a
way out: VITE_DONATE_URL= (empty) drops the button, any other value
retargets it, and the Dockerfile passes it through as --build-arg
DONATE_URL. The "keep" sentinel there is not decoration - an unset and
an empty build arg are indistinguishable inside RUN, so without it
"not passed" would silently mean "remove".

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-11 16:12:58 +00:00
MoepchiandClaude Opus 5 cc715e24b2 Fix the feedback URL and stop serving a UI when WEB_STATIC=0
VITE_GATEWAY_URL names a WebSocket origin, and FEEDBACK_URL was derived
from it verbatim - so with VITE_GATEWAY_URL=wss://gateway.example the
form posted to wss://gateway.example/api/feedback, which fetch() refuses
outright ("TypeError: unknown scheme"). Every submission from a
separately hosted frontend failed before it left the browser. Map the
scheme back to http(s); an already-http VITE_GATEWAY_URL is untouched.

While there: WEB_STATIC=0 answered every path with the dev hint page,
which talks about localhost:5173 and npm run dev. That page is wrong for
a gateway that is reachable publicly, and an SPA-shaped answer on every
path makes the host look like a second, stale copy of the app. Serve a
short deployment-neutral notice at "/" and 404 everywhere else; the dev
hint stays for the case it is actually about, a missing web/dist.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-11 12:39:50 +00:00
MoepchiandClaude Opus 5 2ee6d1f0b5 Stop the service worker from stranding clients
Between 48f5e35 (07.09., registerType: 'autoUpdate') and 5b5f4ca (10.09.,
switched to 'prompt') every client that cached the app froze: the new
worker sits in `waiting` and the only code that could release it - the
update toast - lives in the build behind that worker. Their next update
never arrives, and Pages deletes the hashed assets they still run from,
so the bundle they serve does not exist on the server any more. That is
how the feedback form went missing on client.webspeak3.de.

- Back to 'autoUpdate', with skipWaiting/clientsClaim spelled out: the
  plugin only sets them when it also injects registerSW.js, so with
  injectRegister: false the generated worker was byte-identical to the
  'prompt' one. Verified in dist/sw.js.
- onNeedReload instead of onNeedRefresh: the worker takes over on its
  own, the toast only decides *when* to reload, so nobody is thrown out
  of a running connection.
- version.json plus a __BUILD_ID__ baked into the bundle, checked every
  30 min and on tab focus, deliberately routed around the worker (not in
  globPatterns, so never precached). If the server is on another build
  and no new worker turns up, the worker is wedged and the button clears
  registrations and caches instead of reloading into the same cache.
- Dismissing the toast snoozes for 30 min rather than for good.

Verified in headless Chromium against simulated deploys: a client stuck
on the old worker lands on the new bundle at the first plain F5.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-11 12:20:53 +00:00
MoepchiandClaude Opus 5 06f38b4582 Switch the streaming UI back on
The gateway on the VPS was rebuilt on the v0.11.0-beta.1 image and now
answers setupStream/joinStream/sendStreamSignal, so the condition the kill
switch was waiting for is met. Verified against the live gateway rather
than assumed: a WebSocket connect through gateway.webspeak3.de reached a
real TS6 server, and all five stream commands are present in the running
dist.

The switch itself stays - it is the lever for the next time the frontend
ships a stream feature before the gateway has it. The durable fix is still
a capability handshake; see ROADMAP.md.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-11 11:23:54 +00:00
MoepchiandClaude Opus 5 5024bf9856 Switch the streaming UI off until the gateway catches up
client.webspeak3.de is rebuilt by Cloudflare Pages on every push to main, but
the gateway and connector are a Docker image that has to be pulled onto the
host by hand. v0.11.0-beta.1 therefore put a browser that knows setupStream in
front of a gateway that does not - and an unsupported setupStream is not an
error, it is silence: the publish panel waits at "starting" forever, after the
browser has already asked the user to share a screen. That reads as a broken
feature, which is worse than an absent one.

Both entry points are gated on one flag: the toolbar button and the "watch
stream" context-menu item. The publisher is tree-shaken out of the bundle as a
result, so nothing can reach the gateway by accident. Flip it back once the
deployed gateway is on v0.11.0-beta.1 or newer.

The durable fix is a capability handshake so the client can tell what its
gateway supports instead of assuming; noted in the roadmap.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-11 06:39:13 +00:00
MoepchiandClaude Opus 5 e7d5b3be0a Don't offer streaming in demo mode
DemoSocket answers a fixed set of gateway messages and silently drops the
rest, setupstream among them. Clicking the button on the public demo would
therefore prompt the visitor to pick a screen, start the capture, and then
leave the panel at "starting" forever with no error - which reads as a broken
feature rather than an absent one.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-11 05:37:19 +00:00
MoepchiandClaude Opus 5 9652a3efe5 Mark TS6 streaming as alpha in the UI and the docs
Streaming interoperates with TeamSpeak 6 over a protocol TeamSpeak does not
document; the wire format here was derived from observed behavior. It can fail
to connect, deliver a poor picture, mishandle viewer admission, or break with
any TS6 update - which is a different stability expectation than the rest of
WebSpeak3, and users should not have to infer that from a release note they
read once.

So the badge sits everywhere the feature is reachable: the stream settings
dialog (with a sentence explaining what "alpha" means here), both stream
panels, and the toolbar button's tooltip. README and ROADMAP say the same,
including the two gaps that are most likely to be mistaken for bugs - no SFU
("Server" mode), no camera source.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-11 05:35:04 +00:00
MoepchiandClaude Opus 5 686458807a publish: stop the encoder from shrinking the picture
Every resolution above 360p was effectively a lie. The capture ran at the
requested size, the bitrate cap was applied, and the encoder then scaled
the picture down by 3x anyway and never recovered.

The cause is degradationPreference, which we never set. Its default for a
track hinted "motion" - which is every preset except Presentation - is to
protect the frame rate and sacrifice resolution. For a screen share that
is backwards: the user picked 1080p, so 1080p is what to keep.

Measured on a 1440x1080 capture with a 6000 kbps cap, 12 s each:

    default             480x270  @20  limit=bandwidth  ~214 kbps
    maintain-framerate  480x270  @20  limit=bandwidth  ~212 kbps
    balanced            480x270  @15  limit=bandwidth  ~169 kbps
    maintain-resolution 1440x810 @19  limit=none       ~717 kbps

Note the bitrate column: the shrunken variants were not short of budget,
they had 6000 kbps and used 214. Setting contentHint "detail" fixes it
too, which is why Presentation was the one preset that looked right.

Audio senders are left alone; degradationPreference is video-only.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-11 05:26:33 +00:00
MoepchiandClaude Opus 5 b505d68f56 publish: drop a queued request when the client leaves
notifystreamclientleft only removed connected viewers, so a request that
was still waiting for a decision outlived the person who made it - the
row stayed in the panel and approving it would have opened a connection
to a client that is gone. Leaving while pending is not exotic: it is what
closing TS6, or giving up on "waiting for access", looks like from here.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-11 05:26:33 +00:00
MoepchiandClaude Opus 5 13d3f56c89 publish: mirror TS6's pending-join model instead of refusing
Live testing against a real TS6 client settled how both settings actually
behave, and neither is what the previous commit assumed.

The server enforces nothing. It stores accessibility and viewer_limit,
echoes them back in notifystreamstarted, and then forwards every join
request anyway - a PRIVATE stream at viewer_limit=1 still had both
viewers announced to us. Enforcement is entirely the publisher's job.

And a refusal is the wrong tool for it. TS6's own rule, from main.js:

    !autoAccept || full ? pendingJoinRequests.push(...)
                        : joinStreamResponse(...)

A request it will not take automatically is left *pending*, not denied.
That matters because a denial does not stick - TS6 pairs its own deny
with a ban (blockAndDenyJoinRequest) precisely because of this - so a
refused client just asks again. Measured: 7 retries in 40 s, with nothing
shown to the person waiting. Left pending, the same client asks once and
displays "waiting for access" until answered, then connects normally.

So: PUBLIC with room to spare admits; anything else queues for the user,
including a full stream. Deny is now an explicit choice, and block is the
sticky variant. CONTACTS_ONLY behaves as PRIVATE because the contact list
is a TS6 account feature we cannot read.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-11 05:26:33 +00:00
MoepchiandClaude Opus 5 4d0954054c publish: actually enforce the viewer limit
viewer_limit went out with setupstream and was then never looked at
again - admit() handed a peer connection to every join request that
arrived. Nothing establishes that the server turns anyone away, so the
setting was advisory at best.

The publisher is the only side that can enforce it: it is the one
handing out peer connections, and in P2P mode each one is another
encode. respondJoinStream(accept: false) was already plumbed end to end
down to decision=0 in the connector; it just had no caller.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-11 05:26:33 +00:00
MoepchiandClaude Opus 5 115cd7150e web: TS6's stream-start options in the publish dialog
TS6 shows a settings dialog before going live; this builds the same set
into webspeak3, split into Basic (preset, capture audio, privacy) and an
Advanced section (resolution, FPS, bitrate, audio bitrate, viewer limit,
connection mode).

The three numeric setupstream fields are enums lifted out of TS6's own
main.js rather than guessed (findings §10): source NONE/CAMERA/SCREEN/
WINDOW/EXISTING_SESSION, accessibility NONE/PUBLIC/CONTACTS_ONLY/PRIVATE,
mode NONE/P2P/SFU. We had been sending type=3 (WINDOW) unconditionally;
detectSourceType() now picks SCREEN for displaySurface === "monitor".

Resolution, FPS and the two bitrates are not protocol fields. They are
applied locally: capture constraints, track.contentHint, and
sender.setParameters() with encoding.maxBitrate. bitrate= on the wire is
advisory - the server echoes back its own number either way.

Connection mode "Server" (SFU) is rendered disabled with a tooltip. That
path is a separate transport (requeststreamsfuaccessinfo -> mediasoup)
that we have not built, and announcing mode=2 without it would publish a
stream nobody could watch.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-11 05:26:33 +00:00
MoepchiandClaude Opus 5 15e215d892 stream: publish a stream TS6 can watch
The other direction, live-verified against TS6 6.0.0-beta12.1: a real
client rendered our video. Connector gains setupstream, stopstream and
respondjoinstreamrequest; the browser gains publish.ts and a toolbar
button.

The publisher offers. TS6 puts the first SDP in respondjoinstreamrequest,
so the side that owns the stream is the side that makes the offer - the
mirror of how it answered us when we were watching. Its reply confirmed
the key rule found in 7a8a1ea from the other side: TS6 sends us
args.answer, exactly as it expects args.answer from us. The key is always
named after the cmd.

The notify filter had to be fixed first. It matched
starts_with("notifyrespondjoinstream"), which drops the inbound
notifyjoinstreamrequest - so every viewer asking to watch *us* was
silently discarded, and the whole publishing direction was mute. Match
ends_with("joinstreamrequest") instead.

P2P mode is a mesh with no SFU in the path, so each viewer gets its own
peer connection and its own encode. Watching and broadcasting can run at
once, so the two panels stack in a shared container rather than both
anchoring to the same corner.

Note for later: we send bitrate=1500000 and the server reports 58208
back. It does not take our value - a real TS6 client showed 50880. Looks
server-side, and it does not stop the connection.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-11 05:26:33 +00:00
MoepchiandClaude Opus 5 b57d32bc18 stream: the answer args key is "answer", and it plays
Live-verified against TS6 6.0.0-beta12.1: the working payload is
{"cmd":"answer","args":{"answer":"<sdp>"}}. Audio and video RTP now
arrive from a real TS6 publisher into the browser.

53f6856 sent the bare SDP string instead, inferred statically from an
`answer` branch in the inbound dispatcher that references no key
literal. The inference was wrong - that branch delegates the object
read to a shared JSON helper, and the key lives there. A branch with no
key literal in it means the read is elsewhere, not that there is no key.

The wrong shape is completely silent: the server accepts and routes the
command, and the client discards it. Only getStats() shows it, as TS6
answering our connectivity checks while never sending one of its own
(requestsReceived=0) - it replies from the credentials in its own offer
without ever having applied a remote description. So drop the 5 s
retry-in-the-other-shape fallback, and keep send_with_result on
streamsignaling so a refused command at least surfaces as an error.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-11 05:26:33 +00:00
MoepchiandClaude Opus 5 c2e4760e37 Don't crash on a plain-http origin
crypto.randomUUID() exists only in a secure context, so opening a self-hosted
instance over http on a LAN IP threw at module load - before React rendered
anything - and left a blank page with no visible cause.

Falls back to a v4 id built from crypto.getRandomValues(). These ids are local
identifiers (identities, sessions, whisper lists), not secrets.

navigator.mediaDevices was already guarded, so the mic just reports "requires
HTTPS (or localhost)" as intended.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-11 05:26:33 +00:00
MoepchiandClaude Opus 5 087b8a90c5 stream: answer args are the bare SDP, not {sdp}
TeamSpeak.dll's inbound signaling dispatcher LEAs a key literal in every
branch that reads an object out of `args` (decision/offer for joinResponse,
sdp/mid/mLine for iceCandidate) and none in the answer and offer branches,
whose handler ends in StreamP2P::SetAnswerString(const std::string&).

That is static evidence only - TS6 has never had an answer from us to react
to, and it drops an unreadable payload silently - so the viewer re-sends the
object form after 5s if nothing connected. The first live test settles it.

Inbound offer/reconnectOffer now accept both shapes.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-11 05:26:33 +00:00
MoepchiandClaude Opus 5 6107501445 Browser: watch a TS6 stream
Adds web/src/stream.ts, the receive-only RTCPeerConnection that takes TS6's
SDP offer out of notifyrespondjoinstreamrequest, trickles ICE both ways over
notifystreamsignaling and hands the remote MediaStream back.

App.tsx only wires it up: a client with client_is_streaming gets a requeststreaminfo
(that property is the *only* way a late joiner learns a stream is running), a
badge in the tree, a context-menu entry and a floating video panel.

Also adds the missing requestStreamInfo path in the gateway - the connector
already had `streaminfo <clid>` on stdin, nothing could reach it.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
2026-09-11 05:26:33 +00:00
MoepchiandClaude Sonnet 5 7776a71e84 Harden and polish the feedback endpoint
- Honeypot field ("website", hidden via CSS + tabIndex -1): any
  non-empty value silently short-circuits to a fake success response
  without logging or filing anything, at near-zero cost to real users.
- Tag created GitHub issues with the feedback category (bug/idea/
  other) alongside the existing "feedback" label, for easier triage -
  GitHub auto-creates labels that don't exist yet.
- Rotate feedback.log once it crosses 5MB (move to feedback.log.1) so
  a busy instance doesn't grow the file unbounded.
- Push the nudge bubble's cooldown out from the moment someone
  actually submits feedback, so it doesn't ask again shortly after
  they just did.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-10 09:15:05 +02:00
MoepchiandClaude Sonnet 5 5b5f4caf79 Add PWA update prompt instead of silent stale caching
Previously the service worker used registerType: 'autoUpdate' with
the default injected register script - a new deploy would install
and activate a new SW in the background, but an already-open tab
kept running the old JS/CSS from memory with no indication a newer
version existed, short of a manual hard reload (or clearing SW/
caches by hand, which we had to do repeatedly while verifying
deploys this session).

Switch to registerType: 'prompt' and register the SW ourselves via
virtual:pwa-register/react (useRegisterSW), showing a small "new
version available" toast with a reload button when an update is
waiting. Also poll registration.update() hourly so long-lived tabs
notice updates without needing a fresh navigation.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-10 09:13:15 +02:00
MoepchiandClaude Sonnet 5 dc35526727 Fix mobile dropdown menus overflowing off-screen
Each menubar dropdown (Extras, Rechte, ...) opened flush with the
left edge of the specific menu item that triggered it. On a narrow
screen, any item not near the left edge (e.g. Extras) opened a
260px-wide panel that ran off the right side of the viewport.

On mobile, anchor the dropdown to the whole menubar instead of the
individual item, and let it span (almost) the full width with a
max-height + scroll for long lists (Extras has a lot of entries).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-10 08:44:16 +02:00
MoepchiandClaude Sonnet 5 20a861caff Fix mobile menu bar clipping new items off-screen
.ts-menubar had flex-wrap set for mobile, but the actual row of
menu items lives in the nested .ts-menubar-items flex container,
which never wrapped - so on narrow screens items past a certain
width (like the new Feedback entry) were clipped off the right
edge instead of wrapping to a second line.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-10 08:33:43 +02:00
MoepchiandClaude Sonnet 5 6c764578a7 Raise feedback FAB and add occasional nudge bubble
- Move the floating feedback button up above the message compose bar
  so it no longer overlaps the input/send controls.
- Add a small dismissible speech bubble inviting feedback, shown once
  ~45s after load and at most every 3 days (tracked via localStorage),
  auto-hiding after 14s if not interacted with.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-10 08:23:50 +02:00
MoepchiandClaude Sonnet 5 d48172f4d1 Make feedback access more visible
Move the feedback entry out of the Extras submenu into its own
top-level menubar item, and add a floating action button (bottom
right) as a second, always-visible entry point. Both stay gated
behind IS_OWN_HOSTED_INSTANCE like before.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-10 08:15:45 +02:00
MoepchiandClaude Sonnet 5 e2a09fbb43 Add in-client feedback form (own-hosted instance only)
- gateway: opt-in POST /api/feedback endpoint (FEEDBACK_ENABLED=1),
  logs submissions to feedback.log and optionally files a GitHub issue
  on Moepchi/webspeak3 when GITHUB_TOKEN is set and the user opts in.
  Rate-limited per IP, CORS-aware for split-hosted deployments.
- web: new "Feedback" menu entry under Extras, gated to
  client.webspeak3.de at runtime (IS_OWN_HOSTED_INSTANCE) so other
  self-hosted/forked deployments and the public demo never see it.
  New FeedbackDialog with category/message/email fields and an
  opt-in "publish as GitHub issue" checkbox. New i18n strings (DE/EN).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-10 07:29:48 +02:00
Moepchi 20d1944dc9 Reconnect resilience: gateway heartbeat + session auto-reconnect
Two related bugs: a browser tab that lost network (or got backgrounded/
suspended on Android) could leave the connector alive on the TS3/TeaSpeak
server for minutes after the frontend showed disconnected, and multi-join
background tabs simply vanished on any drop instead of staying connected.

- gateway: WebSocket ping/pong heartbeat (20s) so a dead browser socket is
  detected and its connector torn down promptly instead of waiting on an
  OS-level TCP timeout.
- web: every session (active tab or parked multi-join background tab) now
  remembers its connect params and can reopen its own socket after an
  unexpected drop, with exponential backoff (1s-30s) so a persistently
  unreachable gateway isn't hammered. Wake Lock keeps the screen (and the
  tab's throttling) at bay while any session is live; a visibilitychange
  sweep reconnects every dropped session once the page is visible again.
  Mic stays off for background sessions throughout, same as before.
2026-09-07 16:01:05 +02:00
MoepchiandClaude Sonnet 5 701bd867fc fix: self-move channel password prompt, spacer targets, client-list memoization
- handleMoveClient: route self-drags through handleSwitchChannel so
  moving your own client still prompts for a channel password when
  required, while admin moves of other clients keep bypassing the
  target channel's password (matches native TS3/GTS behavior - only
  the mover needs permission, not the password).
- MoveClientDialog: disable channel spacers as move targets, they are
  display-only rows with no backing channel.
- connector moveclient handler: carry the already-decoded password
  through the fallback branch (client not found in local state)
  instead of hardcoding an empty password, so self-moves via that
  path still authenticate correctly.
- App.tsx: memoize treeClients/queryClientCount so they are not
  recomputed on every render (e.g. on unrelated "talkers" updates),
  and simplify the duplicated displayClientCount ternary.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-06 11:57:30 +02:00
Nico B.andCursor b6448e65e8 Add client move/DnD, ServerQuery favorite toggle, and TeaSpeak poke handling.
Lets users move clients via context menu or drag-and-drop (including spacers), show ServerQuery clients per favorite without reconnecting, and surface TeaSpeak/GTS notifyclientpoke reliably via connector fallback plus tsclientlib parse fallthrough.

EOF

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-06 02:09:52 +02:00
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 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