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
feat(home): add privacy-safe home page mode
二丫讲梵951f0a21a0f6
diff --git a/apps/desktop/src/App.vue b/apps/desktop/src/App.vueindex ca61c398b9..a6c9cd7d0c 100644--- a/apps/desktop/src/App.vue+++ b/apps/desktop/src/App.vue@@ -1450,6 +1450,7 @@ async function updateAllAvailable() {}}const hasSqlFileConnections = computed(() => connectionStore.connections.some((c) => supportsSqlFileExecution(c.db_type)));+const welcomePageMode = computed(() => (settingsStore.isEditorSettingsLoaded ? settingsStore.editorSettings.welcomePageMode : "intro"));const queryEditorDdlDatabaseType = computed(() => {if (!queryEditorDdlTarget.value?.connectionId) return undefined;return effectiveDatabaseTypeForConnection(connectionStore.getConfig(queryEditorDdlTarget.value.connectionId));@@ -1464,11 +1465,11 @@ const queryEditorObjectSourceDatabaseType = computed(() => {const queryEditorObjectSourceDialect = computed(() => codeMirrorSqlDialect(queryEditorObjectSourceDatabaseType.value));const queryEditorObjectSourceFormatDialect = computed(() => sqlFormatDialectForDbType(queryEditorObjectSourceDatabaseType.value));const connectionStats = computed(() => ({- total: connectionStore.connections.length,- connected: connectionStore.connectedIds.size,- types: new Set(connectionStore.connections.map((c) => c.driver_profile || c.db_type)).size,+ total: welcomePageMode.value === "workspace" ? connectionStore.connections.length : 0,+ connected: welcomePageMode.value === "workspace" ? connectionStore.connectedIds.size : 0,+ types: welcomePageMode.value === "workspace" ? new Set(connectionStore.connections.map((c) => c.driver_profile || c.db_type)).size : 0,}));-const recentConnections = computed(() => rankRecentConnections(connectionStore.connections, recentConnectionIds.value));+const recentConnections = computed(() => (welcomePageMode.value === "workspace" ? rankRecentConnections(connectionStore.connections, recentConnectionIds.value) : []));function rememberRecentConnection(connectionId: string | null) {if (!connectionId) return;@@ -1481,6 +1482,7 @@ function rememberRecentConnection(connectionId: string | null) {watch(() => connectionStore.activeConnectionId, rememberRecentConnection);const savedSqlHistoryItems = computed(() => {+ if (welcomePageMode.value !== "workspace") return [];const folderById = new Map(savedSqlStore.allFolders.map((folder) => [folder.id, folder]));const folderPath = (folderId?: string): string | undefined => {if (!folderId) return undefined;@@ -3246,6 +3248,9 @@ function openGitHub() {function openMcpGuide() {openUrl("https://dbxio.com/cn/docs/mcp");}+function openDbxWebsite() {+ openUrl("https://dbxio.com");+}function setSidebarOpen(open: boolean) {sidebarOpen.value = open;@@ -4656,6 +4661,7 @@ onUnmounted(() => {:connection-stats="connectionStats":recent-connections="recentConnections":saved-sql-history-items="savedSqlHistoryItems"+ :welcome-page-mode="welcomePageMode":app-version="appVersion":can-new-query="canCreateNewQuery"@open-connection-query="openConnectionQuery"@@ -4666,6 +4672,8 @@ onUnmounted(() => {@import-config="dialogs.onImportClick"@open-github="openGitHub"@open-mcp-guide="openMcpGuide"+ @open-website="openDbxWebsite"+ @open-settings="openSettings('appearance', 'welcome-page-settings')"/></template></SqlEditorWorkspace>diff --git a/apps/desktop/src/components/editor/EditorSettingsDialog.vue b/apps/desktop/src/components/editor/EditorSettingsDialog.vueindex 2240e99367..3af4abc1b9 100644--- a/apps/desktop/src/components/editor/EditorSettingsDialog.vue+++ b/apps/desktop/src/components/editor/EditorSettingsDialog.vue@@ -102,6 +102,7 @@ import {type TabGroupMode,type TabPlacement,type TabSortMode,+ type WelcomePageMode,type UpdateDownloadSource,type CsvQuoteMode,type CsvNullMode,@@ -711,6 +712,7 @@ const editContinueOnErrorOnBatch = ref(settingsStore.editorSettings.continueOnErconst editConfirmUnsavedSqlClose = ref(settingsStore.editorSettings.confirmUnsavedSqlClose);const editAppCloseUnsavedTabsMode = ref<AppCloseUnsavedTabsMode>(settingsStore.editorSettings.appCloseUnsavedTabsMode);const editSavedSqlOpenTargetMode = ref<SavedSqlOpenTargetMode>(settingsStore.editorSettings.savedSqlOpenTargetMode);+const editWelcomePageMode = ref<WelcomePageMode>(settingsStore.editorSettings.welcomePageMode);const editAppLayout = ref(settingsStore.editorSettings.appLayout);const editTabLayout = ref(settingsStore.editorSettings.tabLayout);const editTabPlacement = ref<TabPlacement>(settingsStore.editorSettings.tabPlacement);@@ -1081,6 +1083,7 @@ function currentEditorSettingsDraft(): EditorSettingsDraft {confirmUnsavedSqlClose: editConfirmUnsavedSqlClose.value,appCloseUnsavedTabsMode: editAppCloseUnsavedTabsMode.value,savedSqlOpenTargetMode: editSavedSqlOpenTargetMode.value,+ welcomePageMode: editWelcomePageMode.value,appLayout: editAppLayout.value,tabLayout: editTabLayout.value,tabPlacement: editTabPlacement.value,@@ -1752,6 +1755,7 @@ function syncEditorSettingsDraftFromStore() {editConfirmUnsavedSqlClose.value = settingsStore.editorSettings.confirmUnsavedSqlClose;editAppCloseUnsavedTabsMode.value = settingsStore.editorSettings.appCloseUnsavedTabsMode;editSavedSqlOpenTargetMode.value = settingsStore.editorSettings.savedSqlOpenTargetMode;+ editWelcomePageMode.value = settingsStore.editorSettings.welcomePageMode;editAppLayout.value = settingsStore.editorSettings.appLayout;editTabLayout.value = settingsStore.editorSettings.tabLayout;editTabPlacement.value = settingsStore.editorSettings.tabPlacement;@@ -1898,6 +1902,7 @@ const editorSettingsDraftRefs: EditorSettingsDraftRefMap = {confirmUnsavedSqlClose: editConfirmUnsavedSqlClose,appCloseUnsavedTabsMode: editAppCloseUnsavedTabsMode,savedSqlOpenTargetMode: editSavedSqlOpenTargetMode,+ welcomePageMode: editWelcomePageMode,appLayout: editAppLayout,tabLayout: editTabLayout,tabPlacement: editTabPlacement,@@ -2439,6 +2444,7 @@ function resetDefaultsForTab(tab: SettingsCategory) {editTheme.value = DEFAULT_EDITOR_SETTINGS.theme;editCustomThemes.value = [...DEFAULT_EDITOR_SETTINGS.customThemes];editActiveCustomThemeId.value = DEFAULT_EDITOR_SETTINGS.activeCustomThemeId;+ editWelcomePageMode.value = DEFAULT_EDITOR_SETTINGS.welcomePageMode;editAppLayout.value = DEFAULT_EDITOR_SETTINGS.appLayout;editTabLayout.value = DEFAULT_EDITOR_SETTINGS.tabLayout;editTabPlacement.value = DEFAULT_EDITOR_SETTINGS.tabPlacement;@@ -2592,6 +2598,7 @@ function resetAllDefaults() {editSavedSqlOpenTargetMode.value = DEFAULT_EDITOR_SETTINGS.savedSqlOpenTargetMode;editSqlVariableSubstitutionEnabled.value = DEFAULT_EDITOR_SETTINGS.sqlVariableSubstitutionEnabled;editSqlVariableSyntaxOverrides.value = normalizeSqlVariableSyntaxOverrides(DEFAULT_EDITOR_SETTINGS.sqlVariableSyntaxOverrides);+ editWelcomePageMode.value = DEFAULT_EDITOR_SETTINGS.welcomePageMode;editAppLayout.value = DEFAULT_EDITOR_SETTINGS.appLayout;editShowTrayIcon.value = DEFAULT_DESKTOP_SETTINGS.show_tray_icon;editQuitOnClose.value = DEFAULT_DESKTOP_SETTINGS.quit_on_close;@@ -4875,7 +4882,9 @@ const changingPassword = ref(false);async function scrollToInitialSettingsSection() {await nextTick();- if (props.initialSection === "tableColumnTemplates") {+ if (props.initialSection === "welcome-page-settings") {+ await revealSettingsSearchTarget({ id: "appearance-welcome-page", category: "appearance", title: t("settings.welcomePage"), description: t("settings.welcomePageDescription"), categoryLabel: t("settings.appearanceTab"), targetId: "welcome-page-settings" });+ } else if (props.initialSection === "tableColumnTemplates") {tableColumnTemplateSectionRef.value?.scrollIntoView({block: "center",behavior: "smooth",@@ -7424,6 +7433,45 @@ onUnmounted(() => {<Separator />+ <div data-settings-search-id="welcome-page-settings" :class="['settings-appearance-group', settingsSearchTargetClass('welcome-page-settings')]">+ <div class="flex items-center gap-1">+ <Label>{{ t("settings.welcomePage") }}</Label>+ <HelpTooltip :label="t('settings.welcomePage')" trigger-class="[&_svg]:h-3 [&_svg]:w-3" content-class="max-w-72">+ <p>{{ t("settings.welcomePageDescription") }}</p>+ </HelpTooltip>+ </div>+ <div class="settings-appearance-choice-grid">+ <Button+ type="button"+ variant="outline"+ class="settings-choice-card h-auto min-w-0 justify-start overflow-hidden whitespace-normal border p-3"+ :class="editWelcomePageMode === 'intro' ? 'dbx-choice-selected' : ''"+ :aria-pressed="editWelcomePageMode === 'intro'"+ @click="editWelcomePageMode = 'intro'"+ >+ <div class="w-full min-w-0 text-left">+ <div class="text-sm font-medium">{{ t("settings.welcomePageIntro") }}</div>+ <div class="break-words whitespace-normal text-xs text-muted-foreground">{{ t("settings.welcomePageIntroDescription") }}</div>+ </div>+ </Button>+ <Button+ type="button"+ variant="outline"+ class="settings-choice-card h-auto min-w-0 justify-start overflow-hidden whitespace-normal border p-3"+ :class="editWelcomePageMode === 'workspace' ? 'dbx-choice-selected' : ''"+ :aria-pressed="editWelcomePageMode === 'workspace'"+ @click="editWelcomePageMode = 'workspace'"+ >+ <div class="w-full min-w-0 text-left">+ <div class="text-sm font-medium">{{ t("settings.welcomePageWorkspace") }}</div>+ <div class="break-words whitespace-normal text-xs text-muted-foreground">{{ t("settings.welcomePageWorkspaceDescription") }}</div>+ </div>+ </Button>+ </div>+ </div>++ <Separator />+<div class="settings-appearance-group"><Label>{{ t("settings.appLayout") }}</Label><div class="settings-appearance-choice-grid">diff --git a/apps/desktop/src/components/layout/WelcomeScreen.vue b/apps/desktop/src/components/layout/WelcomeScreen.vueindex 368d479727..f170810a63 100644--- a/apps/desktop/src/components/layout/WelcomeScreen.vue+++ b/apps/desktop/src/components/layout/WelcomeScreen.vue@@ -1,9 +1,11 @@<script setup lang="ts">import { useI18n } from "vue-i18n";-import { FilePlus2, Plus, History, Download, Database, Search, ShieldCheck, Sparkles } from "@lucide/vue";+import { ArrowRight, Code2, Database, DatabaseZap, Download, FilePlus2, History, Plus, Search, Settings2, ShieldCheck, Sparkles, Table2 } from "@lucide/vue";import DatabaseIcon from "@/components/icons/DatabaseIcon.vue";+import AppLogo from "@/components/icons/AppLogo.vue";import TruncatedTextTooltip from "@/components/ui/TruncatedTextTooltip.vue";import { connectionDriverLabel, connectionIconType, connectionRedactedNameLabel, connectionRedactedOptionSubtitle } from "@/lib/connection/connectionPresentation";+import type { WelcomePageMode } from "@/stores/settingsStore";import type { ConnectionConfig } from "@/types/database";export interface WelcomeSavedSqlHistoryItem {@@ -19,6 +21,7 @@ defineProps<{connectionStats: { total: number; connected: number; types: number };recentConnections: ConnectionConfig[];savedSqlHistoryItems: WelcomeSavedSqlHistoryItem[];+ welcomePageMode: WelcomePageMode;appVersion: string;canNewQuery: boolean;}>();@@ -32,6 +35,8 @@ const emit = defineEmits<{"import-config": [];"open-github": [];"open-mcp-guide": [];+ "open-website": [];+ "open-settings": [];}>();const { t } = useI18n();@@ -43,7 +48,65 @@ function welcomeConnectionSubtitle(connection: ConnectionConfig): string {<template><div class="min-w-0 flex-1 overflow-x-hidden overflow-y-auto bg-background">- <div class="welcome-content mx-auto flex min-h-full w-full min-w-0 max-w-5xl flex-col justify-center gap-6 px-8 py-10">+ <div v-if="welcomePageMode !== 'workspace'" class="welcome-intro mx-auto flex min-h-full w-full min-w-0 max-w-5xl flex-col justify-center px-6 py-10 sm:px-8">+ <div class="welcome-intro-hero relative overflow-hidden rounded-2xl border px-6 py-10 sm:px-10 sm:py-14">+ <div class="welcome-intro-glow pointer-events-none absolute -right-24 -top-24 h-64 w-64 rounded-full bg-primary/15 blur-3xl" />+ <div class="relative max-w-2xl">+ <div class="flex items-center gap-3">+ <div class="flex h-11 w-11 items-center justify-center rounded-xl border bg-background/80 p-2 shadow-sm"><AppLogo class="h-full w-full object-contain" /></div>+ <div class="text-xs font-medium uppercase tracking-[0.24em] text-muted-foreground">{{ t("welcome.introEyebrow") }}</div>+ </div>+ <h1 class="mt-7 text-3xl font-semibold tracking-tight sm:text-4xl">{{ t("welcome.introTitle") }}</h1>+ <p class="mt-3 max-w-xl text-sm leading-6 text-muted-foreground sm:text-base">{{ t("welcome.introDescription") }}</p>+ <div class="mt-7 flex flex-wrap items-center gap-2">+ <button type="button" class="inline-flex h-9 items-center gap-2 rounded-md bg-primary px-4 text-sm font-medium text-primary-foreground shadow-sm transition-colors hover:bg-primary/90" @click="emit('new-connection')">+ <Plus class="h-4 w-4" /> {{ t("welcome.introNewConnection") }} <ArrowRight class="h-3.5 w-3.5" />+ </button>+ <button type="button" class="inline-flex h-9 items-center gap-2 rounded-md border bg-background/70 px-4 text-sm font-medium transition-colors hover:bg-muted" @click="emit('import-config')"><Download class="h-4 w-4" /> {{ t("welcome.introImport") }}</button>+ </div>+ </div>+ </div>++ <div class="mt-5 grid gap-3 sm:grid-cols-2 lg:grid-cols-4">+ <div class="rounded-xl border bg-muted/20 p-4">+ <DatabaseZap class="h-5 w-5 text-primary" />+ <div class="mt-3 text-sm font-medium">{{ t("welcome.introFeatureConnections") }}</div>+ <p class="mt-1 text-xs leading-5 text-muted-foreground">{{ t("welcome.introFeatureConnectionsDescription") }}</p>+ </div>+ <div class="rounded-xl border bg-muted/20 p-4">+ <Code2 class="h-5 w-5 text-primary" />+ <div class="mt-3 text-sm font-medium">{{ t("welcome.introFeatureSql") }}</div>+ <p class="mt-1 text-xs leading-5 text-muted-foreground">{{ t("welcome.introFeatureSqlDescription") }}</p>+ </div>+ <div class="rounded-xl border bg-muted/20 p-4">+ <Table2 class="h-5 w-5 text-primary" />+ <div class="mt-3 text-sm font-medium">{{ t("welcome.introFeatureData") }}</div>+ <p class="mt-1 text-xs leading-5 text-muted-foreground">{{ t("welcome.introFeatureDataDescription") }}</p>+ </div>+ <div class="rounded-xl border bg-muted/20 p-4">+ <Sparkles class="h-5 w-5 text-primary" />+ <div class="mt-3 text-sm font-medium">{{ t("welcome.introFeatureAi") }}</div>+ <p class="mt-1 text-xs leading-5 text-muted-foreground">{{ t("welcome.introFeatureAiDescription") }}</p>+ </div>+ </div>++ <div class="mt-5 flex flex-wrap items-center justify-between gap-3 rounded-xl border bg-muted/10 px-4 py-3 text-xs text-muted-foreground">+ <div class="flex items-center gap-2"><ShieldCheck class="h-4 w-4 text-primary" /> {{ t("welcome.introPrivacyHint") }}</div>+ <div class="flex flex-wrap items-center gap-3">+ <button type="button" class="inline-flex items-center gap-1.5 hover:text-foreground" @click="emit('show-history')"><History class="h-3.5 w-3.5" /> {{ t("history.title") }}</button>+ <button type="button" class="inline-flex items-center gap-1.5 hover:text-foreground" @click="emit('open-settings')"><Settings2 class="h-3.5 w-3.5" /> {{ t("welcome.introSettings") }}</button>+ </div>+ </div>++ <div class="mt-6 flex items-center justify-center gap-3 text-[11px] text-muted-foreground/60">+ <span>DBX {{ appVersion ? "v" + appVersion : "" }}</span+ ><span>·</span>+ <a href="#" class="hover:text-foreground" @click.prevent="emit('open-github')">GitHub</a>+ <span>·</span><button type="button" class="hover:text-foreground" @click="emit('open-website')">{{ t("welcome.mcpLearnMore") }}</button>+ </div>+ </div>++ <div v-else class="welcome-content mx-auto flex min-h-full w-full min-w-0 max-w-5xl flex-col justify-center gap-6 px-8 py-10"><div class="welcome-stats-grid grid min-w-0 grid-cols-1 gap-3 sm:grid-cols-3"><div class="min-w-0 overflow-hidden rounded-lg border bg-muted/20 px-4 py-3"><div class="flex min-w-0 items-center gap-2 text-xs text-muted-foreground">@@ -169,6 +232,14 @@ function welcomeConnectionSubtitle(connection: ConnectionConfig): string {max-width: 64rem;}+.welcome-intro {+ max-width: 64rem;+}++.welcome-intro-hero {+ background: linear-gradient(135deg, color-mix(in srgb, var(--muted) 32%, var(--background)), var(--background) 58%, color-mix(in srgb, var(--primary) 8%, var(--background)));+}+@media (min-width: 640px) {.welcome-stats-grid {grid-template-columns: repeat(3, minmax(0, 1fr)) !important;diff --git a/apps/desktop/src/i18n/locales/az.ts b/apps/desktop/src/i18n/locales/az.tsindex ef668f37b2..e4b6e9227a 100644--- a/apps/desktop/src/i18n/locales/az.ts+++ b/apps/desktop/src/i18n/locales/az.ts@@ -2502,6 +2502,21 @@ export default withEnglishFallback({failureDetailCopyFailed: "Uğursuzluq təfərrüatlarını kopyalamaq alınmadı: {message}",},welcome: {+ introEyebrow: "Verilənlər bazası iş sahəsi",+ introTitle: "Məlumatlarla işləməyin daha aydın yolu",+ introDescription: "DBX bağlantı idarəetməsini, SQL redaktəsini, məlumatlara baxışı, köçürmələri və AI köməkçisini vahid iş sahəsində birləşdirir.",+ introNewConnection: "Yeni bağlantı",+ introFeatureConnections: "Çoxsaylı verilənlər bazası",+ introFeatureConnectionsDescription: "Komandanızın hər gün istifadə etdiyi verilənlər bazaları və xidmətlərə qoşulun.",+ introFeatureSql: "SQL iş sahəsi",+ introFeatureSqlDescription: "Fokuslanmış redaktorla SQL yazın, formatlayın və icra edin.",+ introFeatureData: "Məlumatlara baxın və köçürün",+ introFeatureDataDescription: "Cədvəlləri yoxlayın, sətirləri redaktə edin və məlumatları inamla köçürün.",+ introFeatureAi: "AI və MCP hazırdır",+ introFeatureAiDescription: "Ehtiyac olduqda AI köməkçilərini iş axınınıza qoşun.",+ introPrivacyHint: "Bağlantılarınız və sorğu tarixçəniz bu səhifədə göstərilmir.",+ introImport: "Bağlantıları idxal et",+ introSettings: "Ana səhifə ayarları",connections: "Əlaqələr",connected: "Əlaqə qurulub",databaseTypes: "Verilənlər bazası növləri",@@ -7069,6 +7084,12 @@ export default withEnglishFallback({customUiSidebar: "Yan panel",followAppTheme: "Tətbiq temasını izlə",appLayout: "İnterfeys düzülüşü",+ welcomePage: "Ana səhifə",+ welcomePageDescription: "Boş iş sahəsində məxfi DBX təqdimatının, yoxsa saxlanmış iş sahəsi məlumatlarının göstəriləcəyini seçin.",+ welcomePageIntro: "DBX təqdimatı",+ welcomePageIntroDescription: "Bağlantı adlarını, saylarını və sorğu tarixçəsini göstərməyən sadə icmal.",+ welcomePageWorkspace: "İş sahəsinə ümumi baxış",+ welcomePageWorkspaceDescription: "Bağlantı statistikalarını, sürətli bağlantıları və saxlanmış SQL tarixçəsini göstər.",appLayoutSeparated: "Müasir ayrılmış",appLayoutSeparatedDescription: "Blok üslublu vərəqlərlə panellərin aydın ayrılması.",appLayoutClassic: "Klassik yığcam",diff --git a/apps/desktop/src/i18n/locales/en.ts b/apps/desktop/src/i18n/locales/en.tsindex fdaf5f0a00..81c31b903e 100644--- a/apps/desktop/src/i18n/locales/en.ts+++ b/apps/desktop/src/i18n/locales/en.ts@@ -2875,6 +2875,21 @@ export default {failureDetailCopyFailed: "Failed to copy failure details: {message}",},welcome: {+ introEyebrow: "Database workspace",+ introTitle: "A clearer way to work with data",+ introDescription: "DBX brings connections, SQL editing, data browsing, transfers, and AI assistance into one focused workspace.",+ introNewConnection: "New connection",+ introFeatureConnections: "Many databases",+ introFeatureConnectionsDescription: "Connect to the databases and services your team uses every day.",+ introFeatureSql: "SQL workspace",+ introFeatureSqlDescription: "Write, format, and run SQL with a focused editor experience.",+ introFeatureData: "Browse and move data",+ introFeatureDataDescription: "Inspect tables, edit rows, and transfer data with confidence.",+ introFeatureAi: "AI and MCP ready",+ introFeatureAiDescription: "Bring AI assistants into your workflow when you need them.",+ introPrivacyHint: "Your connections and query history stay out of this page.",+ introImport: "Import connections",+ introSettings: "Home page settings",connections: "Connections",connected: "Connected",databaseTypes: "Database Types",@@ -7937,6 +7952,12 @@ export default {customUiSidebar: "Sidebar",followAppTheme: "Follow app theme",appLayout: "Interface Layout",+ welcomePage: "Home page",+ welcomePageDescription: "Choose whether the empty workspace shows a private DBX introduction or your saved workspace data.",+ welcomePageIntro: "DBX introduction",+ welcomePageIntroDescription: "Show a clean overview without connection names, counts, or query history.",+ welcomePageWorkspace: "Workspace overview",+ welcomePageWorkspaceDescription: "Show connection statistics, quick connections, and saved SQL history.",appLayoutSeparated: "Modern separated",appLayoutSeparatedDescription: "Clear panel separation with block-style tabs.",appLayoutClassic: "Classic compact",diff --git a/apps/desktop/src/i18n/locales/es.ts b/apps/desktop/src/i18n/locales/es.tsindex 1a6b807df4..3206da91eb 100644--- a/apps/desktop/src/i18n/locales/es.ts+++ b/apps/desktop/src/i18n/locales/es.ts@@ -2831,6 +2831,21 @@ export default withEnglishFallback({failureDetailCopyFailed: "No se pudieron copiar los detalles del fallo: {message}",},welcome: {+ introEyebrow: "Espacio de trabajo de bases de datos",+ introTitle: "Una forma más clara de trabajar con datos",+ introDescription: "DBX reúne la gestión de conexiones, la edición SQL, la exploración de datos, las transferencias y la asistencia de IA en un único espacio de trabajo.",+ introNewConnection: "Nueva conexión",+ introFeatureConnections: "Muchas bases de datos",+ introFeatureConnectionsDescription: "Conecta con las bases de datos y servicios que tu equipo usa a diario.",+ introFeatureSql: "Espacio de trabajo SQL",+ introFeatureSqlDescription: "Escribe, formatea y ejecuta SQL con una experiencia de edición enfocada.",+ introFeatureData: "Explorar y mover datos",+ introFeatureDataDescription: "Inspecciona tablas, edita filas y transfiere datos con confianza.",+ introFeatureAi: "IA y MCP listos",+ introFeatureAiDescription: "Integra asistentes de IA en tu flujo de trabajo cuando los necesites.",+ introPrivacyHint: "Tus conexiones y el historial de consultas no aparecen en esta página.",+ introImport: "Importar conexiones",+ introSettings: "Ajustes de la página de inicio",connections: "Conexiones",connected: "Conectado",databaseTypes: "Tipos de bases de datos",@@ -7274,6 +7289,12 @@ export default withEnglishFallback({themePaletteClaude: "Claude Code",followAppTheme: "Seguir el tema de la aplicación",appLayout: "Diseño de la interfaz",+ welcomePage: "Página de inicio",+ welcomePageDescription: "Elige si el espacio vacío muestra una introducción privada de DBX o los datos guardados de tu espacio de trabajo.",+ welcomePageIntro: "Introducción de DBX",+ welcomePageIntroDescription: "Muestra un resumen limpio sin nombres, cantidades de conexiones ni historial de consultas.",+ welcomePageWorkspace: "Resumen del espacio de trabajo",+ welcomePageWorkspaceDescription: "Muestra estadísticas de conexiones, conexiones rápidas e historial SQL guardado.",appLayoutSeparated: "Moderno separado",appLayoutSeparatedDescription: "Separación clara de paneles con pestañas en bloque.",appLayoutClassic: "Clásico compacto",diff --git a/apps/desktop/src/i18n/locales/id.ts b/apps/desktop/src/i18n/locales/id.tsindex 939ea8b973..754772e789 100644--- a/apps/desktop/src/i18n/locales/id.ts+++ b/apps/desktop/src/i18n/locales/id.ts@@ -2794,6 +2794,21 @@ export default withEnglishFallback({failureDetailCopyFailed: "Gagal menyalin detail kegagalan: {message}",},welcome: {+ introEyebrow: "Ruang kerja basis data",+ introTitle: "Cara yang lebih jelas untuk bekerja dengan data",+ introDescription: "DBX menggabungkan pengelolaan koneksi, pengeditan SQL, penelusuran data, transfer, dan bantuan AI dalam satu ruang kerja.",+ introNewConnection: "Koneksi baru",+ introFeatureConnections: "Banyak database",+ introFeatureConnectionsDescription: "Hubungkan database dan layanan yang digunakan tim Anda setiap hari.",+ introFeatureSql: "Ruang kerja SQL",+ introFeatureSqlDescription: "Tulis, format, dan jalankan SQL dengan pengalaman editor yang fokus.",+ introFeatureData: "Telusuri dan pindahkan data",+ introFeatureDataDescription: "Periksa tabel, edit baris, dan transfer data dengan percaya diri.",+ introFeatureAi: "Siap untuk AI dan MCP",+ introFeatureAiDescription: "Gunakan asisten AI dalam alur kerja Anda saat diperlukan.",+ introPrivacyHint: "Koneksi dan riwayat kueri Anda tidak ditampilkan di halaman ini.",+ introImport: "Impor koneksi",+ introSettings: "Pengaturan halaman beranda",connections: "Koneksi",connected: "Terhubung",databaseTypes: "Jenis Database",@@ -7731,6 +7746,12 @@ export default withEnglishFallback({customUiSidebar: "Bilah Sisi",followAppTheme: "Ikuti tema aplikasi",appLayout: "Tata Letak Antarmuka",+ welcomePage: "Halaman beranda",+ welcomePageDescription: "Pilih apakah ruang kerja kosong menampilkan pengantar DBX pribadi atau data ruang kerja yang tersimpan.",+ welcomePageIntro: "Pengantar DBX",+ welcomePageIntroDescription: "Tampilkan ringkasan bersih tanpa nama, jumlah koneksi, atau riwayat kueri.",+ welcomePageWorkspace: "Ringkasan ruang kerja",+ welcomePageWorkspaceDescription: "Tampilkan statistik koneksi, koneksi cepat, dan riwayat SQL yang tersimpan.",appLayoutSeparated: "Terpisah modern",appLayoutSeparatedDescription: "Pemisahan panel yang jelas dengan tab bergaya blok.",appLayoutClassic: "Klasik ringkas",diff --git a/apps/desktop/src/i18n/locales/it.ts b/apps/desktop/src/i18n/locales/it.tsindex 906580c78d..f58672a1f1 100644--- a/apps/desktop/src/i18n/locales/it.ts+++ b/apps/desktop/src/i18n/locales/it.ts@@ -2686,6 +2686,21 @@ export default withEnglishFallback({failureDetailCopyFailed: "Impossibile copiare i dettagli dell'errore: {message}",},welcome: {+ introEyebrow: "Spazio di lavoro del database",+ introTitle: "Un modo più chiaro di lavorare con i dati",+ introDescription: "DBX riunisce gestione delle connessioni, modifica SQL, esplorazione dei dati, trasferimenti e assistenza AI in un unico spazio di lavoro.",+ introNewConnection: "Nuova connessione",+ introFeatureConnections: "Molti database",+ introFeatureConnectionsDescription: "Connettiti ai database e ai servizi che il tuo team usa ogni giorno.",+ introFeatureSql: "Spazio di lavoro SQL",+ introFeatureSqlDescription: "Scrivi, formatta ed esegui SQL con un'esperienza di editing mirata.",+ introFeatureData: "Esplora e sposta i dati",+ introFeatureDataDescription: "Esamina le tabelle, modifica le righe e trasferisci i dati con sicurezza.",+ introFeatureAi: "AI e MCP pronti",+ introFeatureAiDescription: "Integra gli assistenti AI nel tuo flusso di lavoro quando ne hai bisogno.",+ introPrivacyHint: "Le tue connessioni e la cronologia delle query non vengono mostrate in questa pagina.",+ introImport: "Importa connessioni",+ introSettings: "Impostazioni della pagina iniziale",connections: "Connessioni",connected: "Connesso",databaseTypes: "Tipi Database",@@ -7052,6 +7067,12 @@ export default withEnglishFallback({themePaletteClaude: "Claude Code",followAppTheme: "Segui il tema dell'applicazione",appLayout: "Layout dell'Interfaccia",+ welcomePage: "Pagina iniziale",+ welcomePageDescription: "Scegli se lo spazio vuoto mostra una presentazione privata di DBX o i dati salvati del tuo spazio di lavoro.",+ welcomePageIntro: "Presentazione di DBX",+ welcomePageIntroDescription: "Mostra una panoramica pulita senza nomi, quantità di connessioni o cronologia delle query.",+ welcomePageWorkspace: "Panoramica dello spazio di lavoro",+ welcomePageWorkspaceDescription: "Mostra statistiche delle connessioni, connessioni rapide e cronologia SQL salvata.",appLayoutSeparated: "Separato moderno",appLayoutSeparatedDescription: "Separazione chiara dei pannelli con schede stile blocco.",appLayoutClassic: "Classico compatto",diff --git a/apps/desktop/src/i18n/locales/ja.ts b/apps/desktop/src/i18n/locales/ja.tsindex d2383ce320..a833a7003c 100644--- a/apps/desktop/src/i18n/locales/ja.ts+++ b/apps/desktop/src/i18n/locales/ja.ts@@ -2712,6 +2712,21 @@ export default withEnglishFallback({openTask: "タスクを開く",},welcome: {+ introEyebrow: "データベースワークスペース",+ introTitle: "データを扱う、より明快な方法",+ introDescription: "DBX は接続管理、SQL 編集、データ参照、転送、AI アシスタントをひとつのワークスペースにまとめます。",+ introNewConnection: "新しい接続",+ introFeatureConnections: "多様なデータベース",+ introFeatureConnectionsDescription: "チームが日々使うデータベースやサービスに接続できます。",+ introFeatureSql: "SQL ワークスペース",+ introFeatureSqlDescription: "集中できるエディターで SQL を作成、整形、実行できます。",+ introFeatureData: "データの参照と移動",+ introFeatureDataDescription: "テーブルを確認し、行を編集し、安心してデータを転送できます。",+ introFeatureAi: "AI と MCP に対応",+ introFeatureAiDescription: "必要なときに AI アシスタントをワークフローへ組み込めます。",+ introPrivacyHint: "接続情報とクエリ履歴はこのページに表示されません。",+ introImport: "接続をインポート",+ introSettings: "ホームページの設定",connections: "接続",connected: "接続済み",databaseTypes: "データベースタイプ",@@ -7083,6 +7098,12 @@ export default withEnglishFallback({themePaletteClaude: "Claude Code",followAppTheme: "アプリテーマに従う",appLayout: "インターフェースレイアウト",+ welcomePage: "ホームページ",+ welcomePageDescription: "空のワークスペースに DBX のプライベートな紹介を表示するか、保存したワークスペース情報を表示するか選択します。",+ welcomePageIntro: "DBX の紹介",+ welcomePageIntroDescription: "接続名、接続数、クエリ履歴を表示しないシンプルな概要を表示します。",+ welcomePageWorkspace: "ワークスペースの概要",+ welcomePageWorkspaceDescription: "接続統計、クイック接続、保存した SQL 履歴を表示します。",appLayoutSeparated: "モダン分離型",appLayoutSeparatedDescription: "ブロックスタイルのタブで明確なパネル分離。",appLayoutClassic: "クラシックコンパクト",diff --git a/apps/desktop/src/i18n/locales/ko.ts b/apps/desktop/src/i18n/locales/ko.tsindex f9fec8b9be..94c55fe763 100644--- a/apps/desktop/src/i18n/locales/ko.ts+++ b/apps/desktop/src/i18n/locales/ko.ts@@ -2602,6 +2602,21 @@ export default withEnglishFallback({openTask: "작업 열기",},welcome: {+ introEyebrow: "데이터베이스 작업 공간",+ introTitle: "데이터를 다루는 더 명확한 방법",+ introDescription: "DBX는 연결 관리, SQL 편집, 데이터 탐색, 전송, AI 지원을 하나의 작업 공간에 담았습니다.",+ introNewConnection: "새 연결",+ introFeatureConnections: "다양한 데이터베이스",+ introFeatureConnectionsDescription: "팀에서 매일 사용하는 데이터베이스와 서비스에 연결하세요.",+ introFeatureSql: "SQL 작업 공간",+ introFeatureSqlDescription: "집중된 편집기에서 SQL을 작성하고, 서식을 지정하고, 실행하세요.",+ introFeatureData: "데이터 탐색 및 이동",+ introFeatureDataDescription: "테이블을 확인하고 행을 편집하며 안심하고 데이터를 전송하세요.",+ introFeatureAi: "AI 및 MCP 지원",+ introFeatureAiDescription: "필요할 때 AI 어시스턴트를 작업 흐름에 연결하세요.",+ introPrivacyHint: "연결 정보와 쿼리 기록은 이 페이지에 표시되지 않습니다.",+ introImport: "연결 가져오기",+ introSettings: "홈 페이지 설정",connections: "연결",connected: "연결됨",databaseTypes: "데이터베이스 유형",@@ -6858,6 +6873,12 @@ export default withEnglishFallback({themePaletteClaude: "Claude Code",followAppTheme: "앱 테마 따르기",appLayout: "인터페이스 레이아웃",+ welcomePage: "홈 페이지",+ welcomePageDescription: "빈 작업 공간에 비공개 DBX 소개를 표시할지 저장된 작업 공간 정보를 표시할지 선택합니다.",+ welcomePageIntro: "DBX 소개",+ welcomePageIntroDescription: "연결 이름, 수량, 쿼리 기록 없이 깔끔한 개요를 표시합니다.",+ welcomePageWorkspace: "작업 공간 개요",+ welcomePageWorkspaceDescription: "연결 통계, 빠른 연결, 저장된 SQL 기록을 표시합니다.",appLayoutSeparated: "모던 분리형",appLayoutSeparatedDescription: "블록 스타일 탭으로 패널을 명확하게 분리합니다.",appLayoutClassic: "클래식 컴팩트",diff --git a/apps/desktop/src/i18n/locales/pt-BR.ts b/apps/desktop/src/i18n/locales/pt-BR.tsindex 5c58fa5d8f..6498877bd2 100644--- a/apps/desktop/src/i18n/locales/pt-BR.ts+++ b/apps/desktop/src/i18n/locales/pt-BR.ts@@ -2688,6 +2688,21 @@ export default withEnglishFallback({openTask: "Abrir tarefa",},welcome: {+ introEyebrow: "Espaço de trabalho de banco de dados",+ introTitle: "Uma forma mais clara de trabalhar com dados",+ introDescription: "O DBX reúne gerenciamento de conexões, edição SQL, navegação de dados, transferências e assistência de IA em um único espaço de trabalho.",+ introNewConnection: "Nova conexão",+ introFeatureConnections: "Muitos bancos de dados",+ introFeatureConnectionsDescription: "Conecte-se aos bancos de dados e serviços usados pela sua equipe todos os dias.",+ introFeatureSql: "Espaço de trabalho SQL",+ introFeatureSqlDescription: "Escreva, formate e execute SQL com uma experiência de edição focada.",+ introFeatureData: "Navegue e mova dados",+ introFeatureDataDescription: "Inspecione tabelas, edite linhas e transfira dados com segurança.",+ introFeatureAi: "IA e MCP prontos",+ introFeatureAiDescription: "Adicione assistentes de IA ao seu fluxo de trabalho quando precisar.",+ introPrivacyHint: "Suas conexões e o histórico de consultas não aparecem nesta página.",+ introImport: "Importar conexões",+ introSettings: "Configurações da página inicial",connections: "Conexões",connected: "Conectado",databaseTypes: "Tipos de Banco de Dados",@@ -7054,6 +7069,12 @@ export default withEnglishFallback({themePaletteClaude: "Claude Code",followAppTheme: "Seguir o tema do app",appLayout: "Layout da interface",+ welcomePage: "Página inicial",+ welcomePageDescription: "Escolha se o espaço vazio mostra uma introdução privada do DBX ou os dados salvos do seu espaço de trabalho.",+ welcomePageIntro: "Introdução do DBX",+ welcomePageIntroDescription: "Mostra uma visão geral limpa, sem nomes, quantidades de conexões ou histórico de consultas.",+ welcomePageWorkspace: "Visão geral do espaço de trabalho",+ welcomePageWorkspaceDescription: "Mostra estatísticas de conexões, conexões rápidas e histórico SQL salvo.",appLayoutSeparated: "Separado moderno",appLayoutSeparatedDescription: "Separação clara de painéis com abas em estilo de bloco.",appLayoutClassic: "Clássico compacto",diff --git a/apps/desktop/src/i18n/locales/ru.ts b/apps/desktop/src/i18n/locales/ru.tsindex 21fb91b2fa..cca76f10fd 100644--- a/apps/desktop/src/i18n/locales/ru.ts+++ b/apps/desktop/src/i18n/locales/ru.ts@@ -2753,6 +2753,21 @@ export default withEnglishFallback({failureDetailCopyFailed: "Не удалось скопировать детали ошибок: {message}",},welcome: {+ introEyebrow: "Рабочее пространство базы данных",+ introTitle: "Более понятный способ работать с данными",+ introDescription: "DBX объединяет управление подключениями, редактирование SQL, просмотр и перенос данных, а также помощь ИИ в одном рабочем пространстве.",+ introNewConnection: "Новое подключение",+ introFeatureConnections: "Много баз данных",+ introFeatureConnectionsDescription: "Подключайтесь к базам данных и сервисам, которые ваша команда использует каждый день.",+ introFeatureSql: "Рабочее пространство SQL",+ introFeatureSqlDescription: "Пишите, форматируйте и запускайте SQL в удобном редакторе.",+ introFeatureData: "Просмотр и перенос данных",+ introFeatureDataDescription: "Проверяйте таблицы, редактируйте строки и уверенно переносите данные.",+ introFeatureAi: "Готово для ИИ и MCP",+ introFeatureAiDescription: "Подключайте ИИ-помощников к рабочему процессу, когда это нужно.",+ introPrivacyHint: "Ваши подключения и история запросов не отображаются на этой странице.",+ introImport: "Импортировать подключения",+ introSettings: "Настройки главной страницы",connections: "Подключения",connected: "Подключено",databaseTypes: "Типы баз данных",@@ -8267,6 +8282,12 @@ export default withEnglishFallback({customUiSidebar: "Боковая панель",followAppTheme: "Следовать теме приложения",appLayout: "Макет интерфейса",+ welcomePage: "Главная страница",+ welcomePageDescription: "Выберите, что показывать в пустом рабочем пространстве: приватную презентацию DBX или сохранённые данные рабочего пространства.",+ welcomePageIntro: "Презентация DBX",+ welcomePageIntroDescription: "Показывать краткий обзор без имён и количества подключений и истории запросов.",+ welcomePageWorkspace: "Обзор рабочего пространства",+ welcomePageWorkspaceDescription: "Показывать статистику подключений, быстрые подключения и сохранённую историю SQL.",appLayoutSeparated: "Современный разделённый",appLayoutSeparatedDescription: "Чёткое разделение панелей с блочными вкладками.",appLayoutClassic: "Классический компактный",diff --git a/apps/desktop/src/i18n/locales/tr.ts b/apps/desktop/src/i18n/locales/tr.tsindex ff8035bd1c..b6bb91ef2d 100644--- a/apps/desktop/src/i18n/locales/tr.ts+++ b/apps/desktop/src/i18n/locales/tr.ts@@ -2478,6 +2478,21 @@ export default withEnglishFallback({failureDetailCopyFailed: "Hata ayrıntıları kopyalanamadı: {message}",},welcome: {+ introEyebrow: "Veritabanı çalışma alanı",+ introTitle: "Verilerle çalışmanın daha anlaşılır yolu",+ introDescription: "DBX; bağlantı yönetimini, SQL düzenlemeyi, veri incelemeyi, aktarımları ve yapay zekâ yardımını tek bir çalışma alanında birleştirir.",+ introNewConnection: "Yeni bağlantı",+ introFeatureConnections: "Birçok veritabanı",+ introFeatureConnectionsDescription: "Ekibinizin her gün kullandığı veritabanlarına ve hizmetlere bağlanın.",+ introFeatureSql: "SQL çalışma alanı",+ introFeatureSqlDescription: "Odaklanmış bir düzenleyiciyle SQL yazın, biçimlendirin ve çalıştırın.",+ introFeatureData: "Verileri inceleyin ve taşıyın",+ introFeatureDataDescription: "Tabloları inceleyin, satırları düzenleyin ve verileri güvenle aktarın.",+ introFeatureAi: "Yapay zekâ ve MCP hazır",+ introFeatureAiDescription: "Gerektiğinde yapay zekâ yardımcılarını iş akışınıza ekleyin.",+ introPrivacyHint: "Bağlantılarınız ve sorgu geçmişiniz bu sayfada gösterilmez.",+ introImport: "Bağlantıları içe aktar",+ introSettings: "Ana sayfa ayarları",connections: "Bağlantılar",connected: "Bağlandı",databaseTypes: "Veritabanı Türleri",@@ -6951,6 +6966,12 @@ export default withEnglishFallback({customUiSidebar: "Kenar çubuğu",followAppTheme: "Uygulama temasını izle",appLayout: "Arayüz Düzeni",+ welcomePage: "Ana sayfa",+ welcomePageDescription: "Boş çalışma alanında gizli bir DBX tanıtımı mı yoksa kaydedilmiş çalışma alanı verilerinin mi gösterileceğini seçin.",+ welcomePageIntro: "DBX tanıtımı",+ welcomePageIntroDescription: "Bağlantı adlarını, sayılarını veya sorgu geçmişini göstermeyen sade bir genel bakış gösterir.",+ welcomePageWorkspace: "Çalışma alanı özeti",+ welcomePageWorkspaceDescription: "Bağlantı istatistiklerini, hızlı bağlantıları ve kaydedilmiş SQL geçmişini gösterir.",appLayoutSeparated: "Modern ayrık",appLayoutSeparatedDescription: "Blok biçemli sekmelerle belirgin panel ayrımı.",appLayoutClassic: "Klasik sıkışık",diff --git a/apps/desktop/src/i18n/locales/zh-CN.ts b/apps/desktop/src/i18n/locales/zh-CN.tsindex 9deb30bb84..70515cd2ba 100644--- a/apps/desktop/src/i18n/locales/zh-CN.ts+++ b/apps/desktop/src/i18n/locales/zh-CN.ts@@ -2809,6 +2809,21 @@ export default withEnglishFallback({openTask: "打开任务",},welcome: {+ introEyebrow: "数据库工作空间",+ introTitle: "更专注的数据工作方式",+ introDescription: "DBX 将连接管理、SQL 编辑、数据浏览、数据传输与 AI 助手融入一个清晰高效的工作区。",+ introNewConnection: "新建连接",+ introFeatureConnections: "多数据库支持",+ introFeatureConnectionsDescription: "连接团队日常使用的数据库与服务,统一管理工作入口。",+ introFeatureSql: "SQL 工作区",+ introFeatureSqlDescription: "在专注的编辑器中编写、格式化并执行 SQL。",+ introFeatureData: "浏览与传输数据",+ introFeatureDataDescription: "查看表结构、编辑数据,并更安心地完成数据传输。",+ introFeatureAi: "AI 与 MCP 就绪",+ introFeatureAiDescription: "需要时,将 AI 助手自然接入你的数据库工作流。",+ introPrivacyHint: "连接与查询历史不会显示在此页面。",+ introImport: "导入连接",+ introSettings: "首页设置",connections: "连接",connected: "已连接",databaseTypes: "数据库类型",@@ -7923,6 +7938,12 @@ export default withEnglishFallback({customUiSidebar: "侧边栏",followAppTheme: "跟随应用主题",appLayout: "界面布局",+ welcomePage: "首页内容",+ welcomePageDescription: "选择空白工作区展示 DBX 介绍,或展示你的连接与已保存查询信息。",+ welcomePageIntro: "DBX 介绍页",+ welcomePageIntroDescription: "展示简洁的产品概览,不显示连接名称、数量或查询历史。",+ welcomePageWorkspace: "工作区概览",+ welcomePageWorkspaceDescription: "展示连接统计、快速连接和已保存的 SQL 历史。",appLayoutSeparated: "现代分隔",appLayoutSeparatedDescription: "面板分隔更清晰,标签页为块状样式。",appLayoutClassic: "经典紧凑",diff --git a/apps/desktop/src/i18n/locales/zh-TW.ts b/apps/desktop/src/i18n/locales/zh-TW.tsindex f760d1307b..66966c2184 100644--- a/apps/desktop/src/i18n/locales/zh-TW.ts+++ b/apps/desktop/src/i18n/locales/zh-TW.ts@@ -2693,6 +2693,21 @@ export default withEnglishFallback({openTask: "開啟工作",},welcome: {+ introEyebrow: "資料庫工作空間",+ introTitle: "更專注的資料工作方式",+ introDescription: "DBX 將連線管理、SQL 編輯、資料瀏覽、資料傳輸與 AI 助手整合到一個清晰高效的工作區。",+ introNewConnection: "新增連線",+ introFeatureConnections: "多資料庫支援",+ introFeatureConnectionsDescription: "連線到團隊每天使用的資料庫與服務,集中管理工作入口。",+ introFeatureSql: "SQL 工作區",+ introFeatureSqlDescription: "在專注的編輯器中撰寫、格式化並執行 SQL。",+ introFeatureData: "瀏覽與傳輸資料",+ introFeatureDataDescription: "檢視資料表、編輯資料列,並安心完成資料傳輸。",+ introFeatureAi: "AI 與 MCP 就緒",+ introFeatureAiDescription: "需要時,將 AI 助手自然整合到你的資料庫工作流程。",+ introPrivacyHint: "連線與查詢記錄不會顯示在此頁面。",+ introImport: "匯入連線",+ introSettings: "首頁設定",connections: "連線",connected: "已連線",databaseTypes: "資料庫類型",@@ -6406,6 +6421,12 @@ export default withEnglishFallback({themePaletteClaude: "Claude Code",followAppTheme: "跟隨應用程式主題",appLayout: "介面配置",+ welcomePage: "首頁內容",+ welcomePageDescription: "選擇空白工作區要顯示私密的 DBX 介紹,或顯示已儲存的工作區資訊。",+ welcomePageIntro: "DBX 介紹頁",+ welcomePageIntroDescription: "顯示簡潔的產品概覽,不顯示連線名稱、數量或查詢記錄。",+ welcomePageWorkspace: "工作區概覽",+ welcomePageWorkspaceDescription: "顯示連線統計、快速連線和已儲存的 SQL 記錄。",appLayoutSeparated: "現代分隔",appLayoutSeparatedDescription: "面板分隔更清晰,分頁為塊狀樣式。",appLayoutClassic: "經典緊湊",diff --git a/apps/desktop/src/lib/settings/__tests__/editorSettingsDraft.spec.ts b/apps/desktop/src/lib/settings/__tests__/editorSettingsDraft.spec.tsindex 31c76d3df9..4767dd6414 100644--- a/apps/desktop/src/lib/settings/__tests__/editorSettingsDraft.spec.ts+++ b/apps/desktop/src/lib/settings/__tests__/editorSettingsDraft.spec.ts@@ -71,6 +71,11 @@ describe("EDITOR_SETTINGS_DRAFT_KEYS", () => {expect(EDITOR_SETTINGS_DRAFT_KEYS).toContain("savedSqlOpenTargetMode");});+ it("includes the privacy-safe welcome page mode", () => {+ expect(EDITOR_SETTINGS_DRAFT_KEYS).toContain("welcomePageMode");+ expect(editorSettingsDraftFromSettings(makeSettings({ welcomePageMode: "workspace" })).welcomePageMode).toBe("workspace");+ });+it("includes the regular expression match limit", () => {expect(EDITOR_SETTINGS_DRAFT_KEYS).toContain("regexMaxMatchCount");});diff --git a/apps/desktop/src/lib/settings/__tests__/settingsTransfer.spec.ts b/apps/desktop/src/lib/settings/__tests__/settingsTransfer.spec.tsindex c069ca567c..fce21c24fb 100644--- a/apps/desktop/src/lib/settings/__tests__/settingsTransfer.spec.ts+++ b/apps/desktop/src/lib/settings/__tests__/settingsTransfer.spec.ts@@ -23,6 +23,16 @@ describe("settingsTransfer", () => {expect(parseSettingsTransferFile(fileWith({ resultTabPreferComments: "false" })).ok).toBe(false);});+ it("round-trips the welcome page mode and rejects invalid values", () => {+ const result = parseSettingsTransferFile(fileWith({ welcomePageMode: "workspace" }));+ expect(result.ok).toBe(true);+ if (result.ok) expect(result.value.editorSettings.welcomePageMode).toBe("workspace");++ const invalid = parseSettingsTransferFile(fileWith({ welcomePageMode: "connections" }));+ expect(invalid.ok).toBe(false);+ if (!invalid.ok) expect(invalid.error.detail).toContain("welcomePageMode");+ });+it("builds a dated transfer filename", () => {expect(buildSettingsTransferFilename(new Date(2026, 8, 6))).toBe("dbx-settings-2026-09-06.json");});diff --git a/apps/desktop/src/lib/settings/editorSettingsDraft.ts b/apps/desktop/src/lib/settings/editorSettingsDraft.tsindex b682e8adfe..cc7d742f12 100644--- a/apps/desktop/src/lib/settings/editorSettingsDraft.ts+++ b/apps/desktop/src/lib/settings/editorSettingsDraft.ts@@ -44,6 +44,7 @@ export const EDITOR_SETTINGS_DRAFT_KEYS = ["confirmUnsavedSqlClose","appCloseUnsavedTabsMode","savedSqlOpenTargetMode",+ "welcomePageMode","appLayout","tabLayout","tabPlacement",diff --git a/apps/desktop/src/lib/settings/settingsSearch.ts b/apps/desktop/src/lib/settings/settingsSearch.tsindex 77ce193922..aa5824497b 100644--- a/apps/desktop/src/lib/settings/settingsSearch.ts+++ b/apps/desktop/src/lib/settings/settingsSearch.ts@@ -187,6 +187,7 @@ export const SETTINGS_SEARCH_DEFINITIONS: readonly SettingsSearchDefinition[] ={ 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-connection-tab-colors", category: "appearance", titleKey: "settings.colorizeConnectionTabs", descriptionKey: "settings.colorizeConnectionTabsDescription", targetId: "appearance" },diff --git a/apps/desktop/src/lib/settings/settingsTransfer.ts b/apps/desktop/src/lib/settings/settingsTransfer.tsindex 7ab3e63ab9..decacf6ac3 100644--- a/apps/desktop/src/lib/settings/settingsTransfer.ts+++ b/apps/desktop/src/lib/settings/settingsTransfer.ts@@ -71,7 +71,7 @@ export function serializeSettingsTransfer(settings: EditorSettings, meta: Settinconst SETTINGS_TRANSFER_CATEGORY_ORDER: readonly SettingsTransferCategoryId[] = ["appearance", "editor", "formatter", "navigation", "data", "shortcuts", "snippets", "other"];const SETTINGS_TRANSFER_CATEGORY_KEYS: Record<SettingsTransferCategoryId, readonly EditorSettingsDraftKey[]> = {- appearance: ["fontFamily", "fontSize", "tableFontFamily", "uiFontFamily", "uiScale", "theme", "customThemes", "activeCustomThemeId", "backgroundImage", "toolbarItems"],+ appearance: ["fontFamily", "fontSize", "tableFontFamily", "uiFontFamily", "uiScale", "theme", "customThemes", "activeCustomThemeId", "backgroundImage", "toolbarItems", "welcomePageMode"],editor: ["executeMode","defaultTransactionMode",@@ -308,6 +308,7 @@ const PASS_THROUGH_BOOLEAN_KEYS = [const PASS_THROUGH_FIELD_VALIDATORS: Partial<Record<EditorSettingsDraftKey, (value: unknown) => boolean>> = {// The editor font slider and the Ctrl+wheel zoom both clamp to this range.fontSize: (value) => typeof value === "number" && Number.isFinite(value) && value >= EDITOR_MIN_FONT_SIZE && value <= EDITOR_MAX_FONT_SIZE,+ welcomePageMode: (value) => value === "intro" || value === "workspace",appLayout: (value) => value === "separated" || value === "classic",resultTabNamingMode: (value) => value === "source" || value === "ordinal" || value === "comment",activeCustomThemeId: (value) => typeof value === "string" && value.trim().length > 0,diff --git a/apps/desktop/src/stores/settingsStore.ts b/apps/desktop/src/stores/settingsStore.tsindex 7581787ceb..a4d7e31c33 100644--- a/apps/desktop/src/stores/settingsStore.ts+++ b/apps/desktop/src/stores/settingsStore.ts@@ -127,6 +127,9 @@ export type DesktopIconTheme = "default" | "black";export type InterfaceLayout = "separated" | "classic";+/** Content shown when no query tab is open. The intro mode keeps personal workspace data off the landing page. */+export type WelcomePageMode = "intro" | "workspace";+export type UpdateDownloadSource = "official" | "cnb";export type SqlSemanticDiagnosticsMode = "auto" | "enabled" | "disabled";export type OpenTabsRestoreMode = "all" | "pinned" | "none";@@ -882,6 +885,7 @@ export interface EditorSettings {confirmUnsavedSqlClose: boolean;appCloseUnsavedTabsMode: AppCloseUnsavedTabsMode;savedSqlOpenTargetMode: SavedSqlOpenTargetMode;+ welcomePageMode: WelcomePageMode;compactTabTitle: boolean;tabLayout: TabLayoutMode;tabPlacement: TabPlacement;@@ -1202,6 +1206,7 @@ export const DEFAULT_EDITOR_SETTINGS: EditorSettings = {confirmUnsavedSqlClose: true,appCloseUnsavedTabsMode: "keep-drafts",savedSqlOpenTargetMode: "saved",+ welcomePageMode: "intro",compactTabTitle: false,tabLayout: "scroll",tabPlacement: "top",@@ -1791,6 +1796,7 @@ export function normalizeEditorSettings(settings: Partial<EditorSettings>, existconfirmUnsavedSqlClose: settings.confirmUnsavedSqlClose ?? DEFAULT_EDITOR_SETTINGS.confirmUnsavedSqlClose,appCloseUnsavedTabsMode: normalizeAppCloseUnsavedTabsMode(settings.appCloseUnsavedTabsMode),savedSqlOpenTargetMode: settings.savedSqlOpenTargetMode === "current" ? "current" : DEFAULT_EDITOR_SETTINGS.savedSqlOpenTargetMode,+ welcomePageMode: settings.welcomePageMode === "workspace" ? "workspace" : DEFAULT_EDITOR_SETTINGS.welcomePageMode,compactTabTitle: settings.compactTabTitle ?? DEFAULT_EDITOR_SETTINGS.compactTabTitle,tabLayout: normalizeTabLayout(settings.tabLayout),tabPlacement: normalizeTabPlacement(settings.tabPlacement),@@ -2640,6 +2646,7 @@ export const useSettingsStore = defineStore("settings", () => {if (partial.confirmUnsavedSqlClose !== undefined) editorSettings.value.confirmUnsavedSqlClose = partial.confirmUnsavedSqlClose;if (partial.appCloseUnsavedTabsMode !== undefined) editorSettings.value.appCloseUnsavedTabsMode = normalizeAppCloseUnsavedTabsMode(partial.appCloseUnsavedTabsMode);if (partial.savedSqlOpenTargetMode !== undefined) editorSettings.value.savedSqlOpenTargetMode = partial.savedSqlOpenTargetMode === "current" ? "current" : "saved";+ if (partial.welcomePageMode !== undefined) editorSettings.value.welcomePageMode = partial.welcomePageMode === "workspace" ? "workspace" : DEFAULT_EDITOR_SETTINGS.welcomePageMode;if (partial.compactTabTitle !== undefined) editorSettings.value.compactTabTitle = partial.compactTabTitle;if (partial.tabLayout !== undefined) editorSettings.value.tabLayout = normalizeTabLayout(partial.tabLayout);if (partial.tabPlacement !== undefined) editorSettings.value.tabPlacement = normalizeTabPlacement(partial.tabPlacement);diff --git a/docs/home-page-privacy.md b/docs/home-page-privacy.mdnew file mode 100644index 0000000000..0a86706c3a--- /dev/null+++ b/docs/home-page-privacy.md@@ -0,0 +1,24 @@+# 首页展示模式++DBX 在没有打开查询标签时,可以展示产品介绍或工作区概览。用户可以在「设置 → 外观 → 首页」切换,介绍页底部的「首页设置」也会直接定位到该选项。修改遵循现有设置的应用、取消和持久化流程。++## 两种模式++- **DBX 介绍(默认)**:展示产品说明、连接管理、SQL 编辑、数据浏览与传输、AI / MCP 能力,以及新建连接、导入连接等固定入口。不展示个人连接名称、地址、数量、已连接状态、数据库类型统计或 SQL 历史;查询入口继续由现有工具栏提供。+- **工作区概览**:保留原有连接统计、快速连接和保存的 SQL 历史,适合希望快速回到日常工作的用户。++介绍页采用主题颜色、留白和响应式布局,兼容深浅主题。首页设置支持设置搜索、配置导入导出和恢复默认。模式值为 `welcomePageMode: "intro" | "workspace"`,缺失或无效配置回退为介绍页,因此升级用户与新用户都采用相同的默认行为。++## 实现与边界++`App.vue` 在设置加载完成前保持介绍模式;介绍模式下首页统计、快速连接和 SQL 历史计算直接返回零值或空列表,不读取或排序这些个人数据。`WelcomeScreen.vue` 默认使用介绍模式,个人数据 props 可省略,介绍分支与工作区分支分别渲染。介绍页的按钮布局也不依赖是否已连接数据库。++该选项只控制**中央空白首页**,不隐藏连接侧栏、已打开的标签、工具栏或用户主动打开的历史窗口,也不删除连接与历史数据。展示或录屏前如需隐藏整个工作区的个人信息,仍需检查这些区域;这项设置不是全局隐私模式。++## 验收重点++1. 无配置、旧配置和无效值均显示介绍页;保存工作区模式后重启恢复该选择。+2. 介绍页不出现连接统计、名称、地址和 SQL 历史,连接或历史数据变化不改变介绍页内容。+3. 切换到工作区概览恢复原有统计与操作,设置取消不保存,应用后立即生效。+4. 外观恢复默认、全局恢复默认、导入导出与设置搜索正确覆盖该选项。+5. 中英文、深浅主题、窄窗口和键盘操作可用,选项提供可访问的选中状态。