diff --git a/client/src/Pages/CreateMonitor/index.tsx b/client/src/Pages/CreateMonitor/index.tsx index 54db38c13..7bc828393 100644 --- a/client/src/Pages/CreateMonitor/index.tsx +++ b/client/src/Pages/CreateMonitor/index.tsx @@ -44,11 +44,13 @@ import type { MonitorFormData } from "@/Validation/monitor"; interface GeneralSettingsConfig { urlLabel: string; urlPlaceholder: string; + urlHelperText?: string; namePlaceholder: string; showUrl: boolean; showPort: boolean; showGameSelect: boolean; showSecret: boolean; + secretHelperText?: string; showGrpcServiceName: boolean; showIgnoreTls: boolean; } @@ -136,13 +138,15 @@ const getGeneralSettingsConfig = ( showIgnoreTls: false, }, hardware: { - urlLabel: t("pages.createMonitor.form.general.option.url.label"), - urlPlaceholder: t("pages.createMonitor.form.general.option.url.placeholder"), + urlLabel: t("pages.createMonitor.form.general.option.captureUrl.label"), + urlPlaceholder: t("pages.createMonitor.form.general.option.captureUrl.placeholder"), + urlHelperText: t("pages.createMonitor.form.general.option.captureUrl.helperText"), namePlaceholder: t("pages.createMonitor.form.general.option.name.placeholder"), showUrl: true, showPort: false, showGameSelect: false, showSecret: true, + secretHelperText: t("pages.createMonitor.form.general.option.secret.helperText"), showGrpcServiceName: false, showIgnoreTls: false, }, @@ -389,7 +393,11 @@ const CreateMonitorPage = () => { fullWidth disabled={isEditMode} error={!!fieldState.error} - helperText={fieldState.error?.message ?? ""} + helperText={ + fieldState.error?.message ?? + generalSettingsConfig.urlHelperText ?? + "" + } /> )} /> @@ -490,7 +498,11 @@ const CreateMonitorPage = () => { )} fullWidth error={!!fieldState.error} - helperText={fieldState.error?.message ?? ""} + helperText={ + fieldState.error?.message ?? + generalSettingsConfig.secretHelperText ?? + "" + } /> )} /> diff --git a/client/src/locales/ar.json b/client/src/locales/ar.json index 11fa81309..85e9d6b86 100644 --- a/client/src/locales/ar.json +++ b/client/src/locales/ar.json @@ -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": "رابط 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": "الإعدادات العامة", diff --git a/client/src/locales/cs.json b/client/src/locales/cs.json index 454f0b673..eb9e0260a 100644 --- a/client/src/locales/cs.json +++ b/client/src/locales/cs.json @@ -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í", diff --git a/client/src/locales/de.json b/client/src/locales/de.json index 8090aa5f3..ecce58f67 100644 --- a/client/src/locales/de.json +++ b/client/src/locales/de.json @@ -513,7 +513,8 @@ }, "secret": { "label": "Autorisierungsschlüssel", - "placeholder": "Geben Sie Ihren geheimen Schlüssel ein" + "placeholder": "Geben Sie Ihren geheimen Schlüssel ein", + "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": "Allgemeine Einstellungen", diff --git a/client/src/locales/en.json b/client/src/locales/en.json index d6e8bb4f3..b1336a5dd 100644 --- a/client/src/locales/en.json +++ b/client/src/locales/en.json @@ -513,7 +513,8 @@ }, "secret": { "label": "Authorization secret", - "placeholder": "Enter your secret key" + "placeholder": "Enter your secret key", + "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": "General settings", diff --git a/client/src/locales/es.json b/client/src/locales/es.json index 506c317e3..bdfd9e3ae 100644 --- a/client/src/locales/es.json +++ b/client/src/locales/es.json @@ -520,7 +520,8 @@ }, "secret": { "label": "Secreto de autorización", - "placeholder": "Ingrese su clave secreta" + "placeholder": "Ingrese su clave secreta", + "helperText": "Paste only the token string. Don't include 'Bearer' — it's added automatically." }, "url": { "label": "URL", @@ -541,6 +542,11 @@ "wsUrl": { "label": "URL de 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": "Configuración general", diff --git a/client/src/locales/fi.json b/client/src/locales/fi.json index 6238837f2..834f869dd 100644 --- a/client/src/locales/fi.json +++ b/client/src/locales/fi.json @@ -513,7 +513,8 @@ }, "secret": { "label": "Valtuutusavain", - "placeholder": "Syötä salausavaimesi" + "placeholder": "Syötä salausavaimesi", + "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": "Yleiset asetukset", diff --git a/client/src/locales/fr.json b/client/src/locales/fr.json index 306a2bd61..b5ab31986 100644 --- a/client/src/locales/fr.json +++ b/client/src/locales/fr.json @@ -513,7 +513,8 @@ }, "secret": { "label": "Secret d'autorisation", - "placeholder": "Saisissez votre clé secrète" + "placeholder": "Saisissez votre clé secrète", + "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": "Paramètres généraux", diff --git a/client/src/locales/ja.json b/client/src/locales/ja.json index 923213a46..5ec727046 100644 --- a/client/src/locales/ja.json +++ b/client/src/locales/ja.json @@ -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": "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": "一般設定", diff --git a/client/src/locales/pt-BR.json b/client/src/locales/pt-BR.json index f7b7c4cbc..e5568897b 100644 --- a/client/src/locales/pt-BR.json +++ b/client/src/locales/pt-BR.json @@ -513,7 +513,8 @@ }, "secret": { "label": "Chave de autorização", - "placeholder": "Digite sua chave secreta" + "placeholder": "Digite sua chave secreta", + "helperText": "Paste only the token string. Don't include 'Bearer' — it's added automatically." }, "url": { "label": "URL", @@ -534,6 +535,11 @@ "wsUrl": { "label": "URL do WebSocket", "placeholder": "wss://exemplo.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": "Configurações gerais", diff --git a/client/src/locales/ru.json b/client/src/locales/ru.json index 1a5d12452..8da92929a 100644 --- a/client/src/locales/ru.json +++ b/client/src/locales/ru.json @@ -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": "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": "Основные настройки", diff --git a/client/src/locales/th.json b/client/src/locales/th.json index 433ee10cd..cfac73ae2 100644 --- a/client/src/locales/th.json +++ b/client/src/locales/th.json @@ -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": "ตั้งค่าทั่วไป", diff --git a/client/src/locales/tr.json b/client/src/locales/tr.json index a77dd8eb3..6a2acf120 100644 --- a/client/src/locales/tr.json +++ b/client/src/locales/tr.json @@ -513,7 +513,8 @@ }, "secret": { "label": "Yetkilendirme anahtarı", - "placeholder": "Gizli anahtarınızı girin" + "placeholder": "Gizli anahtarınızı girin", + "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": "Genel ayarlar", diff --git a/client/src/locales/uk.json b/client/src/locales/uk.json index 5b467e4b4..0fbdad260 100644 --- a/client/src/locales/uk.json +++ b/client/src/locales/uk.json @@ -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": "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": "Загальні налаштування", diff --git a/client/src/locales/vi.json b/client/src/locales/vi.json index dc3e804de..017518e61 100644 --- a/client/src/locales/vi.json +++ b/client/src/locales/vi.json @@ -513,7 +513,8 @@ }, "secret": { "label": "Khóa xác thực", - "placeholder": "Nhập khóa bí mật của bạn" + "placeholder": "Nhập khóa bí mật của bạn", + "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": "Cài đặt chung", diff --git a/client/src/locales/zh-CN.json b/client/src/locales/zh-CN.json index ed5e70c1e..3e7d3cb2f 100644 --- a/client/src/locales/zh-CN.json +++ b/client/src/locales/zh-CN.json @@ -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": "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": "常规设置", diff --git a/client/src/locales/zh-TW.json b/client/src/locales/zh-TW.json index ff6e9f6dd..d3515f72d 100644 --- a/client/src/locales/zh-TW.json +++ b/client/src/locales/zh-TW.json @@ -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": "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": "一般設定",