Polaris URL picker

Richard687
Tourist
8 0 1

Is there a component in Polaris or App Bridge that will emulate the URL picker used by Shopify's own admin interface? It would be really helpful to be able to use this in embedded admin apps without having to create (and maintain) it from scratch.

Richard687_0-1625212478764.png

0 Likes
tolgapaksoy
Shopify Partner
73 5 41

Pretty sure it's a Popover with a ActionList

0 Likes
Richard687
Tourist
8 0 1

Unless I'm missing something, it appears to be more complex than that. Each of the items in the ActionList loads another ActionList depending on the resource type that was selected. They then autoload more items as you scroll, and have a hard-coded item at the top (e.g. All Products) plus a back link. It is possible to search for items in any of the resource types by typing in the text field.

I realise this could all be put together from individual Polaris components and API calls, but given its relative complexity, ubiquity, and potential to break if Shopify change the underlying resource types, it would perhaps make sense if it were available as a library component - not least to ensure UI consistency across apps.

0 Likes