Skip to content

AI-native knowledge base & Evernote/Obsidian alternative with instant sync & native MCP. Free on Cloudflare or self-hosted via Docker.

fix: clarify update instructions

tianma-if871077c8c75a
diff --git a/apps/web/src/components/ReleaseUpdateNotice.tsx b/apps/web/src/components/ReleaseUpdateNotice.tsx
index f4ac69ec..66fa2293 100644
--- a/apps/web/src/components/ReleaseUpdateNotice.tsx
+++ b/apps/web/src/components/ReleaseUpdateNotice.tsx
@@ -3,6 +3,7 @@ import { ArrowUpCircle, Download, ExternalLink, RefreshCw, X } from "lucide-reac
import { useTranslation } from "react-i18next";
import { fetchLatestRelease, isVersionOutdated, type LatestRelease } from "@/lib/version-check";
import { dismissRelease, getDismissedRelease } from "@/lib/release-notice";
+import { UpdateAvailableDescription } from "./UpdateAvailableDescription";
const AUTO_DISMISS_MS = 3_000;
@@ -86,7 +87,7 @@ export const ReleaseUpdateNotice = () => {
? t("systemInfo.desktopUpdateReady")
: nativeUpdateState === "error"
? t("systemInfo.desktopUpdateFailed")
- : t("systemInfo.updateAvailableDescription", { version: release?.version ?? "" })}
+ : <UpdateAvailableDescription version={release?.version ?? ""} />}
</div>
<div className="mt-2 flex flex-wrap items-center gap-3">
{isNativeUpdate && nativeUpdateState !== "downloading" && nativeUpdateState !== "error" && (
diff --git a/apps/web/src/components/UpdateAvailableDescription.tsx b/apps/web/src/components/UpdateAvailableDescription.tsx
new file mode 100644
index 00000000..7c474087
--- /dev/null
+++ b/apps/web/src/components/UpdateAvailableDescription.tsx
@@ -0,0 +1,14 @@
+import { Trans } from "react-i18next";
+
+const LEADING_VERSION_PREFIX = /^v/;
+
+export const UpdateAvailableDescription = ({ version }: { version: string }) => (
+ <Trans
+ i18nKey="systemInfo.updateAvailableDescription"
+ values={{ version: version.replace(LEADING_VERSION_PREFIX, "") }}
+ components={{
+ paragraph: <span className="mt-1.5 block first:mt-0" />,
+ strong: <strong className="font-semibold text-slate-700" />,
+ }}
+ />
+);
diff --git a/apps/web/src/components/settings/SystemInfoPanel.tsx b/apps/web/src/components/settings/SystemInfoPanel.tsx
index 505db6ce..65af7de0 100644
--- a/apps/web/src/components/settings/SystemInfoPanel.tsx
+++ b/apps/web/src/components/settings/SystemInfoPanel.tsx
@@ -2,6 +2,7 @@ import { useEffect, useMemo, useState } from "react";
import { ArrowUpCircle, CheckCircle2, Copy, ExternalLink } from "lucide-react";
import { useTranslation } from "react-i18next";
import { Button } from "@/components/ui/button";
+import { UpdateAvailableDescription } from "@/components/UpdateAvailableDescription";
import { detectWebClientKind } from "@/lib/client-environment";
import { cn } from "@/lib/utils";
import { fetchLatestRelease, isVersionOutdated, type LatestRelease } from "@/lib/version-check";
@@ -110,7 +111,7 @@ export const SystemInfoPanel = ({ active = true }: { active?: boolean }) => {
<ArrowUpCircle className="mt-0.5 h-4 w-4 shrink-0 text-emerald-600" />
<div className="min-w-0 flex-1 text-xs leading-5">
<div className="font-semibold">{t("systemInfo.updateAvailableTitle")}</div>
- <div className="text-slate-500">{t("systemInfo.updateAvailableDescription", { version: latestRelease.version })}</div>
+ <div className="text-slate-500"><UpdateAvailableDescription version={latestRelease.version} /></div>
</div>
<a className="inline-flex shrink-0 items-center gap-1 text-xs font-semibold text-emerald-700 underline underline-offset-2 hover:text-emerald-900" href={latestRelease.url} target="_blank" rel="noreferrer">
{t("systemInfo.viewRelease")} <ExternalLink className="h-3 w-3" />
diff --git a/packages/shared/src/i18n/en-US.ts b/packages/shared/src/i18n/en-US.ts
index 0bacfec6..3b612789 100644
--- a/packages/shared/src/i18n/en-US.ts
+++ b/packages/shared/src/i18n/en-US.ts
@@ -582,7 +582,7 @@ export const enUS = {
unknown: "Unknown",
copy: "Copy info",
updateAvailableTitle: "New version available",
- updateAvailableDescription: "Version {{version}} is available. Review what’s new before updating.",
+ updateAvailableDescription: "<paragraph>Version <strong>v{{version}}</strong> is available. Cloudflare and Docker instances update automatically each day by default.</paragraph><paragraph><strong>Do not use Sync fork</strong>; it may cause branch conflicts.</paragraph><paragraph>To update manually, Cloudflare users can run the <strong>Update deployed EdgeEver</strong> workflow, while Docker users can run <strong>~/edgeever/update.sh</strong>.</paragraph><paragraph>The latest <strong>desktop app</strong> is available from the Releases page.</paragraph>",
viewRelease: "View update",
latestVersion: "You are running the latest version",
closeUpdateNotice: "Close update notice",
diff --git a/packages/shared/src/i18n/zh-CN.ts b/packages/shared/src/i18n/zh-CN.ts
index 00fbdbcf..94ebbe93 100644
--- a/packages/shared/src/i18n/zh-CN.ts
+++ b/packages/shared/src/i18n/zh-CN.ts
@@ -582,7 +582,7 @@ export const zhCN = {
unknown: "未知",
copy: "复制信息",
updateAvailableTitle: "发现新版本",
- updateAvailableDescription: "已有新版本 {{version}},可查看更新内容后升级。",
+ updateAvailableDescription: "<paragraph>新版本 <strong>v{{version}}</strong> 已发布。Cloudflare 和 Docker 实例默认每日自动更新。</paragraph><paragraph><strong>请勿使用 Sync fork</strong>,可能导致分支冲突。</paragraph><paragraph>如需手动更新:Cloudflare 用户可运行 <strong>Update deployed EdgeEver</strong> 工作流;Docker 用户可运行 <strong>~/edgeever/update.sh</strong>。</paragraph><paragraph><strong>桌面客户端</strong>新版本可前往 Releases 页面下载。</paragraph>",
viewRelease: "查看更新",
latestVersion: "当前已是最新版本",
closeUpdateNotice: "关闭新版本提示",