fixmystreet icon indicating copy to clipboard operation
fixmystreet copied to clipboard

Allow selection of all a group's categories

Open dracos opened this issue 5 years ago • 3 comments

The filter on a map page (around or all reports) lists all the categories, now grouped by group if groups are in use, but there's no way to select all the categories in a particular group at once. Perhaps using jquery-multi-select group options (they'd all appear at the top, which might be nice?)

dracos avatar Feb 26 '20 14:02 dracos

I have a related, but easier issue I'd like to solve (commenting here because I'm not sure if I should create a separate issue or try to tackle this one).

We would like to more easily select all categories except one (or a few). So it would be nice if by clicking "All", all checkboxes were selected, and then the user can deselect a few (like how the status selection works).

I have a naïve fix for this by just setting the data-all-options attribute in the select for categories, similar to how it's done for the status filter.

However seeing this issue I'm thinking maybe you wouldn't want that patch? I could try to implement a more complete fix with presets both for all and groups. I guess from your description above it's still not decided how it should work though..?

By the way, I'm not sure how to easily test category groups. I didn't see any way to configure category groups in the admin interface, is it only for groups configured through Open 311?

Thanks!

joesiltberg avatar Jan 07 '21 16:01 joesiltberg

Nevermind the last question about testing category groups, I found an explanation on the mailing list, I'll try that!

joesiltberg avatar Jan 18 '21 09:01 joesiltberg

Created a PR for just my (simpler) problem for now, in case you want it.

joesiltberg avatar Feb 02 '21 09:02 joesiltberg