Skip to content

Commit e4a1d31

Browse files
committed
fix(home): adjust CommandTrendChart params and recharts tooltip styles
1 parent 3f2eaef commit e4a1d31

2 files changed

Lines changed: 13 additions & 2 deletions

File tree

src/index.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,3 +311,14 @@ article.prose [align="left"] {
311311
.scrollbar-thin::-webkit-scrollbar-thumb:hover {
312312
background: var(--muted-foreground);
313313
}
314+
315+
/* Recharts tooltip fix */
316+
.recharts-tooltip-wrapper {
317+
z-index: 1000 !important;
318+
pointer-events: none !important;
319+
}
320+
321+
.recharts-tooltip-wrapper > div {
322+
background: #FFFFFF !important;
323+
opacity: 1 !important;
324+
}

src/views/Home/Home.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export function Home({ onFeatureClick, onProjectClick, onSessionClick, onSearch
2525
const { data: commandWeeklyStats } = useInvokeQuery<Record<string, Record<string, number>>>(
2626
["commandWeeklyStats"],
2727
"get_command_weekly_stats",
28-
{ weeks: 12 }
28+
{ weeks: 0 } // 0 = all time, filtering done in CommandTrendChart
2929
);
3030

3131
const data = projects && sessions && commands ? { projects, sessions, commands } : null;
@@ -85,7 +85,7 @@ export function Home({ onFeatureClick, onProjectClick, onSessionClick, onSearch
8585
{/* Command Trend Chart */}
8686
{commandWeeklyStats && Object.keys(commandWeeklyStats).length > 0 && (
8787
<div className="mt-4 pt-4 border-t border-border/40">
88-
<CommandTrendChart data={commandWeeklyStats} weeks={12} />
88+
<CommandTrendChart data={commandWeeklyStats} weeks={13} />
8989
</div>
9090
)}
9191
{/* Inline Stats */}

0 commit comments

Comments
 (0)