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

Provide a filter for dates #17

Open
JohT opened this issue Jul 10, 2021 · 0 comments
Open

Provide a filter for dates #17

JohT opened this issue Jul 10, 2021 · 0 comments

Comments

@JohT
Copy link
Owner

JohT commented Jul 10, 2021

Describe the solution you'd like
Currently, filters only allow to select one entry of a list of possible entries, which perfectly suits enums. Date ranges can only be realized by providing a list of selected dates and two filters. There should be a way to configure date value detection and provide a specialized filter view for them to set a date range.

Describe alternatives you've considered
Preset dates like "today", "yesterday", ... can already be realizable if they are provided as values. The same applies to ranges like "this month", "last month", ... If these are sufficient, this solution could even be easier to use, fits into the "standard" filter and is data-agnostic as it is independent of what kind of field might be in the search result.

Requirements

  • Needs to be as data-agnostic as possible. Date field detection should be configureable to also fit future date fields, e.g. like "any field that contains 'date' in its field name will be treated as date.
  • Needs to be open for any kind of date (range) selection implementations and libraries. A simple build-in default one should also be included.
  • Suitable defaults (convention over configuration) should be provided. Date ranges should be supported without any configuration in a predefined way. Configuration should only be necessary for fine-tuning and special adaption.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant