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:
gorkem-bwl committed 2026-05-01 16:46:46 -04:00
1 parent 5b25666054
commit d5cd957bbd
17 files changed
+128 -20

No files matched your search

+7 -1
View File
@@ -513,7 +513,8 @@
},
"secret": {
"label": "Autorizační tajný klíč",
"placeholder": "Zadejte svůj tajný klíč"
"placeholder": "Zadejte svůj tajný klíč",
"helperText": "Paste only the token string. Don't include 'Bearer' — it's added automatically."
},
"url": {
"label": "URL",
@@ -534,6 +535,11 @@
"wsUrl": {
"label": "WebSocket URL",
"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": "Obecná nastavení",