activist icon indicating copy to clipboard operation
activist copied to clipboard

Bug: Event filters can’t be cleared or toggled off

Open aasimsyed opened this issue 4 weeks ago • 4 comments

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

  1. Visit the events list (sidebar filter visible).
  2. Click a “Days ahead” radio option (1/7/30); it auto-submits.
  3. Click the same radio again—nothing happens; the filter stays applied.
  4. 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.

aasimsyed avatar Nov 11 '25 20:11 aasimsyed

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

Chuksll avatar Nov 14 '25 21:11 Chuksll

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!

andrewtavis avatar Nov 14 '25 22:11 andrewtavis

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 :)

mfan59 avatar Nov 14 '25 22:11 mfan59

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!

a-estrada avatar Nov 14 '25 22:11 a-estrada