Skip to content

ui: make datagrid filter chips editable#6029

Draft
gignat-dev wants to merge 2 commits into
mainfrom
dev/gignat/ui_datagrid_filter_chip_edit
Draft

ui: make datagrid filter chips editable#6029
gignat-dev wants to merge 2 commits into
mainfrom
dev/gignat/ui_datagrid_filter_chip_edit

Conversation

@gignat-dev
Copy link
Copy Markdown
Contributor

@gignat-dev gignat-dev commented May 25, 2026

Allow users to edit existing data grid filters by clicking on the filter chip. This opens a popup with the appropriate editor (multiselect or text input) pre-filled with the current filter value, rather than forcing users to delete and recreate the filter from scratch.

Implementation details:

  • Adds an onEdit callback to GridFilterChip, guarding against clicks on the remove button.
  • Introduces EditFilterMenu which smartly reuses the existing TextFilterSubmenu and DistinctValuesSubmenu based on the filter type.
  • Promotes = to in and != to not in when editing text/identifier columns to seamlessly match the add-mode multiselect wire shape.
  • Pins initially selected items to the top of the multiselect menu so they remain visible and stable during the edit.

Screenshots (trace: AndroidExample)

  • in filter chip
image
  • >= filter chip
image
  • glob filter chip
image

  Allow users to edit existing data grid filters by clicking on the
  filter chip. This opens a popup with the appropriate editor (multiselect
  or text input) pre-filled with the current filter value, rather than
  forcing users to delete and recreate the filter from scratch.

  Implementation details:
   - Adds an onEdit callback to GridFilterChip, guarding against clicks
    on the remove button.
   - Introduces EditFilterMenu which smartly reuses the existing
    TextFilterSubmenu and DistinctValuesSubmenu based on the filter type.
   - Promotes = to in and != to not in when editing text/identifier
    columns to seamlessly match the add-mode multiselect wire shape.
   - Pins initially selected items to the top of the multiselect menu so
    they remain visible and stable during the edit.
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 25, 2026

@gignat-dev gignat-dev marked this pull request as ready for review May 25, 2026 12:34
@gignat-dev gignat-dev requested a review from a team as a code owner May 25, 2026 12:34
@gignat-dev gignat-dev marked this pull request as draft June 2, 2026 06:52
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.

1 participant