diff --git a/apps/web/components/dashboard-view.tsx b/apps/web/components/dashboard-view.tsx index 30f98901..f0e19893 100644 --- a/apps/web/components/dashboard-view.tsx +++ b/apps/web/components/dashboard-view.tsx @@ -324,7 +324,7 @@ const PLUGIN_DISPLAY_CATALOG: Record< }, codex: { name: "OpenAI Codex", - icon: null, + icon: "/mcp-supported-tools/codex.png", type: "Plugin", }, } @@ -665,7 +665,7 @@ function isRecentlyActive(date: Date | null): boolean { return Date.now() - date.getTime() < 60 * 60 * 1000 } -function RecentToolUsageCard({ +function _RecentToolUsageCard({ items, onOpenPlugins, onNavigateToMemories, @@ -839,6 +839,61 @@ function RecentToolUsageCard({ ) } +function ToolUsageRecentRow({ + item, + onOpenPlugins, + onOpenToolDocument, +}: { + item: ToolUsageItem + onOpenPlugins: () => void + onOpenToolDocument: (document: DocumentWithMemories) => void +}) { + return ( +
  • + +
  • + ) +} + function RecommendedPluginsCard({ profession, setProfession, @@ -1154,7 +1209,7 @@ export function DashboardView({ onOpenSearch, onOpenIntegrations, onOpenPlugins, - onNavigateToMemories, + onNavigateToMemories: _onNavigateToMemories, onNavigateToGraph, onOpenDocument, onOpenToolDocument, @@ -1285,6 +1340,9 @@ export function DashboardView({ } = usePersonalization() const recents = recentsData?.documents ?? [] + const recentToolUsageItems = toolUsageItems + .filter((item) => item.type === "Plugin") + .slice(0, 3) const totalMemories = recentsData?.pagination?.totalItems ?? 0 const hasMcp = mcpData?.previousLogin ?? false const connectedProviders = new Set(connections.map((c) => c.provider)) @@ -1439,17 +1497,17 @@ export function DashboardView({

    - {/* Recently saved + Suggested for you + Pick up where you left off */} + {/* Recently saved + Suggested for you */} - {recents.length > 0 ? ( + {recents.length > 0 || recentToolUsageItems.length > 0 ? ( <> {/* Shared header row — all labels aligned */}
    -
    +

    Recently saved

    @@ -1459,16 +1517,11 @@ export function DashboardView({ Suggested for you

    -
    -

    - Pick up where you left off -

    -
    {/* Content row */}
    -
      +
        {recents.map((doc) => { const isLink = !!doc.url return ( @@ -1493,6 +1546,14 @@ export function DashboardView({ ) })} + {recentToolUsageItems.map((item) => ( + + ))}
      @@ -1505,29 +1566,6 @@ export function DashboardView({ onOpenIntegrations={onOpenIntegrations} />
      - - {/* Pick up where you left off - desktop only */} -
      - -
      -
    - - {/* Mobile/tablet: Show pick up where you left off below */} -
    -

    - Pick up where you left off -

    -
    ) : ( @@ -1539,11 +1577,6 @@ export function DashboardView({ Suggested for you

    -
    -

    - Pick up where you left off -

    -
    @@ -1556,26 +1589,6 @@ export function DashboardView({ onOpenIntegrations={onOpenIntegrations} />
    -
    - -
    -
    - {/* Mobile: Show tool usage below */} -
    -

    - Pick up where you left off -

    -
    )}