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

Workspace - Second line in the error message for invalid phone number invite is incorrect #8572

Closed
kavimuru opened this issue Apr 8, 2022 · 12 comments
Assignees
Labels
Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor

Comments

@kavimuru
Copy link

kavimuru commented Apr 8, 2022

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. Go to https://staging.new.expensify.com

  2. Create a new workspace from an account that's on the policyExpenseChat beta (e.g @expensifail.com)

  3. Add a new invalid member to the workspace via Manage Members > Invite

Expected Result:

Correct error message should appear

Actual Result:

Incorrect error message in the 2nd line without any spacing too

Workaround:

Unknown

Platform:

Where is this issue occurring?

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

Version Number: 1.1.54.0
Reproducible in staging?: y
Reproducible in production?: y
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:
Bug5525262_messageerror

Expensify/Expensify Issue URL:
Issue reported by: @thesahindia
Slack conversation:

View all open jobs on GitHub

@melvin-bot
Copy link

melvin-bot bot commented Apr 8, 2022

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

@kavimuru kavimuru changed the title Workspace - Error message for invalid phone number invite has some random text Workspace - Second line in the error message for invalid phone number invite is incorrect Apr 8, 2022
@Puneet-here
Copy link
Contributor

Puneet-here commented Apr 8, 2022

Proposal

Reason: This is happening because workspace.invite.pleaseEnterValidLogin doesn't exist there is no such key in en.js or es.js

policyDataWithoutLogin.alertMessage += ` ${Localize.translateLocal('workspace.invite.pleaseEnterValidLogin')}`;

Fix: we have multiple ways to solve this,

  1. We can remove lines from 351 to 353 because we are already showing an error message so if we remove these lines then only this error message will be shown: "An error occurred inviting the user to the workspace, please try again."

  2. We can add a key in en.js and es.js so the user will see the generic error message and the error message we will be adding.

    policyDataWithoutLogin.alertMessage = Localize.translateLocal('workspace.invite.genericFailureMessage');
    if (data.jsonCode === 402) {
    policyDataWithoutLogin.alertMessage += ` ${Localize.translateLocal('workspace.invite.pleaseEnterValidLogin')}`;
    }

  3. We can add the key but instead of adding the error message with the generic message we can just show the new error message, like this:

 if (data.jsonCode === 402) {
     policyDataWithoutLogin.alertMessage = Localize.translateLocal('workspace.invite.pleaseEnterValidLogin');
}

@Julesssss
Copy link
Contributor

Thanks for the proposals, but I'm going to close this as this issue a a duplicate of this issue

@luacmartins
Copy link
Contributor

@kavimuru could you please update the original reporter of this issue, since it seems to be reported by @thesahindia and not applause as per this Slack thread? Let me know once it's updated and we will move forward with paying the contributor.

@luacmartins luacmartins reopened this Apr 13, 2022
@luacmartins
Copy link
Contributor

Adding External label to pay the reporting bonus. This issue was solved internally, so we can close it once the bonus is paid out.

@luacmartins luacmartins added the External Added to denote the issue can be worked on by a contributor label Apr 13, 2022
@melvin-bot
Copy link

melvin-bot bot commented Apr 13, 2022

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

@luacmartins
Copy link
Contributor

@MitchExpensify could you please pay the reporting bonus to @thesahindia and close this issue once done? Thank you!

@MitchExpensify
Copy link
Contributor

Cannn do! Upwork Job created and I've invited @thesahindia for reporting bonus payment

@thesahindia
Copy link
Member

Applied ✅

@MitchExpensify
Copy link
Contributor

Offer sent!

@thesahindia
Copy link
Member

Accepted the offer.
Thanks.

@MitchExpensify
Copy link
Contributor

Paid and contract ended! closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests

6 participants