From d1ddcd3ff915685bf8e1d320386b71a6b576bb5c Mon Sep 17 00:00:00 2001 From: LukeGus Date: Tue, 6 Oct 2026 22:23:30 -0500 Subject: [PATCH] feat: add report a bug link to the your account settings section --- src/ui/settings/SettingsTab.tsx | 33 +++++++++++++++++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-) diff --git a/src/ui/settings/SettingsTab.tsx b/src/ui/settings/SettingsTab.tsx index a653ff47f..bc74318ba 100644 --- a/src/ui/settings/SettingsTab.tsx +++ b/src/ui/settings/SettingsTab.tsx @@ -1,6 +1,12 @@ import { useEffect, useMemo, useRef, useState } from "react"; import { useTranslation } from "react-i18next"; -import { ChevronDown, Search, Settings as SettingsIcon } from "lucide-react"; +import { + Bug, + ChevronDown, + ExternalLink, + Search, + Settings as SettingsIcon, +} from "lucide-react"; import { GroupHeading, PANEL, @@ -10,6 +16,7 @@ import { import { SurfaceScope } from "@/components/surface/surface-scope"; import { EmptyState } from "@/components/empty-state"; import { isElectron } from "@/lib/electron"; +import { reportCoreIssueUrl } from "@/lib/issue-url"; import { cn } from "@/lib/utils"; import { pluginKey } from "@/lib/plugin-i18n"; import { PluginIcon } from "@/lib/plugin-icon"; @@ -210,7 +217,13 @@ export function SettingsTab({ )} {SETTINGS_BAND_ORDER.map((band) => { const items = hits.filter((hit) => hit.page.band === band); - if (items.length === 0) return null; + const reportBug = + band === "you" && + (!query.trim() || + t("dashboard.reportBug") + .toLowerCase() + .includes(query.trim().toLowerCase())); + if (items.length === 0 && !reportBug) return null; return (
); })} + {reportBug && ( + + + + {t("dashboard.reportBug")} + + + + )}
); })}