feat(tray): add a per-group latency test (#8173) · clash-verge-rev/clash-verge-rev@cb75105 · GitHub
Skip to content

Commit cb75105

Browse files
LokHsuclaudewonfen
authored
feat(tray): add a per-group latency test (#8173)
* feat(tray): add a per-group latency test The tray's proxy group submenus offered no way to test a group: refreshing the delays shown there meant opening the dashboard and running a test from the proxy page. Add a "Test Latency" entry at the head of each group submenu. It measures the group through the proxy page's own view, so member resolution and provider attribution match the page exactly: provider nodes are health checked on their provider, anything else goes through the proxy delay endpoint, and members the page cannot resolve are skipped. Nested groups are therefore tested through their currently selected node, as the page does. The menu is rebuilt when the run finishes. The test URL follows the page's chain -- the group's own test URL, then the configured default, then the built-in one -- including the page's validity check, so a group with a malformed URL falls back where the page falls back. A group test started from the app rebuilds the tray as well, so the two views do not drift. Co-Authored-By: Claude <noreply@anthropic.com> * fix(tray): keep latency tests and displayed results consistent * fix(tray): isolate latency histories and preserve usable menus * fix(tray): keep settings usable when proxy reads fail * fix(tray): show selected node latency for proxy groups and display timeouts as T/O Co-authored-by: wonfen <eiwonfen@gmail.com> * fix(tray): refresh proxy latency on menu interaction --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: wonfen <eiwonfen@gmail.com>
1 parent d9dc18a commit cb75105

37 files changed

Lines changed: 1247 additions & 221 deletions

‎Changelog.md‎

Lines changed: 7 additions & 0 deletions

‎crates/clash-verge-i18n/locales/ar.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ tray:
6868
global: عام
6969
profiles: الملفات التعريفية
7070
proxies: وكلاء
71+
testLatency: اختبار التأخير
72+
testingLatency: جارٍ اختبار التأخير…
7173
systemProxy: وكيل النظام
7274
tunMode: وضع TUN
7375
closeAllConnections: إغلاق كل الاتصالات

‎crates/clash-verge-i18n/locales/de.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ tray:
6868
global: Global
6969
profiles: Profile
7070
proxies: Proxy
71+
testLatency: Latenz testen
72+
testingLatency: Latenz wird getestet…
7173
systemProxy: Systemproxy
7274
tunMode: TUN-Modus
7375
closeAllConnections: Alle Verbindungen schließen

‎crates/clash-verge-i18n/locales/en.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ tray:
6868
global: Global
6969
profiles: Profiles
7070
proxies: Proxies
71+
testLatency: Test Latency
72+
testingLatency: Testing latency…
7173
systemProxy: System Proxy
7274
tunMode: TUN Mode
7375
closeAllConnections: Close All Connections

‎crates/clash-verge-i18n/locales/es.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ tray:
6868
global: Global
6969
profiles: Perfiles
7070
proxies: Proxies
71+
testLatency: Probar latencia
72+
testingLatency: Probando latencia…
7173
systemProxy: Proxy del sistema
7274
tunMode: Modo TUN
7375
closeAllConnections: Cerrar todas las conexiones

‎crates/clash-verge-i18n/locales/fa.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ tray:
6868
global: سراسری
6969
profiles: پروفایل‌ها
7070
proxies: پروکسی‌ها
71+
testLatency: آزمایش تأخیر
72+
testingLatency: در حال آزمایش تأخیر…
7173
systemProxy: پروکسی سیستم
7274
tunMode: حالت TUN
7375
closeAllConnections: بستن همه اتصال‌ها

‎crates/clash-verge-i18n/locales/id.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ tray:
6868
global: Global
6969
profiles: Profil
7070
proxies: Proksi
71+
testLatency: Uji Latensi
72+
testingLatency: Menguji latensi…
7173
systemProxy: Proksi Sistem
7274
tunMode: Mode TUN
7375
closeAllConnections: Tutup Semua Koneksi

‎crates/clash-verge-i18n/locales/jp.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ tray:
6868
global: グローバル
6969
profiles: プロファイル
7070
proxies: プロキシ
71+
testLatency: 遅延テスト
72+
testingLatency: 遅延をテスト中…
7173
systemProxy: システムプロキシ
7274
tunMode: TUN モード
7375
closeAllConnections: すべての接続を閉じる

‎crates/clash-verge-i18n/locales/ko.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ tray:
6868
global: 글로벌
6969
profiles: 프로필
7070
proxies: 프록시
71+
testLatency: 지연 테스트
72+
testingLatency: 지연 테스트 중…
7173
systemProxy: 시스템 프록시
7274
tunMode: TUN 모드
7375
closeAllConnections: 모든 연결 닫기

‎crates/clash-verge-i18n/locales/ru.yml‎

Lines changed: 2 additions & 0 deletions

0 commit comments

Comments
 (0)