Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix(usage): render BarChart3 icon in UsagePage PageHeader

[._.]/ Adam Eivye196a0befc69
diff --git a/client/src/pages/UsagePage.jsx b/client/src/pages/UsagePage.jsx
index f6027adecb..7a6fea4552 100644
--- a/client/src/pages/UsagePage.jsx
+++ b/client/src/pages/UsagePage.jsx
@@ -2,7 +2,7 @@ import PageHeader from '../components/PageHeader';
import PageLayout from '../components/PageLayout';
import { useCallback, useState, useEffect, useRef } from 'react';
import { useSearchParams } from 'react-router';
-import { RefreshCw, AlertTriangle, DatabaseZap, Network } from 'lucide-react';
+import { RefreshCw, AlertTriangle, DatabaseZap, Network, BarChart3 } from 'lucide-react';
import * as api from '../services/api';
import BrailleSpinner from '../components/BrailleSpinner';
import PageSkeleton from '../components/ui/PageSkeleton';
@@ -1015,7 +1015,7 @@ function InternalUsageMetrics() {
export function UsagePage() {
return (
- <PageLayout header={<PageHeader title="Subscription Usage" />} navigation={<ModelsTabsHeader activeTab="usage" />}>
+ <PageLayout header={<PageHeader icon={BarChart3} title="Subscription Usage" />} navigation={<ModelsTabsHeader activeTab="usage" />}>
<div className="space-y-6">
<ProviderQuotaSection />
<InternalUsageMetrics />
diff --git a/client/src/pages/UsagePage.test.jsx b/client/src/pages/UsagePage.test.jsx
index 26675881f4..7da8148a16 100644
--- a/client/src/pages/UsagePage.test.jsx
+++ b/client/src/pages/UsagePage.test.jsx
@@ -768,4 +768,15 @@ describe('UsagePage image accounting', () => {
await act(async () => { socket.emit('image-gen:completed', { mode: 'codex' }); });
await waitFor(() => expect(api.getUsage.mock.calls.length).toBe(reads + 1));
});
+
+ it('renders PageHeader with the BarChart3 icon', async () => {
+ api.getUsage.mockResolvedValue(usage);
+ render(<MemoryRouter><UsagePage /></MemoryRouter>);
+ const heading = screen.getByRole('heading', { level: 1, name: 'Subscription Usage' });
+ expect(heading).toBeInTheDocument();
+ const icon = heading.parentElement?.parentElement?.querySelector('svg');
+ expect(icon).toBeInTheDocument();
+ expect(icon).toHaveClass('lucide-chart-column');
+ await act(async () => {});
+ });
});