Skip to content

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

fix(web): keep the client-ahead system-info note quiet

tianma-if3d69b6b62b83
diff --git a/apps/ios/EdgeEver/Features/Workspace/SettingsView.swift b/apps/ios/EdgeEver/Features/Workspace/SettingsView.swift
index 4a8f7bd9..c894a670 100644
--- a/apps/ios/EdgeEver/Features/Workspace/SettingsView.swift
+++ b/apps/ios/EdgeEver/Features/Workspace/SettingsView.swift
@@ -523,8 +523,8 @@ struct SettingsView: View {
return nil
}
return env.preferences.t(
- "当前客户端版本高于云端实例,部分功能可能暂不可用。可等待每天自动更新,也可手动更新实例。",
- en: "This client is newer than the connected cloud instance, so some features may not work yet. You can wait for the daily automatic instance update, or update the instance manually."
+ "当前客户端版本高于云端实例。可等待每天自动更新,或手动运行 Update deployed EdgeEver 工作流。",
+ en: "This client is newer than the connected cloud instance. You can wait for the daily automatic instance update, or run the Update deployed EdgeEver workflow."
)
}
@@ -765,17 +765,14 @@ struct SettingsView: View {
if let notice {
HStack(alignment: .top, spacing: 8) {
- Image(systemName: "exclamationmark.triangle.fill")
- .font(.system(size: 12, weight: .semibold))
+ Image(systemName: "info.circle")
+ .font(.system(size: 11, weight: .semibold))
Text(notice)
- .font(.system(size: 12))
+ .font(.system(size: 11))
.fixedSize(horizontal: false, vertical: true)
}
- .foregroundStyle(AppTheme.warningText)
- .padding(.horizontal, 12)
- .padding(.vertical, 8)
+ .foregroundStyle(AppTheme.secondary)
.frame(maxWidth: .infinity, alignment: .leading)
- .background(AppTheme.warningSurface, in: RoundedRectangle(cornerRadius: 8, style: .continuous))
.padding(.horizontal, 16)
.padding(.bottom, 12)
}
diff --git a/apps/mobile/src/screens/WorkspaceSettingsView.tsx b/apps/mobile/src/screens/WorkspaceSettingsView.tsx
index e2c2f375..a50c406d 100644
--- a/apps/mobile/src/screens/WorkspaceSettingsView.tsx
+++ b/apps/mobile/src/screens/WorkspaceSettingsView.tsx
@@ -5,7 +5,7 @@ import type { InstanceHealth } from "@edgeever/client";
import { buildGitHubFeedbackUrl, isClientAheadOfInstance, type AuthUser } from "@edgeever/shared";
import { useQuery } from "@tanstack/react-query";
import { BackHandler, Linking, Modal, Platform, ScrollView, Switch, View } from "react-native";
-import { Activity, ActivityIndicator, AlertTriangle, Check, ChevronDown, ChevronLeft, ChevronRight, Cloud, Copy, ExternalLink, Image as ImageIcon, Info, LogOut, MessageSquare, MonitorSmartphone, Moon, RefreshCw, ShieldCheck, SlidersHorizontal, Sun, UserRound } from "../components/icons";
+import { Activity, ActivityIndicator, Check, ChevronDown, ChevronLeft, ChevronRight, Cloud, Copy, ExternalLink, Image as ImageIcon, Info, LogOut, MessageSquare, MonitorSmartphone, Moon, RefreshCw, ShieldCheck, SlidersHorizontal, Sun, UserRound } from "../components/icons";
import { Pressable, Text } from "../components/LocalizedText";
import { useMobileLocale } from "../lib/mobile-locale";
import { useMobileTheme } from "../lib/mobile-theme";
@@ -451,7 +451,7 @@ const MobileSystemInfoSection = ({ group }: { group: MobileSystemInfoGroup }) =>
</View>
{group.notice ? (
<View accessibilityLiveRegion="polite" style={styles.systemInfoNotice}>
- <AlertTriangle color="#d97706" size={14} />
+ <Info color="#94a3b8" size={14} />
<Text style={styles.systemInfoNoticeText}>{group.notice}</Text>
</View>
) : null}
@@ -486,7 +486,7 @@ const getMobileSystemInfoText = (localePreference: MobileLocaleMode) =>
? {
build: "Build",
client: "Client",
- clientAheadOfInstance: "This client is newer than the connected cloud instance, so some features may not work yet. You can wait for the daily automatic instance update, or update the instance manually.",
+ clientAheadOfInstance: "This client is newer than the connected cloud instance. You can wait for the daily automatic instance update, or run the Update deployed EdgeEver workflow.",
clientDescription: "The EdgeEver app and runtime environment on this device.",
clientSection: "Current client",
cloudDescription: "Version and deployment environment for the connected instance.",
@@ -527,7 +527,7 @@ const getMobileSystemInfoText = (localePreference: MobileLocaleMode) =>
: {
build: "构建",
client: "客户端",
- clientAheadOfInstance: "当前客户端版本高于云端实例,部分功能可能暂不可用。可等待每天自动更新,也可手动更新实例。",
+ clientAheadOfInstance: "当前客户端版本高于云端实例。可等待每天自动更新,或手动运行 Update deployed EdgeEver 工作流。",
clientDescription: "这台设备上的 EdgeEver 应用与运行环境。",
clientSection: "当前客户端",
cloudDescription: "当前连接实例的版本与部署环境。",
diff --git a/apps/mobile/src/screens/workspace-styles.ts b/apps/mobile/src/screens/workspace-styles.ts
index f38e678d..33d10c92 100644
--- a/apps/mobile/src/screens/workspace-styles.ts
+++ b/apps/mobile/src/screens/workspace-styles.ts
@@ -1079,20 +1079,15 @@ const baseWorkspaceStyles = StyleSheet.create({
},
systemInfoNotice: {
alignItems: "flex-start",
- backgroundColor: "#fff7ed",
- borderColor: "#fed7aa",
- borderRadius: 8,
- borderWidth: 1,
flexDirection: "row",
gap: 8,
- paddingHorizontal: 10,
- paddingVertical: 8,
+ paddingHorizontal: 2,
},
systemInfoNoticeText: {
- color: "#9a3412",
+ color: "#64748b",
flex: 1,
- fontSize: 11,
- lineHeight: 16,
+ fontSize: 10,
+ lineHeight: 15,
},
systemInfoRow: {
borderBottomColor: "#e2e8f0",
diff --git a/apps/web/src/components/settings/SystemInfoPanel.tsx b/apps/web/src/components/settings/SystemInfoPanel.tsx
index f0c310e1..9a1ad314 100644
--- a/apps/web/src/components/settings/SystemInfoPanel.tsx
+++ b/apps/web/src/components/settings/SystemInfoPanel.tsx
@@ -1,7 +1,7 @@
import { useMemo, useState } from "react";
import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
import type { DeploymentMetadata } from "@edgeever/shared/deployment-metadata";
-import { Activity, CircleCheck, Cloud, Copy, ExternalLink, LoaderCircle, MonitorSmartphone, RefreshCw, RotateCcw, TriangleAlert } from "lucide-react";
+import { Activity, CircleCheck, Cloud, Copy, ExternalLink, Info, LoaderCircle, MonitorSmartphone, RefreshCw, RotateCcw } from "lucide-react";
import { useTranslation } from "react-i18next";
import { Button } from "@/components/ui/button";
import { useDeployedUpdateNotice } from "@/hooks/useDeployedUpdateNotice";
@@ -435,8 +435,8 @@ export const SystemInfoPanel = ({ active = true }: { active?: boolean }) => {
) : null}
</div>
{isCloud && active && clientAheadOfInstance ? (
- <p className="flex items-start gap-2 rounded-lg border border-amber-200/80 bg-amber-50/70 px-3 py-1.5 text-xs leading-5 text-amber-900" role="status">
- <TriangleAlert className="mt-0.5 h-3.5 w-3.5 shrink-0 text-amber-600" />
+ <p className="flex items-start gap-1.5 px-0.5 text-[11px] leading-4 text-slate-500" role="status">
+ <Info className="mt-0.5 h-3 w-3 shrink-0 text-slate-400" />
<span>{t("systemInfo.clientAheadOfInstance")}</span>
</p>
) : isCloud && active && release ? (
diff --git a/packages/shared/src/i18n/en-US.ts b/packages/shared/src/i18n/en-US.ts
index 8bea401b..58f6d2b7 100644
--- a/packages/shared/src/i18n/en-US.ts
+++ b/packages/shared/src/i18n/en-US.ts
@@ -1137,7 +1137,7 @@ export const enUS = {
browserMode: "Browser",
unknown: "Unknown",
copy: "Copy info",
- clientAheadOfInstance: "This client is newer than the connected cloud instance, so some features may not work yet. You can wait for the daily automatic instance update, or update the instance manually.",
+ clientAheadOfInstance: "This client is newer than the connected cloud instance. You can wait for the daily automatic instance update, or run the Update deployed EdgeEver workflow.",
deployedUpdateTitle: "Your cloud instance was automatically updated to v{{version}}",
viewReleaseNotes: "Release notes",
desktopCheckForUpdates: "Check for updates",
diff --git a/packages/shared/src/i18n/zh-CN.ts b/packages/shared/src/i18n/zh-CN.ts
index 1da92358..b18620c7 100644
--- a/packages/shared/src/i18n/zh-CN.ts
+++ b/packages/shared/src/i18n/zh-CN.ts
@@ -1137,7 +1137,7 @@ export const zhCN = {
browserMode: "浏览器",
unknown: "未知",
copy: "复制信息",
- clientAheadOfInstance: "当前客户端版本高于云端实例,部分功能可能暂不可用。可等待每天自动更新,也可手动更新实例。",
+ clientAheadOfInstance: "当前客户端版本高于云端实例。可等待每天自动更新,或手动运行 Update deployed EdgeEver 工作流。",
deployedUpdateTitle: "您的云端实例已自动更新至 v{{version}}",
viewReleaseNotes: "版本说明",
desktopCheckForUpdates: "检查更新",