App icon indicating copy to clipboard operation
App copied to clipboard

[HOLD for payment 2021-12-06] Request a call modal - Update phone number requirements and instructions.

Open isagoico opened this issue 5 years ago • 22 comments

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Action Performed:

  1. Navigate to the Concierge conversation
  2. Click on the phone icon on top right

Expected Result:

There should be clear instructions on how to enter a phone number. (Country code, format, etc). Also, the phone number displayed should be the Expensify number (the one user to call customers). Please check @mallenexpensify proposed improvements on notes section.

Actual Result:

Instructions are focused on phone numbers which country code and the phone number displayed is not from Expensify.

Workaround:

None Needed.

Platform:

Where is this issue occurring?

  • Web
  • iOS
  • Android
  • Desktop App
  • Mobile Web

Version Number: 1.1.8-0 Reproducible in staging?: Yes Reproducible in production?: Yes

Logs: https://stackoverflow.com/c/expensify/questions/4856

Notes/Photos/Videos: Any additional supporting documentation

Improvements from @mallenexpensify:

  • The example phone number that's misaligned shows you should enter +1 at the beginning but it's not necessary for US numbers. We should update number in the box to remove +1 .
  • The number that should be shown in the box should be updated to 2109400803 , a number we actually call from.
  • The red error text also states you need to include a country code which you don't if you're in the US (which I'm guessing is ~90% of our calls). Can we update it to "Please enter a phone number. If you're outside the US please include your country code, eg. +44 7782 339811" (which is an actual number we call from in the UK)

image

Expensify/Expensify Issue URL:

Issue reported by: @quinthar Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1634498711397400

View all open jobs on GitHub

isagoico avatar Oct 19 '21 13:10 isagoico

Triggered auto assignment to @chiragsalian (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

MelvinBot avatar Oct 19 '21 13:10 MelvinBot

Triggered auto assignment to @Christinadobrzyn (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

MelvinBot avatar Oct 19 '21 23:10 MelvinBot

Issue LGTM, should be an easy fix for our external contributors.

chiragsalian avatar Oct 19 '21 23:10 chiragsalian

Posted job in Upwork

Internal post - https://www.upwork.com/ab/applicants/1450704542045765632/job-details External post - https://www.upwork.com/jobs/~01e8e6ed06b97f3234

Christinadobrzyn avatar Oct 20 '21 06:10 Christinadobrzyn

Proposal

We need to update the placeholder 2109400803 here, https://github.com/Expensify/App/blob/7f3153ac0e20a17a4db9d032851246d051ffad8a/src/pages/RequestCallPage.js#L208

We need to update the message here & in es.js also for the same key, https://github.com/Expensify/App/blob/7f3153ac0e20a17a4db9d032851246d051ffad8a/src/languages/en.js#L471

But one question @chiragsalian,

  1. The same message is used for other phone number input error messages too, should it be the same on other pages or let alone this page.

  2. Should we change here also anything? https://github.com/Expensify/App/blob/7f3153ac0e20a17a4db9d032851246d051ffad8a/src/languages/en.js#L472

Need Spanish copy for the new message.

Santhosh-Sellavel avatar Oct 20 '21 07:10 Santhosh-Sellavel

Proposal LGTM ~i think you forgot to account to correct the misalignment so can you update your proposal to account for this.~ Edit: The misalignment of inputs is handled here.

The same message is used for other phone number input error messages too, should it be the same on other pages or let alone this page.

Yup, it should be the same on all other pages i.e., you can just update noPhoneNumber so that its reflected everywhere. One note though, once you make the changes please test some of the other places where the copy has been updated so that styles are not broken since the updated text is longer.

Should we change here also anything?

Sure yes. I think That doesn’t look like a valid phone number. Please enter a valid phone number. If you're outside the US please include your country code, eg. +44 7782 339811. Not sure if that's too long. I'll let @mallenexpensify chime in. Matt once decided can you ask #espanol for Spanish copies of this and "Please enter a phone number. If you're outside the US please include your country code, eg. +44 7782 339811". Asking you since I'll be OOO for a few days.

chiragsalian avatar Oct 20 '21 20:10 chiragsalian

Hired @Santhosh-Sellavel for this job 🎉

Christinadobrzyn avatar Oct 25 '21 06:10 Christinadobrzyn

@chiragsalian Any update here? I'm waiting new copies to update.

Santhosh-Sellavel avatar Oct 27 '21 06:10 Santhosh-Sellavel

Cool, yeah i was hoping matt would chime in. I'll ping him for his input on the copy.

chiragsalian avatar Oct 28 '21 23:10 chiragsalian

Totally missed this. Do either of you know what formats are valid for US numbers? That will influence the error message. ie.

(562) 728-6666 (562) 7286666 5627286666 562-728-6666 and all the above with either 1 or +1 before

mallenexpensify avatar Oct 29 '21 01:10 mallenexpensify

In our code we don't allow characters like brackets, dash etc So the only valid US numbers are,

5627286666 15627286666 +15627286666

chiragsalian avatar Nov 01 '21 19:11 chiragsalian

Please enter a valid phone number without brackets or dashes. If you're outside the US please include your country code, eg. +44 7782 339811

I think the above will do for now.

mallenexpensify avatar Nov 01 '21 20:11 mallenexpensify

oh also spaces will throw an error, so the example phone number should be +447782339811. You can modify the created PR to allow spaces in phone number as well. Should be a very easy fix to trim them out when needed via code.

Asking for spanish copy.

chiragsalian avatar Nov 01 '21 21:11 chiragsalian

A nice future update would be to split the phone number into international code and phone number as two separate fields. Then the international code can be intelligently filled based on their location. They can modify it if they wish but it would be nice to see it be smart and auto-filled.

chiragsalian avatar Nov 01 '21 21:11 chiragsalian

I like that idea Chirag but not sure how it'd best work in practice with us using one box for both email and phone. This is what's on NewDot now. image

mallenexpensify avatar Nov 02 '21 16:11 mallenexpensify

English copy,

Please enter a valid phone number without brackets or dashes. If you're outside the US please include your country code, eg. +447782339811

Spanish copy,

Por favor, introduce un número de teléfono válido sin paréntesis o guiones. Si reside fuera de Estados Unidos, por favor incluye el prefijo internacional. P. ej. +447782339811

So you should be all set to create the PR right @Santhosh-Sellavel or is there any pending question on your end?

chiragsalian avatar Nov 02 '21 16:11 chiragsalian

Ah true, I forget we have just one box. Well maybe someday we'll split it like oldDot, image

and then perhaps we could implement that logic.

chiragsalian avatar Nov 02 '21 16:11 chiragsalian

@chiragsalian

The following changes needed to be done in PR right?

  1. We need to update the placeholder 2109400803 here, https://github.com/Expensify/App/blob/7f3153ac0e20a17a4db9d032851246d051ffad8a/src/pages/RequestCallPage.js#L208

  2. Update following error messages to new messages given here

  • https://github.com/Expensify/App/blob/7f3153ac0e20a17a4db9d032851246d051ffad8a/src/languages/en.js#L471
  • https://github.com/Expensify/App/blob/7f3153ac0e20a17a4db9d032851246d051ffad8a/src/languages/en.js#L472
  1. Additionally, as you mentioned in comment.

You can modify the created PR to allow spaces in phone numbers as well. Should be a very easy fix to trim them out when needed via code.

For the Request call page box alone or for what other fields? Do we really need this change? Why would we need a space here?

Santhosh-Sellavel avatar Nov 02 '21 17:11 Santhosh-Sellavel

1 and 2 are correct. 3 is not needed. I meant that for the follow-up issue MattAllen created and it looks like he updated the follow-up issue title to reflect the same.

You just need to address your points 1 and 2 for this issue 🙂

chiragsalian avatar Nov 02 '21 18:11 chiragsalian

Looks like the PR is under review - moving forward with this fix!

Christinadobrzyn avatar Nov 22 '21 04:11 Christinadobrzyn