Skip to content

[codex] Add capture trend range controls - #18

Merged
JS-banana merged 1 commit into
devfrom
codex/capture-trend-ranges
May 14, 2026
Merged

JS-banana merged 1 commit into
devfrom
codex/capture-trend-ranges

Conversation

@JS-banana

Copy link
Copy Markdown
Owner

Summary

  • replace the fixed 30-day library trend chart with a scoped 会话趋势 chart
  • add 7 日, 30 日, 本月, and 今年 range options with 本月 as the default
  • aggregate sessions by local calendar dates and leave future days/months blank instead of treating them as zero activity
  • add focused helper and component tests for range behavior and date boundaries

Validation

  • pnpm --dir apps/desktop exec vitest run src/renderer/src/components/library/capture-trend-data.test.tsx src/renderer/src/components/library/CaptureTrendChart.test.tsx src/renderer/src/App.test.tsx
  • pnpm desktop:test
  • pnpm desktop:build

@JS-banana
JS-banana marked this pull request as ready for review May 14, 2026 07:39
@JS-banana
JS-banana merged commit 6588d66 into dev May 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant