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

Removes usages of Legacy Components that are not covered by #5006 #5763

Merged
merged 8 commits into from
Jun 28, 2023

Conversation

rithviknishad
Copy link
Member

@rithviknishad rithviknishad commented Jun 22, 2023

WHAT

🤖 Generated by Copilot at 7debcff

The pull request removes the deprecated LegacyErrorHelperText component and replaces it with the FieldErrorText component for error messages in various forms. It also deletes two unused files: DiagnosisSelect.tsx and ExternalResultLocalbodySelector.tsx.

Proposed Changes

  • Fixes Remove usages of Legacy Components from HelperInputFields.tsx #5762
  • Deletes unused components: DiagnosisSelect and ExternalResultBodySelector
  • Update SwitchV2 to use newer FieldError (view in: Working Status field of Asset create form)
  • Use new FieldError in the consultation form's investigation and procedure builder
  • Use new FieldError in the Doctor Capacity Form
  • Use new UserAutocompleteFormField instead of old User select for Assigned to field in Shift update form

@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 7debcff

  • Replace deprecated LegacyErrorHelperText component with FieldErrorText component to display consistent error messages for form fields (link, link, link, link, link, link, link, link)
  • Delete unused files src/Components/Common/DiagnosisSelect.tsx and src/Components/ExternalResult/ExternalResultLocalbodySelector.tsx (link, link)

@rithviknishad rithviknishad requested a review from a team June 22, 2023 16:14
@rithviknishad rithviknishad requested a review from a team as a code owner June 22, 2023 16:14
@vercel
Copy link

vercel bot commented Jun 22, 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 27, 2023 6:27pm

@netlify
Copy link

netlify bot commented Jun 22, 2023

Deploy Preview for care-egov-staging ready!

Name Link
🔨 Latest commit 0710f87
🔍 Latest deploy log https://app.netlify.com/sites/care-egov-staging/deploys/649b29cd0918fc0008fdf4af
😎 Deploy Preview https://deploy-preview-5763--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 configuration.

@github-actions github-actions bot added the cypress failed pull request with cypress test failure label Jun 22, 2023
@nihal467
Copy link
Member

LGTM

@khavinshankar khavinshankar merged commit be67cf3 into develop Jun 28, 2023
28 of 29 checks passed
@khavinshankar khavinshankar deleted the remove-legacy-components branch June 28, 2023 06:44
@github-actions
Copy link

@rithviknishad We truly appreciate your efforts. Thank you for taking the time to contribute; this is a very valuable contribution to us 🥇. We always welcome your contribution 🙂, so feel free to contribute to anything anytime, and never lose that spirit of innovation 🙌.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove usages of Legacy Components from HelperInputFields.tsx
3 participants