diff --git a/apps/web/components/dashboard-view.tsx b/apps/web/components/dashboard-view.tsx index 3a9371c4..de7fc6de 100644 --- a/apps/web/components/dashboard-view.tsx +++ b/apps/web/components/dashboard-view.tsx @@ -243,14 +243,14 @@ const PROFESSION_LABELS: { value: Exclude label: string }[] = [ - { value: "developer", label: "Developer" }, - { value: "research", label: "Researcher" }, - { value: "finance", label: "Finance" }, - { value: "design", label: "Designer" }, - { value: "legal", label: "Legal" }, - { value: "marketing", label: "Marketing" }, - { value: "medical", label: "Medical" }, - ] + { value: "developer", label: "Developer" }, + { value: "research", label: "Researcher" }, + { value: "finance", label: "Finance" }, + { value: "design", label: "Designer" }, + { value: "legal", label: "Legal" }, + { value: "marketing", label: "Marketing" }, + { value: "medical", label: "Medical" }, +] // Static plugin metadata — shared between PluginPromoCard and RecommendedPluginsCard const PLUGIN_STATIC = [ @@ -366,7 +366,10 @@ function parseToolUsage( let latestMcpDocumentAt: Date | null = null // Track latest document per plugin client - const latestDocPerPlugin = new Map() + const latestDocPerPlugin = new Map< + string, + { title: string; id: string; at: Date } + >() for (const key of apiKeys) { let meta: Record = {} @@ -674,12 +677,14 @@ function RecentToolUsageCard({

{item.name}

- + {item.type} @@ -705,8 +710,10 @@ function RecentToolUsageCard({ > {item.hasBeenUsed && item.lastUsedAt ? `${formatToolUsageTime(item.lastUsedAt, true)} · ${formatAbsoluteTime(item.lastUsedAt)}` - : formatToolUsageTime(item.lastUsedAt, item.hasBeenUsed) - } + : formatToolUsageTime( + item.lastUsedAt, + item.hasBeenUsed, + )} {/* Connected since */} @@ -716,7 +723,11 @@ function RecentToolUsageCard({ - Since {item.connectedAt.toLocaleDateString(undefined, { month: "short", day: "numeric" })} + Since{" "} + {item.connectedAt.toLocaleDateString(undefined, { + month: "short", + day: "numeric", + })} @@ -772,7 +783,7 @@ function RecommendedPluginsCard({ return PLUGIN_STATIC.map((p) => ({ ...p, connected: connected[p.id] ?? false, - onClick: onClicks[p.id] ?? (() => { }), + onClick: onClicks[p.id] ?? (() => {}), })) }, [hasMcp, connectedProviders, onOpenPlugins, onOpenIntegrations]) @@ -944,7 +955,7 @@ function PluginPromoCard({ return PLUGIN_STATIC.map((p) => ({ ...p, connected: connected[p.id] ?? false, - onClick: onClicks[p.id] ?? (() => { }), + onClick: onClicks[p.id] ?? (() => {}), })).filter((p) => !p.connected) }, [hasMcp, connectedProviders, onOpenPlugins, onOpenIntegrations])