fix(tuic): client speed display and certificate button layout (#6723)

* fix(tuic): restore client speed and certificate layout

* docs(tuic): clarify native runtime and protocol behavior

* fix(websocket): preserve traffic updates from independent sources

* fix(docs): sync websocket traffic schema and drop restating TUIC tests

docs/public/openapi.json still described the old traffic event, without
clientTrafficSource/clientTrafficIntervalMs or the TUIC oneOf branch, so
the docs site showed a payload the panel no longer sends. No check
covers that copy.

The TUIC certificate layout test and the TUIC speed payload test only
read back the literals the code writes, so neither could fail on a real
regression. Both are removed, along with the className that existed only
for the layout test.

---------

Co-authored-by: MHSanaei <ho3ein.sanaei@gmail.com>
This commit is contained in:
Egor
2026-10-05 22:46:46 +05:00
committed by GitHub
parent e897b0957a
commit aacfaebab8
14 changed files with 310 additions and 50 deletions
+25 -8
View File
@@ -16027,15 +16027,9 @@
},
{
"type": "traffic",
"summary": "Live traffic deltas plus online, per-node and last-online maps. Local polls send traffics/clientTraffics; node polls send nodeTraffics.",
"summary": "Live traffic deltas plus online, per-node and last-online maps. TUIC also sends source-tagged client deltas with their sampling interval for live speed.",
"payloadSchema": {
"type": "object",
"required": [
"onlineClients",
"onlineByGuid",
"activeInbounds",
"lastOnlineMap"
],
"properties": {
"traffics": {
"type": "array",
@@ -16049,6 +16043,18 @@
"$ref": "#/components/schemas/ClientTraffic"
}
},
"clientTrafficSource": {
"type": "string",
"enum": [
"xray",
"tuic"
],
"description": "Present for native TUIC samples; omitted Xray samples default to xray."
},
"clientTrafficIntervalMs": {
"type": "integer",
"description": "Sampling interval used to calculate client speed, in milliseconds."
},
"nodeTraffics": {
"type": "array",
"nullable": true,
@@ -16092,13 +16098,24 @@
{
"required": [
"traffics",
"clientTraffics"
"clientTraffics",
"onlineClients",
"onlineByGuid",
"activeInbounds",
"lastOnlineMap"
]
},
{
"required": [
"nodeTraffics"
]
},
{
"required": [
"clientTraffics",
"clientTrafficSource",
"clientTrafficIntervalMs"
]
}
]
},