start-ui-web icon indicating copy to clipboard operation
start-ui-web copied to clipboard

ImageUpload component

Open Rileran opened this issue 2 years ago β€’ 2 comments

Description

Adding a new component ImageUpload that let the user upload an image to cloudinary, display it, and remove it. This component also has its Field counterpart to integrate with Formiz.

Component

The component as an API similar to an input component, with chakra props support.

<ImageUpload value={imageUrl} onChange={setImageUrl} w="240px" />

image

The component also supports custom placeholder.

:warning: Conflict with MirageJS

The image upload does not work properly with MirageJS, even when passthourgh is enabled. Right now, the upload of the image will work, but the function will get stuck in a pending state and won't return.

I am currently looking for a solution on the matter.

Related to issue #222

Rileran avatar Jun 20 '22 15:06 Rileran

The latest updates on your projects. Learn more about Vercel for Git β†—οΈŽ

Name Status Preview Comments Updated (UTC)
start-ui ❌ Failed (Inspect) Jun 9, 2023 1:41pm

vercel[bot] avatar Jun 20 '22 15:06 vercel[bot]

Kudos, SonarCloud Quality Gate passed!Β  Β  Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

sonarqubecloud[bot] avatar Jun 20 '22 15:06 sonarqubecloud[bot]

Kudos, SonarCloud Quality Gate passed!Β  Β  Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

sonarqubecloud[bot] avatar Dec 23 '22 09:12 sonarqubecloud[bot]

I think this code is a little bit outdated; maybe we can try to add a Formiz integration of react-uploady to handle those cases ?

There is a guide to do it with cloudinary: https://react-uploady.org/docs/guides/Cloudinary/

DecampsRenan avatar Jun 09 '23 12:06 DecampsRenan

Kudos, SonarCloud Quality Gate passed!Β  Β  Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 4 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

sonarqubecloud[bot] avatar Jun 09 '23 13:06 sonarqubecloud[bot]

Cloudinary is a bit overpriced, we decided not to go with it in the starter.

yoannfleurydev avatar Dec 22 '23 22:12 yoannfleurydev