Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle situation when coverimg fails to upload also added hints for uploading coverimage #4266

Merged
merged 6 commits into from
Jan 10, 2023

Conversation

patelaryan7751
Copy link
Contributor

@patelaryan7751 patelaryan7751 commented Dec 9, 2022

Proposed Changes

@coronasafe/care-fe-code-reviewers @coronasafe/code-reviewers

Merge Checklist

  • Add specs that demonstrate bug / test a new feature.
  • Update product documentation.
  • Ensure that UI text is kept in I18n files.
  • Prep screenshot or demo video for changelog entry, and attach it to issue.
  • Request for Peer Reviews
  • Completion of QA

@netlify
Copy link

netlify bot commented Dec 9, 2022

Deploy Preview for care-egov-staging ready!

Name Link
🔨 Latest commit a80b99c
🔍 Latest deploy log https://app.netlify.com/sites/care-egov-staging/deploys/63bc2b365554ad00095b8323
😎 Deploy Preview https://deploy-preview-4266--care-egov-staging.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@vercel
Copy link

vercel bot commented Dec 9, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
care-storybook ✅ Ready (Inspect) Visit Preview Jan 9, 2023 at 2:59PM (UTC)

<>
<div className="flex-1 flex m-8 rounded-lg items-center justify-center">
<img
src={imgSrc}

Check warning

Code scanning / CodeQL

DOM text reinterpreted as HTML

[DOM text](1) is reinterpreted as HTML without escaping meta-characters.
@patelaryan7751
Copy link
Contributor Author

image

@nihal467
Copy link
Member

nihal467 commented Jan 2, 2023

LGTM

Comment on lines 139 to 146
<p className="text-gray-700 font-medium text-center">
Max size for image uploaded should be 1mb.
<br />
Allowed formats are jpg,png,jpeg.
<br />
Recommended aspect ratio for facility cover photo is 1:1.
</p>
</>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this part seems to be repeating, why not refactor it

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah refactored

@nihal467
Copy link
Member

nihal467 commented Jan 9, 2023

@patelaryan7751 what is the status on the PR

@sonarcloud
Copy link

sonarcloud bot commented Jan 9, 2023

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

@khavinshankar khavinshankar merged commit 2cd74bc into coronasafe:develop Jan 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cover Image Upload: Handle Errors; Add Hints
3 participants