Repository navigation
feat: add an inclusive until date for session reports - #12
Merged
emrehangorgec merged 1 commit intoOct 26, 2026
Merged
Conversation
Owner
|
thanks for the contribution |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
--allreports 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 --checkpass. 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.