-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Separate exercise list into current/previous exercises #69
base: main
Are you sure you want to change the base?
Conversation
That's a good idea. The 31 days cutoff seems fine to me. An alternative would be to consider as current only those exercises that are part of an active routine, or show all exercises that fulfill the former or latter condition. I have also no strong opinion here. I think it would be nicer if we omitted the heading "Current exercises". A similar approach is used for routines: There is a heading "Archive", but no heading "Current routines". We could also add a tooltip to explain what "Previous exercises" means (something like "Exercises that have not been done in the last 31 days"). The |
fe5a6fe
to
59b5bec
Compare
I'm in favor of using the 31 days cutoff for now and see how it goes. This is easily changed if we feel the behavior could be better.
Good suggestions - I changed the implementation accordingly. |
59b5bec
to
4827fbd
Compare
What would be the best way to fix the e2e tests?
As the test data is static (and in the past), all exercises likely show up in "Previous exercises" and don't seem to be found by |
The issue is that
We could make the test data parametrizable, so that a start date can be defined. A fixed value could be used for the API tests and a dynamic one for the E2E tests. But I think it would be also fine to not explicitly test this feature in the E2E tests. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a changelog entry for this change.
I chose the previous 31 days as the cutoff for current exercises, but have no strong opinion here...