From 89777ce8b08c53ec0df1b9bc1836a41145ba9c6a Mon Sep 17 00:00:00 2001 From: Ishaan Gupta Date: Wed, 13 May 2026 11:05:51 +0530 Subject: [PATCH] add plugin on top and on hover show summary --- apps/web/components/dashboard-view.tsx | 29 +++++++++++++++++--------- 1 file changed, 19 insertions(+), 10 deletions(-) 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.icon ? ( @@ -888,6 +892,11 @@ function ToolUsageRecentRow({

{item.lastDocumentTitle ?? "No saved memory yet"}

+ {item.lastDocumentPreview ? ( +

+ {item.lastDocumentPreview} +

+ ) : null}
@@ -1509,7 +1518,7 @@ export function DashboardView({

- Recently saved + Recents

@@ -1522,6 +1531,14 @@ export function DashboardView({ {/* Content row */}
    + {recentToolUsageItems.map((item) => ( + + ))} {recents.map((doc) => { const isLink = !!doc.url return ( @@ -1546,14 +1563,6 @@ export function DashboardView({ ) })} - {recentToolUsageItems.map((item) => ( - - ))}