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

Configure filtering to support multiselect #4411

Merged
merged 1 commit into from Jan 28, 2024
Merged

Conversation

norbye
Copy link
Member

@norbye norbye commented Jan 27, 2024

Description

Replacement PR for #4257, which is now obsolete.

Add a filterOptions attribute to columns, where they can be set to allow selecting multiple elements in the filter.

All filters are handled as arrays to simplify the divide between the two functionalities.

It wasn't possible to de-select radio-items by clicking them again, so I changed that.

If you're testing this locally, note that webkom/lego#3518 might not be in prod/staging yet - and if it isn't you need to run the backend locally to verify that it works for membership lists in groups.

Result

filterOptions.multiSelect: true

Before

Skjermopptak.2024-01-27.kl.18.51.44.mov

After

Skjermopptak.2024-01-27.kl.18.51.08.mov

filterOptions.multiSelect: false | undefined

Before

Skjermopptak.2024-01-27.kl.18.52.38.mov

After

Skjermopptak.2024-01-27.kl.18.52.59.mov

Testing

  • I have thoroughly tested my changes.

Please describe what and how the changes have been tested, and provide instructions to reproduce if necessary.


Resolves ABA-366

Copy link

linear bot commented Jan 27, 2024

@github-actions github-actions bot added the review-needed Pull requests that need review label Jan 27, 2024
@norbye norbye added enhancement Pull requests that make enhancements, instead of just purely new features approved Pull requests that have been approved review-needed Pull requests that need review and removed review-needed Pull requests that need review approved Pull requests that have been approved labels Jan 27, 2024
@ivarnakken ivarnakken added types Pull requests that improve or fix types technical-debt Pull requests that reduces technical debt labels Jan 27, 2024
Copy link
Member

@ivarnakken ivarnakken left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good! Thanks for cleaning up the types

@ivarnakken ivarnakken added the approved Pull requests that have been approved label Jan 28, 2024
@norbye norbye merged commit e0642fb into master Jan 28, 2024
4 checks passed
@norbye norbye deleted the multiselect-filter branch January 28, 2024 23:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Pull requests that have been approved enhancement Pull requests that make enhancements, instead of just purely new features review-needed Pull requests that need review technical-debt Pull requests that reduces technical debt types Pull requests that improve or fix types
Projects
None yet
2 participants