From f46c8a140c62cf2a52b43fa0aa6011377d25dfa1 Mon Sep 17 00:00:00 2001 From: olayinkaadelakun Date: Mon, 25 May 2026 13:42:43 -0700 Subject: [PATCH] feat(memories): redesign MemoryDetailsHeader UI and update tests (#13263) * feat(memory): improve memory UI with empty states, toasts, and model filtering * [autofix.ci] apply automated fixes * fix: capture memory id/name before setTimeout to prevent stale closure null access * error improvement and testcase addition * fix: surface refresh errors, restore API error messages, flatten sidebar ternary, and add keyboard access to batch-size tooltip * [autofix.ci] apply automated fixes * biome fix * fix types * [autofix.ci] apply automated fixes * fix: UI polish for Memories and Traces sidebar sections * [autofix.ci] apply automated fixes * feat(memories): surface memory config in summary card with popover details * fix: replace magic index, template literals, and inline noops in Memories/Traces sidebar * [autofix.ci] apply automated fixes * ruff fix * fix testcases * improve testcase cov import clean up * [autofix.ci] apply automated fixes * fix import order * accessibility fix * [autofix.ci] apply automated fixes * feat(memories): make preprocessing instructions required with tooltip hint * ruff fix * [autofix.ci] apply automated fixes * feat(memories): redesign MemoryDetailsHeader UI and update tests * [autofix.ci] apply automated fixes * ruff fixes --------- Co-authored-by: Olayinka Adelakun Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Olayinka Adelakun --- src/frontend/src/locales/en.json | 2 +- .../components/MemoriesSidebar.tsx | 35 ++-- .../components/MemoryDetailsHeader.tsx | 184 ++++++++---------- .../__tests__/MemoryDetailsHeader.test.tsx | 41 ++-- 4 files changed, 131 insertions(+), 131 deletions(-) diff --git a/src/frontend/src/locales/en.json b/src/frontend/src/locales/en.json index a77e394e66..69c07399bb 100644 --- a/src/frontend/src/locales/en.json +++ b/src/frontend/src/locales/en.json @@ -1555,7 +1555,6 @@ "memory.noChunksRunFlow": "Run a flow, and chunks will start appearing automatically.", "memory.noId": "(no id)", "memory.preprocessing": "Preprocessing:", - "memory.preprocessingPromptPlaceholder": "Produce a concise summary that captures key facts and context.", "memory.processedMessages": "Processed Messages", "memory.providerLabel": "Provider:", "memory.reloadSessions": "Reload sessions and messages", @@ -1566,6 +1565,7 @@ "memory.preprocessingInstructions": "Preprocessing instructions:", "memory.preprocessingInstructionsHint": "Summarize the key context, facts, and user preferences from this chat to remember for future conversations, skipping the casual chitchat.", "memory.senderLabel": "Sender:", + "memory.activate": "Activate", "memory.sessionFilter": "Session filter", "memory.sessionLabel": "Session:", "memory.timestampLabel": "Timestamp:", diff --git a/src/frontend/src/pages/FlowPage/components/MemoriesMainContent/components/MemoriesSidebar.tsx b/src/frontend/src/pages/FlowPage/components/MemoriesMainContent/components/MemoriesSidebar.tsx index b531aaee77..1945c888c8 100644 --- a/src/frontend/src/pages/FlowPage/components/MemoriesMainContent/components/MemoriesSidebar.tsx +++ b/src/frontend/src/pages/FlowPage/components/MemoriesMainContent/components/MemoriesSidebar.tsx @@ -1,9 +1,9 @@ import type { UIEvent } from "react"; +import { useTranslation } from "react-i18next"; import IconComponent from "@/components/common/genericIconComponent"; import { Button } from "@/components/ui/button"; import { Input } from "@/components/ui/input"; import { cn } from "@/utils/utils"; -import { useTranslation } from "react-i18next"; import { SIDEBAR_SCROLL_THRESHOLD_PX } from "../MemoriesMainContent.constants"; import { MemoriesSidebarProps } from "../types"; @@ -32,24 +32,23 @@ export function MemoriesSidebar({ return (