1 Commits
Author SHA1 Message Date
Lauri Ojansivu 2c16c3f173 Show the Rules list selection checkboxes, so Select all / Unselect all visibly work.
The Select all / Unselect all handlers did set the selection, and each
row's checkbox followed it, but the checkboxes were never on screen:
forms.css hides every native checkbox app-wide (display: none,
visibility: hidden, position: absolute and a -9999px offset), and the
rules list used native ones with nothing undoing that. So the buttons
changed invisible state, and no rule could be ticked by hand for Delete
selected / Export selected either.

rules.css now undoes all parts of that rule for .js-rule-select, with a
selector that outranks [type="checkbox"]:checked, and the checkbox is
labelled with its rule's title. tests/rulesSelectAllCheckboxes.test.cjs
runs the select-all / unselect-all / single-toggle logic with several
rules, pins the override, and as the negative test checks that no native
checkbox under client/components/rules is left hidden. Playwright spec
44-rules checks the boxes are visible and follow both buttons.

Thanks to titver968 and xet7 !

Fixes #6749,
2026-10-07 17:05:36 +03:00