Skip to content

[Hold for payment 2021-09-07] Request a call - Phone number is filled in First Name box #4864

Closed

Description

@isagoico

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Action Performed:

  1. Launch the app
  2. Log in phone number account
  3. Search for Concierge
  4. Click on Phone icon

Expected Result:

The phone number should not be displayed in First Name box

Actual Result:

Phone number displayed by default in First Name box

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

image

Expensify/Expensify Issue URL:

View all open jobs on GitHub

https://www.upwork.com/jobs/~0151a4a87a2174a396

Activity

  1. MelvinBot commented on Aug 26, 2021

    @MelvinBot
    Contributor

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

  2. thesahindia commented on Aug 26, 2021

    @thesahindia
    Member

    Proposal

    Need to get rid of the sms domain in this function while checking if the login is same as displayName

            if (Str.removeSMSDomain(login) === displayName) { //on line 133
    
  3. Santhosh-Sellavel commented on Aug 27, 2021

    @Santhosh-Sellavel
    Collaborator

    Proposal

    I found that we have firstName and lastName as separate values in prop.myPersonalDetails if set already.
    Screenshot 2021-08-27 at 12 51 09 PM

    Only if has these properties, we need to set them here otherwise leave them blank,

    const {firstName, lastName} = this.getFirstAndLastName(props.myPersonalDetails);
    this.state = {
    firstName,
    lastName,

    This function below is unnecessary,

    getFirstAndLastName({login, displayName}) {

    we could use lodashGet to retrieve firstName & lastName, from myPersonalDetailsProp or else give default ''.

    I think we need to update this also, https://github.com/Expensify/App/blob/ae38f1bf03eace0d25124c9947010b77f43ac962/src/pages/personalDetailsPropType.js

  4. added
    ExternalAdded to denote the issue can be worked on by a contributor
    on Aug 27, 2021
  5. MelvinBot commented on Aug 27, 2021

    @MelvinBot
    Contributor

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

  6. arielgreen commented on Aug 27, 2021

    @arielgreen
    Contributor

    Posted to Upwork here.

  7. added
    Help WantedApply this label when an issue is open to proposals by contributors
    on Aug 27, 2021
  8. 2 remaining items

  9. MelvinBot commented on Aug 27, 2021

    @MelvinBot
    Contributor

    Triggered auto assignment to @Beamanator (Exported), see https://stackoverflow.com/c/expensify/questions/7972 for more details.

  10. PrashantMangukiya commented on Aug 29, 2021

    @PrashantMangukiya
    Contributor

    Proposed Solution

    What I understood is, If first name is same as phone number then we have to keep first name empty within form. So I will suggest to modify constructor for src/pages/RequestCallPage.js file.

    How It works: Within constructor we have to check if first name is same as phone number then set first name empty within form, otherwise keep first name as it is.

    Constructor code will looks like as under once modified as per my suggestion. I will prefer this way so we don't need to change code any other place.

        constructor(props) {
            super(props);
            const {firstName, lastName} = this.getFirstAndLastName(props.myPersonalDetails);
            const phoneNumber = this.getPhoneNumber(props.user.loginList) ?? '';
            const firstNameDefault = (firstName === phoneNumber) ? '' : firstName;
    
            this.state = {
                firstName: firstNameDefault,
                lastName,
                phoneNumber,
                isLoading: false,
            };
    
            this.onSubmit = this.onSubmit.bind(this);
            this.getPhoneNumber = this.getPhoneNumber.bind(this);
            this.getFirstAndLastName = this.getFirstAndLastName.bind(this);
        }

    If my solution considered then kindly accept my Upwork proposal. Once proposal accepted, I will do final testing and submit pull request within 2 days.

    My Upwork profile: https://www.upwork.com/freelancers/~01c718889ed7821f82

    Best Regards,
    Prashant Mangukiya

  11. removed
    Help WantedApply this label when an issue is open to proposals by contributors
    on Aug 30, 2021
  12. Beamanator commented on Aug 30, 2021

    @Beamanator
    Contributor

    @thesahindia I like your idea, it's short and sweet and works quite well 👍 I just assigned this task to you, please submit a PR when you have a chance :)

  13. Santhosh-Sellavel commented on Aug 30, 2021

    @Santhosh-Sellavel
    Collaborator

    @Beamanator Just for clarification, I hope answer helps me in future my proposals.

    As I said in my proposal #4864 (comment)

    When we have the values we need in props itself why we need to do the spliting from displayName.

  14. Beamanator commented on Aug 30, 2021

    @Beamanator
    Contributor

    @Santhosh-Sellavel If a bug surfaces in the future and we end up needing to use those props, your proposal will be amazing 👍 However, my thought on this was that @thesahindia 's was so nice and simple (and worked when I tested) that it makes the most sense to do a one-line fix.

  15. isagoico commented on Aug 30, 2021

    @isagoico
    Author

    Issue reproducible during KI retests

  16. botify commented on Aug 30, 2021

    @botify

    🚀 Deployed to staging by @Beamanator in version: 1.0.88-3 🚀

    platform result
    🤖 android 🤖 cancelled 🔪
    🖥 desktop 🖥 cancelled 🔪
    🍎 iOS 🍎 cancelled 🔪
    🕸 web 🕸 success ✅
  17. botify commented on Sep 1, 2021

    @botify

    🚀 Deployed to production by @roryabraham in version: 1.0.90-2 🚀

    platform result
    🤖 android 🤖 success ✅
    🖥 desktop 🖥 success ✅
    🍎 iOS 🍎 failure ❌
    🕸 web 🕸 success ✅
  18. isagoico commented on Sep 5, 2021

    @isagoico
    Author

    Issue not reproducible during KI retests (Fixed 🎉)

  19. changed the title [-]Request a call - Phone number is filled in First Name box[/-] [+][Hold for payment 2021-09-07] Request a call - Phone number is filled in First Name box[/+] on Sep 6, 2021
  20. arielgreen commented on Sep 7, 2021

    @arielgreen
    Contributor

    Paid! Thanks for your work on this, @thesahindia.

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

Metadata

Metadata

Labels

EngineeringExternalAdded to denote the issue can be worked on by a contributorWeeklyKSv2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions