diff --git a/apps/web/components/document-modal/graph-list-memories.tsx b/apps/web/components/document-modal/graph-list-memories.tsx index a5279f70..313424e7 100644 --- a/apps/web/components/document-modal/graph-list-memories.tsx +++ b/apps/web/components/document-modal/graph-list-memories.tsx @@ -169,9 +169,11 @@ function VersionStatus({ export function GraphListMemories({ memoryEntries, documentId, + className, }: { memoryEntries: MemoryEntry[] documentId?: string + className?: string }) { const { effectiveContainerTags } = useProject() const [expandedMemories, setExpandedMemories] = useState>( @@ -193,7 +195,10 @@ export function GraphListMemories({ return (
0), + ) + + const documentPreview = ( +
+ +
+ ) + + const documentInsights = ( +
+ {hasPluginInsights && } + {_document && (_document.summary || pluginDocument?.summary) && ( + + )} + {_document?.memoryEntries && _document.memoryEntries.length > 0 && ( + + )} +
+ ) + const modalContent = ( <> {isMobile ? ( @@ -336,51 +388,43 @@ export function DocumentModal({ )}
-
-
- + + + Content + + + Insights + + + + {documentPreview} + + + {documentInsights} + + + ) : isMobile ? ( +
{documentPreview}
+ ) : ( +
+ {documentPreview} + {documentInsights}
-
- {pluginDocument && - pluginDocument.kind !== "claude-code-doc" && - pluginDocument.kind !== "openclaw-session" && ( - - )} - {_document && (_document.summary || pluginDocument?.summary) && ( - - )} - {_document?.memoryEntries && _document.memoryEntries.length > 0 && ( - - )} -
-
+ )} )