Skip to content

Conversation

thunderfern
Copy link
Contributor

@thunderfern thunderfern commented Aug 8, 2025

Background

Resolves https://github.com/shop/issues-retail/issues/1810 and https://github.com/shop/issues-retail/issues/8397. This PR is made together with this PR.

Solution

We have decided to overload the navigate function with our new navigate function. This works with the implementation seen in the pos-next-react-native repo in the PR linked above. (Two declarations but one implementation). We have also added a canNavigate function to allow partners to check if the user has permissions to access the resource and adjust their flows accordingly.

Note: Documentation and e2e tests will be updated in later PRs, referencing this issue and this issue.

🎩

  • Please check this PR for tophatting instructions.

Checklist

  • I have 🎩'd these changes
  • I have updated relevant documentation

Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@thunderfern thunderfern force-pushed the linx-navigate-native-api branch 3 times, most recently from 714448c to bad06fd Compare August 8, 2025 19:34
@thunderfern thunderfern changed the title added open function declaration to the Navigation API Added navigation to POS pages and canNavigate function to Navigation API Aug 8, 2025
@thunderfern thunderfern force-pushed the linx-navigate-native-api branch 2 times, most recently from ee35d22 to 1195308 Compare August 8, 2025 20:16
@thunderfern
Copy link
Contributor Author

/snapit

@shopify-github-actions-access
Copy link
Contributor

🫰✨ Thanks @thunderfern! Your snapshot has been published to npm.

Test the snapshot by updating your package.json with the newly published version:

"@shopify/ui-extensions": "0.0.0-snapshot-20250808202129"

@thunderfern thunderfern force-pushed the linx-navigate-native-api branch from 1195308 to d1c1fad Compare August 11, 2025 13:44
@thunderfern thunderfern marked this pull request as ready for review August 11, 2025 17:58
@thunderfern thunderfern requested review from a team and katriciab August 11, 2025 17:59
'@shopify/ui-extensions': minor
---

Updated the navigation function in Navigation API to allow for navigation to POS native pages and added a canNavigate function to allow partners to check if they can navigate to the specified pos page
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Updated the navigation function in Navigation API to allow for navigation to POS native pages and added a canNavigate function to allow partners to check if they can navigate to the specified pos page
Updated the navigation function in Navigation API to allow for navigation to POS native screen and added a canNavigate function to allow partners to check if they can navigate to the specified POS native screen

@thunderfern thunderfern requested a review from a team August 11, 2025 18:09
@thunderfern thunderfern force-pushed the linx-navigate-native-api branch from d1c1fad to d97deeb Compare August 11, 2025 18:11
@thunderfern thunderfern force-pushed the linx-navigate-native-api branch from d97deeb to 7a98f44 Compare August 13, 2025 13:33
@thunderfern thunderfern merged commit 8cef9a7 into 2025-10-rc Aug 13, 2025
5 checks passed
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