+ {/* Header with Notion branding */}
+
+
+
+
+ Notion
+
+
+ {/* Decorative dots mimicking Notion's block handles */}
+
+
+
+ {/* Content area — structured block preview */}
+
+ {document.title && (
+
+ {document.title}
+
+ )}
+
+ {blocks.length > 0 ? (
+
+ {blocks.map((block, i) => {
+ if (block.type === "divider") {
+ return
+ }
+
+ if (block.type === "heading") {
+ return (
+
+ {block.text}
+
+ )
+ }
+
+ if (block.type === "todo") {
+ return (
+
+
+ {block.checked && (
+
+ )}
+
+
+ {block.text}
+
+
+ )
+ }
+
+ if (block.type === "bullet") {
+ return (
+
+ )
+ }
+
+ return (
+
+ {block.text}
+
+ )
+ })}
+
+ ) : document.summary ? (
+
+ {document.summary}
+
+ ) : null}
+
+
+ {/* Footer */}
+ {(document.memoryEntries.length > 0 || document.createdAt) && (
+
+ {document.memoryEntries.length > 0 && (
+
+
+ {document.memoryEntries.length}
+
+ )}
+
+ {new Date(document.createdAt).toLocaleDateString("en-US", {
+ month: "short",
+ day: "numeric",
+ year: "numeric",
+ })}
+
+
+ )}
+
+ )
+}
diff --git a/apps/web/components/new/document-modal/graph-list-memories.tsx b/apps/web/components/new/document-modal/graph-list-memories.tsx
index 0c2e418f..c61ba0d7 100644
--- a/apps/web/components/new/document-modal/graph-list-memories.tsx
+++ b/apps/web/components/new/document-modal/graph-list-memories.tsx
@@ -1,6 +1,7 @@
import { useState } from "react"
import { cn } from "@lib/utils"
-import { Tabs, TabsList, TabsTrigger } from "@ui/components/tabs"
+import { Tabs, TabsList, TabsTrigger, TabsContent } from "@ui/components/tabs"
+import { MemoryGraph } from "../memory-graph"
export interface MemoryEntry {
id: string
@@ -166,8 +167,10 @@ function VersionStatus({
export function GraphListMemories({
memoryEntries,
+ documentId,
}: {
memoryEntries: MemoryEntry[]
+ documentId?: string
}) {
const [expandedMemories, setExpandedMemories] = useState