Add client and server connection-info windows

Sends raw getconnectioninfo/serverrequestconnectioninfo commands and
reads the reply out of tsclientlib's bookkeeping state (it already
tracks ping, packet loss, bytes/packets sent+received internally -
just needed to be requested and surfaced). Wired into the client
context menu (any client), the Selbst menu (self), and a new link in
the server info panel.

Uses send_with_result() so a permission-denied rejection surfaces as
a visible error instead of silently doing nothing; the dialogs also
fall back to a "no response" message after 6s in case the server
declines without any reply at all (observed against a real server
where a guest lacked b_virtualserver_connectioninfo_view).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
MoepchiandClaude Sonnet 5 committed 2026-08-04 22:42:23 +02:00
1 parent a300daedeb
commit 74f688aba8
7 files changed
+565 -3

No files matched your search

+32
View File
@@ -128,6 +128,21 @@ const translations: Record<Lang, Record<string, string>> = {
"identities.generated": "Erstellt",
"identities.pending": "Wird bei der nächsten Verbindung erstellt",
"connectionInfo.clientTitle": "Verbindungsinformationen - {name}",
"connectionInfo.serverTitle": "Serververbindungsinformationen",
"connectionInfo.loading": "Wird geladen…",
"connectionInfo.unavailable": "Keine Antwort vom Server (fehlende Berechtigung?).",
"connectionInfo.ping": "Ping:",
"connectionInfo.connectedSince": "Verbunden seit:",
"connectionInfo.ip": "IP-Adresse:",
"connectionInfo.packetLoss": "Paketverlust:",
"connectionInfo.packetsSent": "Pakete gesendet:",
"connectionInfo.packetsReceived": "Pakete empfangen:",
"connectionInfo.bytesSent": "Daten gesendet:",
"connectionInfo.bytesReceived": "Daten empfangen:",
"connectionInfo.bandwidthSent": "Bandbreite gesendet:",
"connectionInfo.bandwidthReceived": "Bandbreite empfangen:",
"menu.self.recordingProfile": "Aufnahmeprofil",
"menu.self.playbackProfile": "Wiedergabeprofil",
"menu.self.hotkeyProfile": "Hotkeyprofil",
@@ -291,6 +306,7 @@ const translations: Record<Lang, Record<string, string>> = {
"clientContext.privateChat": "Privater Chat",
"clientContext.poke": "Anstupsen",
"clientContext.copyName": "Namen kopieren",
"clientContext.connectionInfo": "Verbindungsinformationen anzeigen",
"clientContext.addWhisperTarget": "Als Whisper-Ziel hinzufügen",
"clientContext.removeWhisperTarget": "Als Whisper-Ziel entfernen",
"clientContext.assignChannelGroup": "Channel-Gruppe zuweisen",
@@ -451,6 +467,21 @@ const translations: Record<Lang, Record<string, string>> = {
"identities.generated": "Generated",
"identities.pending": "Will be generated on next connection",
"connectionInfo.clientTitle": "Connection Info - {name}",
"connectionInfo.serverTitle": "Server Connection Info",
"connectionInfo.loading": "Loading…",
"connectionInfo.unavailable": "No response from the server (missing permission?).",
"connectionInfo.ping": "Ping:",
"connectionInfo.connectedSince": "Connected since:",
"connectionInfo.ip": "IP address:",
"connectionInfo.packetLoss": "Packet loss:",
"connectionInfo.packetsSent": "Packets sent:",
"connectionInfo.packetsReceived": "Packets received:",
"connectionInfo.bytesSent": "Data sent:",
"connectionInfo.bytesReceived": "Data received:",
"connectionInfo.bandwidthSent": "Bandwidth sent:",
"connectionInfo.bandwidthReceived": "Bandwidth received:",
"menu.self.recordingProfile": "Recording Profile",
"menu.self.playbackProfile": "Playback Profile",
"menu.self.hotkeyProfile": "Hotkey Profile",
@@ -614,6 +645,7 @@ const translations: Record<Lang, Record<string, string>> = {
"clientContext.privateChat": "Private chat",
"clientContext.poke": "Poke",
"clientContext.copyName": "Copy name",
"clientContext.connectionInfo": "Show connection info",
"clientContext.addWhisperTarget": "Add as whisper target",
"clientContext.removeWhisperTarget": "Remove as whisper target",
"clientContext.assignChannelGroup": "Assign channel group",