next-cloudinary icon indicating copy to clipboard operation
next-cloudinary copied to clipboard

[Feature] Cloudinary Product Gallery Widget

Open colbyfayock opened this issue 2 years ago • 5 comments

Feature Request

Is your feature request related to a problem? Please describe.

https://cloudinary.com/documentation/product_gallery

Describe the solution you'd like

<CldProductGallery ... />

The component should reflect the same patterns used for the CldUploadWidget both in how the scripts are loaded and how the options are managed and passed in.

The initial options made available should be typed.

The initial iteration of this can be an MVP to get a basic product gallery working without extensive top level prop support, such as an options option that can expose the core Product Gallery API.

colbyfayock avatar Feb 17 '23 14:02 colbyfayock

@colbyfayock, I would like to work on this, cqan you assign it to me Could you tell me more about what all things are needed to be added

Vishalk91-4 avatar Oct 14 '23 01:10 Vishalk91-4

hey @Vishalk91-4 sure thing!

The goal of this ticket is to create a new component, CldProductGallery, that would act as a wrapper around the Cloudinary Product Gallery widget: https://cloudinary.com/documentation/product_gallery

This widget uses a script include to load as well as some initialization code. The idea would be this would all be included to make it easy for someone to drop on a page with an intuitive API.

A good example of a component that does something similar is CldUploadWidget: https://github.com/colbyfayock/next-cloudinary/blob/main/next-cloudinary/src/components/CldUploadWidget/CldUploadWidget.tsx

You could certainly use that as an example for how you create the Product Gallery component

Additionally here's some reference code for getting it started: https://github.com/cloudinary-community/cloudinary-examples/tree/main/examples/react-product-gallery

Though it could use some optimization for how the script loads and all, which you could get inspiration from the Upload Widget

let me know what you think!

colbyfayock avatar Oct 16 '23 16:10 colbyfayock

@Vishalk91-4 are you still working on this?

colbyfayock avatar Oct 29 '23 18:10 colbyfayock

@colbyfayock Yes, will be submitting the PR tomorrow

Vishalk91-4 avatar Oct 29 '23 19:10 Vishalk91-4

hey @Vishalk91-4 did you still plan on working on this?

colbyfayock avatar Nov 03 '23 16:11 colbyfayock