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

[HOLD for payment 2023-07-21] [$1000] Login - Inconsistent copy in error message on 2FA entry screen #21321

Closed
6 tasks done
lanitochka17 opened this issue Jun 22, 2023 · 47 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor

Comments

@lanitochka17
Copy link

lanitochka17 commented Jun 22, 2023

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. Launch New Expensify app.
  2. Enter email with 2FA enabled.
  3. Enter magic code.
  4. Tap Sign in without entering 2FA code.
  5. Enter incorrect 2FA code and tap Sign in.

Expected Result:

The term used for 2FA in the error message in Step 4 and 5 should be the same.

Actual Result:

Error message in
Step 4 - Please enter your two-factor code.
Step 5 - Incorrect Two Factor Authentication code. Please try again.

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: 1.3.30.0

Reproducible in staging?: Yes

Reproducible in production?: Yes

If this was caught during regression testing, add the test name, ID and link from TestRail:

Email or phone of affected tester (no customers):

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

Notes/Photos/Videos: Any additional supporting documentation

Bug6102839_Screenshot_20230622_225339

Bug6102839_Screenshot_20230622_225402

Bug6102839_Screen_Recording_20230622_224816_New_Expensify.mp4

Expensify/Expensify Issue URL:

Issue reported by: Applause - Internal Team

Slack conversation:

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0181c49131acb5e082
  • Upwork Job ID: 1673380295588896768
  • Last Price Increase: 2023-06-26
@lanitochka17 lanitochka17 added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jun 22, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jun 22, 2023

Triggered auto assignment to @sonialiap (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@melvin-bot
Copy link

melvin-bot bot commented Jun 22, 2023

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

@Pujan92
Copy link
Contributor

Pujan92 commented Jun 22, 2023

Proposal

Please re-state the problem that we are trying to solve in this issue.

Missing 'Authentication' word in error message in 2FA entry screen

What is the root cause of that problem?

In the pleaseFillTwoFactorAuth translation we don't have 'authentication' word within a sentence.

What changes do you think we should make in order to solve the problem?

If this is a valid inconsistent bug then we can update the translations for en.js and es.js for below key.

pleaseFillTwoFactorAuth: 'Please enter your two-factor code',

Please enter your two-factor authentication code

pleaseFillTwoFactorAuth: 'Por favor, introduce tu código 2 factores',

@marcaaron marcaaron changed the title Login - Missing 'Authentication' word in error message in 2FA entry screen Login - Inconsistent copy in error message in 2FA entry screen Jun 22, 2023
@marcaaron marcaaron changed the title Login - Inconsistent copy in error message in 2FA entry screen Login - Inconsistent copy in error message on 2FA entry screen Jun 22, 2023
@melvin-bot melvin-bot bot added the Overdue label Jun 26, 2023
@sonialiap
Copy link
Contributor

Agreed, let's make it consistent.

Question, why do we have two error codes that say almost the same thing. Do we not have a library of errors that we can reference in both step 4 and 5? It would be more organized to write the error once and reference it in various places, wouldn't it? If that's not our standard practice - fine, but if it is then let's make sure that both cases reference the same error

@melvin-bot melvin-bot bot removed the Overdue label Jun 26, 2023
@sonialiap sonialiap added the External Added to denote the issue can be worked on by a contributor label Jun 26, 2023
@melvin-bot melvin-bot bot changed the title Login - Inconsistent copy in error message on 2FA entry screen [$1000] Login - Inconsistent copy in error message on 2FA entry screen Jun 26, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jun 26, 2023

Job added to Upwork: https://www.upwork.com/jobs/~0181c49131acb5e082

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jun 26, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jun 26, 2023

Current assignee @sonialiap is eligible for the External assigner, not assigning anyone new.

@melvin-bot
Copy link

melvin-bot bot commented Jun 26, 2023

Triggered auto assignment to Contributor-plus team member for initial proposal review - @Santhosh-Sellavel (External)

@Santhosh-Sellavel
Copy link
Collaborator

@sonialiap Straight forward we just need the updated copy here in both languages, and we can go with @Pujan92 here!

C+ Reviewed
🎀 👀 🎀

@melvin-bot
Copy link

melvin-bot bot commented Jun 26, 2023

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

@Santhosh-Sellavel
Copy link
Collaborator

We just need updated copies to get started @amyevans!

@amyevans
Copy link
Contributor

I don't agree this is a bug, the error messages communicate different things. In the first case, the user hasn't entered any 2FA code at all, so they're instructed to enter one. In the second case, they entered a code, but it was incorrect, so the error message communicates that. It's a tad subtle, but I think it's helpful and in service of helping the customer. @sonialiap thoughts?

@melvin-bot melvin-bot bot added the Overdue label Jun 28, 2023
@sonialiap
Copy link
Contributor

Oh I misread the scenarios, I agree, the difference does make sense - let's ignore my suggestion of using the same error message for both!

I do think that it makes sense to standardize on a format for the 2FA name. In one error it's two-factor code in the other it's Two Factor Authentication code

Not a bug, per-say, but something that does make sense to me to clean up. I recommend we standardize on Two Factor Authentication code and update the Please enter your two-factor code. to Please enter your Two Factor Authentication code.

image

@melvin-bot melvin-bot bot removed the Overdue label Jun 29, 2023
@amyevans
Copy link
Contributor

Sure, cleaning it up a bit sounds good 👍. I am not sure if Two Factor Authentication code is grammatically the correct thing to standardize on, though.

For context, it looks like we're exclusively using the hyphenated, lowercase phrase in the App repo. In Web-E it looks like we're largely standardized on "Two Factor Authentication" but not exclusively. It also seems like moving to capitalization was intentional (in https://github.com/Expensify/Web-Expensify/pull/36159, cc @NikkiWines as I'd be curious for more context). The Incorrect Two Factor Authentication code. Please try again error is coming from Web-E.

It's not a proper noun, so I think lowercase is correct. I think hyphenated is also correct since two-factor is a compound adjective.

So based on that my suggestion would be to update the 3 instances of pleaseFillTwoFactorAuth in App from Please enter your two-factor code to Please enter your two-factor authentication code (and twoFactorCode from Two-factor code to Two-factor authentication code), and in Web-E change Incorrect Two Factor Authentication code. Please try again to Incorrect two-factor authentication code. Please try again. But open to feedback.

@NikkiWines
Copy link
Contributor

NikkiWines commented Jun 29, 2023

IIRC we standardized on Two Factor Authentication when first implementing 2FA in expensify.com, but cc: @bondydaa for clarity on that since he headed up that project. I personally don't mind what version we use, so long as we're consistent across the board 😊

@bondydaa
Copy link
Contributor

here's the last time this was brought up, https://github.com/Expensify/Expensify/issues/175847#issuecomment-910290429.

@melvin-bot melvin-bot bot added the Overdue label Jul 3, 2023
@Santhosh-Sellavel
Copy link
Collaborator

@amyevans Bump!

@amyevans
Copy link
Contributor

Slack thread for internal reference: https://expensify.slack.com/archives/C21FRDWCV/p1688764627188419

In requesting the translation, @iwiznia pointed out that we have a rule

only names and the first words of sentences should be capitalized in new dot

that should trump any older rules we were following for OldDot.

So I think the best course of action is to leave the frontend error messages and translations as they are, and update the backend error (https://github.com/Expensify/Web-Expensify/blob/main/lib/UserAPI.php#L2701) to be Incorrect two-factor authentication code. Please try again.

The method is only used by NewDot, which is a detail I was missing before. So while it might be inconsistent within the code in Web-E, it would not be inconsistent within the app (OldDot would handle it one way, NewDot would handle it another).

@Santhosh-Sellavel
Copy link
Collaborator

Santhosh-Sellavel commented Jul 10, 2023

Alright sorry for all the back and forth here, but once I took a peek at the actual scope of the update, I agree with others that the juice just isn't worth the squeeze. It'd mean touching code in 5+ repos, including OldApp, which we don't really deploy anymore, so it'd leave things in an inconsistent state for our current customers. So let's just standardize on what we've got in the backend (Two Factor Authentication), and update the frontend translation to Please enter your Two Factor Authentication code

We don't want to do this too? Right?

@amyevans
Copy link
Contributor

Right - just update any errors that get surfaced in NewDot flows, do not touch OldDot flows.

@Pujan92
Copy link
Contributor

Pujan92 commented Jul 11, 2023

So do we only need to update two-factor code with two-factor authentication code to make consistency?

pleaseFillTwoFactorAuth: 'Please enter your two-factor code',

@amyevans
Copy link
Contributor

Yes, so that can be Please enter your two-factor authentication code /
Por favor, introduce tu código de autenticación de dos factores

@Pujan92
Copy link
Contributor

Pujan92 commented Jul 11, 2023

@Santhosh-Sellavel @amyevans PR is ready for review, Thanks!

@melvin-bot
Copy link

melvin-bot bot commented Jul 11, 2023

🎯 ⚡️ Woah @Santhosh-Sellavel / @Pujan92, great job pushing this forwards! ⚡️

The pull request got merged within 3 working days of assignment, so this job is eligible for a 50% #urgency bonus 🎉

  • when @Pujan92 got assigned: 2023-07-07 15:47:13 Z
  • when the PR got merged: 2023-07-11 20:34:28 UTC

On to the next one 🚀

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Daily KSv2 labels Jul 14, 2023
@melvin-bot melvin-bot bot changed the title [$1000] Login - Inconsistent copy in error message on 2FA entry screen [HOLD for payment 2023-07-21] [$1000] Login - Inconsistent copy in error message on 2FA entry screen Jul 14, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jul 14, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 14, 2023

Reviewing label has been removed, please complete the "BugZero Checklist".

@melvin-bot
Copy link

melvin-bot bot commented Jul 14, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.40-5 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

If no regressions arise, payment will be issued on 2023-07-21. 🎊

After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.

  • External issue reporter
  • Contributor that fixed the issue
  • Contributor+ that helped on the issue and/or PR

As a reminder, here are the bonuses/penalties that should be applied for any External issue:

  • Merged PR within 3 business days of assignment - 50% bonus
  • Merged PR more than 9 business days after assignment - 50% penalty

@melvin-bot
Copy link

melvin-bot bot commented Jul 14, 2023

BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

  • [@Santhosh-Sellavel] The PR that introduced the bug has been identified. Link to the PR:
  • [@Santhosh-Sellavel] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
  • [@Santhosh-Sellavel] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
  • [@Santhosh-Sellavel] Determine if we should create a regression test for this bug.
  • [@Santhosh-Sellavel] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
  • [@sonialiap] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Jul 20, 2023
@Santhosh-Sellavel
Copy link
Collaborator

Santhosh-Sellavel commented Jul 21, 2023

BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

  • [@Santhosh-Sellavel] The PR that introduced the bug has been identified. Link to the PR:
  • [@Santhosh-Sellavel] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
  • [@Santhosh-Sellavel] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
  • [@Santhosh-Sellavel] Determine if we should create a regression test for this bug.
  • [@Santhosh-Sellavel] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
  • [@sonialiap] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

Everything was intentionally added earlier so we can skip this @amyevans

@Santhosh-Sellavel
Copy link
Collaborator

Request Payment on ND

@anmurali
Copy link

Approved 1500 to Santhosh based on #21321 (comment)

@melvin-bot melvin-bot bot added the Overdue label Jul 24, 2023
@sonialiap
Copy link
Contributor

@Pujan92 offer sent for fix (+bonus)

@melvin-bot melvin-bot bot removed the Overdue label Jul 24, 2023
@Pujan92
Copy link
Contributor

Pujan92 commented Jul 24, 2023

@sonialiap thanks, accepted the offer.

@sonialiap
Copy link
Contributor

Thanks, paid 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests

8 participants