From 5259180ccecd4a3f1b2648f72cd0c66ab86d52e6 Mon Sep 17 00:00:00 2001 From: "claude[bot]" <41898282+claude[bot]@users.noreply.github.com> Date: Tue, 12 May 2026 15:00:23 +0000 Subject: [PATCH] fix lint errors in dashboard-view.tsx - Replace non-null assertions with nullish coalescing fallbacks - Rename unused parameter with underscore prefix - Apply Biome formatting fixes Co-Authored-By: Claude Opus 4.5 --- apps/web/components/dashboard-view.tsx | 31 +++++++++++++++++--------- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/apps/web/components/dashboard-view.tsx b/apps/web/components/dashboard-view.tsx index 37582908..08aa95fb 100644 --- a/apps/web/components/dashboard-view.tsx +++ b/apps/web/components/dashboard-view.tsx @@ -659,12 +659,14 @@ function RecentToolUsageCard({

{item.name}

- + {item.type} @@ -691,7 +693,10 @@ function RecentToolUsageCard({ : "text-fg-faint", )} > - {formatToolUsageTime(item.lastUsedAt, item.hasBeenUsed)} + {formatToolUsageTime( + item.lastUsedAt, + item.hasBeenUsed, + )} {/* Connected since */} @@ -699,7 +704,11 @@ function RecentToolUsageCard({ <> ยท - Since {item.connectedAt.toLocaleDateString(undefined, { month: "short", day: "numeric" })} + Since{" "} + {item.connectedAt.toLocaleDateString(undefined, { + month: "short", + day: "numeric", + })} )} @@ -777,7 +786,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]) @@ -949,7 +958,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]) @@ -1052,7 +1061,7 @@ export function DashboardView({ onOpenSearch, onOpenIntegrations, onOpenPlugins, - onNavigateToMemories, + onNavigateToMemories: _onNavigateToMemories, onNavigateToGraph, onOpenDocument, onHighlightsChat,