Skip to content

fix: phone number disappearing issue#9811

Merged
PeerRich merged 3 commits into
calcom:mainfrom
anmol242:fix/pre-fill-phone-number
Jul 1, 2023
Merged

fix: phone number disappearing issue#9811
PeerRich merged 3 commits into
calcom:mainfrom
anmol242:fix/pre-fill-phone-number

Conversation

@anmol242
Copy link
Copy Markdown
Contributor

@anmol242 anmol242 commented Jun 26, 2023

Fixes the pre-fill issue for Phone number field while booking event or rescheduling event

Fixes #9682

Before Fix

https://www.loom.com/share/a6024364e1c744bf9db82e4b62504514?sid=8bb91e81-8055-474a-948e-ae7bc07520ff

After Fix

https://www.loom.com/share/6ee121cf728d4769a915d7ce2172795e?sid=72a86bcb-84cf-41d3-9ef5-e7303a21358a

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How should this be tested?

  • Create an event type with options Phone number field (By going to advanced settings)
  • Choose Identifier as phone or whatever you want to fill
  • Open the URL for that event in another browser or in incognito mode by pre-filling the phone number identifier in the URL
  • You will see now phone number will be pre-filled for you and it will not disappear.
  • After you have created schedule, then try to reschedule the same event. It should pre-fill the phone number in that case too

Mandatory Tasks

  • Make sure you have self-reviewed the code. A decent size PR without self-review might be rejected.

@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 26, 2023

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

Name Status Preview Comments Updated (UTC)
api 🔄 Building (Inspect) Jul 1, 2023 11:19am
cal 🔄 Building (Inspect) Jul 1, 2023 11:19am
ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 1, 2023 11:19am
web-staging 🔄 Building (Inspect) Jul 1, 2023 11:19am

@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 26, 2023

@anmol242 is attempting to deploy a commit to the cal Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions Bot added Medium priority Created by Linear-GitHub Sync 🐛 bug Something isn't working labels Jun 26, 2023
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 26, 2023

Thank you for following the naming conventions! 🙏

@anmol242 anmol242 marked this pull request as ready for review June 26, 2023 23:20
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 26, 2023

📦 Next.js Bundle Analysis for @calcom/web

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

@anmol242 anmol242 force-pushed the fix/pre-fill-phone-number branch from ac67894 to 6d4a425 Compare June 27, 2023 08:06
Comment thread packages/ui/form/PhoneInput.tsx
Comment thread packages/ui/form/PhoneInput.tsx Outdated
<PhoneInput
{...rest}
country={defaultCountry}
country={rest.value && countryCode ? undefined : defaultCountry}
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Have to done this change to see its an valid country code in phone number other wise it was changing to US

Comment thread packages/ui/form/PhoneInput.tsx Outdated
@anmol242 anmol242 force-pushed the fix/pre-fill-phone-number branch 2 times, most recently from 6eebba6 to 06850b2 Compare June 27, 2023 10:08
@PeerRich PeerRich added event-types area: event types, event-types bookings area: bookings, availability, timezones, double booking and removed event-types area: event types, event-types labels Jun 28, 2023
Comment thread packages/ui/form/PhoneInput.tsx Outdated
@anmol242
Copy link
Copy Markdown
Contributor Author

@PeerRich or anyone from the team can I get a re-review on this PR?

Signed-off-by: Udit Takkar <udit.07814802719@cse.mait.ac.in>
Copy link
Copy Markdown
Contributor

@Udit-takkar Udit-takkar left a comment

Choose a reason for hiding this comment

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

LGTM.

Screen.Recording.2023-07-01.at.4.44.06.PM.mov

@anmol242
Copy link
Copy Markdown
Contributor Author

anmol242 commented Jul 1, 2023

@CarinaWolli or anyone from team can we merge this?

@PeerRich PeerRich merged commit 2f85b8a into calcom:main Jul 1, 2023
@anmol242 anmol242 deleted the fix/pre-fill-phone-number branch July 9, 2023 12:17
fritterhoff pushed a commit to hm-edu/cal.com that referenced this pull request Jul 25, 2023
Co-authored-by: Udit Takkar <udit.07814802719@cse.mait.ac.in>
Co-authored-by: Udit Takkar <53316345+Udit-takkar@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bookings area: bookings, availability, timezones, double booking 🐛 bug Something isn't working Medium priority Created by Linear-GitHub Sync

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CAL-2009] the phone input not prefilling (disappearing)

3 participants