polaris icon indicating copy to clipboard operation
polaris copied to clipboard

ResourcePicker Embeded component

Open mrdja026 opened this issue 8 years ago • 6 comments

Issue summary

Hi guys, i am currently developing a shopify app and using Polairs components to do so. Until today when i was using Embeded ResourcePicker was returning all of the images that were associated with the product. Now it returns first five? I am wondering is this expected behavior? Sorry if my question was out of order.

Specifications

  • Are you using the React components? (Y/N): YES
  • Polaris version number: @shopify/polaris": "2.12.1
  • Browser: Google Chrome v70.0.3538.77
  • Device: PC
  • Operating System: Windows 10 PRO

mrdja026 avatar Nov 09 '18 16:11 mrdja026

👋 Thanks for opening your first issue. A contributor should give feedback soon. If you haven’t already, please check out the contributing guidelines. You can also join #polaris on the Shopify Partners Slack.

ghost avatar Nov 09 '18 16:11 ghost

Hi @mrdja026, Can you provide a screenshot or a screen recording? Thanks.

markiiikram avatar Nov 09 '18 16:11 markiiikram

Hi, best i can do is this. This is a screen shot of the onSelection callback from around 16h GTM+1 (first picture) notice that images[] property has 18 items image

Picture below is a screen shot from now image

I also checked, all images are still present on the store page Tnx for the quick reply :)

mrdja026 avatar Nov 09 '18 17:11 mrdja026

Hey @mrdja026, The new GraphQL API now implements a limit on product images in the resource picker to the first 5. If you require all the images you'll need to write a query separate from the resource picker.

markiiikram avatar Nov 13 '18 21:11 markiiikram

@markiiikram tnx, can you please provide some directions on documentations about mention queries, since https://polaris.shopify.com/components/embedded/embedded-resource-picker returns a 404, or i am missing something. Edit: Sorry, found it :)

mrdja026 avatar Nov 14 '18 09:11 mrdja026

thanks @mrdja026! i've created an issue to fix the 404 https://github.com/Shopify/polaris-react/issues/618

markiiikram avatar Nov 14 '18 14:11 markiiikram