AI-native knowledge base & Evernote/Obsidian alternative with instant sync & native MCP. Free on Cloudflare or self-hosted via Docker.
HTML ai-agentcloudflarecloudflare-d1cloudflare-r2cloudflare-workersdockerelectronevernoteevernote-alternativeknowledge-basemcpnote-takingobsidian-alternativeoffline-firstpersonal-knowledge-basepwaself-hostedsqlitetiptapweb-clipper
refactor(settings): remove data directory from system info panel
tianma-if6b28d9b5ee85
diff --git a/apps/desktop/src/main/desktop-update-flow.test.mjs b/apps/desktop/src/main/desktop-update-flow.test.mjsindex aa9f92e4..44fa182b 100644--- a/apps/desktop/src/main/desktop-update-flow.test.mjs+++ b/apps/desktop/src/main/desktop-update-flow.test.mjs@@ -49,7 +49,7 @@ describe("desktop update flow", () => {expect(systemInfoSource).toContain("getClientRuntimeDiagnostics");expect(systemInfoSource).toContain('t("systemInfo.runtimeEngine")');expect(systemInfoSource).toContain('t("systemInfo.connectionSection")');- expect(systemInfoSource).toContain('t("systemInfo.dataDirectory")');+ expect(systemInfoSource).not.toContain('t("systemInfo.dataDirectory")');expect(mainSource).toContain("dataDir: sidecarDataDirectory(activeAccountId)");});diff --git a/apps/web/src/components/settings/SystemInfoPanel.test.mjs b/apps/web/src/components/settings/SystemInfoPanel.test.mjsindex 231b64da..fb946edf 100644--- a/apps/web/src/components/settings/SystemInfoPanel.test.mjs+++ b/apps/web/src/components/settings/SystemInfoPanel.test.mjs@@ -17,9 +17,9 @@ describe("system information client/instance version hint", () => {});describe("system information diagnostic fields", () => {- test("shows desktop instance URL and data directory only as local-only fields", () => {+ test("shows desktop instance URL as local-only field and omits data directory", () => {expect(source).toContain('t("systemInfo.instanceUrl")');- expect(source).toContain('t("systemInfo.dataDirectory")');+ expect(source).not.toContain('t("systemInfo.dataDirectory")');expect(source).toContain("localOnly: true");expect(source).toContain('clientKind === "desktopApp"');expect(source).toContain("getShareableWebSystemInfoItems");diff --git a/apps/web/src/components/settings/SystemInfoPanel.tsx b/apps/web/src/components/settings/SystemInfoPanel.tsxindex 4106b3ea..6d4b7fc1 100644--- a/apps/web/src/components/settings/SystemInfoPanel.tsx+++ b/apps/web/src/components/settings/SystemInfoPanel.tsx@@ -223,15 +223,6 @@ const getWebSystemInfoGroups = (},{ label: t("systemInfo.language"), value: navigator.language || language, mono: true },{ label: t("systemInfo.timeZone"), value: timeZone, mono: true, colSpan: "double-sm" },- ...(clientKind === "desktopApp"- ? [{- label: t("systemInfo.dataDirectory"),- value: diagnostics.clientRuntime?.dataDirectory ?? t("systemInfo.unknown"),- mono: true,- colSpan: "full" as const,- localOnly: true,- }]- : []),],},];diff --git a/apps/web/src/lib/system-diagnostics.ts b/apps/web/src/lib/system-diagnostics.tsindex 43ea9d8f..65d7bf90 100644--- a/apps/web/src/lib/system-diagnostics.ts+++ b/apps/web/src/lib/system-diagnostics.ts@@ -7,7 +7,6 @@ export type ClientRuntimeDiagnostics = {appVersion: string | null;architecture: string | null;autoUpdateSupported: boolean | null;- dataDirectory: string | null;engine: string | null;operatingSystem: string | null;};@@ -81,7 +80,6 @@ export const getClientRuntimeDiagnostics = async (): Promise<ClientRuntimeDiagnoappVersion: info.appVersion,architecture: info.architecture === "unknown" ? null : info.architecture,autoUpdateSupported: info.autoUpdateSupported,- dataDirectory: info.dataDir && info.dataDir !== "unknown" ? info.dataDir : null,engine: [info.electron === "unknown" ? null : `Electron ${info.electron}`,info.chrome === "unknown" ? null : `Chromium ${info.chrome}`,@@ -108,7 +106,6 @@ export const getClientRuntimeDiagnostics = async (): Promise<ClientRuntimeDiagnoappVersion: null,architecture: architecture || null,autoUpdateSupported: null,- dataDirectory: null,engine: browserEngine(navigator.userAgent),operatingSystem: browserOperatingSystem(navigator.userAgent,diff --git a/packages/shared/src/i18n/en-US.ts b/packages/shared/src/i18n/en-US.tsindex b1bbe670..64f83433 100644--- a/packages/shared/src/i18n/en-US.ts+++ b/packages/shared/src/i18n/en-US.ts@@ -1191,7 +1191,6 @@ export const enUS = {runtimeEngine: "Runtime engine",language: "Language",timeZone: "Time zone",- dataDirectory: "Data directory",instanceConnection: "Instance connection",requestLatency: "Health check time",lastSuccessfulSync: "Last successful sync",diff --git a/packages/shared/src/i18n/ja.ts b/packages/shared/src/i18n/ja.tsindex 3c2d42de..2246816d 100644--- a/packages/shared/src/i18n/ja.ts+++ b/packages/shared/src/i18n/ja.ts@@ -1191,7 +1191,6 @@ export const ja = {runtimeEngine: "ランタイムエンジン",language: "言語",timeZone: "タイムゾーン",- dataDirectory: "データディレクトリ",instanceConnection: "インスタンス接続",requestLatency: "ヘルスチェック時間",lastSuccessfulSync: "最後に成功した同期",diff --git a/packages/shared/src/i18n/zh-CN.ts b/packages/shared/src/i18n/zh-CN.tsindex aef32bb8..e0e92342 100644--- a/packages/shared/src/i18n/zh-CN.ts+++ b/packages/shared/src/i18n/zh-CN.ts@@ -1191,7 +1191,6 @@ export const zhCN = {runtimeEngine: "运行引擎",language: "语言",timeZone: "时区",- dataDirectory: "数据目录",instanceConnection: "实例连接",requestLatency: "健康检查耗时",lastSuccessfulSync: "最近成功同步",