Add option to group selected filters by label

Created on 21 February 2025, about 1 month ago
Updated 22 February 2025, about 1 month ago

Problem/Motivation

Currently, all selected filters in Views Filters Summary are displayed on the same line, without any distinction between different filter groups. This can make the summary harder to read and less user-friendly, especially when multiple filters are applied.

Proposed resolution

I have added an option to the ViewsFiltersSummary plugin to group selected filters by their corresponding label. This allows for better readability and organization of the applied filters.

Steps to reproduce

1. Add a Views Filters Summary in your view.
2. Apply multiple filters with different labels.
3. Notice that all selected filters appear in a single line, without grouping.

Steps to test the patch

1. Apply the patch.
2. Enable the “Display labels” option (this is required to activate “Group values by label”).
3. Enable “Group values by label” in Views Filters Summary settings.
4. Apply multiple filters with different labels.
5. Check that the selected filters are now grouped under their respective labels.

Additional Notes

If you have any questions or need further clarification, feel free to reach out!

Feature request
Status

Needs review

Version

3.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024