activist
activist copied to clipboard
Bug: Event filters can’t be cleared or toggled off
Terms
- [x] I have searched all open bug reports
- [x] I agree to follow activist's Code of Conduct
Behavior
Summary
Event filters get “stuck” once you pick a value. In SidebarLeftFilterEvents.vue, the radio fields (Days ahead, Event type, Location type) and the auto-submitting form provide no way to remove an applied filter. After selecting anything, you can’t trigger the unfiltered state.
Steps to Reproduce
- Visit the events list (sidebar filter visible).
- Click a “Days ahead” radio option (1/7/30); it auto-submits.
- Click the same radio again—nothing happens; the filter stays applied.
- Repeat with event type or location type radios — you remain filtered.
Actual Behaviour
- Radio inputs behave as immutable once chosen; clicking the active option does nothing.
- There is no “Clear filters” button to reset the entire form/query.
Expected Behaviour
- Clicking a selected radio option toggles it off (radio group returns to “no filter”).
- A visible “Clear filters” button resets all filters, including query params, and restores default results.
Acceptance Criteria
- [ ] Radio components emit “deselect” when the currently selected option is clicked again; the corresponding form value becomes empty and router query omits that key.
- [ ] A “Clear filters” button resets all form values, pushes only the default
view, and triggers the unfiltered event list. - [ ] Add tests covering radio toggle-off behaviour and the global clear action.
Hello @andrewtavis my team and I would like to work on this issue in addition to https://github.com/activist-org/activist/issues/1712. We will focus on https://github.com/activist-org/activist/issues/1712 but will try and tackle this if we get the chance Here's the rest of my team:
- mfan59
- a-estrada
- lhazard434
Copied from #1712 :)
Sure thing, @Chuksll! One thing to note is that each of you needs to write into this issue and #1711 so I can assign. You can't assign people without triage rights to the repo unless they write into the issue.
Please let us know if you need any support!
Copied from https://github.com/activist-org/activist/issues/1712:
Hi! I'm @Chuksll's teammate, and I would like to be assigned to this issue, please! Thanks :)
Copied from #1712:
Hi, adding to above, I am a teammate of @Chuksll and @mfan59 and would like to be assigned to this issue as well. Thanks!