From 6e75938c61a8b01bb6adb8975f72f80019add275 Mon Sep 17 00:00:00 2001 From: ecgang Date: Tue, 7 Jul 2026 05:43:09 -0700 Subject: [PATCH] [Feature]: Add a tooltip/hint to the "Password" field in the client form clarifying which protocols use it (#5809) * feat(clients): clarify which protocols use the Password and Hysteria Auth fields Add tooltips to the Password and Hysteria Auth Form.Items in the client form, explaining that Password is only consumed by Trojan and Shadowsocks (ignored for VLESS, VMess, Hysteria, WireGuard) and that Hysteria Auth is the credential Hysteria actually uses. Adds passwordDesc/hysteriaAuthDesc keys to all 13 locale files, following the existing limitIpDesc/totalGBDesc tooltip convention. Closes #5803 * test(clients): assert Password/Hysteria Auth tooltip hints render --- .../src/pages/clients/ClientFormModal.tsx | 4 +- frontend/src/test/client-form-modal.test.tsx | 71 +++++++++++++++++++ internal/web/translation/ar-EG.json | 2 + internal/web/translation/en-US.json | 2 + internal/web/translation/es-ES.json | 2 + internal/web/translation/fa-IR.json | 2 + internal/web/translation/id-ID.json | 2 + internal/web/translation/ja-JP.json | 2 + internal/web/translation/pt-BR.json | 2 + internal/web/translation/ru-RU.json | 2 + internal/web/translation/tr-TR.json | 2 + internal/web/translation/uk-UA.json | 2 + internal/web/translation/vi-VN.json | 2 + internal/web/translation/zh-CN.json | 2 + internal/web/translation/zh-TW.json | 2 + 15 files changed, 99 insertions(+), 2 deletions(-) create mode 100644 frontend/src/test/client-form-modal.test.tsx diff --git a/frontend/src/pages/clients/ClientFormModal.tsx b/frontend/src/pages/clients/ClientFormModal.tsx index a76c61c47..bb0c5a297 100644 --- a/frontend/src/pages/clients/ClientFormModal.tsx +++ b/frontend/src/pages/clients/ClientFormModal.tsx @@ -791,7 +791,7 @@ export default function ClientFormModal({ - + update('password', e.target.value)} />