diff --git a/apps/web/components/dashboard-view.tsx b/apps/web/components/dashboard-view.tsx index 945f5b91..26b9ab98 100644 --- a/apps/web/components/dashboard-view.tsx +++ b/apps/web/components/dashboard-view.tsx @@ -397,6 +397,10 @@ function getPluginClientFromDocument( } function getDocumentPreview(document: DocumentWithMemories): string | null { + const summary = + typeof document.summary === "string" ? compactText(document.summary) : "" + if (summary) return summary + const content = getDocumentText(document) if (!content) return document.title?.trim() || null @@ -859,7 +863,7 @@ function ToolUsageRecentRow({ } onOpenPlugins() }} - className="group flex w-full items-center gap-3 rounded-lg px-2.5 py-2 text-left transition-colors hover:bg-surface-hover" + className="group flex w-full items-start gap-3 rounded-lg px-2.5 py-2 text-left transition-all hover:bg-surface-hover hover:py-2.5" >
{item.lastDocumentTitle ?? "No saved memory yet"}
+ {item.lastDocumentPreview ? ( ++ {item.lastDocumentPreview} +
+ ) : null}- Recently saved + Recents