Shopify / shopify-app-bridge

https://shopify.dev/docs/api/app-bridge
82 stars 9 forks source link

Ability to set the location(s) Resource Picker shows inventory levels for. #318

Open pklitscher opened 3 months ago

pklitscher commented 3 months ago

Describe the feature you’d like

The ability to set the location(s) Resource Picker shows inventory levels for when opened.

When the Resource Picker is opened it displays a current inventory level for the store's default location. There does not appear to be anyway to set which location it uses. This makes it impossible to contextualize it to the user's current action. It is very confusing for a them when they are performing an inventory related action in our app for one location, but they are being shown inventory levels for a different location.

It would be great if we could:

  1. set which location the inventory is being shown for,
  2. set it to show inventory for more than one location - extremely useful when performing an action that involved multiple locations, i.e. transferring inventory (as shown when creating a transfer in Shopify Admin).

Describe alternatives you've considered

I have reviewed the docs https://shopify.dev/docs/api/app-bridge-library/apis/resource-picker and can't seem to see anyway to set the location.

Additional context

nil