-
Notifications
You must be signed in to change notification settings - Fork 583
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
feat: support navigating to artist artworks grid - mounir #9403
feat: support navigating to artist artworks grid - mounir #9403
Conversation
searchCriteriaID: parsed.search_criteria_id, | ||
} | ||
|
||
if ((matchRoute(targetHref) as any).module === "Artist") { |
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.
matchRoute
return type depends on the module type. I could have typecasted this in a different way probably. let me know if you have better suggestions
@@ -92,7 +92,7 @@ describe(AutosuggestSearchResult, () => { | |||
tree.root.findByType(Touchable).props.onPress() | |||
await new Promise((r) => setTimeout(r, 50)) | |||
expect(inputBlurMock).toHaveBeenCalled() | |||
expect(navigate).toHaveBeenCalledWith(result.href, { passProps: { initialTab: "Artworks" } }) | |||
expect(navigate).toHaveBeenCalledWith(result.href, { passProps: undefined }) |
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 need to inject any props if you didn't press on "Artworks" or "AuctionResults"
ba31b32
to
3dbe878
Compare
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.
LGTM 👍🏼
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.
noice 👏
This PR sets the foundation for the work on ONYX-421 ONYX-422 ONYX-423
Description
This PR adds support of URLs query params injection to navigate to the artworks grid.
Screen.Recording.2023-10-11.at.15.39.45.mov
Remaining work:
Screen.Recording.2023-10-11.at.16.05.59.mov
Blocked. by: artsy/palette-mobile#159
PR Checklist
To the reviewers 👀
Changelog updates
Changelog updates
Cross-platform user-facing changes
iOS user-facing changes
Android user-facing changes
Dev changes
Need help with something? Have a look at our docs, or get in touch with us.