Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Library Home - Filter by Tags #1048

Closed
ChrisChV opened this issue May 27, 2024 · 15 comments
Closed

Library Home - Filter by Tags #1048

ChrisChV opened this issue May 27, 2024 · 15 comments

Comments

@ChrisChV
Copy link
Contributor

ChrisChV commented May 27, 2024

Mockups: Figma mid-fi

  1. Implement tags filter widget
    image
  2. Implement tags search widget.
    image
    • Reuse the FilterByTags code as much as possible.
    • Shows the list of taxonomies and tags in a hierarchical manner
    • The Clear filter button removes the selected tags.
    • Everything else should work like FilterByTags does:
      • Add, Remove tags.
      • Search tags
      • Apply the filters after add or remove tags
      • Maintain the order and other filters currently applied.
  3. For now, it only needs to work on the "Components" tab. But the tags filter widget should be visible on all tabs.
  4. Implement filter count
    image
@bradenmacdonald
Copy link
Contributor

@ChrisChV I think this should actually be using FilterByTags, not ContentTagsDropDownSelector. Because ContentTagsDropDownSelector is not for filtering - it displays all available tags. Whereas FilterByTags is for filtering search results, and it only shows the tags that are actually used in the library. Plus it's already using the right UI.

@bradenmacdonald
Copy link
Contributor

@ChrisChV For your other questions, it should work the same way as the course search modal that we built.

@ChrisChV
Copy link
Contributor Author

@bradenmacdonald Thanks for the info!

@ChrisChV
Copy link
Contributor Author

@bradenmacdonald Could you add this to the milestone?

@bradenmacdonald bradenmacdonald added this to the Lib Relaunch 1a: Libraries Tab milestone May 28, 2024
@bradenmacdonald
Copy link
Contributor

TBA When apply the filter. It must maintain the #1038 and #1049 currently applied

This functionality is already implemented for the course search modal. You can re-use the same components, so you don't have to re-implement this.

Reuse the FilterByTags code as much as possible.

Don't re-use the code - just use FilterByTags directly :) It should already work perfectly for this use case and not need any changes.

@bradenmacdonald bradenmacdonald modified the milestones: Lib Relaunch 1a: Libraries Tab, Lib Relaunch 1: Library Home Page May 28, 2024
@bradenmacdonald bradenmacdonald removed this from the Lib Relaunch 1: Library Home Page milestone Jun 13, 2024
@yusuf-musleh
Copy link
Contributor

@ChrisChV @bradenmacdonald There seems to be 2 styles in the Figma for how the filters should look like:

Style 1:

Screenshot 2024-06-26 at 10 43 19 PM

Style 2:

Screenshot 2024-06-26 at 10 43 38 PM

They are next to each other in Figma, however I'm not sure which one is the final one we are going with?

@ChrisChV
Copy link
Contributor Author

@yusuf-musleh This is the Hifi Header

@bradenmacdonald
Copy link
Contributor

bradenmacdonald commented Jun 27, 2024

@yusuf-musleh @ChrisChV The filter components already exist - just re-use the existing ones that we have. They look more like "Style 1".

Screenshot 2024-06-26 at 6 10 48 PM

I think they don't have icons though, so adding icons would be a nice addition, but not necessary for the MVP.

@yusuf-musleh
Copy link
Contributor

@bradenmacdonald @ChrisChV Got it, thanks for the clarification.

Yes we're using the existing components, i've added the icons as well, in this PR.

@jmakowski1123
Copy link

This seems to work as intended, but it's a little hard to test without much content in the library. I'm going to suggest a new label "needs to be re-tested" so that we can come back to these again later.

@bradenmacdonald
Copy link
Contributor

@jmakowski1123 Can I mark this as Done in the meantime, or do you want me to leave it open in "Ready for AC testing"?

@sdaitzman
Copy link

In the current staging build, the click targets are a bit strange for filter and sort #1038. The full area highlighted gray should be a click target for the item:

Image

@jmakowski1123
Copy link

Once Sam's comment is addressed, we can move this to done, then circle back to all the done status later for re-testing.

@rpenido
Copy link
Contributor

rpenido commented Aug 19, 2024

Hi @sdaitzman! CC @jmakowski1123
The issue was fixed, and the sandbox was updated.

@jmakowski1123
Copy link

Looks good to me, thanks for implementing the change!

@rpenido rpenido closed this as completed by moving to Done in Libraries Overhaul Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

No branches or pull requests

6 participants