Commit Graph

3 Commits

Author SHA1 Message Date
c45e026ab3 fix: add explicit type annotations to setState callbacks in time-range-context
Fixes TypeScript strict mode error where callback parameters implicitly had 'any' type.
2026-04-07 15:26:15 +08:00
8b91aa3e97 feat: add output/input ratio column to aggregation page
Add a sortable "Out/In Ratio" (completion_tokens / prompt_tokens)
column with a portal-based tooltip explaining the metric. Fix
hydration mismatch by switching to useSyncExternalStore for
localStorage reads in TimeRangeProvider. Update CLAUDE.md with
project documentation.
2026-04-07 15:09:23 +08:00
9bb36432ba feat: global time range context with custom date picker
Lift time range state into a shared React context so the selected
range persists across page navigation and browser refreshes
(localStorage). Add a "Custom" option with a popover date picker
that lets users specify arbitrary start/end dates. All preset end
times now use endOf("day") (23:59:59) instead of the current moment.
2026-04-07 14:49:58 +08:00