Skip to content

feat: add an inclusive until date for session reports - #12

Merged
emrehangorgec merged 1 commit into
emrehangorgec:mainfrom
snehaapratap:feat/10-until-date
Oct 26, 2026
Merged

emrehangorgec merged 1 commit into
emrehangorgec:mainfrom
snehaapratap:feat/10-until-date

Conversation

@snehaapratap

Copy link
Copy Markdown
Contributor

Add --until <date> so reports can select a bounded period such as --since 2026-09-01 --until 2026-09-30. It uses the existing date parser, includes sessions starting through the final UTC millisecond of the selected day, and rejects an end date before --since.

Fixes #10. Single-session, project and --all reports use the same bounds; unknown start dates are excluded when filtering, and budgets use the filtered total. Card plan comparisons also end at --until; without an explicit start, their 30-day window ends on that day. Card rendering/layout is unchanged. Help and README document absolute dates, relative dates and the card behavior.

Validation: all 132 tests pass (23 files), including the existing golden snapshots. Seven new date-filter test cases failed before implementation. Added coverage for UTC boundaries, same-day/inverted windows, malformed and relative dates, no matches, budget filtering and plan fees. TypeScript typecheck/build, the offline pricing audit and git diff --check pass. Tests use temporary homes with fixture-derived session data; no personal session logs or network pricing requests were used.

Implemented and reviewed with OpenAI Codex assistance.

@emrehangorgec

Copy link
Copy Markdown
Owner

thanks for the contribution

@emrehangorgec
emrehangorgec merged commit fcbf81b into emrehangorgec:main Oct 26, 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.

--until <date> to set an end date for the report

2 participants