diff --git a/apps/web/components/dashboard-view.tsx b/apps/web/components/dashboard-view.tsx index 26b9ab98..a344781d 100644 --- a/apps/web/components/dashboard-view.tsx +++ b/apps/web/components/dashboard-view.tsx @@ -9,9 +9,7 @@ import { useQuery } from "@tanstack/react-query" import { useRouter } from "next/navigation" import Image from "next/image" import { - Activity, ArrowRight, - Clock, ExternalLink, FileText, Lightbulb, @@ -651,198 +649,6 @@ function formatToolUsageTime(date: Date | null, hasBeenUsed: boolean): string { return date.toLocaleDateString() } -// Format absolute time for tooltip display -function formatAbsoluteTime(date: Date | null): string { - if (!date) return "" - return date.toLocaleString(undefined, { - month: "short", - day: "numeric", - hour: "numeric", - minute: "2-digit", - hour12: true, - }) -} - -// Check if item was active recently (within last hour) -function isRecentlyActive(date: Date | null): boolean { - if (!date) return false - return Date.now() - date.getTime() < 60 * 60 * 1000 -} - -function _RecentToolUsageCard({ - items, - onOpenPlugins, - onNavigateToMemories, - onOpenToolDocument, -}: { - items: ToolUsageItem[] - onOpenPlugins: () => void - onNavigateToMemories: () => void - onOpenToolDocument: (document: DocumentWithMemories) => void -}) { - // Show at most 3 items - const displayItems = items.slice(0, 3) - - // Empty state - no tool activity - if (displayItems.length === 0) { - return ( -
- No recent tool activity -
- -