25 MB lightweight cross-platform database client for 100+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 100+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP。
TypeScript aicliclickhousedatabasedatabase-clientdatabase-managementdockerguimcpmongodbmysqlpostgresqlredisrustsql-serversqlitetaurivue
fix(settings): align search coverage and nested navigation (#12743)
二丫讲梵8e7ac96f33b0
diff --git a/apps/desktop/src/components/editor/EditorSettingsDialog.vue b/apps/desktop/src/components/editor/EditorSettingsDialog.vueindex fb613aa621..cdf9df67fa 100644--- a/apps/desktop/src/components/editor/EditorSettingsDialog.vue+++ b/apps/desktop/src/components/editor/EditorSettingsDialog.vue@@ -3654,7 +3654,7 @@ const settingsSearchEntries = computed(() =>settingsSearchCategoryLabels.value,),);-const settingsSearchResults = computed(() => searchSettings(settingsSearchEntries.value, settingsSearchQuery.value, currentLocale()));+const settingsSearchResults = computed(() => searchSettings(settingsSearchEntries.value, settingsSearchQuery.value, currentLocale(), Infinity));const settingsSearchActive = computed(() => Boolean(settingsSearchQuery.value.trim()));const settingsSearchVisible = computed(() => settingsSearchOpen.value && settingsSearchActive.value);const settingsSearchResultGroups = computed(() => {@@ -3713,6 +3713,10 @@ function onSettingsCategoryClick(category: SettingsCategory) {function applySettingsSearchRoute(result: SettingsSearchEntry) {if (result.route?.syncMethodTab) syncMethodTab.value = result.route.syncMethodTab;+ if (result.route?.mcpManagementTab) mcpManagementTab.value = result.route.mcpManagementTab;+ if (result.route?.mcpTransportTab) mcpTransportTab.value = result.route.mcpTransportTab;+ if (result.route?.mcpAuthorizationTab) mcpAuthorizationTab.value = result.route.mcpAuthorizationTab;+ if (result.route?.formatterMode) formatterMode.value = result.route.formatterMode;}async function revealSettingsSearchTarget(result: SettingsSearchEntry) {@@ -3767,6 +3771,10 @@ function onSettingsSearchKeydown(event: KeyboardEvent) {settingsSearchOpen.value = true;const direction = event.key === "ArrowDown" ? 1 : -1;settingsSearchActiveIndex.value = (settingsSearchActiveIndex.value + direction + results.length) % results.length;+ void nextTick(() => {+ const activeResult = settingsSearchResults.value[settingsSearchActiveIndex.value];+ if (activeResult) document.getElementById(`settings-search-result-${activeResult.id}`)?.scrollIntoView({ block: "nearest" });+ });return;}if (event.key === "Enter") {@@ -3942,6 +3950,8 @@ const mcpCopied = ref<"" | McpCopyKind>("");const mcpConfigTab = ref<McpConfigTab>("claude");const mcpTransportTab = ref<McpTransportTab>("stdio");const mcpManagementTab = ref<McpManagementTab>("access");+const mcpAuthorizationTab = ref<"overrides" | "connections" | "databases" | "capabilities">("overrides");+const formatterMode = ref<"form" | "json">("form");const mcpHttpSettings = ref<McpHttpServerSettings>({enabled: false,host: "127.0.0.1",@@ -7568,7 +7578,7 @@ onUnmounted(() => {</div><!-- Theme + Custom Theme Button -->- <div class="flex gap-2 items-end">+ <div data-settings-search-id="editor-theme" class="flex gap-2 items-end"><div class="space-y-2"><Label>{{ t("settings.theme") }}</Label><Select :model-value="themeSelectValue" @update:model-value="onThemeChange">@@ -8284,7 +8294,7 @@ onUnmounted(() => {</div></div></div>- <SqlFormatterSettingsPanel v-model="editSqlFormatter" @validity-change="(value: boolean) => (sqlFormatterConfigValid = value)" />+ <SqlFormatterSettingsPanel v-model="editSqlFormatter" v-model:mode="formatterMode" @validity-change="(value: boolean) => (sqlFormatterConfigValid = value)" /></section><section v-else-if="activeSettingsTab === 'appearance'" class="settings-appearance-section flex flex-col gap-4 py-2" data-settings-search-id="appearance" :class="settingsSearchTargetClass('appearance')">@@ -9702,7 +9712,7 @@ onUnmounted(() => {</SelectContent></Select></div>- <div class="settings-item flex items-center justify-between gap-4 rounded-md border bg-muted/20 px-3 py-2">+ <div data-settings-search-id="query-result-max-rows" class="settings-item flex items-center justify-between gap-4 rounded-md border bg-muted/20 px-3 py-2"><div class="space-y-1"><Label for="query-result-max-rows-enabled">{{ t("settings.queryResultMaxRows") }}@@ -9922,7 +9932,7 @@ onUnmounted(() => {</div><Switch id="data-grid-cell-detail-dialog-default" v-model="editDataGridCellDetailDialogDefault" /></div>- <div class="settings-item flex items-center justify-between gap-4 rounded-md border bg-muted/20 px-3 py-2">+ <div data-settings-search-id="data-grid-crosshair" class="settings-item flex items-center justify-between gap-4 rounded-md border bg-muted/20 px-3 py-2"><div class="space-y-1"><Label for="data-grid-crosshair-highlight">{{ t("settings.dataGridCrosshairHighlight") }}@@ -9963,7 +9973,7 @@ onUnmounted(() => {<Switch id="data-grid-crosshair-highlight" v-model="editDataGridCrosshairHighlight" /></div></div>- <div class="settings-item flex items-center justify-between gap-4 rounded-md border bg-muted/20 px-3 py-2">+ <div data-settings-search-id="data-grid-striped-rows" class="settings-item flex items-center justify-between gap-4 rounded-md border bg-muted/20 px-3 py-2"><div class="space-y-1"><Label for="data-grid-striped-rows">{{ t("settings.dataGridStripedRows") }}@@ -10127,7 +10137,7 @@ onUnmounted(() => {<Separator />- <div id="redis-key-templates" class="space-y-3">+ <div id="redis-key-templates" data-settings-search-id="redis-key-templates" class="space-y-3"><div class="text-sm font-medium text-muted-foreground">{{ t("settings.redisKeyTemplatesSection") }}</div>@@ -12092,7 +12102,7 @@ LIMIT 100;</pre><TabsTrigger value="stdio" class="flex-none px-3">{{ t("settings.mcpTransportLocalStdio") }}</TabsTrigger><TabsTrigger value="http" class="flex-none px-3">{{ t("settings.mcpTransportHttpService") }}</TabsTrigger></TabsList>- <TabsContent value="http" class="m-0 space-y-4">+ <TabsContent value="http" data-settings-search-id="mcp-http" class="m-0 space-y-4"><div v-if="isWeb" class="space-y-4"><div class="space-y-3 border-t border-border/60 pt-3"><div class="flex items-center justify-between gap-3">@@ -12304,7 +12314,7 @@ LIMIT 100;</pre></div></TabsContent>- <TabsContent value="stdio" class="m-0 space-y-4">+ <TabsContent value="stdio" data-settings-search-id="mcp-stdio" class="m-0 space-y-4"><divv-if="!isWeb && (mcpKeychainNeedsAuthorization || mcpKeychainMessage)"class="space-y-2 rounded-md border px-3 py-2.5 text-xs"@@ -12430,7 +12440,7 @@ LIMIT 100;</pre></TabsContent><TabsContent value="permissions" class="m-0 space-y-4">- <McpAuthorizationTabs>+ <McpAuthorizationTabs v-model="mcpAuthorizationTab"><template #connections><div class="space-y-3"><p v-if="mcpPolicyLoadError" class="rounded-md border border-red-500/30 bg-red-500/5 px-3 py-2 text-xs text-red-600 dark:text-red-400">@@ -12601,7 +12611,7 @@ LIMIT 100;</pre></McpAuthorizationTabs></TabsContent><div v-if="mcpManagementTab === 'access'" class="space-y-5 border-t border-border/60 pt-5 sm:ml-1">- <div class="space-y-3">+ <div data-settings-search-id="mcp-query-timeout" class="space-y-3"><div><p class="text-sm font-semibold text-foreground">{{ t("settings.mcpRuntimeSettings") }}</p><p class="mt-1 text-xs text-muted-foreground">{{ t("settings.mcpQueryTimeoutDescription") }}</p>@@ -12613,7 +12623,7 @@ LIMIT 100;</pre></div></div></div>- <div v-if="mcpTransportTab === 'stdio'" class="space-y-3">+ <div v-if="mcpTransportTab === 'stdio'" data-settings-search-id="mcp-client-config" class="space-y-3"><div><Label>{{ t("settings.mcpConfig") }}</Label><p class="mt-1 text-xs text-muted-foreground">{{ t("settings.mcpConfigOptionsHint") }}</p>diff --git a/apps/desktop/src/components/editor/SqlFormatterSettingsPanel.vue b/apps/desktop/src/components/editor/SqlFormatterSettingsPanel.vueindex 28f206fa38..8387e6f4b7 100644--- a/apps/desktop/src/components/editor/SqlFormatterSettingsPanel.vue+++ b/apps/desktop/src/components/editor/SqlFormatterSettingsPanel.vue@@ -54,7 +54,7 @@ const emit = defineEmits<{const { t } = useI18n();const { toast } = useToast();-const activeMode = ref<"form" | "json">("form");+const activeMode = defineModel<"form" | "json">("mode", { default: "form" });const fileInputRef = ref<HTMLInputElement>();const jsonEditorRef = ref<HTMLDivElement>();const jsonDraft = ref(serializeSqlFormatterConfig(props.modelValue));@@ -758,7 +758,7 @@ onBeforeUnmount(() => {</div></TabsContent>- <TabsContent value="json" class="m-0 flex min-h-0 flex-col gap-3 pt-2">+ <TabsContent value="json" data-settings-search-id="formatter-json" class="m-0 flex min-h-0 flex-col gap-3 pt-2"><div class="flex flex-wrap items-center gap-2"><Button type="button" variant="outline" size="sm" @click="formatJsonDraft"><WandSparkles class="mr-2 h-4 w-4" />diff --git a/apps/desktop/src/components/editor/__tests__/EditorSettingsDialog.searchNavigation.integration.spec.ts b/apps/desktop/src/components/editor/__tests__/EditorSettingsDialog.searchNavigation.integration.spec.tsnew file mode 100644index 0000000000..5e92f4294b--- /dev/null+++ b/apps/desktop/src/components/editor/__tests__/EditorSettingsDialog.searchNavigation.integration.spec.ts@@ -0,0 +1,184 @@+// @vitest-environment happy-dom+import { createApp, h, nextTick, ref, watch, type App } from "vue";+import { afterEach, describe, expect, it, vi } from "vitest";+import ts from "typescript";+import dialogSource from "../EditorSettingsDialog.vue?raw";+import formatterSource from "../SqlFormatterSettingsPanel.vue?raw";+import McpAuthorizationTabs from "@/components/settings/McpAuthorizationTabs.vue";+import { findSettingsSearchHighlightTarget } from "@/lib/settings/settingsSearchHighlight";+import type { SettingsSearchEntry } from "@/lib/settings/settingsSearch";++vi.mock("vue-i18n", () => ({ useI18n: () => ({ t: (key: string) => key }) }));++const apps: App[] = [];+afterEach(() => {+ apps.splice(0).forEach((app) => app.unmount());+ document.body.innerHTML = "";+ vi.restoreAllMocks();+});++// Compile the real navigation functions; rendering only the relevant views avoids booting+// database services. Unexpected saves or other business calls fail as unresolved bindings.+function navigationHarness(initialCategory = "appearance") {+ const state = {+ activeSettingsTab: ref(initialCategory),+ syncMethodTab: ref("webdav"),+ mcpManagementTab: ref("access"),+ mcpTransportTab: ref("stdio"),+ mcpAuthorizationTab: ref("overrides"),+ formatterMode: ref("form"),+ shortcutSearchQuery: ref(""),+ aiConfigListMode: ref("list"),+ settingsSearchQuery: ref("query"),+ settingsSearchOpen: ref(true),+ settingsSearchActiveIndex: ref(0),+ settingsContentScrollRef: ref<HTMLElement | null>(null),+ highlightedSettingsSearchTargetId: ref(""),+ };+ const start = dialogSource.indexOf("function applySettingsSearchRoute(");+ const end = dialogSource.indexOf("function onSettingsSearchKeydown(", start);+ const watcherStart = dialogSource.indexOf(" const result = pendingSettingsSearchResult;", dialogSource.indexOf("watch(activeSettingsTab,"));+ const watcherEnd = dialogSource.indexOf("\n});", watcherStart);+ expect(start).toBeGreaterThan(0);+ expect(watcherStart).toBeGreaterThan(0);+ const code = ts.transpileModule(+ `+ let pendingSettingsSearchResult = null;+ let highlightedSettingsSearchElement = null;+ let settingsSearchHighlightTimer = null;+ let settingsSearchHighlightAnimationHandler = null;+ const settingsSearchHighlightClasses = ["settings-search-highlight-breathe"];+ function clearSettingsSearchHighlight() {+ highlightedSettingsSearchElement?.classList.remove(...settingsSearchHighlightClasses);+ }+ ${dialogSource.slice(start, end)}+ watch(activeSettingsTab, async () => { ${dialogSource.slice(watcherStart, watcherEnd)} });+ return { selectSettingsSearchResult };+ `,+ { compilerOptions: { target: ts.ScriptTarget.ES2022, module: ts.ModuleKind.None } },+ ).outputText;+ const factory = new Function(...Object.keys(state), "nextTick", "watch", "findSettingsSearchHighlightTarget", code);+ const api = factory(...Object.values(state), nextTick, watch, findSettingsSearchHighlightTarget) as {+ selectSettingsSearchResult: (entry: SettingsSearchEntry) => Promise<void>;+ };+ const root = document.createElement("div");+ document.body.append(root);+ const app = createApp({+ setup() {+ return () =>+ h("div", { ref: state.settingsContentScrollRef }, [+ state.activeSettingsTab.value === "mcp"+ ? state.mcpManagementTab.value === "permissions"+ ? h(+ McpAuthorizationTabs,+ {+ modelValue: state.mcpAuthorizationTab.value as "overrides",+ "onUpdate:modelValue": (value: string) => {+ state.mcpAuthorizationTab.value = value;+ },+ },+ Object.fromEntries(["overrides", "connections", "databases", "capabilities"].map((id) => [id, () => h("p", `Empty ${id}`)])),+ )+ : h("section", { "data-settings-search-id": `mcp-${state.mcpTransportTab.value}` }, "Transport")+ : h("section", { "data-settings-search-id": state.activeSettingsTab.value === "data" ? "redis-key-templates" : "appearance-settings" }, "Settings"),+ ]);+ },+ });+ app.mount(root);+ apps.push(app);+ return { ...state, ...api, root };+}++function entry(category: SettingsSearchEntry["category"], targetId: string, route?: SettingsSearchEntry["route"]): SettingsSearchEntry {+ return { id: targetId, targetId, category, title: "Absent title uses stable group", description: "", categoryLabel: category, route };+}++async function flush() {+ await nextTick();+ await nextTick();+ await nextTick();+}++describe("settings search navigation", () => {+ it("scrolls keyboard selection into view past the former eight-result limit and wraps", async () => {+ const settingsSearchResults = ref(Array.from({ length: 12 }, (_, index) => entry("editor", `entry-${index}`)));+ const settingsSearchActiveIndex = ref(7);+ const settingsSearchOpen = ref(true);+ const selectSettingsSearchResult = vi.fn();+ const exitSettingsSearch = vi.fn();+ const start = dialogSource.indexOf("function onSettingsSearchKeydown(");+ const end = dialogSource.indexOf("async function resetSettingsContentScroll(", start);+ const code = ts.transpileModule(dialogSource.slice(start, end), { compilerOptions: { target: ts.ScriptTarget.ES2022 } }).outputText;+ const keydown = new Function("settingsSearchResults", "settingsSearchActiveIndex", "settingsSearchOpen", "selectSettingsSearchResult", "exitSettingsSearch", "nextTick", `${code}; return onSettingsSearchKeydown;`)(+ settingsSearchResults,+ settingsSearchActiveIndex,+ settingsSearchOpen,+ selectSettingsSearchResult,+ exitSettingsSearch,+ nextTick,+ );+ const host = document.createElement("div");+ document.body.append(host);+ for (const result of settingsSearchResults.value) {+ const button = document.createElement("button");+ button.id = `settings-search-result-${result.id}`;+ host.append(button);+ }+ const scroll = vi.spyOn(HTMLElement.prototype, "scrollIntoView").mockImplementation(() => {});+ for (let index = 8; index < 12; index++) {+ keydown(new KeyboardEvent("keydown", { key: "ArrowDown" }));+ await nextTick();+ expect(settingsSearchActiveIndex.value).toBe(index);+ expect(scroll.mock.instances.at(-1)).toBe(host.children[index]);+ expect(scroll).toHaveBeenLastCalledWith({ block: "nearest" });+ }+ keydown(new KeyboardEvent("keydown", { key: "ArrowDown" }));+ await nextTick();+ expect(settingsSearchActiveIndex.value).toBe(0);+ keydown(new KeyboardEvent("keydown", { key: "ArrowUp" }));+ await nextTick();+ expect(settingsSearchActiveIndex.value).toBe(11);+ keydown(new KeyboardEvent("keydown", { key: "Enter" }));+ expect(selectSettingsSearchResult).toHaveBeenCalledWith(settingsSearchResults.value[11]);+ });++ it("reveals a cross-category MCP authorization tab, then another tab in the same category, even with no records", async () => {+ const scroll = vi.spyOn(HTMLElement.prototype, "scrollIntoView").mockImplementation(() => {});+ const harness = navigationHarness();+ for (const tab of ["databases", "capabilities", "connections", "overrides"] as const) {+ await harness.selectSettingsSearchResult(entry("mcp", `mcp-${tab}`, { mcpManagementTab: "permissions", mcpAuthorizationTab: tab }));+ await flush();+ const panel = harness.root.querySelector(`[data-settings-search-id="mcp-${tab}"]`);+ expect(panel?.getAttribute("data-state")).toBe("active");+ expect(panel?.classList.contains("settings-search-highlight-breathe")).toBe(true);+ expect(harness.settingsSearchQuery.value).toBe("");+ expect(harness.settingsSearchOpen.value).toBe(false);+ }+ expect(scroll).toHaveBeenCalledTimes(4);+ });++ it("switches management and transport before revealing HTTP, and reaches Redis across categories", async () => {+ vi.spyOn(HTMLElement.prototype, "scrollIntoView").mockImplementation(() => {});+ const harness = navigationHarness("mcp");+ harness.mcpManagementTab.value = "permissions";+ await harness.selectSettingsSearchResult(entry("mcp", "mcp-http", { mcpManagementTab: "access", mcpTransportTab: "http" }));+ await flush();+ expect(harness.root.querySelector('[data-settings-search-id="mcp-http"]')?.classList.contains("settings-search-highlight-breathe")).toBe(true);+ await harness.selectSettingsSearchResult(entry("data", "redis-key-templates"));+ await flush();+ expect(harness.root.querySelector('[data-settings-search-id="redis-key-templates"]')?.classList.contains("settings-search-highlight-breathe")).toBe(true);+ expect(dialogSource).toContain('id="redis-key-templates" data-settings-search-id="redis-key-templates"');+ });++ it("changes only view refs for sync and formatter routes and wires their controlled child modes", async () => {+ const harness = navigationHarness();+ await harness.selectSettingsSearchResult(entry("formatter", "formatter-json", { formatterMode: "json", syncMethodTab: "snippet" }));+ await flush();+ expect(harness.formatterMode.value).toBe("json");+ expect(harness.syncMethodTab.value).toBe("snippet");+ expect(dialogSource).toContain('v-model:mode="formatterMode"');+ expect(dialogSource).toContain('<McpAuthorizationTabs v-model="mcpAuthorizationTab">');+ expect(formatterSource).toContain('data-settings-search-id="formatter-json"');+ expect(dialogSource).toContain("searchSettings(settingsSearchEntries.value, settingsSearchQuery.value, currentLocale(), Infinity)");+ });+});diff --git a/apps/desktop/src/components/editor/__tests__/SqlFormatterSettingsPanel.searchNavigation.spec.ts b/apps/desktop/src/components/editor/__tests__/SqlFormatterSettingsPanel.searchNavigation.spec.tsnew file mode 100644index 0000000000..4bbcb1f21d--- /dev/null+++ b/apps/desktop/src/components/editor/__tests__/SqlFormatterSettingsPanel.searchNavigation.spec.ts@@ -0,0 +1,51 @@+// @vitest-environment happy-dom+import { createApp, h, nextTick, ref, type App } from "vue";+import { afterEach, describe, expect, it, vi } from "vitest";+import { DEFAULT_SQL_FORMATTER_SETTINGS } from "@/lib/sql/sqlFormatterConfig";+import SqlFormatterSettingsPanel from "../SqlFormatterSettingsPanel.vue";++vi.mock("vue-i18n", () => ({ useI18n: () => ({ t: (key: string) => key }) }));+vi.mock("@/composables/useToast", () => ({ useToast: () => ({ toast: vi.fn() }) }));+vi.mock("@/lib/common/clipboard", () => ({ copyToClipboard: vi.fn() }));+vi.mock("@/lib/export/saveTextFile", () => ({ saveTextFile: vi.fn() }));+// The tabs and configuration component are real; the lazy editor is outside navigation's scope.+vi.mock("@codemirror/view", () => {+ throw new Error("Editor unavailable in navigation test");+});++let app: App | undefined;+afterEach(() => {+ app?.unmount();+ document.body.innerHTML = "";+});++describe("formatter controlled search navigation", () => {+ it("reveals JSON and returns to form without emitting settings changes", async () => {+ const mode = ref<"form" | "json">("form");+ const updateSettings = vi.fn();+ const host = document.createElement("div");+ document.body.append(host);+ app = createApp({+ setup: () => () =>+ h(SqlFormatterSettingsPanel, {+ modelValue: DEFAULT_SQL_FORMATTER_SETTINGS,+ mode: mode.value,+ "onUpdate:mode": (value) => {+ mode.value = value;+ },+ "onUpdate:modelValue": updateSettings,+ }),+ });+ app.mount(host);+ mode.value = "json";+ await nextTick();+ await nextTick();+ expect(host.querySelector('[data-settings-search-id="formatter-json"]')?.getAttribute("data-state")).toBe("active");+ mode.value = "form";+ await nextTick();+ await nextTick();+ const tabs = Array.from(host.querySelectorAll('[role="tab"]'));+ expect(tabs.find((tab) => tab.textContent?.includes("settings.sqlFormatterFormMode"))?.getAttribute("aria-selected")).toBe("true");+ expect(updateSettings).not.toHaveBeenCalled();+ });+});diff --git a/apps/desktop/src/components/settings/McpAuthorizationTabs.vue b/apps/desktop/src/components/settings/McpAuthorizationTabs.vueindex 307354c105..2f4528516a 100644--- a/apps/desktop/src/components/settings/McpAuthorizationTabs.vue+++ b/apps/desktop/src/components/settings/McpAuthorizationTabs.vue@@ -1,5 +1,5 @@<script setup lang="ts">-import { computed, ref } from "vue";+import { computed } from "vue";import { useI18n } from "vue-i18n";import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";@@ -14,7 +14,7 @@ const sections = computed<Array<{ id: SectionId; title: string }>>(() => [{ id: "capabilities", title: t("settings.mcpAuthTabCapabilitiesTitle") },]);-const currentSection = ref<SectionId>("overrides");+const currentSection = defineModel<SectionId>({ default: "overrides" });</script><template>@@ -31,7 +31,7 @@ const currentSection = ref<SectionId>("overrides");<TabsList variant="line" class="h-9 w-full justify-start gap-1 overflow-x-auto border-b border-border/60 bg-transparent p-0" :aria-label="t('settings.mcpAuthTitle')"><TabsTrigger v-for="section in sections" :key="section.id" :value="section.id" class="flex-none px-3">{{ section.title }}</TabsTrigger></TabsList>- <TabsContent v-for="section in sections" :key="section.id" :value="section.id" class="m-0">+ <TabsContent v-for="section in sections" :key="section.id" :value="section.id" :data-settings-search-id="`mcp-${section.id}`" class="m-0"><slot :name="section.id" /></TabsContent></Tabs>diff --git a/apps/desktop/src/lib/settings/__tests__/settingsSearch.spec.ts b/apps/desktop/src/lib/settings/__tests__/settingsSearch.spec.tsindex 4256ca411f..b92e40e163 100644--- a/apps/desktop/src/lib/settings/__tests__/settingsSearch.spec.ts+++ b/apps/desktop/src/lib/settings/__tests__/settingsSearch.spec.ts@@ -140,33 +140,39 @@ describe("settings search", () => {});it("indexes the multi-statement default view and its settings control", () => {- expect(SETTINGS_SEARCH_DEFINITIONS).toContainEqual({- id: "multi-statement-default-view",- category: "data",- titleKey: "settings.multiStatementDefaultView",- descriptionKey: "settings.multiStatementDefaultViewDescription",- targetId: "multi-statement-default-view",- });+ expect(SETTINGS_SEARCH_DEFINITIONS).toContainEqual(+ expect.objectContaining({+ id: "multi-statement-default-view",+ category: "data",+ titleKey: "settings.multiStatementDefaultView",+ descriptionKey: "settings.multiStatementDefaultViewDescription",+ targetId: "multi-statement-default-view",+ }),+ );});it("indexes the default explain view and its settings control", () => {- expect(SETTINGS_SEARCH_DEFINITIONS).toContainEqual({- id: "default-explain-view",- category: "data",- titleKey: "settings.defaultExplainView",- descriptionKey: "settings.defaultExplainViewDescription",- targetId: "default-explain-view",- });+ expect(SETTINGS_SEARCH_DEFINITIONS).toContainEqual(+ expect.objectContaining({+ id: "default-explain-view",+ category: "data",+ titleKey: "settings.defaultExplainView",+ descriptionKey: "settings.defaultExplainViewDescription",+ targetId: "default-explain-view",+ }),+ );});it("indexes the query result export file name source setting (#12092)", () => {- expect(SETTINGS_SEARCH_DEFINITIONS).toContainEqual({- id: "data-export-file-name-source",- category: "data",- titleKey: "settings.queryResultExportFileNameSource",- descriptionKey: "settings.queryResultExportFileNameSourceDescription",- targetId: "data",- });+ expect(SETTINGS_SEARCH_DEFINITIONS).toContainEqual(+ expect.objectContaining({+ id: "data-export-file-name-source",+ category: "data",+ titleKey: "settings.queryResultExportFileNameSource",+ descriptionKey: "settings.queryResultExportFileNameSourceDescription",+ targetId: "data-export-file-name-source",+ }),+ );});it("places SQL file limits in their owning settings categories", () => {@@ -240,7 +246,19 @@ describe("settings search", () => {it("exposes WebDAV sync in Web settings without exposing snippet sync", () => {const webEntries = resolveSettingsSearchEntries(SETTINGS_SEARCH_DEFINITIONS, { isWeb: true, visibleCategories: new Set<SettingsCategory>(["sync"]) }, translate, categoryLabels);- expect(webEntries.map((entry) => entry.id)).toEqual(["sync-webdav", "sync-webdav-endpoint", "sync-webdav-username", "sync-webdav-password", "sync-webdav-remote-path", "sync-webdav-user-agent", "sync-webdav-auto-upload", "sync-secrets", "sync-secrets-passphrase"]);+ expect(webEntries.map((entry) => entry.id)).toEqual([+ "sync-webdav",+ "sync-webdav-endpoint",+ "sync-webdav-username",+ "sync-webdav-password",+ "sync-webdav-remote-path",+ "sync-webdav-user-agent",+ "sync-webdav-auto-upload",+ "sync-secrets",+ "sync-secrets-passphrase",+ "sync-sync-remember-web-dav-password",+ "sync-sync-auto-upload",+ ]);});it("matches Chinese text as a Unicode substring", () => {diff --git a/apps/desktop/src/lib/settings/__tests__/settingsSearchCoverage.spec.ts b/apps/desktop/src/lib/settings/__tests__/settingsSearchCoverage.spec.tsnew file mode 100644index 0000000000..4b43c30d9f--- /dev/null+++ b/apps/desktop/src/lib/settings/__tests__/settingsSearchCoverage.spec.ts@@ -0,0 +1,262 @@+import { readFileSync } from "node:fs";+import { dirname, resolve, relative } from "node:path";+import { fileURLToPath } from "node:url";+import { parse } from "vue/compiler-sfc";+import { describe, expect, it } from "vitest";+import { SETTINGS_SEARCH_DEFINITIONS, createShortcutSettingsSearchDefinitions, resolveSettingsSearchEntries, searchSettings, type SettingsCategory } from "@/lib/settings/settingsSearch";+import en from "@/i18n/locales/en";+import zhCN from "@/i18n/locales/zh-CN";+import { SHORTCUT_DEFINITIONS } from "@/lib/editor/shortcutRegistry";+import { MCP_TOOL_OPTIONS } from "@/lib/mcp/mcpPolicySelection";+import { SQL_VARIABLE_SYNTAX_KEYS } from "@/lib/sql/sqlVariableSyntax";+import { APP_CUSTOM_UI_COLOR_DEFS } from "@/lib/app/appTheme";++const src = resolve(dirname(fileURLToPath(import.meta.url)), "../../..");+const root = resolve(src, "components/editor/EditorSettingsDialog.vue");++// These dialogs display transient operations or release notes, not persisted settings.+// UI primitives and decorative icons are excluded by directory, not by control label.+const excludedComponents: Record<string, string> = {+ DangerConfirmDialog: "Confirmation of an operation, not a configuration form",+ CloudSyncSelectionDialog: "Per-operation conflict/import selection, not sync configuration",+ ChangelogPanel: "Release notes, not settings",+ ConnectionGroupBadge: "Decorative connection group indicator",+};+const excludedLabels: Record<string, string> = {+ "settings.syncSavedPassword": "Saved-credential status, not an editable field",+ "settings.mcpUpdateCommand": "Read-only installation command",+ "settings.mcpInstallCommand": "Read-only installation command",+ "settings.mcpUninstallCommand": "Read-only removal command",+ "settings.updateStatusTitle": "Installed/available release status",+ "auth.logout": "Session action, not a preference",+ "settings.sqlShortcutsPreview": "Read-only generated SQL preview",+ "ai.aiImportSelectConfig": "Per-import record selection",+ "ai.aiImportUnsupported": "Disabled unsupported-import indicator",+ "databaseBackup.searchHistoryConnections": "Transient history filter",+ "databaseBackup.backupMethod": "Transient history filter",+ "databaseBackup.backupStatus": "Transient history filter",+ "databaseBackup.selectAllFiltered": "Selection for a batch history action",+ "databaseBackup.selectRun": "Selection for a history action",+ "databaseBackup.searchConnections": "Filter inside a connection picker",+ "databaseBackup.searchDatabases": "Filter inside a database picker",+ "settings.preview": "Read-only editor preview",+ "settings.searchSettings": "The settings search query itself",+ "settings.shortcutPressShortcut": "Shortcut recorder instructions; every shortcut is indexed by its canonical definition",+ "settings.customUiEditingDark": "Current color-editing mode indicator",+ "settings.customUiEditingLight": "Current color-editing mode indicator",+};++// Dynamic labels must have an audited canonical source or a static protocol alias.+// A newly introduced computed label should fail coverage until its source is accounted for.+const auditedNonLiteralLabels: Record<string, string> = {+ executeModeLabel: "Translated settings.executeMode",+ "SQL_VARIABLE_SYNTAX_TOKENS[key] t(`settings.sqlVariableSyntax_${key}`)": "SQL_VARIABLE_SYNTAX_KEYS tested below",+ "t(definition.labelKey)": "SHORTCUT_DEFINITIONS tested below",+ "t(def.labelKey)": "APP_CUSTOM_UI_COLOR_DEFS tested below",+ "getToolbarVisibilityItemLabel(item)": "Toolbar controls and index share TOOLBAR_VISIBILITY_ITEMS",+ "t(tool.labelKey)": "MCP_TOOL_OPTIONS tested below",+ database: "User-owned database names must never enter the static search index",+ Authentication: "Static AI protocol alias tested below",+ Endpoint: "Static AI protocol alias tested below",+ API: "Static AI protocol alias tested below",+ aiCredentialLabel: "Static Auth Token / API Key aliases tested below",+ "Bearer Token": "Static MCP protocol alias tested below",+};+const unauditedLabels: string[] = [];++interface AstNode {+ type: number;+ tag?: string;+ content?: string | AstNode;+ children?: AstNode[];+ props?: { type: number; name: string; value?: { content: string }; arg?: { content: string }; exp?: { content: string } }[];+}+function translationKeys(expression: string): string[] {+ return [...expression.matchAll(/\bt\(\s*["']([^"']+)["']/g)].map((match) => match[1]);+}+function expressions(node: AstNode): string {+ return [typeof node.content === "string" ? node.content : node.content ? expressions(node.content) : "", ...(node.children ?? []).map(expressions)].join(" ");+}++/** Follow rendered business components, so a newly extracted settings panel is audited automatically. */+function inspectSettingsTemplates(entry: string): Map<string, Set<string>> {+ const findings = new Map<string, Set<string>>();+ const visited = new Set<string>();+ function visit(file: string) {+ if (visited.has(file)) return;+ visited.add(file);+ const { descriptor } = parse(readFileSync(file, "utf8"), { filename: file });+ const script = [descriptor.script?.content, descriptor.scriptSetup?.content].join("\n");+ const imports = new Map([...script.matchAll(/import\s+(\w+)\s+from\s+["']([^"']+\.vue)["']/g)].map((match) => [match[1], match[2]]));+ const keys = new Set<string>();+ const components = new Set<string>();+ function walk(node: AstNode) {+ if (node.tag) {+ if (imports.has(node.tag)) components.add(node.tag);+ if (node.tag.toLowerCase() === "label") {+ const expression = expressions(node).trim().replace(/\s+/g, " ");+ const translated = translationKeys(expression);+ translated.forEach((key) => keys.add(key));+ if (expression && !translated.length && !auditedNonLiteralLabels[expression]) unauditedLabels.push(`${relative(src, file)}: ${expression}`);+ }+ // Buttons with configuration roles are settings, not ordinary action buttons.+ const role = node.props?.find((prop) => prop.name === "role")?.value?.content;+ const isChoice = role === "radio" || role === "switch" || role === "checkbox";+ if (isChoice) translationKeys(expressions(node)).forEach((key) => keys.add(key));+ // Include group accessible names even when the group uses a plain div.+ if (isChoice || role === "radiogroup" || /^(Input|input|Textarea|textarea|Select|SelectTrigger|Switch|Checkbox|PasswordInput|ColorSpectrumPicker)$/.test(node.tag)) {+ for (const prop of node.props ?? []) {+ if (prop.name === "bind" && ["aria-label", "label"].includes(prop.arg?.content ?? "")) {+ translationKeys(prop.exp?.content ?? "").forEach((key) => keys.add(key));+ }+ }+ }+ }+ node.children?.forEach(walk);+ }+ if (descriptor.template?.ast) walk(descriptor.template.ast as unknown as AstNode);+ // Color editors use canonical arrays inside the SFC rather than individual <Label>s.+ // Derive keys from those definitions so adding a color field cannot silently escape coverage.+ if (/ThemeCustomizerDialog|DataGridTypeColorSchemeDialog/.test(file)) {+ for (const match of script.matchAll(/labelKey:\s*["']([^"']+)["']|label:\s*t\(\s*["']([^"']+)["']/g)) keys.add(match[1] ?? match[2]);+ }+ findings.set(relative(src, file), keys);+ for (const component of components) {+ if (excludedComponents[component]) continue;+ const importPath = imports.get(component)!;+ const target = importPath.startsWith("@/") ? resolve(src, importPath.slice(2)) : resolve(dirname(file), importPath);+ if (/\/components\/(ui|icons)\//.test(target)) continue;+ visit(target);+ }+ }+ visit(entry);+ return findings;+}++const definitions = [...SETTINGS_SEARCH_DEFINITIONS, ...createShortcutSettingsSearchDefinitions(SHORTCUT_DEFINITIONS)];+const indexedKeys = new Set(definitions.flatMap((definition) => [definition.titleKey, definition.descriptionKey, ...(definition.keywordKeys ?? [])]).filter(Boolean));++describe("settings search template coverage", () => {+ const controls = inspectSettingsTemplates(root);+ it("requires an audited source for computed and literal labels", () => {+ expect(unauditedLabels).toEqual([]);+ });+ it("follows nested settings forms, including backup and authorization fields", () => {+ expect([...controls.keys()]).toEqual(+ expect.arrayContaining(["components/backup/DatabaseBackupConfigFields.vue", "components/connection/TunnelProfileManager.vue", "components/settings/McpAuthorizationTabs.vue", "components/editor/SqlFormatterSettingsPanel.vue", "components/grid/DataGridTypeColorSchemeDialog.vue"]),+ );+ });+ for (const [file, keys] of controls) {+ it(`indexes fixed control labels in ${file}`, () => {+ const missing = [...keys].filter((key) => !indexedKeys.has(key) && !excludedLabels[key]);+ expect(missing, "Add a search result or localized keyword on the owning management entry; exclude only transient UI with a reason.").toEqual([]);+ });+ }+ it("covers loop-generated custom UI colors from the canonical definitions", () => {+ expect(APP_CUSTOM_UI_COLOR_DEFS.map((item) => item.labelKey).filter((key) => !indexedKeys.has(key))).toEqual([]);+ });+ it("covers loop-generated SQL syntax and MCP tools from their canonical definitions", () => {+ const keys = [...SQL_VARIABLE_SYNTAX_KEYS.map((key) => `settings.sqlVariableSyntax_${key}`), ...MCP_TOOL_OPTIONS.map((tool) => tool.labelKey)];+ expect(keys.filter((key) => !indexedKeys.has(key))).toEqual([]);+ });+ it("resolves every fixed search anchor in the settings component tree", () => {+ const sources = [...controls.keys()].map((file) => parse(readFileSync(resolve(src, file), "utf8")).descriptor.template?.content ?? "");+ const anchors = new Set(sources.flatMap((source) => [...source.matchAll(/data-settings-search-id="([^"`]+)"/g)].map((match) => match[1])));+ // Authorization tabs generate their anchors from the same four section IDs.+ for (const section of ["overrides", "connections", "databases", "capabilities"]) anchors.add(`mcp-${section}`);+ expect(definitions.filter((definition) => !anchors.has(definition.targetId ?? definition.category)).map((definition) => definition.id)).toEqual([]);+ });+ it("uses unique result IDs, including canonical shortcut entries", () => {+ expect(new Set(definitions.map((definition) => definition.id)).size).toBe(definitions.length);+ });+});++const categories = [...new Set(definitions.map((definition) => definition.category))];+const categoryLabels = Object.fromEntries(categories.map((category) => [category, category])) as Record<SettingsCategory, string>;+function messageAt(messages: object, key: string): unknown {+ return key.split(".").reduce<unknown>((value, part) => (value && typeof value === "object" ? (value as Record<string, unknown>)[part] : undefined), messages);+}++describe("settings search localization coverage", () => {+ for (const [locale, messages] of [+ ["en", en],+ ["zh-CN", zhCN],+ ] as const) {+ it(`resolves every indexed translation key in ${locale}`, () => {+ const missing = [...indexedKeys].filter((key) => !key || typeof messageAt(messages, key) !== "string");+ expect(missing).toEqual([]);+ });+ it(`finds MCP scope choices and custom tool rules with their authorization routes in ${locale}`, () => {+ for (const isWeb of [false, true]) {+ const entries = resolveSettingsSearchEntries(definitions, { isWeb, visibleCategories: new Set(categories) }, (key) => String(messageAt(messages, key) ?? key), categoryLabels);+ for (const key of ["mcpResourceScopeTitle", "mcpScopeModeAll", "mcpResourceScopeModeCustom"]) {+ const results = searchSettings(entries, String(messageAt(messages, `settings.${key}`)), locale, Infinity);+ expect(results).toEqual(expect.arrayContaining([expect.objectContaining({ targetId: "mcp-connections", route: { mcpManagementTab: "permissions", mcpAuthorizationTab: "connections" } })]));+ }+ for (const key of ["mcpDatabaseScopeAriaLabel", "mcpDatabaseScopeAllTitle", "mcpDatabaseScopeSelectedTitle", "mcpDatabaseScopeNoneTitle"]) {+ const results = searchSettings(entries, String(messageAt(messages, `settings.${key}`)), locale, Infinity);+ expect(results).toEqual(expect.arrayContaining([expect.objectContaining({ targetId: "mcp-databases", route: { mcpManagementTab: "permissions", mcpAuthorizationTab: "databases" } })]));+ }+ for (const query of [locale === "zh-CN" ? "通配符" : "wildcard", "dbx_ssh__*"]) {+ expect(searchSettings(entries, query, locale, Infinity)).toEqual(expect.arrayContaining([expect.objectContaining({ targetId: "mcp-capabilities", route: { mcpManagementTab: "permissions", mcpAuthorizationTab: "capabilities" } })]));+ }+ }+ });+ it(`finds every visible title and keyword in ${locale} on both platforms`, () => {+ for (const isWeb of [false, true]) {+ const entries = resolveSettingsSearchEntries(+ definitions,+ {+ isWeb,+ visibleCategories: new Set(categories),+ hasSqlServerConnection: true,+ },+ (key) => String(messageAt(messages, key) ?? key),+ categoryLabels,+ );+ for (const entry of entries) {+ expect(+ searchSettings(entries, entry.title, locale, Infinity).map((result) => result.id),+ entry.id,+ ).toContain(entry.id);+ const definition = definitions.find((item) => item.id === entry.id)!;+ for (const key of definition.keywordKeys ?? []) {+ const keyword = String(messageAt(messages, key) ?? key);+ expect(+ searchSettings(entries, keyword, locale, Infinity).map((result) => result.id),+ `${entry.id}: ${key}`,+ ).toContain(entry.id);+ }+ }+ }+ });+ }+ it("finds literal protocol and credential labels without indexing user credentials", () => {+ const entries = resolveSettingsSearchEntries(definitions, { isWeb: false, visibleCategories: new Set(categories) }, (key) => String(messageAt(en, key) ?? key), categoryLabels);+ for (const label of ["Authentication", "Endpoint", "API", "Auth Token", "API Key"]) {+ expect(searchSettings(entries, label, "en", Infinity).map((entry) => entry.id)).toContain("ai-config");+ }+ expect(searchSettings(entries, "Bearer Token", "en", Infinity).some((entry) => entry.category === "mcp")).toBe(true);+ });+});++describe("settings search platform and limit regressions", () => {+ const entriesFor = (isWeb: boolean) => resolveSettingsSearchEntries(definitions, { isWeb, visibleCategories: new Set(categories) }, (key) => String(messageAt(en, key) ?? key), categoryLabels);+ it("keeps backups searchable on Web but hides desktop-only controls", () => {+ const desktop = entriesFor(false).map((entry) => entry.id);+ const web = entriesFor(true).map((entry) => entry.id);+ expect(web).toContain("backups");+ for (const id of ["data-dameng-client-bin-dir", "backups-background-worker", "appearance-background-image", "appearance-background-image-display-mode", "appearance-background-image-transparency", "appearance-background-image-blur"]) {+ expect(desktop).toContain(id);+ expect(web).not.toContain(id);+ }+ });+ it("returns all matches on explicit Infinity while retaining finite caller limits", () => {+ const entries = entriesFor(false);+ const expected = entries.filter((entry) => entry.category === "shortcuts");+ expect(expected.length).toBeGreaterThan(8);+ const results = searchSettings(entries, "shortcuts", "en", Infinity);+ expect(results.map((entry) => entry.id)).toEqual(expect.arrayContaining(expected.map((entry) => entry.id)));+ expect(searchSettings(entries, "shortcuts", "en", 3)).toHaveLength(3);+ });+});diff --git a/apps/desktop/src/lib/settings/settingsSearch.ts b/apps/desktop/src/lib/settings/settingsSearch.tsindex 9d3a1a08b6..63e4f6e137 100644--- a/apps/desktop/src/lib/settings/settingsSearch.ts+++ b/apps/desktop/src/lib/settings/settingsSearch.ts@@ -1,3 +1,7 @@+import { SQL_VARIABLE_SYNTAX_KEYS, SQL_VARIABLE_SYNTAX_TOKENS } from "@/lib/sql/sqlVariableSyntax";+import { APP_CUSTOM_UI_COLOR_DEFS } from "@/lib/app/appTheme";+import { MCP_TOOL_OPTIONS, MCP_EXECUTION_MODE_COLUMNS } from "@/lib/mcp/mcpPolicySelection";+export type SettingsCategory = "editor" | "formatter" | "appearance" | "navigation" | "data" | "backups" | "tunnels" | "shortcuts" | "snippets" | "sync" | "ai" | "mcp" | "updates" | "security" | "about";const SETTINGS_CATEGORIES: readonly SettingsCategory[] = ["editor", "formatter", "appearance", "navigation", "data", "backups", "tunnels", "shortcuts", "snippets", "sync", "ai", "mcp", "updates", "security", "about"];@@ -25,6 +29,10 @@ export interface SettingsSearchDefinition {titleKey?: string;title?: string;descriptionKey?: string;+ /** Static localized aliases only; never user-supplied configuration values. */+ keywordKeys?: readonly string[];+ /** Literal static product/field names, never configuration values. */+ keywordTexts?: readonly string[];/** Identifies a built-in shortcut row so its local filter can be restored on navigation. */shortcutId?: string;route?: SettingsSearchRoute;@@ -38,6 +46,7 @@ export interface SettingsSearchEntry {category: SettingsCategory;title: string;description: string;+ keywords?: string;categoryLabel: string;targetId: string;shortcutId?: string;@@ -46,6 +55,10 @@ export interface SettingsSearchEntry {export interface SettingsSearchRoute {syncMethodTab?: "webdav" | "snippet" | "local";+ mcpManagementTab?: "access" | "permissions";+ mcpTransportTab?: "stdio" | "http";+ mcpAuthorizationTab?: "overrides" | "connections" | "databases" | "capabilities";+ formatterMode?: "form" | "json";}export type Translate = (key: string) => string;@@ -131,8 +144,8 @@ export const SETTINGS_SEARCH_DEFINITIONS: readonly SettingsSearchDefinition[] ={ id: "editor-font", category: "editor", titleKey: "settings.fontFamily", targetId: "editor" },{ id: "editor-theme", category: "editor", titleKey: "settings.theme", targetId: "editor" },{ id: "editor-font-size", category: "editor", titleKey: "settings.fontSize", targetId: "editor" },- { id: "editor-execute-mode", category: "editor", titleKey: "settings.executeMode", targetId: "editor" },- { id: "editor-default-transaction-mode", category: "editor", titleKey: "settings.defaultTransactionMode", descriptionKey: "settings.defaultTransactionModeDescription", targetId: "editor" },+ { id: "editor-execute-mode", category: "editor", titleKey: "settings.executeMode", targetId: "editor", keywordKeys: ["settings.executeModeAll", "settings.executeModeCurrent"] },+ { id: "editor-default-transaction-mode", category: "editor", titleKey: "settings.defaultTransactionMode", descriptionKey: "settings.defaultTransactionModeDescription", targetId: "editor", keywordKeys: ["settings.defaultTransactionModeAuto", "settings.defaultTransactionModeManual"] },{ id: "editor-execute-all-on-blank-line", category: "editor", titleKey: "settings.executeAllOnBlankLine", descriptionKey: "settings.executeAllOnBlankLineDescription", targetId: "editor" },{ id: "editor-execution-target", category: "editor", titleKey: "settings.showExecutionTargetPicker", descriptionKey: "settings.showExecutionTargetPickerDescription", targetId: "editor" },{ id: "editor-run-buttons", category: "editor", titleKey: "settings.showStatementRunButtons", descriptionKey: "settings.showStatementRunButtonsDescription", targetId: "editor" },@@ -146,111 +159,262 @@ export const SETTINGS_SEARCH_DEFINITIONS: readonly SettingsSearchDefinition[] ={ id: "editor-caret-browsing", category: "editor", titleKey: "settings.caretBrowsing", descriptionKey: "settings.caretBrowsingDescription", targetId: "editor" },{ id: "editor-brackets", category: "editor", titleKey: "settings.autoCloseBrackets", descriptionKey: "settings.autoCloseBracketsDescription", targetId: "editor" },{ id: "editor-source-paste-restore", category: "editor", titleKey: "settings.restoreSqlFromSourcePaste", descriptionKey: "settings.restoreSqlFromSourcePasteDescription", targetId: "editor" },- { id: "editor-double-click-string", category: "editor", titleKey: "settings.doubleClickStringSelectionMode", descriptionKey: "settings.doubleClickStringSelectionModeDescription", targetId: "editor" },+ {+ id: "editor-double-click-string",+ category: "editor",+ titleKey: "settings.doubleClickStringSelectionMode",+ descriptionKey: "settings.doubleClickStringSelectionModeDescription",+ targetId: "editor",+ keywordKeys: ["settings.doubleClickStringSelectionModeContent", "settings.doubleClickStringSelectionModeWord"],+ },{ id: "editor-completion-spacing", category: "editor", titleKey: "settings.insertSpaceAfterCompletion", descriptionKey: "settings.insertSpaceAfterCompletionDescription", targetId: "editor" },{ id: "editor-sqlserver-space-completion", category: "editor", titleKey: "settings.sqlServerSpaceConfirmsCompletion", descriptionKey: "settings.sqlServerSpaceConfirmsCompletionDescription", targetId: "editor", visible: sqlServerSpaceCompletionVisible },{ id: "editor-function-completion-include-params", category: "editor", titleKey: "settings.functionCompletionIncludeParams", descriptionKey: "settings.functionCompletionIncludeParamsDescription", targetId: "editor" },- { id: "editor-completion-trigger-mode", category: "editor", titleKey: "settings.completionTriggerMode", descriptionKey: "settings.completionTriggerModeDescription", targetId: "editor" },- { id: "editor-table-completion-schema-qualification", category: "editor", titleKey: "settings.tableCompletionSchemaQualification", descriptionKey: "settings.tableCompletionSchemaQualificationDescription", targetId: "editor" },+ {+ id: "editor-completion-trigger-mode",+ category: "editor",+ titleKey: "settings.completionTriggerMode",+ descriptionKey: "settings.completionTriggerModeDescription",+ targetId: "editor",+ keywordKeys: ["settings.completionTriggerModeManual", "settings.completionTriggerModeRequirePrefix", "settings.completionTriggerModePositional"],+ },+ {+ id: "editor-table-completion-schema-qualification",+ category: "editor",+ titleKey: "settings.tableCompletionSchemaQualification",+ descriptionKey: "settings.tableCompletionSchemaQualificationDescription",+ targetId: "editor",+ keywordKeys: ["settings.tableCompletionSchemaQualificationNever", "settings.tableCompletionSchemaQualificationCollision", "settings.tableCompletionSchemaQualificationAlways"],+ },{ id: "editor-auto-alias", category: "editor", titleKey: "settings.autoAliasTables", descriptionKey: "settings.autoAliasTablesDescription", targetId: "editor" },{ id: "editor-unsaved-close", category: "editor", titleKey: "settings.confirmUnsavedSqlClose", descriptionKey: "settings.confirmUnsavedSqlCloseDescription", targetId: "editor" },- { id: "editor-app-close-unsaved-tabs", category: "editor", titleKey: "settings.appCloseUnsavedTabsMode", descriptionKey: "settings.appCloseUnsavedTabsModeDescription", targetId: "editor" },+ {+ id: "editor-app-close-unsaved-tabs",+ category: "editor",+ titleKey: "settings.appCloseUnsavedTabsMode",+ descriptionKey: "settings.appCloseUnsavedTabsModeDescription",+ targetId: "editor",+ keywordKeys: ["settings.appCloseUnsavedTabsModeHint", "settings.appCloseUnsavedTabsModePrompt", "settings.appCloseUnsavedTabsModeKeepDrafts"],+ },{ id: "editor-prefill-query", category: "navigation", titleKey: "settings.prefillNewQueryWithSelect", descriptionKey: "settings.prefillNewQueryWithSelectDescription", targetId: "navigation" },{ id: "editor-open-query-on-connection", category: "navigation", titleKey: "settings.openQueryOnConnectionOpen", descriptionKey: "settings.openQueryOnConnectionOpenDescription", targetId: "navigation" },{ id: "editor-generate-sql-include-database", category: "editor", titleKey: "settings.generateSqlIncludeDatabaseName", descriptionKey: "settings.generateSqlIncludeDatabaseNameDescription", targetId: "editor" },{ id: "editor-generate-sql-quote-identifiers", category: "editor", titleKey: "settings.generateSqlQuoteIdentifiers", descriptionKey: "settings.generateSqlQuoteIdentifiersDescription", targetId: "editor" },{ id: "editor-format-sql-on-sql-file-save", category: "editor", titleKey: "settings.formatSqlOnSqlFileSave", descriptionKey: "settings.formatSqlOnSqlFileSaveDescription", targetId: "editor" },{ id: "editor-table-ddl-hover-preview", category: "editor", titleKey: "settings.showTableDdlHoverPreview", descriptionKey: "settings.showTableDdlHoverPreviewDescription", targetId: "editor" },- { id: "editor-table-hover-lookup-mode", category: "editor", titleKey: "settings.tableHoverLookupMode", descriptionKey: "settings.tableHoverLookupModeDescription", targetId: "editor" },+ {+ id: "editor-table-hover-lookup-mode",+ category: "editor",+ titleKey: "settings.tableHoverLookupMode",+ descriptionKey: "settings.tableHoverLookupModeDescription",+ targetId: "editor",+ keywordKeys: ["settings.tableHoverLookupModeCurrent", "settings.tableHoverLookupModeFallback", "settings.tableHoverLookupModeAlways"],+ },{ id: "editor-diagnostics", category: "editor", titleKey: "settings.sqlSemanticDiagnosticsEnabled", descriptionKey: "settings.sqlSemanticDiagnosticsEnabledDescription", targetId: "editor" },- { id: "editor-sql-variables", category: "editor", titleKey: "settings.sqlVariableSyntax", descriptionKey: "settings.sqlVariableSyntaxDescription", targetId: "editor" },- { id: "editor-saved-sql-target", category: "editor", titleKey: "settings.savedSqlOpenTarget", targetId: "editor" },- { id: "editor-ai-sql-apply-target", category: "editor", titleKey: "settings.aiSqlApplyTarget", descriptionKey: "settings.aiSqlApplyTargetCurrentDescription", targetId: "editor" },+ {+ id: "editor-sql-variables",+ category: "editor",+ titleKey: "settings.sqlVariableSyntax",+ descriptionKey: "settings.sqlVariableSyntaxDescription",+ targetId: "editor",+ keywordKeys: SQL_VARIABLE_SYNTAX_KEYS.map((key) => `settings.sqlVariableSyntax_${key}`),+ keywordTexts: SQL_VARIABLE_SYNTAX_KEYS.map((key) => SQL_VARIABLE_SYNTAX_TOKENS[key]),+ },+ {+ id: "editor-saved-sql-target",+ category: "editor",+ titleKey: "settings.savedSqlOpenTarget",+ targetId: "editor",+ keywordKeys: ["settings.savedSqlOpenTargetCurrentDescription", "settings.savedSqlOpenTargetSavedDescription", "settings.savedSqlOpenTargetSaved", "settings.savedSqlOpenTargetCurrent"],+ },+ {+ id: "editor-ai-sql-apply-target",+ category: "editor",+ titleKey: "settings.aiSqlApplyTarget",+ descriptionKey: "settings.aiSqlApplyTargetCurrentDescription",+ targetId: "editor",+ keywordKeys: ["settings.aiSqlApplyTargetFirstDescription", "settings.aiSqlApplyTargetNewDescription", "settings.aiSqlApplyTargetCurrent", "settings.aiSqlApplyTargetFirst", "settings.aiSqlApplyTargetNew"],+ },{ id: "editor-confirm-dangerous-sql", category: "editor", titleKey: "settings.confirmDangerousSqlExecution", descriptionKey: "settings.confirmDangerousSqlExecutionDescription", targetId: "editor" },{ id: "editor-continue-batch-on-error", category: "editor", titleKey: "settings.continueOnErrorOnBatch", descriptionKey: "settings.continueOnErrorOnBatchDescription", targetId: "editor" },{ id: "editor-table-click-navigation", category: "navigation", titleKey: "settings.clickTableNavigationTarget", descriptionKey: "settings.clickTableNavigationTargetDescription", targetId: "navigation" },{ id: "editor-object-browser-auto-open-detail", category: "navigation", titleKey: "settings.objectBrowserAutoOpenDetailPanel", descriptionKey: "settings.objectBrowserAutoOpenDetailPanelDescription", targetId: "navigation" },- { id: "formatter", category: "formatter", titleKey: "settings.sqlFormatterTab", targetId: "formatter" },- { id: "formatter-shortcuts", category: "formatter", titleKey: "settings.sqlFormatterEditorShortcuts", targetId: "formatter" },- { id: "formatter-keyword-case", category: "formatter", titleKey: "settings.sqlFormatterKeywordCase", targetId: "formatter" },- { id: "formatter-function-case", category: "formatter", titleKey: "settings.sqlFormatterFunctionCase", targetId: "formatter" },- { id: "formatter-data-type-case", category: "formatter", titleKey: "settings.sqlFormatterDataTypeCase", targetId: "formatter" },- { id: "formatter-identifier-case", category: "formatter", titleKey: "settings.sqlFormatterIdentifierCase", targetId: "formatter" },- { id: "formatter-indent", category: "formatter", titleKey: "settings.sqlFormatterIndent", targetId: "formatter" },- { id: "formatter-tab-width", category: "formatter", titleKey: "settings.sqlFormatterTabWidth", targetId: "formatter" },- { id: "formatter-indent-style", category: "formatter", titleKey: "settings.sqlFormatterIndentStyle", targetId: "formatter" },- { id: "formatter-layout-style", category: "formatter", titleKey: "settings.sqlFormatterLayoutStyle", targetId: "formatter" },- { id: "formatter-logical-operator-newline", category: "formatter", titleKey: "settings.sqlFormatterLogicalOperatorNewline", targetId: "formatter" },- { id: "formatter-comma-position", category: "formatter", titleKey: "settings.sqlFormatterCommaPosition", targetId: "formatter" },- { id: "formatter-from-clause-layout", category: "formatter", titleKey: "settings.sqlFormatterFromClauseLayout", targetId: "formatter" },- { id: "formatter-expression-width", category: "formatter", titleKey: "settings.sqlFormatterExpressionWidth", targetId: "formatter" },- { id: "formatter-lines-between-queries", category: "formatter", titleKey: "settings.sqlFormatterLinesBetweenQueries", targetId: "formatter" },- { id: "formatter-preserve-empty-lines", category: "formatter", titleKey: "settings.sqlFormatterPreserveEmptyLines", targetId: "formatter" },- { id: "formatter-dense-operators", category: "formatter", titleKey: "settings.sqlFormatterDenseOperators", targetId: "formatter" },- { id: "formatter-newline-before-semicolon", category: "formatter", titleKey: "settings.sqlFormatterNewlineBeforeSemicolon", targetId: "formatter" },- { id: "formatter-param-types", category: "formatter", titleKey: "settings.sqlFormatterParamTypes", targetId: "formatter" },+ { id: "formatter", category: "formatter", titleKey: "settings.sqlFormatterTab", targetId: "formatter", route: { formatterMode: "form" } },+ { id: "formatter-shortcuts", category: "formatter", titleKey: "settings.sqlFormatterEditorShortcuts", targetId: "formatter", route: { formatterMode: "form" } },+ { id: "formatter-keyword-case", category: "formatter", titleKey: "settings.sqlFormatterKeywordCase", targetId: "formatter", route: { formatterMode: "form" }, keywordKeys: ["settings.sqlFormatterCaseUpper", "settings.sqlFormatterCaseLower", "settings.sqlFormatterCasePreserve"] },+ { id: "formatter-function-case", category: "formatter", titleKey: "settings.sqlFormatterFunctionCase", targetId: "formatter", route: { formatterMode: "form" }, keywordKeys: ["settings.sqlFormatterCaseUpper", "settings.sqlFormatterCaseLower", "settings.sqlFormatterCasePreserve"] },+ { id: "formatter-data-type-case", category: "formatter", titleKey: "settings.sqlFormatterDataTypeCase", targetId: "formatter", route: { formatterMode: "form" }, keywordKeys: ["settings.sqlFormatterCaseUpper", "settings.sqlFormatterCaseLower", "settings.sqlFormatterCasePreserve"] },+ { id: "formatter-identifier-case", category: "formatter", titleKey: "settings.sqlFormatterIdentifierCase", targetId: "formatter", route: { formatterMode: "form" }, keywordKeys: ["settings.sqlFormatterCaseUpper", "settings.sqlFormatterCaseLower", "settings.sqlFormatterCasePreserve"] },+ { id: "formatter-indent", category: "formatter", titleKey: "settings.sqlFormatterIndent", targetId: "formatter", route: { formatterMode: "form" }, keywordKeys: ["settings.sqlFormatterIndentSpaces", "settings.sqlFormatterIndentTabs"] },+ { id: "formatter-tab-width", category: "formatter", titleKey: "settings.sqlFormatterTabWidth", targetId: "formatter", route: { formatterMode: "form" } },+ {+ id: "formatter-indent-style",+ category: "formatter",+ titleKey: "settings.sqlFormatterIndentStyle",+ targetId: "formatter",+ route: { formatterMode: "form" },+ keywordKeys: ["settings.sqlFormatterIndentStyleStandard", "settings.sqlFormatterIndentStyleTabularLeft", "settings.sqlFormatterIndentStyleTabularRight"],+ },+ { id: "formatter-layout-style", category: "formatter", titleKey: "settings.sqlFormatterLayoutStyle", targetId: "formatter", route: { formatterMode: "form" }, keywordKeys: ["settings.sqlFormatterLayoutStyleClassic", "settings.sqlFormatterLayoutStyleDbx"] },+ {+ id: "formatter-logical-operator-newline",+ category: "formatter",+ titleKey: "settings.sqlFormatterLogicalOperatorNewline",+ targetId: "formatter",+ route: { formatterMode: "form" },+ keywordKeys: ["settings.sqlFormatterLogicalBefore", "settings.sqlFormatterLogicalAfter", "settings.sqlFormatterLogicalSameLine"],+ },+ { id: "formatter-comma-position", category: "formatter", titleKey: "settings.sqlFormatterCommaPosition", targetId: "formatter", route: { formatterMode: "form" }, keywordKeys: ["settings.sqlFormatterCommaPositionAfter", "settings.sqlFormatterCommaPositionBefore"] },+ { id: "formatter-from-clause-layout", category: "formatter", titleKey: "settings.sqlFormatterFromClauseLayout", targetId: "formatter", route: { formatterMode: "form" }, keywordKeys: ["settings.sqlFormatterFromNewLine", "settings.sqlFormatterFromSameLine"] },+ { id: "formatter-expression-width", category: "formatter", titleKey: "settings.sqlFormatterExpressionWidth", targetId: "formatter", route: { formatterMode: "form" } },+ { id: "formatter-lines-between-queries", category: "formatter", titleKey: "settings.sqlFormatterLinesBetweenQueries", targetId: "formatter", route: { formatterMode: "form" } },+ { id: "formatter-preserve-empty-lines", category: "formatter", titleKey: "settings.sqlFormatterPreserveEmptyLines", targetId: "formatter", route: { formatterMode: "form" } },+ { id: "formatter-dense-operators", category: "formatter", titleKey: "settings.sqlFormatterDenseOperators", targetId: "formatter", route: { formatterMode: "form" } },+ { id: "formatter-newline-before-semicolon", category: "formatter", titleKey: "settings.sqlFormatterNewlineBeforeSemicolon", targetId: "formatter", route: { formatterMode: "form" } },+ { id: "formatter-param-types", category: "formatter", titleKey: "settings.sqlFormatterParamTypes", targetId: "formatter", route: { formatterMode: "form" } },{ id: "appearance-language", category: "appearance", titleKey: "settings.languageTitle", targetId: "appearance" },{ id: "appearance-theme", category: "appearance", titleKey: "settings.theme", targetId: "appearance" },- { id: "appearance-color-theme", category: "appearance", titleKey: "settings.colorTheme", targetId: "appearance" },+ { id: "appearance-color-theme", category: "appearance", titleKey: "settings.colorTheme", targetId: "appearance", keywordKeys: APP_CUSTOM_UI_COLOR_DEFS.map((item) => item.labelKey) },{ id: "appearance-ui-scale", category: "appearance", titleKey: "settings.uiScale", descriptionKey: "settings.uiScaleDescription", targetId: "appearance" },{ id: "appearance-ui-font", category: "appearance", titleKey: "settings.uiFontFamily", descriptionKey: "settings.uiFontFamilyDescription", targetId: "appearance" },{ id: "appearance-grid-font", category: "appearance", titleKey: "settings.dataGridFontFamily", descriptionKey: "settings.dataGridFontFamilyDescription", targetId: "appearance" },{ id: "appearance-corners", category: "appearance", titleKey: "settings.cornerStyle", targetId: "appearance" },- { id: "appearance-welcome-page", category: "appearance", titleKey: "settings.welcomePage", descriptionKey: "settings.welcomePageDescription", targetId: "welcome-page-settings" },- { id: "appearance-layout", category: "appearance", titleKey: "settings.appLayout", targetId: "appearance" },- { id: "appearance-tab-layout", category: "appearance", titleKey: "settings.tabLayout", targetId: "appearance" },- { id: "appearance-tab-max-width", category: "appearance", titleKey: "settings.tabMaxWidth", descriptionKey: "settings.tabMaxWidthDescription", targetId: "appearance" },+ {+ id: "appearance-welcome-page",+ category: "appearance",+ titleKey: "settings.welcomePage",+ descriptionKey: "settings.welcomePageDescription",+ targetId: "welcome-page-settings",+ keywordKeys: ["settings.welcomePageIntro", "settings.welcomePageIntroDescription", "settings.welcomePageWorkspace", "settings.welcomePageWorkspaceDescription"],+ },+ { id: "appearance-layout", category: "appearance", titleKey: "settings.appLayout", targetId: "appearance", keywordKeys: ["settings.appLayoutSeparated", "settings.appLayoutClassic", "settings.appLayoutSeparatedDescription", "settings.appLayoutClassicDescription"] },+ { id: "appearance-tab-layout", category: "appearance", titleKey: "settings.tabLayout", targetId: "appearance", keywordKeys: ["settings.tabLayoutScroll", "settings.tabLayoutWrap", "settings.tabLayoutScrollDescription", "settings.tabLayoutWrapDescription"] },+ {+ id: "appearance-tab-max-width",+ category: "appearance",+ titleKey: "settings.tabMaxWidth",+ descriptionKey: "settings.tabMaxWidthDescription",+ targetId: "appearance",+ keywordKeys: ["settings.tabMaxWidthUnlimited", "settings.tabMaxWidthCompact", "settings.tabMaxWidthMedium", "settings.tabMaxWidthStandard", "settings.tabMaxWidthWide"],+ },{ id: "appearance-connection-tab-colors", category: "appearance", titleKey: "settings.colorizeConnectionTabs", descriptionKey: "settings.colorizeConnectionTabsDescription", targetId: "appearance" },{ id: "appearance-icons", category: "appearance", titleKey: "settings.iconTheme", targetId: "appearance", visible: desktopOnly },- { id: "appearance-web-logo-position", category: "appearance", titleKey: "settings.webLogoPosition", descriptionKey: "settings.webLogoPositionDescription", targetId: "appearance-web-logo-position", visible: webOnly },+ {+ id: "appearance-web-logo-position",+ category: "appearance",+ titleKey: "settings.webLogoPosition",+ descriptionKey: "settings.webLogoPositionDescription",+ targetId: "appearance-web-logo-position",+ visible: webOnly,+ keywordKeys: ["settings.webLogoPositionLeft", "settings.webLogoPositionRight", "settings.webLogoPositionHidden"],+ },{ id: "appearance-tray", category: "appearance", titleKey: "settings.showTrayIcon", descriptionKey: "settings.showTrayIconDescription", targetId: "appearance", visible: desktopOnly },{ id: "appearance-quit", category: "appearance", titleKey: "settings.quitOnClose", descriptionKey: "settings.quitOnCloseDescription", targetId: "appearance", visible: desktopOnly },{ id: "about-debug-logs", category: "about", titleKey: "settings.debugLoggingEnabled", descriptionKey: "settings.debugLoggingEnabledDescription", targetId: "about", visible: desktopOnly },{ id: "navigation", category: "navigation", titleKey: "settings.navigationTab", targetId: "navigation" },{ id: "navigation-sidebar", category: "navigation", titleKey: "settings.sidebarActivation", targetId: "navigation" },- { id: "navigation-routine-source", category: "navigation", titleKey: "settings.routineSourceOpenMode", descriptionKey: "settings.routineSourceOpenModeDescription", targetId: "navigation" },+ {+ id: "navigation-routine-source",+ category: "navigation",+ titleKey: "settings.routineSourceOpenMode",+ descriptionKey: "settings.routineSourceOpenModeQueryTabDescription",+ targetId: "navigation",+ keywordKeys: ["settings.routineSourceOpenModeQueryTab", "settings.routineSourceOpenModeDialog", "settings.routineSourceOpenModeDialogDescription"],+ },{ id: "navigation-reuse-data-tab", category: "navigation", titleKey: "settings.reuseDataTab", descriptionKey: "settings.reuseDataTabDescription", targetId: "navigation" },{ id: "navigation-open-data-tabs-next-to-active", category: "navigation", titleKey: "settings.openDataTabsNextToActive", descriptionKey: "settings.openDataTabsNextToActiveDescription", targetId: "navigation" },{ id: "navigation-object-display", category: "navigation", titleKey: "settings.sidebarObjectDisplay", targetId: "navigation" },- { id: "navigation-object-info", category: "navigation", titleKey: "settings.sidebarObjectInfoMode", descriptionKey: "settings.sidebarObjectInfoModeDescription", targetId: "navigation" },+ {+ id: "navigation-object-info",+ category: "navigation",+ titleKey: "settings.sidebarObjectInfoMode",+ descriptionKey: "settings.sidebarObjectInfoModeDescription",+ targetId: "navigation",+ keywordKeys: ["settings.sidebarObjectInfoModeCommentInline", "settings.sidebarObjectInfoModeCommentAligned", "settings.sidebarObjectInfoModeCommentRight", "settings.sidebarObjectInfoModeSize", "settings.sidebarObjectInfoModeCommentAndSize", "settings.sidebarObjectInfoModeHidden"],+ },{ id: "navigation-table-search", category: "navigation", titleKey: "settings.sidebarTableSearchEnabled", descriptionKey: "settings.sidebarTableSearchEnabledDescription", targetId: "navigation" },{ id: "navigation-search-opened-databases-only", category: "navigation", titleKey: "settings.sidebarSearchOpenedDatabasesOnly", descriptionKey: "settings.sidebarSearchOpenedDatabasesOnlyDescription", targetId: "navigation" },{ id: "navigation-active-node", category: "navigation", titleKey: "settings.autoSelectActiveSidebarNode", descriptionKey: "settings.autoSelectActiveSidebarNodeDescription", targetId: "navigation" },{ id: "navigation-sidebar-pin-default-database", category: "navigation", titleKey: "settings.sidebarPinDefaultDatabase", descriptionKey: "settings.sidebarPinDefaultDatabaseDescription", targetId: "navigation" },{ id: "navigation-browse-objects-on-database-activation", category: "navigation", titleKey: "settings.sidebarBrowseObjectsOnDatabaseActivation", descriptionKey: "settings.sidebarBrowseObjectsOnDatabaseActivationDescription", targetId: "navigation" },- { id: "navigation-tabs-restore", category: "navigation", titleKey: "settings.openTabsRestoreMode", descriptionKey: "settings.openTabsRestoreModeDescription", targetId: "navigation" },+ {+ id: "navigation-tabs-restore",+ category: "navigation",+ titleKey: "settings.openTabsRestoreMode",+ descriptionKey: "settings.openTabsRestoreModeDescription",+ targetId: "navigation",+ keywordKeys: ["settings.openTabsRestoreModeAll", "settings.openTabsRestoreModePinned", "settings.openTabsRestoreModeNone", "settings.openTabsRestoreModeHint"],+ },{ id: "navigation-sidebar-scroll", category: "navigation", titleKey: "settings.sidebarAllowHorizontalScroll", descriptionKey: "settings.sidebarAllowHorizontalScrollDescription", targetId: "navigation" },{ id: "navigation-sidebar-tooltips", category: "navigation", titleKey: "settings.sidebarShowTooltips", descriptionKey: "settings.sidebarShowTooltipsDescription", targetId: "navigation" },{ id: "navigation-sidebar-indent", category: "navigation", titleKey: "settings.sidebarIndent", descriptionKey: "settings.sidebarIndentDescription", targetId: "navigation" },{ id: "navigation-sidebar-font-size", category: "navigation", titleKey: "settings.sidebarFontSize", descriptionKey: "settings.sidebarFontSizeDescription", targetId: "navigation" },{ id: "navigation-sidebar-density", category: "navigation", titleKey: "settings.sidebarDensity", descriptionKey: "settings.sidebarDensityDescription", targetId: "navigation" },{ id: "navigation-hidden-tables", category: "navigation", titleKey: "settings.sidebarHiddenTablePrefixes", descriptionKey: "settings.sidebarHiddenTablePrefixesDescription", targetId: "navigation" },- { id: "history-retention", category: "data", titleKey: "settings.historyRetentionLimit", descriptionKey: "settings.historyRetentionDescription", targetId: "history-retention" },- { id: "mcp-history-retention", category: "data", titleKey: "settings.mcpHistoryRetentionLimit", descriptionKey: "settings.mcpHistoryRetentionDescription", targetId: "mcp-history-retention" },+ { id: "history-retention", category: "data", titleKey: "settings.historyRetentionLimit", descriptionKey: "settings.historyRetentionDescription", targetId: "history-retention", keywordKeys: ["settings.historyRetentionUnlimited"] },+ { id: "mcp-history-retention", category: "data", titleKey: "settings.mcpHistoryRetentionLimit", descriptionKey: "settings.mcpHistoryRetentionDescription", targetId: "mcp-history-retention", keywordKeys: ["settings.historyRetentionUnlimited", "settings.mcpHistoryCleanup"] },{ id: "navigation-table-page-size", category: "navigation", titleKey: "settings.sidebarTablePageSize", descriptionKey: "settings.sidebarTablePageSizeDescription", targetId: "navigation" },- { id: "navigation-disconnect-tabs", category: "navigation", titleKey: "settings.disconnectTabHandlingMode", descriptionKey: "settings.disconnectTabHandlingModeDescription", targetId: "navigation" },- { id: "navigation-delete-connection-tabs", category: "navigation", titleKey: "settings.deleteConnectionTabHandlingMode", descriptionKey: "settings.deleteConnectionTabHandlingModeDescription", targetId: "navigation" },- { id: "navigation-remember-connection-database", category: "navigation", titleKey: "settings.rememberConnectionDatabaseOnDelete", descriptionKey: "settings.rememberConnectionDatabaseOnDeleteDescription", targetId: "navigation" },+ {+ id: "navigation-disconnect-tabs",+ category: "navigation",+ titleKey: "settings.disconnectTabHandlingMode",+ descriptionKey: "settings.disconnectTabHandlingModeDescription",+ targetId: "navigation",+ keywordKeys: ["settings.disconnectTabHandlingModeCloseTabs", "settings.disconnectTabHandlingModeKeepTabsClearResults", "settings.disconnectTabHandlingModeKeepTabsKeepResults"],+ },+ {+ id: "navigation-delete-connection-tabs",+ category: "navigation",+ titleKey: "settings.deleteConnectionTabHandlingMode",+ descriptionKey: "settings.deleteConnectionTabHandlingModeDescription",+ targetId: "navigation",+ keywordKeys: ["settings.deleteConnectionTabHandlingModeCloseTabs", "settings.deleteConnectionTabHandlingModeKeepSqlTabs", "settings.deleteConnectionTabHandlingModeKeepPinnedSqlTabs", "settings.deleteConnectionTabHandlingModeKeepAllTabs"],+ },+ { id: "navigation-remember-connection-database", category: "navigation", titleKey: "settings.rememberConnectionDatabaseOnDelete", descriptionKey: "settings.rememberConnectionDatabaseOnDeleteDescription", targetId: "navigation", keywordKeys: ["settings.rememberConnectionDatabaseOnDeleteHint"] },{ id: "query-page-size", category: "data", titleKey: "settings.queryPageSize", descriptionKey: "settings.queryPageSizeDescription", targetId: "data" },{ id: "data-page-size", category: "data", titleKey: "settings.tableOpenPageSize", descriptionKey: "settings.tableOpenPageSizeDescription", targetId: "data" },- { id: "data-table-open-sort-mode", category: "data", titleKey: "settings.tableOpenSortMode", descriptionKey: "settings.tableOpenSortDescription", targetId: "data" },- { id: "data-table-database-sort-direction", category: "data", titleKey: "settings.tableDatabaseSortDirection", targetId: "data" },- { id: "data-table-local-sort-direction", category: "data", titleKey: "settings.tableLocalSortDirection", targetId: "data" },+ { id: "data-table-open-sort-mode", category: "data", titleKey: "settings.tableOpenSortMode", descriptionKey: "settings.tableOpenSortDescription", targetId: "data", keywordKeys: ["settings.tableSortUnchanged", "settings.tableSortDatabase", "settings.tableSortLocal"] },+ { id: "data-table-database-sort-direction", category: "data", titleKey: "settings.tableDatabaseSortDirection", targetId: "data", keywordKeys: ["settings.tableSortAscending", "settings.tableSortDescending"] },+ { id: "data-table-local-sort-direction", category: "data", titleKey: "settings.tableLocalSortDirection", targetId: "data", keywordKeys: ["settings.tableSortAscending", "settings.tableSortDescending"] },{ id: "default-auto-keep-results", category: "data", titleKey: "settings.defaultAutoKeepResults", descriptionKey: "settings.defaultAutoKeepResultsDescription", targetId: "default-auto-keep-results" },- { id: "multi-statement-default-view", category: "data", titleKey: "settings.multiStatementDefaultView", descriptionKey: "settings.multiStatementDefaultViewDescription", targetId: "multi-statement-default-view" },- { id: "default-explain-view", category: "data", titleKey: "settings.defaultExplainView", descriptionKey: "settings.defaultExplainViewDescription", targetId: "default-explain-view" },- { id: "query-result-max-rows", category: "data", titleKey: "settings.queryResultMaxRows", descriptionKey: "settings.queryResultMaxRowsDescription", targetId: "data" },+ { id: "multi-statement-default-view", category: "data", titleKey: "settings.multiStatementDefaultView", descriptionKey: "settings.multiStatementDefaultViewDescription", targetId: "multi-statement-default-view", keywordKeys: ["tabs.tableData", "tabs.executionSummary"] },+ { id: "default-explain-view", category: "data", titleKey: "settings.defaultExplainView", descriptionKey: "settings.defaultExplainViewDescription", targetId: "default-explain-view", keywordKeys: ["explain.canvas", "explain.tree", "explain.summary", "explain.standardTable", "explain.raw"] },+ { id: "query-result-max-rows", category: "data", titleKey: "settings.queryResultMaxRows", descriptionKey: "settings.queryResultMaxRowsDescription", targetId: "query-result-max-rows", keywordKeys: ["settings.queryResultMaxRowsUnlimitedDescription"] },{ id: "data-grid-header-comments", category: "data", titleKey: "settings.showColumnCommentsInHeader", descriptionKey: "settings.showColumnCommentsInHeaderDescription", targetId: "data" },{ id: "data-grid-comment-info-area", category: "data", titleKey: "settings.dataGridColumnCommentsInInfoArea", descriptionKey: "settings.dataGridColumnCommentsInInfoAreaDescription", targetId: "data" },{ id: "data-grid-header-types", category: "data", titleKey: "settings.showColumnTypesInHeader", descriptionKey: "settings.showColumnTypesInHeaderDescription", targetId: "data" },{ id: "data-grid-header-tooltips", category: "data", titleKey: "settings.showColumnHeaderTooltips", descriptionKey: "settings.showColumnHeaderTooltipsDescription", targetId: "data" },{ id: "result-source-database-name", category: "data", titleKey: "settings.showResultSourceDatabase", descriptionKey: "settings.showResultSourceDatabaseDescription", targetId: "data" },- { id: "result-tab-naming-mode", category: "data", titleKey: "settings.resultTabNamingMode", descriptionKey: "settings.resultTabNamingModeDescription", targetId: "data" },+ {+ id: "result-tab-naming-mode",+ category: "data",+ titleKey: "settings.resultTabNamingMode",+ descriptionKey: "settings.resultTabNamingModeDescription",+ targetId: "data",+ keywordKeys: ["settings.resultTabNamingModeSource", "settings.resultTabNamingModeOrdinal", "settings.resultTabNamingModeComment"],+ },{ id: "result-tab-prefer-comments", category: "data", titleKey: "settings.resultTabPreferComments", descriptionKey: "settings.resultTabPreferCommentsDescription", targetId: "data" },{ id: "data-grid-transpose-field-metadata", category: "data", titleKey: "settings.dataGridShowTransposeFieldMetadata", descriptionKey: "settings.dataGridShowTransposeFieldMetadataDescription", targetId: "data" },{ id: "data-grid-transpose-info-column", category: "data", titleKey: "settings.dataGridTransposeMetadataInInfoColumn", descriptionKey: "settings.dataGridTransposeMetadataInInfoColumnDescription", targetId: "data" },{ id: "data-grid-cell-type-colors", category: "data", titleKey: "settings.colorizeDataGridCellTypes", descriptionKey: "settings.colorizeDataGridCellTypesDescription", targetId: "data" },- { id: "data-grid-type-colors", category: "data", titleKey: "settings.dataGridTypeColorScheme", descriptionKey: "settings.dataGridTypeColorSchemeDescription", targetId: "data-grid-type-colors" },+ {+ id: "data-grid-type-colors",+ category: "data",+ titleKey: "settings.dataGridTypeColorScheme",+ descriptionKey: "settings.dataGridTypeColorSchemeDescription",+ targetId: "data-grid-type-colors",+ keywordKeys: [+ "settings.dataGridTypeColorInteger",+ "settings.dataGridTypeColorNumeric",+ "settings.dataGridTypeColorString",+ "settings.dataGridTypeColorBoolean",+ "settings.dataGridTypeColorTemporal",+ "settings.dataGridTypeColorStructured",+ "settings.dataGridTypeColorIdentifier",+ "settings.dataGridTypeColorBinary",+ "settings.dataGridTypeColorSpatial",+ ],+ },{ id: "data-grid-index-indicators", category: "data", titleKey: "settings.showIndexIndicatorsInHeader", descriptionKey: "settings.showIndexIndicatorsInHeaderDescription", targetId: "data" },{ id: "data-grid-compact-header-actions", category: "data", titleKey: "settings.compactColumnHeaderActions", descriptionKey: "settings.compactColumnHeaderActionsDescription", targetId: "data" },{ id: "data-grid-auto-total", category: "data", titleKey: "settings.autoCalculateTotalRows", descriptionKey: "settings.autoCalculateTotalRowsDescription", targetId: "data" },@@ -258,11 +422,18 @@ export const SETTINGS_SEARCH_DEFINITIONS: readonly SettingsSearchDefinition[] ={ id: "redis-key-templates", category: "data", titleKey: "settings.redisKeyTemplates", descriptionKey: "settings.redisKeyTemplatesDescription", targetId: "redis-key-templates" },{ id: "data-grid-auto-transpose", category: "data", titleKey: "settings.dataGridAutoTransposeSingleRow", descriptionKey: "settings.dataGridAutoTransposeSingleRowDescription", targetId: "data" },{ id: "data-grid-quick-entry", category: "data", titleKey: "settings.dataGridQuickEntry", descriptionKey: "settings.dataGridQuickEntryDescription", targetId: "data" },- { id: "data-grid-toolbar-layout", category: "data", titleKey: "settings.dataGridToolbarLayout", descriptionKey: "settings.dataGridToolbarLayoutDescription", targetId: "data-grid-toolbar-layout" },- { id: "data-grid-filter-view", category: "data", titleKey: "settings.dataGridFilterView", descriptionKey: "settings.dataGridFilterViewDescription", targetId: "data-grid-filter-view" },+ { id: "data-grid-toolbar-layout", category: "data", titleKey: "settings.dataGridToolbarLayout", descriptionKey: "settings.dataGridToolbarLayoutDescription", targetId: "data-grid-toolbar-layout", keywordKeys: ["settings.dataGridToolbarLayoutSplit", "settings.dataGridToolbarLayoutSingle"] },+ {+ id: "data-grid-filter-view",+ category: "data",+ titleKey: "settings.dataGridFilterView",+ descriptionKey: "settings.dataGridFilterViewDescription",+ targetId: "data-grid-filter-view",+ keywordKeys: ["settings.dataGridFilterViewPreview", "grid.filterQuickView", "grid.filterConditionView", "grid.filterTextView", "settings.dataGridKeepFilterEditorExpandedDescription"],+ },{ id: "data-grid-flattening-multi-line", category: "data", titleKey: "settings.flatteningMultiLineText", descriptionKey: "settings.flatteningMultiLineTextDescription", targetId: "data" },{ id: "data-grid-show-whitespace", category: "data", titleKey: "settings.dataGridShowWhitespace", descriptionKey: "settings.dataGridShowWhitespaceDescription", targetId: "data" },- { id: "data-grid-striped-rows", category: "data", titleKey: "settings.dataGridStripedRows", descriptionKey: "settings.dataGridStripedRowsDescription", targetId: "data" },+ { id: "data-grid-striped-rows", category: "data", titleKey: "settings.dataGridStripedRows", descriptionKey: "settings.dataGridStripedRowsDescription", targetId: "data-grid-striped-rows" },{ id: "sql-file-editor-max-mb", category: "editor", titleKey: "settings.externalSqlEditorMaxMb", descriptionKey: "settings.externalSqlEditorMaxMbDescription", targetId: "editor-sql-file" },{ id: "sql-file-web-upload-max-mb", category: "data", titleKey: "settings.webSqlFileUploadMaxMb", descriptionKey: "settings.webSqlFileUploadMaxMbDescription", targetId: "data-sql-file-upload", visible: (context) => context.isWeb },{ id: "appearance-toolbar", category: "appearance", titleKey: "settings.toolbarTitle", descriptionKey: "settings.toolbarHiddenHint", targetId: "appearance" },@@ -273,67 +444,427 @@ export const SETTINGS_SEARCH_DEFINITIONS: readonly SettingsSearchDefinition[] ={ id: "data-datetime-export-format", category: "data", titleKey: "settings.globalDateTimeExportFormat", descriptionKey: "settings.globalDateTimeExportFormatDescription", targetId: "data" },{ id: "data-datetime-import-format", category: "data", titleKey: "settings.globalDateTimeImportFormat", descriptionKey: "settings.globalDateTimeImportFormatDescription", targetId: "data" },{ id: "data-export", category: "data", titleKey: "settings.exportSection", targetId: "data" },- { id: "data-export-preferred-path", category: "data", titleKey: "settings.preferredExportPath", descriptionKey: "settings.preferredExportPathDescription", targetId: "data" },- { id: "data-export-file-name-source", category: "data", titleKey: "settings.queryResultExportFileNameSource", descriptionKey: "settings.queryResultExportFileNameSourceDescription", targetId: "data" },- { id: "data-dameng-client-bin-dir", category: "data", titleKey: "settings.damengClientBinDir", descriptionKey: "settings.damengClientBinDirDescription", targetId: "data" },- { id: "data-export-auto-open-folder", category: "data", titleKey: "settings.autoOpenExportFolder", descriptionKey: "settings.autoOpenExportFolderDescription", targetId: "data", visible: desktopOnly },- { id: "data-export-apply-column-formatters", category: "data", titleKey: "settings.applyColumnFormattersOnExport", descriptionKey: "settings.applyColumnFormattersOnExportDescription", targetId: "data" },+ { id: "data-export-preferred-path", category: "data", titleKey: "settings.preferredExportPath", descriptionKey: "settings.preferredExportPathDescription", targetId: "data-export-preferred-path" },+ {+ id: "data-export-file-name-source",+ category: "data",+ titleKey: "settings.queryResultExportFileNameSource",+ descriptionKey: "settings.queryResultExportFileNameSourceDescription",+ targetId: "data-export-file-name-source",+ keywordKeys: ["settings.queryResultExportFileNameSourceResultLabel", "settings.queryResultExportFileNameSourceTabTitle"],+ },+ { id: "data-dameng-client-bin-dir", category: "data", titleKey: "settings.damengClientBinDir", descriptionKey: "settings.damengClientBinDirDescription", targetId: "data-dameng-client-bin-dir", visible: desktopOnly },+ { id: "data-export-auto-open-folder", category: "data", titleKey: "settings.autoOpenExportFolder", descriptionKey: "settings.autoOpenExportFolderDescription", targetId: "data-export-auto-open-folder", visible: desktopOnly },+ { id: "data-export-apply-column-formatters", category: "data", titleKey: "settings.applyColumnFormattersOnExport", descriptionKey: "settings.applyColumnFormattersOnExportDescription", targetId: "data-export-apply-column-formatters" },{ id: "data-export-batch", category: "data", titleKey: "settings.exportBatchSize", descriptionKey: "settings.exportBatchSizeDescription", targetId: "data" },{ id: "data-export-row-limit-enabled", category: "data", titleKey: "settings.exportRowLimitEnabled", descriptionKey: "settings.exportRowLimitEnabledDescription", targetId: "data" },- { id: "data-export-row-limit", category: "data", titleKey: "settings.exportRowLimit", descriptionKey: "settings.exportRowLimitDescription", targetId: "data" },+ { id: "data-export-row-limit", category: "data", titleKey: "settings.exportRowLimit", descriptionKey: "settings.exportRowLimitDescription", targetId: "data", keywordKeys: ["settings.exportRowLimitUnlimited"] },{ id: "data-export-keyset", category: "data", titleKey: "settings.queryExportKeysetOptimizationEnabled", descriptionKey: "settings.queryExportKeysetOptimizationEnabledDescription", targetId: "data" },{ id: "data-performance", category: "data", titleKey: "settings.performanceSection", targetId: "data-performance" },{ id: "data-metadata-cache", category: "data", titleKey: "settings.metadataCacheMemoryLimit", descriptionKey: "settings.metadataCacheMemoryLimitDescription", targetId: "data-performance" },- { id: "data-table-template", category: "data", titleKey: "settings.tableColumnTemplateFields", descriptionKey: "settings.tableColumnTemplateFieldsDescription", targetId: "table-column-templates" },+ {+ id: "data-table-template",+ category: "data",+ titleKey: "settings.tableColumnTemplateFields",+ descriptionKey: "settings.tableColumnTemplateFieldsDescription",+ targetId: "table-column-templates",+ keywordKeys: ["settings.tableColumnTemplateColumn", "settings.tableColumnTemplateType", "settings.tableColumnTemplateLength", "settings.tableColumnTemplateDefault", "settings.tableColumnTemplateRequired", "settings.tableColumnTemplateComment"],+ },{ id: "data-duckdb", category: "data", titleKey: "settings.duckDbWorkerProcessIsolation", descriptionKey: "settings.duckDbWorkerProcessIsolationDescription", targetId: "data", visible: desktopOnly },{ id: "data-duckdb-process-limit", category: "data", titleKey: "settings.duckDbWorkerMaxProcesses", descriptionKey: "settings.duckDbWorkerMaxProcessesDescription", targetId: "data", visible: desktopOnly },- { id: "backups", category: "backups", titleKey: "databaseBackup.title", targetId: "backups", visible: desktopOnly },- { id: "tunnels", category: "tunnels", titleKey: "settings.tunnelsTab", targetId: "tunnels" },+ {+ id: "backups",+ category: "backups",+ titleKey: "databaseBackup.title",+ targetId: "backups",+ keywordKeys: [+ "databaseBackup.scheduleName",+ "databaseBackup.frequency",+ "databaseBackup.intervalHours",+ "databaseBackup.time",+ "databaseBackup.weekday",+ "databaseBackup.retention",+ "databaseBackup.keepForever",+ "databaseBackup.timeZone",+ "databaseBackup.enabled",+ "databaseBackup.backupName",+ "databaseBackup.connection",+ "databaseBackup.destination",+ "databaseBackup.outputPathTemplate",+ "databaseBackup.runDirectoryPattern",+ "databaseBackup.fileNamePattern",+ "databaseBackup.compression",+ "databaseBackup.compressionGzip",+ "databaseBackup.databases",+ "databaseBackup.allDatabases",+ "databaseBackup.tableScope",+ "databaseBackup.tablePatterns",+ "databaseBackup.contents",+ "databaseExport.includeStructure",+ "databaseExport.includeData",+ "databaseExport.includeObjects",+ "databaseExport.dropTableIfExists",+ "tableMultiSelect.tables",+ ],+ },+ {+ id: "tunnels",+ category: "tunnels",+ titleKey: "settings.tunnelsTab",+ targetId: "tunnels",+ keywordKeys: [+ "settings.tunnelsProfileName",+ "connection.sshHost",+ "connection.sshUser",+ "connection.sshAuthMethod",+ "connection.sshPassword",+ "connection.sshKeyPath",+ "connection.sshKeyPassphrase",+ "connection.sshAgentSockPath",+ "connection.sshExposeLan",+ "connection.sshConnectTimeout",+ "connection.sshAuthMethodPassword",+ "connection.sshAuthMethodKey",+ "connection.sshAuthMethodKeyPassword",+ "connection.sshUseAgent",+ "connection.sshAuthMethodNone",+ "connection.sshAuthMethodNoneHint",+ "connection.proxyType",+ "connection.proxyHost",+ "connection.proxyUsername",+ "connection.proxyPassword",+ "connection.proxyTestTarget",+ "connection.httpTunnelUrl",+ "connection.httpTunnelToken",+ "connection.httpTunnelConnectTimeout",+ ],+ },{ id: "shortcuts", category: "shortcuts", titleKey: "settings.shortcutsTab", targetId: "shortcuts" },- { id: "sql-shortcuts", category: "shortcuts", titleKey: "settings.sqlShortcutsTitle", descriptionKey: "settings.sqlShortcutsDescription", targetId: "sql-shortcuts" },- { id: "snippets", category: "snippets", titleKey: "settings.snippetsTab", descriptionKey: "settings.snippetsDescription", targetId: "snippets" },- { id: "snippet-trigger-key", category: "snippets", titleKey: "settings.snippetTriggerKey", descriptionKey: "settings.snippetTriggerKeyDescription", targetId: "snippet-trigger-key" },+ {+ id: "sql-shortcuts",+ category: "shortcuts",+ titleKey: "settings.sqlShortcutsTitle",+ descriptionKey: "settings.sqlShortcutsDescription",+ targetId: "sql-shortcuts",+ keywordKeys: [+ "settings.sqlShortcutsLabel",+ "settings.sqlShortcutsLimit",+ "settings.sqlShortcutsSql",+ "settings.sqlShortcutsDatabaseTypes",+ "settings.sqlShortcutsDatabaseTypesAll",+ "settings.sqlShortcutsDatabaseTypesSelected",+ "settings.sqlShortcutsDatabaseTypesHint",+ "settings.sqlShortcutsSqlDatabase",+ "settings.sqlShortcutsToggle",+ "settings.sqlShortcutsVariableHint",+ "settings.sqlShortcutsSelectLimitHint",+ ],+ },+ {+ id: "snippets",+ category: "snippets",+ titleKey: "settings.snippetsTab",+ descriptionKey: "settings.snippetsDescription",+ targetId: "snippets",+ keywordKeys: ["settings.snippetsLabel", "settings.snippetsPrefix", "settings.snippetsBody", "settings.snippetsToggle", "settings.snippetsEnabled", "settings.snippetsDisabled", "settings.snippetsPlaceholderHint"],+ },+ {+ id: "snippet-trigger-key",+ category: "snippets",+ titleKey: "settings.snippetTriggerKey",+ descriptionKey: "settings.snippetTriggerKeyDescription",+ targetId: "snippet-trigger-key",+ keywordKeys: ["settings.snippetTriggerKeyTab", "settings.snippetTriggerKeySpace", "settings.snippetTriggerKeyBoth"],+ },{ id: "sync-webdav", category: "sync", titleKey: "settings.syncWebDavTitle", descriptionKey: "settings.syncWebDavDescription", targetId: "sync-webdav", route: { syncMethodTab: "webdav" } },{ id: "sync-webdav-endpoint", category: "sync", titleKey: "settings.syncEndpoint", targetId: "sync-webdav", route: { syncMethodTab: "webdav" } },{ id: "sync-webdav-username", category: "sync", titleKey: "settings.syncUsername", targetId: "sync-webdav", route: { syncMethodTab: "webdav" } },- { id: "sync-webdav-password", category: "sync", titleKey: "settings.syncPassword", targetId: "sync-webdav", route: { syncMethodTab: "webdav" } },- { id: "sync-webdav-remote-path", category: "sync", titleKey: "settings.syncRemotePath", targetId: "sync-webdav", route: { syncMethodTab: "webdav" } },- { id: "sync-webdav-user-agent", category: "sync", titleKey: "settings.syncUserAgent", targetId: "sync-webdav", route: { syncMethodTab: "webdav" } },- { id: "sync-webdav-auto-upload", category: "sync", titleKey: "settings.syncAutoUploadInterval", targetId: "sync-webdav", route: { syncMethodTab: "webdav" } },+ { id: "sync-webdav-password", category: "sync", titleKey: "settings.syncPassword", targetId: "sync-webdav", route: { syncMethodTab: "webdav" }, keywordKeys: ["settings.syncSavedPassword", "settings.syncRememberWebDavPasswordDescription"] },+ { id: "sync-webdav-remote-path", category: "sync", titleKey: "settings.syncRemotePath", targetId: "sync-webdav", route: { syncMethodTab: "webdav" }, keywordKeys: ["settings.syncRemotePathDescription"] },+ { id: "sync-webdav-user-agent", category: "sync", titleKey: "settings.syncUserAgent", targetId: "sync-webdav", route: { syncMethodTab: "webdav" }, keywordKeys: ["settings.syncUserAgentDescription"] },+ { id: "sync-webdav-auto-upload", category: "sync", titleKey: "settings.syncAutoUploadInterval", targetId: "sync-webdav", route: { syncMethodTab: "webdav" }, keywordKeys: ["settings.syncAutoUploadMinutes"] },{ id: "sync-snippet", category: "sync", titleKey: "settings.syncSnippetTitle", descriptionKey: "settings.syncSnippetDescription", targetId: "sync-snippet", route: { syncMethodTab: "snippet" }, visible: desktopOnly },- { id: "sync-snippet-provider", category: "sync", titleKey: "settings.syncSnippetProvider", targetId: "sync-snippet", route: { syncMethodTab: "snippet" }, visible: desktopOnly },+ { id: "sync-snippet-provider", category: "sync", titleKey: "settings.syncSnippetProvider", targetId: "sync-snippet", route: { syncMethodTab: "snippet" }, visible: desktopOnly, keywordKeys: ["settings.syncSnippetProviderGitee"] },{ id: "sync-snippet-id", category: "sync", titleKey: "settings.syncSnippetId", targetId: "sync-snippet", route: { syncMethodTab: "snippet" }, visible: desktopOnly },- { id: "sync-snippet-token", category: "sync", titleKey: "settings.syncSnippetToken", targetId: "sync-snippet", route: { syncMethodTab: "snippet" }, visible: desktopOnly },- { id: "sync-local-backup", category: "sync", titleKey: "settings.localBackupTitle", descriptionKey: "settings.localBackupDescription", targetId: "sync-local", route: { syncMethodTab: "local" }, visible: desktopOnly },- { id: "sync-secrets", category: "sync", titleKey: "settings.syncSecrets", targetId: "sync" },- { id: "sync-secrets-passphrase", category: "sync", titleKey: "settings.syncSecretsPassphrase", targetId: "sync" },- { id: "ai-config", category: "ai", titleKey: "ai.configList", targetId: "ai" },- { id: "ai-conversation-font-family", category: "ai", titleKey: "ai.conversationFontFamily", descriptionKey: "ai.conversationTypographyDescription", targetId: "ai-typography" },- { id: "ai-conversation-font-size", category: "ai", titleKey: "ai.conversationFontSize", descriptionKey: "ai.conversationTypographyDescription", targetId: "ai-typography" },- { id: "ai-prompts", category: "ai", titleKey: "ai.promptTemplates", descriptionKey: "ai.promptTemplatesDescription", targetId: "ai" },- { id: "ai-default-mode", category: "ai", titleKey: "ai.defaultAiMode", descriptionKey: "ai.defaultAiModeDescription", targetId: "ai" },+ { id: "sync-snippet-token", category: "sync", titleKey: "settings.syncSnippetToken", targetId: "sync-snippet", route: { syncMethodTab: "snippet" }, visible: desktopOnly, keywordKeys: ["settings.syncSnippetTokenDescription"] },+ {+ id: "sync-local-backup",+ category: "sync",+ titleKey: "settings.localBackupTitle",+ descriptionKey: "settings.localBackupDescription",+ keywordKeys: ["settings.syncSecretsPassphrase", "settings.localBackupPassphraseDescription"],+ targetId: "sync-local",+ route: { syncMethodTab: "local" },+ visible: desktopOnly,+ },+ { id: "sync-secrets", category: "sync", titleKey: "settings.syncSecrets", targetId: "sync", route: { syncMethodTab: "webdav" } },+ { id: "sync-secrets-passphrase", category: "sync", titleKey: "settings.syncSecretsPassphrase", targetId: "sync", route: { syncMethodTab: "webdav" }, keywordKeys: ["settings.syncSecretsPassphraseDescription"] },+ {+ id: "ai-config",+ category: "ai",+ titleKey: "ai.configList",+ targetId: "ai",+ keywordKeys: [+ "ai.configName",+ "ai.provider",+ "ai.customHeaders",+ "ai.customHeadersHint",+ "ai.cliPath",+ "ai.cliPathHint",+ "ai.openCodeCliVersion",+ "ai.openCodeCliVersionAuto",+ "ai.openCodeCliVersionV1",+ "ai.openCodeCliVersionV2",+ "ai.openCodeCliVersionHint",+ "ai.cliEnv",+ "ai.cliEnvHint",+ "ai.defaultModel",+ "ai.contextWindow",+ "ai.contextWindowHint",+ "ai.maxOutputTokens",+ "ai.maxOutputTokensHint",+ "ai.proxy",+ "ai.proxyEnable",+ "ai.proxyUrl",+ "ai.sslVerification",+ "ai.skipTlsVerify",+ "ai.skipTlsVerifyHint",+ ],+ keywordTexts: ["Authentication", "Endpoint", "API", "Auth Token", "API Key"],+ },+ { id: "ai-conversation-font-family", category: "ai", titleKey: "ai.conversationFontFamily", descriptionKey: "ai.conversationTypographyDescription", targetId: "ai-typography", keywordKeys: ["ai.conversationFontFollowInterface"] },+ { id: "ai-conversation-font-size", category: "ai", titleKey: "ai.conversationFontSize", descriptionKey: "ai.conversationTypographyDescription", targetId: "ai-typography", keywordKeys: ["ai.conversationFontSizeRange"] },+ { id: "ai-prompts", category: "ai", titleKey: "ai.promptTemplates", descriptionKey: "ai.promptTemplatesDescription", targetId: "ai", keywordKeys: ["ai.promptTemplateName", "ai.promptTemplateContent", "ai.promptTemplateNameTooLong", "ai.promptTemplateTooLong"] },+ { id: "ai-default-mode", category: "ai", titleKey: "ai.defaultAiMode", descriptionKey: "ai.defaultAiModeDescription", targetId: "ai", keywordKeys: ["ai.modes.ask", "ai.modes.agent"] },{ id: "ai-default-auto-routing", category: "ai", titleKey: "ai.defaultAutoRouting", descriptionKey: "ai.defaultAutoRoutingDescription", targetId: "ai" },{ id: "ai-include-query-result", category: "ai", titleKey: "ai.includeQueryResult", descriptionKey: "ai.includeQueryResultDescription", targetId: "ai" },- { id: "ai-sql-apply-target", category: "ai", titleKey: "settings.aiSqlApplyTarget", descriptionKey: "settings.aiSqlApplyTargetCurrentDescription", targetId: "ai" },- { id: "ai-agent-turn-limit", category: "ai", titleKey: "ai.maxAgentTurns", descriptionKey: "ai.maxAgentTurnsDescription", targetId: "ai" },- { id: "ai-global-retries", category: "ai", titleKey: "ai.maxRetriesGlobal", descriptionKey: "ai.maxRetriesGlobalDescription", targetId: "ai" },+ {+ id: "ai-sql-apply-target",+ category: "ai",+ titleKey: "settings.aiSqlApplyTarget",+ descriptionKey: "settings.aiSqlApplyTargetCurrentDescription",+ targetId: "ai",+ keywordKeys: ["settings.aiSqlApplyTargetFirstDescription", "settings.aiSqlApplyTargetNewDescription", "settings.aiSqlApplyTargetCurrent", "settings.aiSqlApplyTargetFirst", "settings.aiSqlApplyTargetNew"],+ },+ { id: "ai-agent-turn-limit", category: "ai", titleKey: "ai.maxAgentTurns", descriptionKey: "ai.maxAgentTurnsDescription", targetId: "ai", keywordKeys: ["ai.maxAgentTurnsRange"] },+ { id: "ai-global-retries", category: "ai", titleKey: "ai.maxRetriesGlobal", descriptionKey: "ai.maxRetriesGlobalDescription", targetId: "ai", keywordKeys: ["ai.maxRetriesRange"] },{ id: "ai-global-instructions", category: "ai", titleKey: "ai.globalInstructions", descriptionKey: "ai.globalInstructionsDescription", targetId: "ai" },{ id: "ai-custom-skill-root", category: "ai", titleKey: "settings.aiSkillRoot", descriptionKey: "settings.aiSkillRootDesc", targetId: "ai", visible: desktopOnly },{ id: "ai-skill-auto-enabled", category: "ai", titleKey: "settings.aiSkillAutoEnabled", descriptionKey: "settings.aiSkillAutoEnabledDesc", targetId: "ai", visible: desktopOnly },{ id: "mcp", category: "mcp", titleKey: "settings.mcpTitle", descriptionKey: "settings.mcpDescription", targetId: "mcp" },- { id: "mcp-bin-path", category: "mcp", titleKey: "settings.mcpBinPath", targetId: "mcp" },- { id: "mcp-permissions", category: "mcp", titleKey: "settings.mcpExecutionMode", descriptionKey: "settings.mcpExecutionModeDescription", targetId: "mcp" },- { id: "mcp-config", category: "mcp", titleKey: "settings.mcpConfig", targetId: "mcp" },+ { id: "mcp-bin-path", category: "mcp", titleKey: "settings.mcpBinPath", targetId: "mcp-stdio", route: { mcpManagementTab: "access", mcpTransportTab: "stdio" } },+ {+ id: "mcp-permissions",+ category: "mcp",+ titleKey: "settings.mcpExecutionMode",+ descriptionKey: "settings.mcpExecutionModeDescription",+ targetId: "mcp-overrides",+ route: { mcpManagementTab: "permissions", mcpAuthorizationTab: "overrides" },+ keywordKeys: MCP_EXECUTION_MODE_COLUMNS.map((mode) => mode.labelKey),+ },+ { id: "mcp-config", category: "mcp", titleKey: "settings.mcpConfig", targetId: "mcp-client-config", route: { mcpManagementTab: "access", mcpTransportTab: "stdio" } },{ id: "security", category: "security", titleKey: "settings.securityTab", targetId: "security", visible: webOnly },- { id: "security-password", category: "security", titleKey: "auth.changePassword", targetId: "security", visible: webOnly },+ { id: "security-password", category: "security", titleKey: "auth.changePassword", targetId: "security", visible: webOnly, keywordKeys: ["auth.changePasswordDescription", "auth.oldPassword", "auth.newPassword", "auth.confirmPassword"] },{ id: "about-support", category: "about", titleKey: "settings.supportInfoTitle", descriptionKey: "settings.supportInfoDescription", targetId: "about" },{ id: "about-transfer", category: "about", titleKey: "settings.settingsTransferTitle", descriptionKey: "settings.settingsTransferDescription", targetId: "about" },- { id: "updates-app", category: "updates", titleKey: "settings.autoUpdateApp", descriptionKey: "settings.autoUpdateAppDescription", targetId: "updates" },+ { id: "updates-app", category: "updates", titleKey: "settings.autoUpdateApp", descriptionKey: "settings.autoUpdateAppDescription", targetId: "updates", keywordKeys: ["settings.autoUpdate"] },{ id: "updates-drivers", category: "updates", titleKey: "settings.autoUpdateDrivers", descriptionKey: "settings.autoUpdateDriversDescription", targetId: "updates" },{ id: "updates-jdbc", category: "updates", titleKey: "settings.autoUpdateJdbc", descriptionKey: "settings.autoUpdateJdbcDescription", targetId: "updates" },{ id: "updates-mcp", category: "updates", titleKey: "settings.autoUpdateMcp", descriptionKey: "settings.autoUpdateMcpDescription", targetId: "updates" },{ id: "updates-plugins", category: "updates", titleKey: "settings.autoUpdatePlugins", descriptionKey: "settings.autoUpdatePluginsDescription", targetId: "updates" },- { id: "updates-source", category: "updates", titleKey: "settings.updateDownloadSource", descriptionKey: "settings.updateDownloadSourceDescription", targetId: "updates" },+ { id: "updates-source", category: "updates", titleKey: "settings.updateDownloadSource", descriptionKey: "settings.updateDownloadSourceDescription", targetId: "updates", keywordKeys: ["settings.updateDownloadSourceOfficial", "settings.updateDownloadSourceCnb"] },+ // Fixed controls added alongside the full template coverage audit.+ { id: "editor-keep-explicit-transaction-in-auto-commit", category: "editor", titleKey: "settings.keepExplicitTransactionInAutoCommit", descriptionKey: "settings.keepExplicitTransactionInAutoCommitDescription", targetId: "editor" },+ { id: "editor-excluded-completion-items", category: "editor", titleKey: "settings.excludedCompletionItems", descriptionKey: "settings.excludedCompletionItemsDescription", targetId: "editor" },+ { id: "editor-select-first-completion-on-open", category: "editor", titleKey: "settings.selectFirstCompletionOnOpen", descriptionKey: "settings.selectFirstCompletionOnOpenDescription", targetId: "editor" },+ { id: "editor-sort-completion-columns-alphabetically", category: "editor", titleKey: "settings.sortCompletionColumnsAlphabetically", descriptionKey: "settings.sortCompletionColumnsAlphabeticallyDescription", targetId: "editor" },+ { id: "editor-ddl-open-mode", category: "editor", titleKey: "settings.ddlOpenMode", descriptionKey: "settings.ddlOpenModeDescription", targetId: "editor", keywordKeys: ["settings.ddlOpenModeDialog", "settings.ddlOpenModeTab"] },+ { id: "editor-regex-max-match-count", category: "editor", titleKey: "settings.regexMaxMatchCount", descriptionKey: "settings.regexMaxMatchCountDescription", targetId: "editor" },+ { id: "editor-sql-variable-substitution-enabled", category: "editor", titleKey: "settings.sqlVariableSubstitutionEnabled", targetId: "editor" },+ {+ id: "editor-custom-theme-configure",+ category: "editor",+ titleKey: "settings.customThemeConfigure",+ targetId: "editor-theme",+ keywordKeys: [+ "settings.customThemeTitle",+ "settings.customThemePreset",+ "settings.customThemeVisualEdit",+ "settings.customThemeJsonConfig",+ "settings.customThemeKeyword",+ "settings.customThemeField",+ "settings.customThemeFunction",+ "settings.customThemeString",+ "settings.customThemeNumber",+ "settings.customThemeComment",+ "settings.customThemeTable",+ "settings.customThemeOperator",+ "settings.customThemeType",+ "settings.customThemeBuiltin",+ "settings.customThemeBackground",+ "settings.customThemeForeground",+ "settings.customThemeActiveLine",+ "settings.customThemeSelection",+ "settings.customThemeCursor",+ "settings.customThemeGutterBackground",+ "settings.customThemeLineNumber",+ "settings.customThemeMatchingBracket",+ ],+ },+ {+ id: "appearance-tab-placement",+ category: "appearance",+ titleKey: "settings.tabPlacement",+ descriptionKey: "settings.tabPlacementDescription",+ targetId: "appearance",+ keywordKeys: ["settings.tabPlacementTop", "settings.tabPlacementBottom", "settings.tabPlacementLeft", "settings.tabPlacementRight"],+ },+ { id: "appearance-tab-group", category: "appearance", titleKey: "settings.tabGroup", targetId: "appearance", keywordKeys: ["settings.tabGroupNone", "settings.tabGroupDatabaseType", "settings.tabGroupDatabase", "settings.tabGroupConnection", "settings.tabGroupSidebar"] },+ { id: "appearance-tab-sort", category: "appearance", titleKey: "settings.tabSort", targetId: "appearance", keywordKeys: ["settings.tabSortManual", "settings.tabSortCreated", "settings.tabSortTitle"] },+ { id: "appearance-background-image", category: "appearance", titleKey: "settings.backgroundImage", descriptionKey: "settings.backgroundImageDescription", targetId: "appearance", visible: desktopOnly },+ {+ id: "appearance-background-image-display-mode",+ category: "appearance",+ titleKey: "settings.backgroundImageDisplayMode",+ targetId: "appearance",+ visible: desktopOnly,+ keywordKeys: ["settings.backgroundImageModeFill", "settings.backgroundImageModeFit", "settings.backgroundImageModeStretch", "settings.backgroundImageModeTile", "settings.backgroundImageModeCenter"],+ },+ { id: "appearance-background-image-transparency", category: "appearance", titleKey: "settings.backgroundImageTransparency", targetId: "appearance", visible: desktopOnly },+ { id: "appearance-background-image-blur", category: "appearance", titleKey: "settings.backgroundImageBlur", targetId: "appearance", visible: desktopOnly },+ { id: "navigation-auto-reload-restored-data-tabs-on-open", category: "navigation", titleKey: "settings.autoReloadRestoredDataTabsOnOpen", descriptionKey: "settings.autoReloadRestoredDataTabsOnOpenDescription", targetId: "navigation" },+ { id: "navigation-sidebar-copy-table-name-separator", category: "navigation", titleKey: "settings.sidebarCopyTableNameSeparator", descriptionKey: "settings.sidebarCopyTableNameSeparatorDescription", targetId: "navigation" },+ { id: "navigation-sidebar-copy-table-name-include-schema", category: "navigation", titleKey: "settings.sidebarCopyTableNameIncludeSchema", descriptionKey: "settings.sidebarCopyTableNameIncludeSchemaDescription", targetId: "navigation" },+ { id: "data-data-grid-keep-filter-editor-expanded", category: "data", titleKey: "settings.dataGridKeepFilterEditorExpanded", descriptionKey: "settings.dataGridKeepFilterEditorExpandedDescription", targetId: "data-grid-filter-view" },+ { id: "data-pin-result-tab-on-click", category: "data", titleKey: "settings.pinResultTabOnClick", descriptionKey: "settings.pinResultTabOnClickDescription", targetId: "pin-result-tab-on-click" },+ { id: "data-query-result-max-rows-enabled", category: "data", titleKey: "settings.queryResultMaxRowsEnabled", targetId: "query-result-max-rows" },+ { id: "data-data-grid-cell-detail-button-visible", category: "data", titleKey: "settings.dataGridCellDetailButtonVisible", descriptionKey: "settings.dataGridCellDetailButtonVisibleDescription", targetId: "data" },+ { id: "data-data-grid-cell-detail-dialog-default", category: "data", titleKey: "settings.dataGridCellDetailDialogDefault", descriptionKey: "settings.dataGridCellDetailDialogDefaultDescription", targetId: "data" },+ { id: "data-data-grid-crosshair-highlight", category: "data", titleKey: "settings.dataGridCrosshairHighlight", descriptionKey: "settings.dataGridCrosshairHighlightDescription", targetId: "data-grid-crosshair" },+ { id: "data-data-grid-crosshair-row-bg", category: "data", titleKey: "settings.dataGridCrosshairRowBg", targetId: "data-grid-crosshair" },+ { id: "data-data-grid-crosshair-col-bg", category: "data", titleKey: "settings.dataGridCrosshairColBg", targetId: "data-grid-crosshair" },+ { id: "data-data-grid-zebra-row-bg", category: "data", titleKey: "settings.dataGridZebraRowBg", targetId: "data-grid-striped-rows" },+ { id: "data-redis-database-display-limit", category: "data", titleKey: "settings.redisDatabaseDisplayLimit", descriptionKey: "settings.redisDatabaseDisplayLimitDescription", targetId: "data" },+ { id: "data-csv-quote-mode", category: "data", titleKey: "settings.csvQuoteMode", descriptionKey: "settings.csvQuoteModeDescription", targetId: "data", keywordKeys: ["settings.csvQuoteModeAll", "settings.csvQuoteModeNecessary"] },+ { id: "data-csv-null-mode", category: "data", titleKey: "settings.csvNullMode", descriptionKey: "settings.csvNullModeDescription", targetId: "data", keywordKeys: ["settings.csvNullModeMarker", "settings.csvNullModeEmpty"] },+ { id: "formatter-sql-formatter-json-mode", category: "formatter", titleKey: "settings.sqlFormatterJsonMode", targetId: "formatter-json", route: { formatterMode: "json" } },+ { id: "formatter-sql-formatter-advanced-options", category: "formatter", titleKey: "settings.sqlFormatterAdvancedOptions", targetId: "formatter", route: { formatterMode: "form" } },+ { id: "ai-restore-last-conversation", category: "ai", titleKey: "ai.restoreLastConversation", descriptionKey: "ai.restoreLastConversationDescription", targetId: "ai" },+ { id: "sync-sync-remember-web-dav-password", category: "sync", titleKey: "settings.syncRememberWebDavPassword", descriptionKey: "settings.syncRememberWebDavPasswordDescription", targetId: "sync-webdav", route: { syncMethodTab: "webdav" } },+ { id: "sync-sync-auto-upload", category: "sync", titleKey: "settings.syncAutoUpload", descriptionKey: "settings.syncAutoUploadDescription", targetId: "sync-webdav", route: { syncMethodTab: "webdav" }, keywordKeys: ["settings.syncAutoUploadMinutes"] },+ { id: "sync-sync-git-lab-instance", category: "sync", titleKey: "settings.syncGitLabInstance", targetId: "sync-snippet", route: { syncMethodTab: "snippet" }, visible: desktopOnly, keywordKeys: ["settings.syncGitLabHttpWarning"] },+ { id: "sync-sync-snippet-remember-token", category: "sync", titleKey: "settings.syncSnippetRememberToken", targetId: "sync-snippet", route: { syncMethodTab: "snippet" }, visible: desktopOnly, keywordKeys: ["settings.syncSnippetTokenDescription"] },+ {+ id: "sync-sync-snippet-passphrase",+ category: "sync",+ titleKey: "settings.syncSnippetPassphrase",+ descriptionKey: "settings.syncSnippetPassphraseDescription",+ targetId: "sync-snippet",+ route: { syncMethodTab: "snippet" },+ visible: desktopOnly,+ keywordKeys: ["settings.syncSnippetRememberPassphraseDescription"],+ },+ { id: "sync-sync-snippet-remember-passphrase", category: "sync", titleKey: "settings.syncSnippetRememberPassphrase", descriptionKey: "settings.syncSnippetRememberPassphraseDescription", targetId: "sync-snippet", route: { syncMethodTab: "snippet" }, visible: desktopOnly },+ { id: "sync-sync-snippet-auto-upload", category: "sync", titleKey: "settings.syncSnippetAutoUpload", descriptionKey: "settings.syncSnippetAutoUploadDescription", targetId: "sync-snippet", route: { syncMethodTab: "snippet" }, visible: desktopOnly, keywordKeys: ["settings.syncAutoUploadMinutes"] },+ { id: "sync-sync-snippet-auto-upload-interval", category: "sync", titleKey: "settings.syncSnippetAutoUploadInterval", targetId: "sync-snippet", route: { syncMethodTab: "snippet" }, visible: desktopOnly, keywordKeys: ["settings.syncAutoUploadMinutes"] },+ { id: "sync-sync-snippet-include-secrets", category: "sync", titleKey: "settings.syncSnippetIncludeSecrets", targetId: "sync-snippet", route: { syncMethodTab: "snippet" }, visible: desktopOnly },+ { id: "sync-sync-snippet-restore-secrets", category: "sync", titleKey: "settings.syncSnippetRestoreSecrets", targetId: "sync-snippet", route: { syncMethodTab: "snippet" }, visible: desktopOnly },+ { id: "sync-sync-snippet-secrets-passphrase", category: "sync", titleKey: "settings.syncSnippetSecretsPassphrase", descriptionKey: "settings.syncSnippetSecretsPassphraseDescription", targetId: "sync-snippet", route: { syncMethodTab: "snippet" }, visible: desktopOnly },+ { id: "mcp-http-service-title", category: "mcp", titleKey: "settings.mcpHttpServiceTitle", targetId: "mcp-http", route: { mcpManagementTab: "access", mcpTransportTab: "http" }, visible: desktopOnly, keywordKeys: ["settings.mcpHttpServiceDescription"], keywordTexts: ["Bearer Token"] },+ {+ id: "mcp-http-remote-title",+ category: "mcp",+ titleKey: "settings.mcpHttpRemoteTitle",+ targetId: "mcp-http",+ route: { mcpManagementTab: "access", mcpTransportTab: "http" },+ visible: desktopOnly,+ keywordKeys: ["settings.mcpHttpRemoteHintPrefix", "settings.mcpHttpRemoteHintMiddle", "settings.mcpHttpRemoteHintSuffix"],+ },+ { id: "mcp-http-host-label", category: "mcp", titleKey: "settings.mcpHttpHostLabel", targetId: "mcp-http", route: { mcpManagementTab: "access", mcpTransportTab: "http" }, visible: desktopOnly },+ { id: "mcp-http-port-label", category: "mcp", titleKey: "settings.mcpHttpPortLabel", targetId: "mcp-http", route: { mcpManagementTab: "access", mcpTransportTab: "http" }, visible: desktopOnly },+ { id: "mcp-http-path-label", category: "mcp", titleKey: "settings.mcpHttpPathLabel", targetId: "mcp-http", route: { mcpManagementTab: "access", mcpTransportTab: "http" }, visible: desktopOnly },+ {+ id: "mcp-http-web-service-title",+ category: "mcp",+ titleKey: "settings.mcpHttpWebServiceTitle",+ targetId: "mcp-http",+ route: { mcpManagementTab: "access", mcpTransportTab: "http" },+ visible: webOnly,+ keywordKeys: ["settings.mcpHttpWebServiceDescription", "settings.mcpHttpEndpointLabel"],+ keywordTexts: ["Bearer Token"],+ },+ { id: "mcp-http-web-enable-label", category: "mcp", titleKey: "settings.mcpHttpWebEnableLabel", targetId: "mcp-http", route: { mcpManagementTab: "access", mcpTransportTab: "http" }, visible: webOnly },+ { id: "mcp-http-allowed-hosts-label", category: "mcp", titleKey: "settings.mcpHttpAllowedHostsLabel", targetId: "mcp-http", route: { mcpManagementTab: "access", mcpTransportTab: "http" }, keywordKeys: ["settings.mcpHttpHostsHint"] },+ {+ id: "mcp-http-allowed-origins-label",+ category: "mcp",+ titleKey: "settings.mcpHttpAllowedOriginsLabel",+ targetId: "mcp-http",+ route: { mcpManagementTab: "access", mcpTransportTab: "http" },+ keywordKeys: ["settings.mcpHttpWebOriginsHint", "settings.mcpHttpOriginsHintPrefix", "settings.mcpHttpOriginsHintSuffix"],+ },+ { id: "mcp-http-endpoint-label", category: "mcp", titleKey: "settings.mcpHttpEndpointLabel", targetId: "mcp-http", route: { mcpManagementTab: "access", mcpTransportTab: "http" }, visible: desktopOnly },+ { id: "mcp-http-client-config-title", category: "mcp", titleKey: "settings.mcpHttpClientConfigTitle", targetId: "mcp-http", route: { mcpManagementTab: "access", mcpTransportTab: "http" }, visible: desktopOnly },+ { id: "mcp-query-timeout", category: "mcp", titleKey: "settings.mcpQueryTimeout", descriptionKey: "settings.mcpQueryTimeoutDescription", targetId: "mcp-query-timeout", route: { mcpManagementTab: "access" } },+ {+ id: "mcp-prompt-high-risk-sql",+ category: "mcp",+ titleKey: "settings.mcpPromptHighRiskSql",+ targetId: "mcp-overrides",+ route: { mcpManagementTab: "permissions", mcpAuthorizationTab: "overrides" },+ keywordKeys: ["settings.mcpExecutionModeDescription", "settings.mcpPermissionGlobalDefaultHint", "settings.mcpCapabilityTitle", "settings.mcpCapabilityDescription", "settings.mcpCapabilityOperation", "settings.mcpCapabilityAlwaysEnforced"],+ },+ {+ id: "mcp-auth-tab-connections-title",+ category: "mcp",+ titleKey: "settings.mcpAuthTabConnectionsTitle",+ targetId: "mcp-connections",+ route: { mcpManagementTab: "permissions", mcpAuthorizationTab: "connections" },+ keywordKeys: [+ "settings.mcpConnectionPolicyAllowSalesforceDml",+ "settings.mcpConnectionPolicyInherit",+ "settings.mcpConnectionPolicyReadOnly",+ "settings.mcpConnectionPolicySafeWrite",+ "settings.mcpConnectionPolicyHighRiskWrite",+ "settings.mcpResourceScopeTitle",+ "settings.mcpScopeModeAll",+ "settings.mcpResourceScopeModeCustom",+ ],+ },+ {+ id: "mcp-auth-tab-databases-title",+ category: "mcp",+ titleKey: "settings.mcpAuthTabDatabasesTitle",+ targetId: "mcp-databases",+ route: { mcpManagementTab: "permissions", mcpAuthorizationTab: "databases" },+ keywordKeys: [+ "settings.mcpConnectionPolicyInherit",+ "settings.mcpConnectionPolicyReadOnly",+ "settings.mcpConnectionPolicySafeWrite",+ "settings.mcpConnectionPolicyHighRiskWrite",+ "settings.mcpDatabaseScopeTitle",+ "settings.mcpDatabaseScopeDescription",+ "settings.mcpDatabaseScopeAriaLabel",+ "settings.mcpDatabaseScopeAllTitle",+ "settings.mcpDatabaseScopeAllDescription",+ "settings.mcpDatabaseScopeSelectedTitle",+ "settings.mcpDatabaseScopeSelectedDescription",+ "settings.mcpDatabaseScopeNoneTitle",+ "settings.mcpDatabaseScopeNoneDescription",+ ],+ },+ {+ id: "mcp-tool-permissions-title",+ category: "mcp",+ titleKey: "settings.mcpToolPermissionsTitle",+ descriptionKey: "settings.mcpToolPermissionsDescription",+ keywordKeys: ["settings.mcpToolCustomPlaceholder", "settings.mcpToolCustomHint"],+ targetId: "mcp-capabilities",+ route: { mcpManagementTab: "permissions", mcpAuthorizationTab: "capabilities" },+ },+ { id: "mcp-permission-preview-title", category: "mcp", titleKey: "settings.mcpPermissionPreviewTitle", targetId: "mcp-capabilities", route: { mcpManagementTab: "permissions", mcpAuthorizationTab: "capabilities" } },+ { id: "backups-background-worker", category: "backups", titleKey: "databaseBackup.backgroundWorker", targetId: "backups", visible: desktopOnly },+ ...MCP_TOOL_OPTIONS.map((tool): SettingsSearchDefinition => ({ id: `mcp-tool-${tool.name}`, category: "mcp", titleKey: tool.labelKey, targetId: "mcp-capabilities", route: { mcpManagementTab: "permissions", mcpAuthorizationTab: "capabilities" } })),];export function resolveSettingsSearchEntries(definitions: readonly SettingsSearchDefinition[], context: SettingsSearchContext, translate: Translate, categoryLabels: Readonly<Record<SettingsCategory, string>>): SettingsSearchEntry[] {@@ -346,6 +877,7 @@ export function resolveSettingsSearchEntries(definitions: readonly SettingsSearccategory: definition.category,title: definition.titleKey ? translate(definition.titleKey) : (definition.title ?? ""),description: definition.descriptionKey ? translate(definition.descriptionKey) : "",+ keywords: [...(definition.keywordKeys?.map(translate) ?? []), ...(definition.keywordTexts ?? [])].join("\n"),categoryLabel: categoryLabels[definition.category],targetId: definition.targetId ?? definition.category,shortcutId: definition.shortcutId,@@ -357,5 +889,5 @@ export function resolveSettingsSearchEntries(definitions: readonly SettingsSearcexport function searchSettings(entries: readonly SettingsSearchEntry[], query: string, locale: string, limit = 8): SettingsSearchEntry[] {const normalizedQuery = query.trim().toLocaleLowerCase(locale);if (!normalizedQuery) return [];- return entries.filter((entry) => `${entry.title}\n${entry.description}\n${entry.categoryLabel}`.toLocaleLowerCase(locale).includes(normalizedQuery)).slice(0, limit);+ return entries.filter((entry) => `${entry.title}\n${entry.description}\n${entry.categoryLabel}\n${entry.keywords ?? ""}`.toLocaleLowerCase(locale).includes(normalizedQuery)).slice(0, limit);}