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

Fix Ambulance Phone Number validation in Shifting #6332

Merged
merged 1 commit into from
Sep 22, 2023

Conversation

Ashesh3
Copy link
Member

@Ashesh3 Ashesh3 commented Sep 22, 2023

WHAT

🤖 Generated by Copilot at 0a8abef

This pull request enhances the user experience and performance of the patient shift creation form by fixing some bugs and optimizing the state management. It modifies the ShiftCreate component in src/Components/Patient/ShiftCreate.tsx and the formatPhoneNumber function in src/Utils/utils.ts.

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

HOW

🤖 Generated by Copilot at 0a8abef

  • Add a new reducer case to handle individual form field updates in ShiftCreate component (link)
  • Modify handleFormFieldChange function to dispatch the new set_field action instead of set_form action (link)
  • Prevent formatPhoneNumber function from returning empty string when phone number is null, undefined, or only country code (link)

@Ashesh3 Ashesh3 requested a review from a team September 22, 2023 16:09
@Ashesh3 Ashesh3 requested a review from a team as a code owner September 22, 2023 16:09
@vercel
Copy link

vercel bot commented Sep 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 Sep 22, 2023 4:09pm

@netlify
Copy link

netlify bot commented Sep 22, 2023

Deploy Preview for care-egov-staging ready!

Name Link
🔨 Latest commit 0a8abef
🔍 Latest deploy log https://app.netlify.com/sites/care-egov-staging/deploys/650dbc2bb3300f00088dcb58
😎 Deploy Preview https://deploy-preview-6332--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.

@cypress
Copy link

cypress bot commented Sep 22, 2023

Passing run #1299 ↗︎

0 75 0 0 Flakiness 0

Details:

Fix Ambulance Phone Number validation in Shifting
Project: CARE Commit: 0a8abef8c9
Status: Passed Duration: 02:30 💡
Started: Sep 22, 2023 4:13 PM Ended: Sep 22, 2023 4:15 PM

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings.

@nihal467
Copy link
Member

LGTM

@khavinshankar khavinshankar merged commit b2076e3 into develop Sep 22, 2023
34 checks passed
@khavinshankar khavinshankar deleted the fix-phone-shifting branch September 22, 2023 16:36
@github-actions
Copy link

@Ashesh3 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
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants