-
Notifications
You must be signed in to change notification settings - Fork 36
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
DOP-4065 frontend #937
DOP-4065 frontend #937
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly lgtm. Just a few questions for clarification
{facets.filter(getFacetName).map((facet) => ( | ||
<StyledTag variant={getFacetTagVariant(facet)}>{getFacetName(facet)}</StyledTag> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(No change needed; more for discussion) I noticed that in the designs, the parent target product is typically the leftmost facet tag in the search result, but this might not be true with the current implementation. Is this something that we should have docs-search-transport
handle?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i agree with the suggestion. the front end should not be responsible for sorting (re discussion of taxonomy order in https://jira.mongodb.org/browse/DOP-4109)
Stories/Links:
DOP-4065
Description:
This PR utilizes new attributes returned from /search API endpoint, specifically
documents[].facets[]
Example here: https://docs-search-transport.mongodb.com/search?q=$andGoal is the show the tagged facets on each document in the search results
Current Behavior:
Current behavior on prod:
Current behavior on master with feature flag on, shows no facet tags on search results
Staging Links:
Staged changes with feature flag = off
Staged changes with feature flag on