diff --git a/client/ui/frontend/src/contexts/DebugBundleContext.tsx b/client/ui/frontend/src/contexts/DebugBundleContext.tsx index 574a9051b..ea7ddc3b4 100644 --- a/client/ui/frontend/src/contexts/DebugBundleContext.tsx +++ b/client/ui/frontend/src/contexts/DebugBundleContext.tsx @@ -101,7 +101,7 @@ const useDebugBundle = () => { const [anonymize, setAnonymize] = useState(false); const [systemInfo, setSystemInfo] = useState(true); const [upload, setUpload] = useState(true); - const [trace, setTrace] = useState(true); + const [trace, setTrace] = useState(false); const [traceMinutes, setTraceMinutes] = useState(1); const [stage, setStage] = useState({ kind: "idle" }); const [lastBundlePath, setLastBundlePath] = useState(""); diff --git a/client/ui/frontend/src/modules/settings/SettingsTroubleshooting.tsx b/client/ui/frontend/src/modules/settings/SettingsTroubleshooting.tsx index d3aa060fb..e480b29a1 100644 --- a/client/ui/frontend/src/modules/settings/SettingsTroubleshooting.tsx +++ b/client/ui/frontend/src/modules/settings/SettingsTroubleshooting.tsx @@ -1,6 +1,7 @@ import type { ReactNode } from "react"; import { Trans, useTranslation } from "react-i18next"; import { CircleCheckBig, FolderOpen, Loader2 } from "lucide-react"; +import { Browser } from "@wailsio/runtime"; import { Debug as DebugSvc } from "@bindings/services"; import type { DebugBundleResult } from "@bindings/services/models.js"; import { Button } from "@/components/buttons/Button"; @@ -18,6 +19,8 @@ import type { DebugStage } from "@/contexts/DebugBundleContext"; import { useDebugBundleContext } from "@/contexts/DebugBundleContext"; import { SectionGroup, SettingsBottomBar } from "@/modules/settings/SettingsSection.tsx"; +const SUPPORT_DOCS_URL = "https://docs.netbird.io/help/report-bug-issues"; + export function SettingsTroubleshooting() { const { t } = useTranslation(); const { @@ -197,9 +200,27 @@ function DoneResult({ : t("settings.troubleshooting.done.savedTitle")} - {showKey - ? t("settings.troubleshooting.done.uploadedDescription") - : t("settings.troubleshooting.done.savedDescription")} + {showKey ? ( + { + e.preventDefault(); + Browser.OpenURL(SUPPORT_DOCS_URL).catch(() => + globalThis.open(SUPPORT_DOCS_URL, "_blank"), + ); + }} + className={"text-netbird hover:underline"} + /> + ), + }} + /> + ) : ( + t("settings.troubleshooting.done.savedDescription") + )} diff --git a/client/ui/i18n/locales/de/common.json b/client/ui/i18n/locales/de/common.json index 3aa8592fc..0ce523606 100644 --- a/client/ui/i18n/locales/de/common.json +++ b/client/ui/i18n/locales/de/common.json @@ -750,7 +750,7 @@ "message": "Paket gespeichert" }, "settings.troubleshooting.done.uploadedDescription": { - "message": "Teilen Sie den unten angezeigten Upload-Schlüssel mit dem NetBird-Support. Eine lokale Kopie wurde ebenfalls auf Ihrem Gerät gespeichert." + "message": "Teilen Sie den unten angezeigten Upload-Schlüssel mit dem NetBird-Support. Eine lokale Kopie wurde ebenfalls auf Ihrem Gerät gespeichert." }, "settings.troubleshooting.done.savedDescription": { "message": "Ihr Debug-Paket wurde lokal gespeichert." diff --git a/client/ui/i18n/locales/en/common.json b/client/ui/i18n/locales/en/common.json index 0e555c1bb..45abc0a98 100644 --- a/client/ui/i18n/locales/en/common.json +++ b/client/ui/i18n/locales/en/common.json @@ -1000,8 +1000,8 @@ "description": "Title shown when the bundle was saved locally (not uploaded)." }, "settings.troubleshooting.done.uploadedDescription": { - "message": "Share the upload key below with NetBird support. A local copy was also saved on your device.", - "description": "Body after upload, telling the user to share the upload key with support." + "message": "Share the upload key below with NetBird support. A local copy was also saved on your device.", + "description": "Body after upload, telling the user to share the upload key with support. '' wraps the inline link to the NetBird support docs — keep the tags exactly and wrap the phrase that means 'NetBird support'." }, "settings.troubleshooting.done.savedDescription": { "message": "Your debug bundle has been saved locally.", diff --git a/client/ui/i18n/locales/es/common.json b/client/ui/i18n/locales/es/common.json index 05f70937f..293608341 100644 --- a/client/ui/i18n/locales/es/common.json +++ b/client/ui/i18n/locales/es/common.json @@ -750,7 +750,7 @@ "message": "Paquete guardado" }, "settings.troubleshooting.done.uploadedDescription": { - "message": "Comparta la clave de subida de abajo con el soporte de NetBird. También se guardó una copia local en su dispositivo." + "message": "Comparta la clave de subida de abajo con el soporte de NetBird. También se guardó una copia local en su dispositivo." }, "settings.troubleshooting.done.savedDescription": { "message": "Su paquete de diagnóstico se ha guardado localmente." diff --git a/client/ui/i18n/locales/fr/common.json b/client/ui/i18n/locales/fr/common.json index 3315f1031..d61b8bd75 100644 --- a/client/ui/i18n/locales/fr/common.json +++ b/client/ui/i18n/locales/fr/common.json @@ -750,7 +750,7 @@ "message": "Lot enregistré" }, "settings.troubleshooting.done.uploadedDescription": { - "message": "Partagez la clé d’envoi ci-dessous avec l’assistance NetBird. Une copie locale a également été enregistrée sur votre appareil." + "message": "Partagez la clé d’envoi ci-dessous avec l’assistance NetBird. Une copie locale a également été enregistrée sur votre appareil." }, "settings.troubleshooting.done.savedDescription": { "message": "Votre lot de diagnostic a été enregistré localement." diff --git a/client/ui/i18n/locales/hu/common.json b/client/ui/i18n/locales/hu/common.json index 7725fd458..00150a104 100644 --- a/client/ui/i18n/locales/hu/common.json +++ b/client/ui/i18n/locales/hu/common.json @@ -750,7 +750,7 @@ "message": "Csomag elmentve" }, "settings.troubleshooting.done.uploadedDescription": { - "message": "Ossza meg az alábbi feltöltési kulcsot a NetBird támogatással. A helyi másolat is elmentve van az eszközén." + "message": "Ossza meg az alábbi feltöltési kulcsot a NetBird támogatással. A helyi másolat is elmentve van az eszközén." }, "settings.troubleshooting.done.savedDescription": { "message": "A hibakeresési csomag helyileg elmentve." diff --git a/client/ui/i18n/locales/it/common.json b/client/ui/i18n/locales/it/common.json index 315647a6c..b6aacbe66 100644 --- a/client/ui/i18n/locales/it/common.json +++ b/client/ui/i18n/locales/it/common.json @@ -750,7 +750,7 @@ "message": "Pacchetto salvato" }, "settings.troubleshooting.done.uploadedDescription": { - "message": "Condivida la chiave di caricamento qui sotto con il supporto NetBird. Una copia locale è stata salvata anche sul suo dispositivo." + "message": "Condivida la chiave di caricamento qui sotto con il supporto NetBird. Una copia locale è stata salvata anche sul suo dispositivo." }, "settings.troubleshooting.done.savedDescription": { "message": "Il pacchetto di debug è stato salvato localmente." diff --git a/client/ui/i18n/locales/pt/common.json b/client/ui/i18n/locales/pt/common.json index b4df4fd6a..59919663c 100644 --- a/client/ui/i18n/locales/pt/common.json +++ b/client/ui/i18n/locales/pt/common.json @@ -750,7 +750,7 @@ "message": "Pacote salvo" }, "settings.troubleshooting.done.uploadedDescription": { - "message": "Compartilhe a chave de upload abaixo com o suporte do NetBird. Uma cópia local também foi salva no seu dispositivo." + "message": "Compartilhe a chave de upload abaixo com o suporte do NetBird. Uma cópia local também foi salva no seu dispositivo." }, "settings.troubleshooting.done.savedDescription": { "message": "O seu pacote de depuração foi salvo localmente." diff --git a/client/ui/i18n/locales/ru/common.json b/client/ui/i18n/locales/ru/common.json index 0c65ab4fb..da5a39d53 100644 --- a/client/ui/i18n/locales/ru/common.json +++ b/client/ui/i18n/locales/ru/common.json @@ -750,7 +750,7 @@ "message": "Пакет сохранён" }, "settings.troubleshooting.done.uploadedDescription": { - "message": "Поделитесь ключом загрузки ниже с поддержкой NetBird. Локальная копия также сохранена на вашем устройстве." + "message": "Поделитесь ключом загрузки ниже с поддержкой NetBird. Локальная копия также сохранена на вашем устройстве." }, "settings.troubleshooting.done.savedDescription": { "message": "Отладочный пакет сохранён локально." diff --git a/client/ui/i18n/locales/zh-CN/common.json b/client/ui/i18n/locales/zh-CN/common.json index 035ec4884..ed66043e6 100644 --- a/client/ui/i18n/locales/zh-CN/common.json +++ b/client/ui/i18n/locales/zh-CN/common.json @@ -750,7 +750,7 @@ "message": "调试包已保存" }, "settings.troubleshooting.done.uploadedDescription": { - "message": "请将下方的上传密钥分享给 NetBird 支持团队。本地也已保存了一份副本。" + "message": "请将下方的上传密钥分享给 NetBird 支持团队。本地也已保存了一份副本。" }, "settings.troubleshooting.done.savedDescription": { "message": "您的调试包已保存在本地。"