[HOLD for payment 2021-09-22] Concierge - Request call without phone number leads to infinite loading. In mobile, app crashes
If you havenβt already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Upwork Post: https://www.upwork.com/jobs/~0198bddf350b2411a7
Action Performed:
- Go to https://staging.new.expensify.com
- Log in with any account
- Search for Concierge
- Click on Call icon
- Don't write anything on phone number and click call
Expected Result:
Error message only should appears
Actual Result:
Request call without phone number leads for infinite loading
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platform:
Where is this issue occurring?
- Web
- iOS
- Android
- Desktop App
- Mobile Web
Version Number: 1.0.88-0
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation In mobile, app crashes.
https://user-images.githubusercontent.com/44479856/131012470-550ce7c9-b6de-4019-87de-aa036d94723e.mp4

Expensify/Expensify Issue URL:
Triggered auto assignment to @MariaHCD (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.
Proposal
We need to add a validation here for the phone number also and show here a user-friendly message using growl like we already do for the firstName & lastName! https://github.com/Expensify/App/blob/ae38f1bf03eace0d25124c9947010b77f43ac962/src/pages/RequestCallPage.js#L81-L93
Also, we should allow users to type only Numbers and plus. So we should use CONST.REGEX.DIGITS_AND_PLUS regex and validate onChange. https://github.com/Expensify/App/blob/ae38f1bf03eace0d25124c9947010b77f43ac962/src/pages/RequestCallPage.js#L181-L188
Demo of an error Message:
https://user-images.githubusercontent.com/85645967/131072014-9bde5037-8dea-4a25-a82a-d956d595f06e.mov
Used success type growl notification which is already used for name validation also, we can change both to error type if needed thanks!
Triggered auto assignment to @Jag96 (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.
I tested out this component. I didn't find infinite loading. On clicking save without phone number, just throw the backend error which seems fine to me.
But looking at the video, it seems the error is at the https://github.com/Expensify/App/blob/ae38f1bf03eace0d25124c9947010b77f43ac962/src/pages/RequestCallPage.js#L89.
It is possible that the policy is empty for the user.
Proposal
Not making this simple component complicated as we already have a backend validation message in place when the phone number is not present or invalid, I would suggest
- Disable the Call me button until all the fields are filled.
- Add the check for the policy before checking
policy.typeso that it does not throw an error as shown in the video i.e. just using lodash.get. - If we want to validate the number in the front end before submitting. we can show the error/red outline on the phone input if the number is invalid using the
errorTextprop in ExpensiInput.
Posted to upwork here: https://www.upwork.com/jobs/~0198bddf350b2411a7
@parasharrajat your proposal looks good, good eye on the policy error in the video. I've invited you to the Upwork job, once you accept feel free to start on a PR and I'll assign you.
Please assign this issue to me. Thanks.
Issue reproducible during KI retests
@Jag96 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
Issue reproducible during KI retests
I am on vacation. back on 8.
:hand: This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.
Issue reproducible during KI retests.
@isagoico ~Could you please a screenshot of the error?~ Oops, it is not yet moved to staging. Sorry.
π Deployed to staging by @Jag96 in version: 1.0.97-1 π
| platform | result |
|---|---|
| π€ android π€ | success β |
| π₯ desktop π₯ | success β |
| π iOS π | success β |
| πΈ web πΈ | success β |
π Deployed to production by @francoisl in version: 1.0.98-1 π
| platform | result |
|---|---|
| π€ android π€ | success β |
| π₯ desktop π₯ | success β |
| π iOS π | success β |
| πΈ web πΈ | success β |
Issue not reproducible during KI retests. (Fixed π)
The solution for this issue has been :rocket: deployed to production :rocket: in version 1.0.98-1 and is now subject to a 7-day regression period :calendar:. Here is the list of pull requests that resolve this issue:
- https://github.com/Expensify/App/pulls/5169\n
If no regressions arise, payment will be issued on 2021-09-27. :confetti_ball:
This message is a bug, caused by today's deploy and some weird GH API behaviour. Updated the title back to what it was π
Ping for

Paid!