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

Make error messages consistent #5715

Merged
merged 1 commit into from
Jun 21, 2023
Merged

Conversation

Ashesh3
Copy link
Member

@Ashesh3 Ashesh3 commented Jun 17, 2023

WHAT

🤖 Generated by Copilot at 6927078

This pull request improves the error handling and user interface of various form components in the care_fe frontend. It adds custom error messages and border colors to the Autocomplete, AutocompleteMultiselect, and AutocompleteFormField components, and fixes the notification modal in the FacilityCard component.

Proposed Changes

image
image

@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

HOW

🤖 Generated by Copilot at 6927078

  • Add error prop to AutocompleteFormField component to display validation error message for location field in asset creation form (link)
  • Add notifyError state variable to FacilityCard component to store and display error message for notification modal input field (link, link)
  • Reset notifyError state variable to empty string when notification modal is opened to clear previous error message (link)
  • Replace Notification.Error function call with setting notifyError state variable to custom error message for notification modal input field (link)
  • Add error prop to Autocomplete and AutocompleteMutliSelect components to pass and display validation error message for autocomplete fields (link, link, link, link, link, link, link)
  • Modify conditional logic for applying border-red-500 and border-danger-500 classes to Autocomplete and AutocompleteMutliSelect components to make them more responsive to validation errors (link, link)

@Ashesh3 Ashesh3 requested a review from a team June 17, 2023 05:47
@Ashesh3 Ashesh3 self-assigned this Jun 17, 2023
@Ashesh3 Ashesh3 requested a review from a team as a code owner June 17, 2023 05:47
@Ashesh3 Ashesh3 requested a review from vigneshhari June 17, 2023 05:47
@vercel
Copy link

vercel bot commented Jun 17, 2023

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

Name Status Preview Comments Updated (UTC)
care-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 17, 2023 5:49am

@Ashesh3 Ashesh3 removed their assignment Jun 17, 2023
@netlify
Copy link

netlify bot commented Jun 17, 2023

Deploy Preview for care-egov-staging ready!

Name Link
🔨 Latest commit 6927078
🔍 Latest deploy log https://app.netlify.com/sites/care-egov-staging/deploys/648d490b63af110008623aed
😎 Deploy Preview https://deploy-preview-5715--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.

@nihal467
Copy link
Member

LGTM

@khavinshankar khavinshankar merged commit 91d9443 into coronasafe:develop Jun 21, 2023
36 of 37 checks passed
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.

Make consistent error message for Notify and asset creation page
3 participants