Skip to content

Conversation

@esezen
Copy link
Contributor

@esezen esezen commented Nov 13, 2023

The isProduct type guard was broken in this PR. That PR incorrectly assumes anything outside of the Products section would be a non-product but that assumption is not correct. Recommendations would have a different section and could have an image. This PR reverts the type guard but also makes sure anything in Search Suggestions section will return false.

@esezen esezen requested review from a team and mocca102 November 13, 2023 21:23
Copy link
Contributor

@jjl014 jjl014 left a comment

Choose a reason for hiding this comment

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

This looks great to me! 🚀

Just left one small comment.

recommendationPodResults[pod.id] = results?.map((item: Item) => ({
...item,
id: item?.data?.id,
section: pod.id,
Copy link
Contributor

Choose a reason for hiding this comment

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

Are we using the pod id for anything? If so, we might want to keep it around

@esezen esezen requested a review from jjl014 November 15, 2023 21:58
@esezen
Copy link
Contributor Author

esezen commented Nov 15, 2023

@mocca102 Can you give this another review?

Copy link
Contributor

@mocca102 mocca102 left a comment

Choose a reason for hiding this comment

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

LGTM!

@esezen esezen merged commit 0db116f into main Nov 16, 2023
@esezen esezen deleted the csl-3029-os-ui-autocomplete-fix-recommendations branch November 16, 2023 14:21
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.

4 participants