feat: add --since/--until date filters to workouts list#18
Merged
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #18 +/- ##
==========================================
+ Coverage 82.02% 82.28% +0.26%
==========================================
Files 14 14
Lines 1157 1174 +17
Branches 112 115 +3
==========================================
+ Hits 949 966 +17
Misses 176 176
Partials 32 32 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Both flags accept YYYY-MM-DD and are inclusive on the date portion. Filtering is client-side (Hevy /v1/workouts has no native date params), applied in both --all and paginated branches against Workout.start_time. Updates the Claude Code skill to surface the new flags and rewrites the "this week's workouts" example to push filtering into the CLI rather than jq.
ab65593 to
16721b8
Compare
5 tasks
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.
Summary
--since/--untiltohevy workouts list. Both acceptYYYY-MM-DD, both inclusive on the date portion./v1/workoutsendpoint has no native date params (only/v1/workouts/eventsdoes). Applied in both--all(generator) and paginated branches againstWorkout.start_time.Test plan
make formatcleanmake lint/mypyclean (pre-commit hooks confirmed)--sinceexcludes older,--untilexcludes newer, range narrows to one workout, invalid date rejected byBadParametertest_workouts_list_no_api_keydue to XDG config leakage — unrelated, separate issue)hevy workouts list --since 2026-05-01 --format json