Skip to content
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

feat: Timeline Filters #3284

Merged

Conversation

michael-genson
Copy link
Collaborator

What type of PR is this?

(REQUIRED)

  • feature

What this PR does / why we need it:

(REQUIRED)

Adds filters to the recipe timeline:
image

Filters are stored in user preferences so they're persisted. When one or more filters are selected, there's a badge on the button:
image

There are also a few miscellaneous improvements:

  • Translated some previously un-translated text
  • Replaced the message for zero timeline items to make more sense in all contexts
  • Updated the Recipe Explore filters with a few tweaks I made to improve the timeline filters
  • Extracted the recipe timeline enum data into a composable so I don't need to keep writing switch statements

Which issue(s) this PR fixes:

(REQUIRED)

Closes #3250

Testing

Manually poking around

Copy link
Collaborator

@Kuchenpirat Kuchenpirat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks pretty good 🚀

One bug i have found that if you deselect the filter Checkboxes quite quickly it cannot follow. (Image below)
The checkboxes show everything deselected but the badge shows only one filter, and that is also how the timelime behaves as events are still displayed. The severity of this might increase when the user uses a slower system/connection, or has a lot of timeline events.

image

michael-genson and others added 4 commits March 11, 2024 14:37
Co-authored-by: Kuchenpirat <24235032+Kuchenpirat@users.noreply.github.com>
Co-authored-by: Kuchenpirat <24235032+Kuchenpirat@users.noreply.github.com>
@michael-genson
Copy link
Collaborator Author

Pretty sure the bug you saw with the checkbox being out of sync is fixed. Let me know if you're able to reproduce. I noticed it only got out of sync when clicking on the checkbox (vs clicking on the label) so try clicking on both, if you can

@Kuchenpirat Kuchenpirat self-assigned this Mar 12, 2024
Copy link
Collaborator

@Kuchenpirat Kuchenpirat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks all good 👍
Can't reproduce the bug anymore. Neither by using the checkboxes, nor the labels themselves.

@Kuchenpirat Kuchenpirat enabled auto-merge (squash) March 12, 2024 15:14
@Kuchenpirat Kuchenpirat merged commit 0a34473 into mealie-recipes:mealie-next Mar 12, 2024
10 checks passed
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.

None yet

2 participants