feat(infrastructure): add helper text to capture endpoint and secret fields
Two real users hit the same confusion: the Capture endpoint URL needs
the full path /api/v1/metrics, and the authorization secret should not
include a "Bearer" prefix. The form previously gave no guidance on
either — same generic placeholder as HTTP monitors and no helper text.
- Replace the URL field's generic label/placeholder with hardware-
specific copy ("Capture endpoint", realistic 192.168.1.10:5001/...
example) and add helper text under the field.
- Add helper text under the authorization secret field clarifying that
only the raw token belongs there — Bearer is added automatically.
- Wire optional urlHelperText / secretHelperText through
GeneralSettingsConfig so other monitor types are unaffected.
- Add three new i18n keys (captureUrl.label/placeholder/helperText)
and one (secret.helperText) to all 16 locales. Non-English locales
carry the English copy as a placeholder until translators pick the
keys up via the existing PoEditor pipeline.
This commit is contained in:
1 parent
5b25666054
commit
d5cd957bbd
17 files changed
+128
-20
No files matched your search
@@ -513,7 +513,8 @@
|
||||
},
|
||||
"secret": {
|
||||
"label": "รหัสลับสำหรับยืนยันตัวตน",
|
||||
"placeholder": "กรอกรหัสลับของคุณ"
|
||||
"placeholder": "กรอกรหัสลับของคุณ",
|
||||
"helperText": "Paste only the token string. Don't include 'Bearer' — it's added automatically."
|
||||
},
|
||||
"url": {
|
||||
"label": "URL",
|
||||
@@ -534,6 +535,11 @@
|
||||
"wsUrl": {
|
||||
"label": "URL ของ WebSocket",
|
||||
"placeholder": "wss://example.com/socket"
|
||||
},
|
||||
"captureUrl": {
|
||||
"label": "Capture endpoint",
|
||||
"placeholder": "http://192.168.1.10:5001/api/v1/metrics",
|
||||
"helperText": "The full Capture metrics endpoint, including the path. Example: http://192.168.1.10:5001/api/v1/metrics"
|
||||
}
|
||||
},
|
||||
"title": "ตั้งค่าทั่วไป",
|
||||
|
||||
Reference in new issue
Block a user