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

[data grid] Improve filtering logic and UI #14897

Open
michelengelen opened this issue Oct 9, 2024 · 0 comments
Open

[data grid] Improve filtering logic and UI #14897

michelengelen opened this issue Oct 9, 2024 · 0 comments
Labels
component: data grid This is the name of the generic UI component, not the React module! feature: Filtering Related to the data grid Filtering feature new feature New feature or request RFC Request For Comments

Comments

@michelengelen
Copy link
Member

michelengelen commented Oct 9, 2024

Summary

While reviewing issue #14869, I found the proposed idea to be a valuable enhancement for data grid filtering overall.

The proposal outlines three distinct features, which should be addressed separately:

  1. Support for Filtering Groups with Combined Logical Operators [data grid] Support filter group / query builder #4217
    This feature would enable more complex filtering scenarios by allowing logical groupings of filters. For example, in a car rental database, an accountant might need to determine if a van is available in New York between 06/18/2025 and 06/25/2025, or if a bus is available in New York between 06/12/2025 and 06/25/2025. This could be achieved by structuring the search as follows:
    city = 'NY' AND ((type = 'van' AND available = [06-18-2025..06-25-2025]) OR (type = 'bus' AND available = [06-12-2025..06-25-2025]))
  2. Implement a Text Field for Query-based Search
    This feature would allow users to input raw queries similar to the one above. This would require developing parsing logic to interpret and execute the query.
    The textfield could also implement a autocomplete on the specific value grabbed from the data as suggestions. A great example is the new issue search textfield from the github issue facelift beta:
Screenshot 2024-10-03 at 10 58 19
  1. Enhance the Filtering Panel
    The filtering panel should be updated to incorporate the new grouping capabilities and support mixed logical operators.

Given the frequency of requests for improved filtering functionality, it would be worthwhile to explore these enhancements in detail.

Related issues:

Examples

The recent facelift of github issue search (in public beta) is a great example for this:
https://github.com/orgs/community/discussions/139934

@michelengelen michelengelen added new feature New feature or request status: waiting for maintainer These issues haven't been looked at yet by a maintainer component: data grid This is the name of the generic UI component, not the React module! feature: Filtering Related to the data grid Filtering feature RFC Request For Comments labels Oct 9, 2024
@michelengelen michelengelen removed the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: data grid This is the name of the generic UI component, not the React module! feature: Filtering Related to the data grid Filtering feature new feature New feature or request RFC Request For Comments
Projects
Status: 🆕 Needs refinement
Development

No branches or pull requests

1 participant