-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Date filter improvements #5917
Comments
Implementation Steps
References |
Related to #6299 that should be handled first |
Relative for range only or can I set a relative date for a simple filter? (e.g. before Today) |
You mean add
within the following list?
Yes we can! |
@Bonapara Mmm kind of but "before last 2 weeks" wouldn't really make sense? |
editedWe should add "is today," "is in the past," and "is in the future" because a simple "Before" and "After" are not relative and will change as the date changes. |
Hello, I'd like to work on this after #5398, could you please assign this issue to me? |
@ad-elias are you still on it? :) |
@Bonapara yes he is! |
Solves issue #5917. This PR is now ready for the first review! Filters do not fully work yet, there's a problem applying multiple filters like the following: ``` { and: [ { [correspondingField.name]: { gte: start.toISOString(), } as DateFilter, }, { [correspondingField.name]: { lte: end.toISOString(), } as DateFilter, }, ], } ``` I'll do my best to dig into it tonight! --------- Co-authored-by: Félix Malfait <[email protected]>
Solves issue twentyhq#5917. This PR is now ready for the first review! Filters do not fully work yet, there's a problem applying multiple filters like the following: ``` { and: [ { [correspondingField.name]: { gte: start.toISOString(), } as DateFilter, }, { [correspondingField.name]: { lte: end.toISOString(), } as DateFilter, }, ], } ``` I'll do my best to dig into it tonight! --------- Co-authored-by: Félix Malfait <[email protected]>
This has been shipped :)) - really great work by @ad-elias! |
Current behavior
Users can only filter dates with the
Greater than
andLess than
filters.Desired behavior
We want to rename
Greater than
toIs After
We want to rename
Less than
toIs Before
We want to introduce some new filters:
Is Relative
We should reflect the selected values in the calendar. For instance, if someone chooses "This Week," it should be displayed in the calendar as selected. The calendar is only here for visualisation, it's not possible to click into the calendar to generate "last 2 weeks" for examples.
Figma
https://www.figma.com/design/xt8O9mFeLl46C5InWwoMrN/Twenty?node-id=2709-52753&t=jqRWyAJosBHzOW0I-11
The text was updated successfully, but these errors were encountered: