From d9d677e7622be046cc11d79700d25245067f572a Mon Sep 17 00:00:00 2001 From: matevip Date: Tue, 21 Apr 2026 04:59:01 +0800 Subject: [PATCH] =?UTF-8?q?refactor(ui):=20complete=20Memory=20view=20rede?= =?UTF-8?q?sign=20=E2=80=94=20kill=20EP,=20match=20design=20system?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mateclaw-ui/src/i18n/locales/en-US.ts | 30 +- mateclaw-ui/src/i18n/locales/zh-CN.ts | 40 +- .../Memory/components/DreamDiffViewer.vue | 44 -- .../Memory/components/DreamReportPanel.vue | 114 ---- .../views/Memory/components/DreamTimeline.vue | 196 ------- .../Memory/components/FocusedDreamDialog.vue | 75 --- .../Memory/components/MemoryMdSection.vue | 136 ----- .../views/Memory/components/MorningCard.vue | 81 +-- mateclaw-ui/src/views/Memory/index.vue | 542 ++++++++++++++---- 9 files changed, 499 insertions(+), 759 deletions(-) delete mode 100644 mateclaw-ui/src/views/Memory/components/DreamDiffViewer.vue delete mode 100644 mateclaw-ui/src/views/Memory/components/DreamReportPanel.vue delete mode 100644 mateclaw-ui/src/views/Memory/components/DreamTimeline.vue delete mode 100644 mateclaw-ui/src/views/Memory/components/FocusedDreamDialog.vue delete mode 100644 mateclaw-ui/src/views/Memory/components/MemoryMdSection.vue diff --git a/mateclaw-ui/src/i18n/locales/en-US.ts b/mateclaw-ui/src/i18n/locales/en-US.ts index 9962420b..2da4fe27 100644 --- a/mateclaw-ui/src/i18n/locales/en-US.ts +++ b/mateclaw-ui/src/i18n/locales/en-US.ts @@ -1784,14 +1784,27 @@ export default { memory: { kicker: 'Memory', title: 'Memory', - desc: 'What your Agent thinks about, remembers, and lets go.', + desc: 'What your agent thinks about, remembers, and lets go.', selectAgent: 'Select Agent', selectAgentHint: 'Select an agent to view its memory', - tabTimeline: 'Dream Timeline', - tabMemory: 'Long-term Memory', - tabProfile: 'Profile', + tabTimeline: 'Timeline', + tabMemory: 'Long-term', tabFacts: 'Facts', noReports: 'No dream reports yet', + modeFocused: 'Focused', + modeNightly: 'Nightly', + candidates: 'candidates', + loadMore: 'Load more', + time: { + justNow: 'just now', + hoursAgo: '{n}h ago', + daysAgo: '{n}d ago', + }, + status: { + success: 'Success', + failed: 'Failed', + skipped: 'Skipped', + }, report: { mode: 'Mode', topic: 'Topic', @@ -1819,16 +1832,11 @@ export default { saved: 'Saved to MEMORY.md', }, focused: { - btn: 'Think Now', - title: 'Focused Dream', - desc: 'Let the Agent re-organize memories around a specific topic. It will prioritize consolidating information related to your theme.', - placeholder: 'Enter a topic, e.g. "architecture decisions", "user preferences"...', + desc: 'Re-organize memories around a specific topic, prioritizing related information.', + placeholder: 'Enter a topic, e.g. "architecture decisions"…', trigger: 'Start', success: 'Dream completed, timeline updated', skipped: 'Nothing to consolidate', }, - diff: { - title: 'Change Summary', - }, }, } as const diff --git a/mateclaw-ui/src/i18n/locales/zh-CN.ts b/mateclaw-ui/src/i18n/locales/zh-CN.ts index bdfcb8ea..1ca9dd2b 100644 --- a/mateclaw-ui/src/i18n/locales/zh-CN.ts +++ b/mateclaw-ui/src/i18n/locales/zh-CN.ts @@ -1792,16 +1792,29 @@ export default { }, }, memory: { - kicker: 'Memory', + kicker: '记忆', title: '记忆', - desc: '你的 Agent 在想什么、记住了什么、遗忘了什么。', - selectAgent: '选择 Agent', - selectAgentHint: '请先选择一个 Agent 查看其记忆', - tabTimeline: 'Dream 时间线', + desc: '你的智能体在想什么、记住了什么、遗忘了什么。', + selectAgent: '选择智能体', + selectAgentHint: '请先选择一个智能体查看其记忆', + tabTimeline: '整理时间线', tabMemory: '长期记忆', - tabProfile: '用户画像', tabFacts: '事实库', - noReports: '暂无 Dream 记录', + noReports: '暂无整理记录', + modeFocused: '专题', + modeNightly: '夜间', + candidates: '条候选', + loadMore: '加载更多', + time: { + justNow: '刚刚', + hoursAgo: '{n}小时前', + daysAgo: '{n}天前', + }, + status: { + success: '成功', + failed: '失败', + skipped: '跳过', + }, report: { mode: '模式', topic: '主题', @@ -1811,7 +1824,7 @@ export default { promoted: '已整合', rejected: '未采纳', trigger: '触发方式', - reason: 'LLM 理由', + reason: '整理理由', diff: '变更摘要', }, morningCard: { @@ -1829,16 +1842,11 @@ export default { saved: '已保存到 MEMORY.md', }, focused: { - btn: '现在想一想', - title: 'Focused Dream', - desc: '围绕一个主题让 Agent 重新整理记忆。Agent 会优先提炼该主题相关的信息。', - placeholder: '输入主题,如"项目架构决策"、"用户偏好"...', + desc: '围绕一个主题让智能体重新整理记忆,优先提炼相关信息。', + placeholder: '输入主题,如"项目架构"、"用户偏好"…', trigger: '开始整理', - success: 'Dream 完成,时间线已更新', + success: '整理完成,时间线已更新', skipped: '没有需要整合的内容', }, - diff: { - title: '变更摘要', - }, }, } as const diff --git a/mateclaw-ui/src/views/Memory/components/DreamDiffViewer.vue b/mateclaw-ui/src/views/Memory/components/DreamDiffViewer.vue deleted file mode 100644 index d97d65e5..00000000 --- a/mateclaw-ui/src/views/Memory/components/DreamDiffViewer.vue +++ /dev/null @@ -1,44 +0,0 @@ - - - - - diff --git a/mateclaw-ui/src/views/Memory/components/DreamReportPanel.vue b/mateclaw-ui/src/views/Memory/components/DreamReportPanel.vue deleted file mode 100644 index fa63b037..00000000 --- a/mateclaw-ui/src/views/Memory/components/DreamReportPanel.vue +++ /dev/null @@ -1,114 +0,0 @@ - - - - - diff --git a/mateclaw-ui/src/views/Memory/components/DreamTimeline.vue b/mateclaw-ui/src/views/Memory/components/DreamTimeline.vue deleted file mode 100644 index e7718499..00000000 --- a/mateclaw-ui/src/views/Memory/components/DreamTimeline.vue +++ /dev/null @@ -1,196 +0,0 @@ - - - - - diff --git a/mateclaw-ui/src/views/Memory/components/FocusedDreamDialog.vue b/mateclaw-ui/src/views/Memory/components/FocusedDreamDialog.vue deleted file mode 100644 index 1c7ba152..00000000 --- a/mateclaw-ui/src/views/Memory/components/FocusedDreamDialog.vue +++ /dev/null @@ -1,75 +0,0 @@ - - - - - diff --git a/mateclaw-ui/src/views/Memory/components/MemoryMdSection.vue b/mateclaw-ui/src/views/Memory/components/MemoryMdSection.vue deleted file mode 100644 index 1396f7bc..00000000 --- a/mateclaw-ui/src/views/Memory/components/MemoryMdSection.vue +++ /dev/null @@ -1,136 +0,0 @@ - - - - - diff --git a/mateclaw-ui/src/views/Memory/components/MorningCard.vue b/mateclaw-ui/src/views/Memory/components/MorningCard.vue index dc84ed1c..1cadfee3 100644 --- a/mateclaw-ui/src/views/Memory/components/MorningCard.vue +++ b/mateclaw-ui/src/views/Memory/components/MorningCard.vue @@ -1,21 +1,20 @@ diff --git a/mateclaw-ui/src/views/Memory/index.vue b/mateclaw-ui/src/views/Memory/index.vue index 6239984d..02cde980 100644 --- a/mateclaw-ui/src/views/Memory/index.vue +++ b/mateclaw-ui/src/views/Memory/index.vue @@ -1,65 +1,157 @@