now-u / now-u-app

now-u application
16 stars 9 forks source link

[BUG] - Filtering on the explore pages doesn't seem to be working #313

Open YWKlai opened 2 months ago

YWKlai commented 2 months ago

Describe the bug Filtering on the explore pages doesn't seem to be working.

To Reproduce

  1. Go to Explore - Campaigns page
  2. Click on the Causes filter
  3. Deselect a cause e.g., Health
  4. You then continue to see things related to the deselected cause (e.g., health is still at the top of my screen) [I think this is the same across explore tabs and filter types e.g., if I filter for 15-30min, I still see other other durations]

Expected behavior The filtering should work so you only see things that match the selected filter criteria

Smartphone (please complete the following information):

JElgar commented 1 month ago

@YWKlai I think the root of this issue is we need to support resources being part of multiple causes. This reason the filtering looks broken is because some resources are part of multiple but only show their first cause as the one they are assinged to. That means when you filter, e.g. by health, you will see some resources which are assigned to both health and some other cause and for those resources it might show up as being in either of the 2 causes.

Ideally we could create some designs that enable us to show users that a campaign/action/learning resource is part of multiple causes

YWKlai commented 1 month ago

Hi @JElgar, thanks for the reply!

I'm checking with Lizzie and Tom that if we need to treat it as a feature request instead of a bug fix. For example, we show all the associated causes on each campaign card. Thus, users won't feel that they get the wrong filter results.

I will update the conclusion and next steps here once we have the alignment. Thanks!

JElgar commented 2 days ago

Designs are ready for this. It sounds like we would like to show both side by side with a divider. If that overflow we can fallback to an abbreviated name and if thats still too long we can use icons. I will get a link