Shopify / ui-extensions

MIT License
248 stars 35 forks source link

Added an order details target #2073

Closed js-goupil closed 2 weeks ago

js-goupil commented 2 weeks ago

Resolves https://github.com/Shopify/pos-next-react-native/issues/37676

Background

This implements a new target for order-details actions. I also refactored some shared API code into an ActionTargetApi which will allow us to reduce code duplication a little bit. I also refactored some of the documentation.

Solution

(Describe your solution, why this approach was chosen, and what the alternatives/impacts may be)

🎩

https://shopify-dev.ui-extensions-qyzw.jeansebastien-goupil.us.spin.dev/docs/api/pos-ui-extensions/unstable/targets/order-details/pos-order-details-action-menu-item-render

https://shopify-dev.ui-extensions-qyzw.jeansebastien-goupil.us.spin.dev/docs/api/pos-ui-extensions/unstable/targets/order-details/pos-order-details-action-render

Checklist

github-actions[bot] commented 2 weeks ago

We detected some changes in packages/*/package.json or packages/*/src, and there are no updates in the .changeset directory. If the changes are user-facing and should cause a version bump, run yarn changeset to track your changes and include them in the next release CHANGELOG. If you are making simple updates to repo configuration, examples, or documentation, you do not need to add a changeset.