Skip to content

Conversation

@abeglova
Copy link
Contributor

@abeglova abeglova commented Jul 3, 2024

What are the relevant tickets?

closes https://github.com/mitodl/hq/issues/4736

Description (What does it do?)

The "Resource Type" facet is displayed, but only if the selected tab is "Learning Material"

Screenshots (if appropriate):

Screenshot 2024-07-03 at 10 50 12 AM

How can this be tested?

Go to http://localhost:8062/search. There should not be a Resource Type facet displayed.
Click on the "Learning Materials" tab. There should not be a Resource Type facet displayed and you should be able to select a type of learning material

Go to http://localhost:8062/c/topic/mathematics
Again there should be a Resource Type facet only if Learning Material is selected

@abeglova abeglova changed the title Ab/resource type for learning materials resource type for learning materials Jul 3, 2024
@abeglova abeglova marked this pull request as ready for review July 3, 2024 14:53
@ChristopherChudzicki ChristopherChudzicki self-assigned this Jul 3, 2024
Copy link
Contributor

@ChristopherChudzicki ChristopherChudzicki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Nice. I left one comment, though we've had the "Clear all" resets tab behavior for at least a few weeks, so it doesn't necessarily need to change here.


const facetNames = [
"resource_type",
"resource_category",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think resource_category should be a facetName, btw.

  • if it is, then "Clear All" will reset the tab

I discussed this once with Steve and we decided "Clear all" should not clear the tab, since it's associated with the left-hand facets / filters.

If you change, resource_category would needed to be added o the aggregation separately.

@abeglova abeglova force-pushed the ab/resource_type_for_learning_materials branch from dcbf54d to 6c70368 Compare July 3, 2024 16:23
@abeglova abeglova force-pushed the ab/resource_type_for_learning_materials branch from 6c70368 to df36f7f Compare July 8, 2024 13:50
@abeglova abeglova merged commit 96fccd2 into main Jul 8, 2024
This was referenced Jul 8, 2024
mbertrand pushed a commit that referenced this pull request Jul 15, 2024
@rhysyngsun rhysyngsun deleted the ab/resource_type_for_learning_materials branch February 7, 2025 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants