Skip to content

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

remove redundant AI selection hint

tianma-if9d9af32e18c8
diff --git a/apps/web/src/components/dialogs/AiAssistantDialog.tsx b/apps/web/src/components/dialogs/AiAssistantDialog.tsx
index 1e233278..2ffe34c2 100644
--- a/apps/web/src/components/dialogs/AiAssistantDialog.tsx
+++ b/apps/web/src/components/dialogs/AiAssistantDialog.tsx
@@ -160,7 +160,7 @@ export const AiAssistantDialog = ({
<span className="rounded-full bg-emerald-100 px-2 py-0.5 text-xs text-emerald-800">
{t(hasSelection ? "aiAssistant.selectedScope" : "aiAssistant.noteScope")}
</span>
- {t(hasSelection ? "aiAssistant.selectedScopeHint" : "aiAssistant.noteScopeHint")}
+ {hasSelection ? null : t("aiAssistant.noteScopeHint")}
</div>
{hasSelection ? (
<p className="mt-2 max-h-16 overflow-hidden whitespace-pre-wrap border-l-2 border-emerald-200 pl-3 text-xs leading-5 text-slate-500">
diff --git a/packages/shared/src/i18n/en-US.ts b/packages/shared/src/i18n/en-US.ts
index 6fdfb862..e90601ce 100644
--- a/packages/shared/src/i18n/en-US.ts
+++ b/packages/shared/src/i18n/en-US.ts
@@ -330,7 +330,6 @@ export const enUS = {
openForSelection: "Ask AI",
actionLabel: "Writing action",
selectedScope: "Selected text",
- selectedScopeHint: "AI will only process the text you selected.",
noteScope: "Whole note",
noteScopeHint: "AI will use the current note as context.",
selectedActions: "Edit selected text",
diff --git a/packages/shared/src/i18n/zh-CN.ts b/packages/shared/src/i18n/zh-CN.ts
index 7eb5a205..bfc1657d 100644
--- a/packages/shared/src/i18n/zh-CN.ts
+++ b/packages/shared/src/i18n/zh-CN.ts
@@ -330,7 +330,6 @@ export const zhCN = {
openForSelection: "用 AI 处理",
actionLabel: "处理方式",
selectedScope: "选中内容",
- selectedScopeHint: "AI 只会处理当前选中的文字。",
noteScope: "整篇笔记",
noteScopeHint: "AI 会使用当前笔记作为上下文。",
selectedActions: "编辑选中内容",