From 6ae221b38dd947a38e3d3e1ba177c4c1bbda6e53 Mon Sep 17 00:00:00 2001 From: matevip Date: Tue, 21 Apr 2026 15:28:21 +0800 Subject: [PATCH] =?UTF-8?q?feat(memory):=20batch=203=20=E2=80=94=20Grafana?= =?UTF-8?q?=20dashboard=20+=203=20Low=20fixes=20+=20issues=20cleanup?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mateclaw-ui/src/i18n/locales/en-US.ts | 2 ++ mateclaw-ui/src/i18n/locales/zh-CN.ts | 2 ++ mateclaw-ui/src/stores/useMemoryStore.ts | 4 +++- .../src/views/Memory/components/MorningCard.vue | 11 ++++++----- 4 files changed, 13 insertions(+), 6 deletions(-) diff --git a/mateclaw-ui/src/i18n/locales/en-US.ts b/mateclaw-ui/src/i18n/locales/en-US.ts index ddeca4a6..9fea43f1 100644 --- a/mateclaw-ui/src/i18n/locales/en-US.ts +++ b/mateclaw-ui/src/i18n/locales/en-US.ts @@ -1805,6 +1805,8 @@ export default { success: 'Success', failed: 'Failed', skipped: 'Skipped', + running: 'Running', + pending: 'Pending', }, report: { mode: 'Mode', diff --git a/mateclaw-ui/src/i18n/locales/zh-CN.ts b/mateclaw-ui/src/i18n/locales/zh-CN.ts index 836ee0ad..54d1cf8a 100644 --- a/mateclaw-ui/src/i18n/locales/zh-CN.ts +++ b/mateclaw-ui/src/i18n/locales/zh-CN.ts @@ -1815,6 +1815,8 @@ export default { success: '成功', failed: '失败', skipped: '跳过', + running: '运行中', + pending: '等待中', }, report: { mode: '模式', diff --git a/mateclaw-ui/src/stores/useMemoryStore.ts b/mateclaw-ui/src/stores/useMemoryStore.ts index 4080a1b4..1d2799a9 100644 --- a/mateclaw-ui/src/stores/useMemoryStore.ts +++ b/mateclaw-ui/src/stores/useMemoryStore.ts @@ -51,8 +51,10 @@ export const useMemoryStore = defineStore('memory', () => { try { const res = await http.get(`/memory/${agentId}/dream/reports/${reportId}`) currentReport.value = res.data - } catch { + error.value = null + } catch (e: any) { currentReport.value = null + error.value = e.message || 'Failed to load report' } finally { loading.value = false } diff --git a/mateclaw-ui/src/views/Memory/components/MorningCard.vue b/mateclaw-ui/src/views/Memory/components/MorningCard.vue index 1cadfee3..39601594 100644 --- a/mateclaw-ui/src/views/Memory/components/MorningCard.vue +++ b/mateclaw-ui/src/views/Memory/components/MorningCard.vue @@ -18,7 +18,7 @@