Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 36 additions & 25 deletions packages/web/src/components/dashboard/overview-stats.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,36 +85,47 @@ export function OverviewStats({
<button
type="button"
onClick={() => setExpanded(v => !v)}
id="overview-stats-explanation-toggle"
aria-expanded={expanded}
aria-controls="overview-stats-explanation"
className="mt-4 flex items-center gap-2 text-xs text-muted-foreground hover:text-foreground transition-colors"
>
<span className={cn('inline-block transition-transform', expanded && 'rotate-90')}>โ–ธ</span>
<span
aria-hidden="true"
className={cn('inline-block transition-transform', expanded && 'rotate-90')}
>
โ–ธ
</span>
<span className="font-medium text-foreground">What do these numbers mean?</span>
<span>โ€” {expanded ? 'click to collapse' : 'click to expand'}</span>
<span aria-hidden="true">โ€” {expanded ? 'click to collapse' : 'click to expand'}</span>
</button>

{expanded && (
<div className="mt-3 text-xs text-muted-foreground space-y-2 leading-relaxed">
<p>
<span className="font-medium text-foreground">Sessions</span> โ€” ํŒ€์›๋“ค์ด ์‹œ์ž‘ํ•œ Claude Code ์„ธ์…˜ ์ˆ˜.
</p>
<p>
<span className="font-medium text-foreground">Turns</span> โ€” Human โ†’ Assistant ํ•œ ๋ฒˆ์˜ ์™•๋ณต(Stop ์ด๋ฒคํŠธ ๊ธฐ์ค€).
</p>
<p>
<span className="font-medium text-foreground">Input / Output</span> โ€” Claude์— ๋ณด๋‚ธ ํ† ํฐ๊ณผ Claude๊ฐ€ ์‘๋‹ต์œผ๋กœ ์“ด ํ† ํฐ์˜ ํ•ฉ๊ณ„.
</p>
<p>
<span className="font-medium text-foreground">Cache Create</span> โ€” ์žฌ์‚ฌ์šฉ์„ ์œ„ํ•ด ์ €์žฅ๋œ ํ† ํฐ(์˜ˆ: CLAUDE.md).
ํ•œ ๋ฒˆ ์ง€๋ถˆํ•˜๋ฉด ์ดํ›„ ์ฝ๊ธฐ๋Š” ํ›จ์”ฌ ์ €๋ ดํ•ด์ง‘๋‹ˆ๋‹ค.
</p>
<p>
<span className="font-medium text-foreground">Cache Read</span> โ€” ์บ์‹œ์—์„œ ์žฌ์‚ฌ์šฉ๋œ ํ† ํฐ. ์ผ๋ฐ˜ input ๋Œ€๋น„ ์•ฝ ~10ร— ์‹ธ๋ฏ€๋กœ ์ด ์ˆซ์ž๊ฐ€ ๋†’์€ ๊ฑด ์ข‹์€ ์‹ ํ˜ธ์ž…๋‹ˆ๋‹ค.
</p>
<p>
<span className="font-medium text-foreground">Est. Cost</span> โ€” ๋ชจ๋ธ๋ณ„ ๊ณต์‹ ๋‹จ๊ฐ€๋กœ ๊ณ„์‚ฐํ•œ ์ถ”์ • ์ฒญ๊ตฌ์•ก (USD).
</p>
</div>
)}
<div
id="overview-stats-explanation"
hidden={!expanded}
className="mt-3 text-xs text-muted-foreground space-y-2 leading-relaxed"
>
<p>
<span className="font-medium text-foreground">Sessions</span> โ€” ํŒ€์›๋“ค์ด ์‹œ์ž‘ํ•œ Claude Code ์„ธ์…˜ ์ˆ˜.
</p>
<p>
<span className="font-medium text-foreground">Turns</span> โ€” Human โ†’ Assistant ํ•œ ๋ฒˆ์˜ ์™•๋ณต(Stop ์ด๋ฒคํŠธ ๊ธฐ์ค€).
</p>
<p>
<span className="font-medium text-foreground">Input / Output</span> โ€” Claude์— ๋ณด๋‚ธ ํ† ํฐ๊ณผ Claude๊ฐ€ ์‘๋‹ต์œผ๋กœ ์“ด ํ† ํฐ์˜ ํ•ฉ๊ณ„.
</p>
<p>
<span className="font-medium text-foreground">Cache Create</span> โ€” ์žฌ์‚ฌ์šฉ์„ ์œ„ํ•ด ์ €์žฅ๋œ ํ† ํฐ(์˜ˆ: CLAUDE.md). ํ•œ ๋ฒˆ ์ง€๋ถˆํ•˜๋ฉด
์ดํ›„ ์ฝ๊ธฐ๋Š” ํ›จ์”ฌ ์ €๋ ดํ•ด์ง‘๋‹ˆ๋‹ค.
</p>
<p>
<span className="font-medium text-foreground">Cache Read</span> โ€” ์บ์‹œ์—์„œ ์žฌ์‚ฌ์šฉ๋œ ํ† ํฐ. ์ผ๋ฐ˜ input ๋Œ€๋น„ ์•ฝ ~10ร— ์‹ธ๋ฏ€๋กœ ์ด ์ˆซ์ž๊ฐ€
๋†’์€ ๊ฑด ์ข‹์€ ์‹ ํ˜ธ์ž…๋‹ˆ๋‹ค.
</p>
<p>
<span className="font-medium text-foreground">Est. Cost</span> โ€” ๋ชจ๋ธ๋ณ„ ๊ณต์‹ ๋‹จ๊ฐ€๋กœ ๊ณ„์‚ฐํ•œ ์ถ”์ • ์ฒญ๊ตฌ์•ก (USD).
</p>
</div>
</div>
)
}
Loading