Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(dashboard): correct cost display for zero-value entries

Steven Enamakel5e011f9d547b
diff --git a/app/src/components/dashboard/CostDashboardPanel.tsx b/app/src/components/dashboard/CostDashboardPanel.tsx
index adc969b8ca..8eb07fac0f 100644
--- a/app/src/components/dashboard/CostDashboardPanel.tsx
+++ b/app/src/components/dashboard/CostDashboardPanel.tsx
@@ -136,7 +136,7 @@ const CostDashboardPanel = ({ embedded = false }: CostDashboardPanelProps) => {
{!hasAnyUsage && (
<Card data-testid="cost-dashboard-empty">
<div className="space-y-1 px-4 py-6 text-center">
- <EmptyState label={t('settings.costDashboard.noData')} />
+ <EmptyState className="p-0 text-sm" label={t('settings.costDashboard.noData')} />
<p className="text-xs text-content-faint">
{t('settings.costDashboard.noDataHint')}
</p>
diff --git a/app/src/components/dashboard/ModelCostTable.tsx b/app/src/components/dashboard/ModelCostTable.tsx
index 7ce50a619a..5b0c001128 100644
--- a/app/src/components/dashboard/ModelCostTable.tsx
+++ b/app/src/components/dashboard/ModelCostTable.tsx
@@ -14,9 +14,7 @@ const ModelCostTable = ({ models, currency }: ModelCostTableProps) => {
const { t } = useT();
if (models.length === 0) {
return (
- <div data-testid="model-cost-table-empty" className="p-4">
- <EmptyState label={t('settings.costDashboard.noModels')} />
- </div>
+ <EmptyState data-testid="model-cost-table-empty" label={t('settings.costDashboard.noModels')} />
);
}
diff --git a/app/src/pages/Skills.tsx b/app/src/pages/Skills.tsx
index 97d8593654..85e440f174 100644
--- a/app/src/pages/Skills.tsx
+++ b/app/src/pages/Skills.tsx
@@ -1,7 +1,8 @@
-import { Check, ChevronRight, Info } from 'lucide-react';
+import { Check, ChevronRight, Info, MessageSquare } from 'lucide-react';
import { useCallback, useEffect, useMemo, useState } from 'react';
import { useLocation, useNavigate } from 'react-router-dom';
+import { renderChannelIcon } from '../components/channels/channelIcon';
import ChannelSetupModal from '../components/channels/ChannelSetupModal';
import McpServersPage from '../components/channels/mcp/McpServersPage';
import ComposioConnectModal from '../components/composio/ComposioConnectModal';
@@ -321,7 +322,9 @@ function ChannelTile({
aria-label={`${def.display_name}, ${statusLabel}. ${ctaLabel}.`}
className="h-auto w-full justify-start gap-3 rounded-b-none rounded-t-xl px-3 py-3 text-left">
<span className="flex h-9 w-9 shrink-0 items-center justify-center rounded-lg bg-surface-muted text-content-secondary [&>span]:h-9 [&>span]:w-9 [&>span]:rounded-lg [&_svg]:h-5 [&_svg]:w-5">
- {icon}
+ {/* Branded badge when there is one, else the definition's own icon,
+ else a generic chat glyph — never an empty tile. */}
+ {icon ?? renderChannelIcon(def.icon) ?? <MessageSquare aria-hidden />}
</span>
<span className="min-w-0 flex-1">
<span className="block truncate text-sm font-semibold text-content">