Skip to content

Commit 2246ee8

Browse files
waterdrop86claude
andcommitted
feat: show monthly bar chart in 90-day stats dashboard view
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 291c148 commit 2246ee8

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/renderer/components/Dashboard/StatsDashboard.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,6 @@ function StatsDashboard({ onClose }: StatsDashboardProps): React.JSX.Element {
292292
const spanYears = range === 'all' || range === '1y'
293293
? (oldestSeen.slice(0, 4) !== today.slice(0, 4))
294294
: false;
295-
const showMonthlyBars = range !== '90d';
296295

297296
// Aggregate lifetime totals across the loaded range
298297
const totals = useMemo(() => {
@@ -485,7 +484,7 @@ function StatsDashboard({ onClose }: StatsDashboardProps): React.JSX.Element {
485484
/>
486485
}
487486
monthly={
488-
showMonthlyBars && monthlyCommits.length > 0 ? (
487+
monthlyCommits.length > 0 ? (
489488
<MonthlyBarChart
490489
entries={monthlyCommits}
491490
formatTooltipValue={(v) => `${formatNumber(v)} commits`}
@@ -510,7 +509,7 @@ function StatsDashboard({ onClose }: StatsDashboardProps): React.JSX.Element {
510509
/>
511510
}
512511
monthly={
513-
showMonthlyBars && monthlyCost.length > 0 ? (
512+
monthlyCost.length > 0 ? (
514513
<MonthlyBarChart
515514
entries={monthlyCost}
516515
formatTooltipValue={(v) => formatCost(v)}
@@ -535,7 +534,7 @@ function StatsDashboard({ onClose }: StatsDashboardProps): React.JSX.Element {
535534
/>
536535
}
537536
monthly={
538-
showMonthlyBars && monthlyInputMsgs.length > 0 ? (
537+
monthlyInputMsgs.length > 0 ? (
539538
<MonthlyBarChart
540539
entries={monthlyInputMsgs}
541540
formatTooltipValue={(v) => `${formatNumber(v)} prompts`}

0 commit comments

Comments
 (0)