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-05-16] [HOLD, payment pending regression PR] [$1000] Back tooltip on personal information is in lowercase #17244

Closed
2 of 6 tasks
kavimuru opened this issue Apr 10, 2023 · 57 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

@kavimuru
Copy link

kavimuru commented Apr 10, 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. Go to the Sittings > Workspace > Connect bank account
  2. Go to the Step 3 of 5 and Choose your document
  3. After selecting a document type check "Back" tooltip

Expected Result:

Back tooltip on personal information should be in uppercase

Actual Result:

Back tooltip on personal information is in lowercase

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.2.98-2
Reproducible in staging?: y
Reproducible in production?: y
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
Untitled
Screenshot_93
Screenshot_91

2023-04-10.21-57-12.mp4

Expensify/Expensify Issue URL:
Issue reported by: @ayazhussain79
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1681146014939409

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~014397c5d33abcb652
  • Upwork Job ID: 1646960894014050304
  • Last Price Increase: 2023-04-14
@kavimuru kavimuru added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Apr 10, 2023
@MelvinBot
Copy link

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

@MelvinBot
Copy link

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

@stephanieelliott
Copy link
Contributor

Hey @kavimuru can you fill out the Platforms section of the issue body please? Once you do, I can test!

@Victor-Nyagudi
Copy link
Contributor

It looks like the back button is from the <Onfido /> element obtained from the Onfido Web SDK.

This happens inside RequestorOnfidoStep.js.

//...
<ScrollView contentContainerStyle={styles.flex1}>
    <Onfido
        sdkToken={this.props.onfidoToken}
        onUserExit={() => {
            BankAccounts.clearOnfidoToken();
            BankAccounts.goToWithdrawalAccountSetupStep(CONST.BANK_ACCOUNT.STEP.REQUESTOR);
        }}
        onError={() => {
        // In case of any unexpected error we log it to the server, show a growl, and return the user back to the requestor step so they can       try again.
            Growl.error(this.props.translate('onfidoStep.genericError'), 10000);
            BankAccounts.clearOnfidoToken();
            BankAccounts.goToWithdrawalAccountSetupStep(CONST.BANK_ACCOUNT.STEP.REQUESTOR);
        }}
        onSuccess={(onfidoData) => {
            this.submit(onfidoData);
        }}
     />
</ScrollView>
//...

The Web SDK Flow has a configuration option called forceCrossDevice that has been set to true which then shows the above-mentioned <Onfido /> element prompting the user to continue on mobile after selecting a document.

Onfido offers some UI customization options which have already been tweaked to match Expensify's design inside BaseOnfidoWeb.js - this is also where the config options are set - however, I don't see any option to change the back button's case from their docs.

The customization options for the document screen in question are limited to colors, fonts, and maybe border radii.

The only string that appears to be customizable is that of the optional welcome screen which I believe Expensify isn't currently using on Web.

I'm not sure if this counts as a proposal per se, but I think changing the back button's case is an option Onfido hasn't provided. If it's accepted as one, then well and good - just thought I'd offer some insight from my findings.

By the way, @kavimuru, did you mean title case instead of upper case for the back button?

  • back - lowercase
  • Back - title case
  • BACK - uppercase

@MelvinBot
Copy link

📣 @Victor-Nyagudi! 📣

Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Please follow these steps:

  1. Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
  2. Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
  3. Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details.

Screen Shot 2022-11-16 at 4 42 54 PM

Format:

Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>

@Victor-Nyagudi
Copy link
Contributor

Contributor details
Your Expensify account email: [email protected]
Upwork Profile Link: https://www.upwork.com/freelancers/~0136b5e59ffbb32395

@MelvinBot
Copy link

✅ Contributor details stored successfully. Thank you for contributing to Expensify!

@kavimuru
Copy link
Author

@stephanieelliott updated the platform section.

@melvin-bot melvin-bot bot added the Overdue label Apr 13, 2023
@MelvinBot
Copy link

@stephanieelliott Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@stephanieelliott
Copy link
Contributor

Hm, interesting proposal @Victor-Nyagudi! Adding the External label so we can get more eyes on it.

@melvin-bot melvin-bot bot removed the Overdue label Apr 14, 2023
@stephanieelliott stephanieelliott added the External Added to denote the issue can be worked on by a contributor label Apr 14, 2023
@melvin-bot melvin-bot bot changed the title Back tooltip on personal information is in lowercase [$1000] Back tooltip on personal information is in lowercase Apr 14, 2023
@MelvinBot
Copy link

Job added to Upwork: https://www.upwork.com/jobs/~014397c5d33abcb652

@MelvinBot
Copy link

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

@MelvinBot
Copy link

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

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Apr 14, 2023
@aman-atg
Copy link
Contributor

aman-atg commented Apr 14, 2023

Proposal

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

Back tooltip on personal information is in lowercase

What is the root cause of that problem?

This is coming from Onfido ( en & es )

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

We can either ignore it or raise an issue on https://github.com/onfido/onfido-sdk-ui.

What alternative solutions did you explore? (Optional)

@MelvinBot
Copy link

Triggered auto assignment to @neil-marcellini (External), see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@Prince-Mendiratta
Copy link
Contributor

Prince-Mendiratta commented Apr 14, 2023

Proposal

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

In this issue, we can notice that the tooltip/label for the Onfido back button is set to 'back'. In Expensify, we use Sentence case whenever possible and this causes an inconsistency in the app.

What is the root cause of that problem?

This is default behaviour of Onfido. I doubt that reaching out to the Onfido SDK maintainers would have an effect since this is an inconsistency problem for Expensify and the change of 'back' to 'Back' wouldn't be a priority to them.

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

In order to solve this issue, we can use the localisation customisation ability to Onfido. This will let us declare custom phrases that can be used across the whole Onfido flow and we can customize everything we want here. I think this can be a major undertaking involving the Copy team as well for both English and Spanish and doing a textual personalisation of the Onfido flow.

In order to customise locales, different techniques need to be applied for Web, ios and Android. The links to the respective documentation are:

Each of these implementation is a bit complicated but I'm pretty sure I can do this. As for the phrases, we will create our own versions of them for both, spanish and english and depending on the user's chosen language, pass it to the Onfido SDK here.

For this specific issue, we will need to change the Onfido phrase - generic.back

I was able to put together a quick POC for the Web, which is the issue here:

2023-04-15.02-03-27.mp4

@melvin-bot melvin-bot bot added the Overdue label Apr 17, 2023
@mollfpr
Copy link
Contributor

mollfpr commented Apr 17, 2023

Reviewing now...

@melvin-bot melvin-bot bot removed the Overdue label Apr 17, 2023
@mollfpr
Copy link
Contributor

mollfpr commented Apr 17, 2023

Thank you guys for the proposals!

As @Victor-Nyagudi and @aman-atg point out, that is a default from the Onfido SDK, and asking the Onfido maintainer to change the copy will not be a priority for them.

@melvin-bot melvin-bot bot added the Weekly KSv2 label May 9, 2023
@melvin-bot melvin-bot bot changed the title [HOLD, payment pending regression PR] [$1000] Back tooltip on personal information is in lowercase [HOLD for payment 2023-05-16] [HOLD, payment pending regression PR] [$1000] Back tooltip on personal information is in lowercase May 9, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label May 9, 2023
@melvin-bot
Copy link

melvin-bot bot commented May 9, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented May 9, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.12-0 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-05-16. 🎊

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 May 9, 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:

  • [@mollfpr] The PR that introduced the bug has been identified. Link to the PR:
  • [@mollfpr] 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:
  • [@mollfpr] 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:
  • [@mollfpr] Determine if we should create a regression test for this bug.
  • [@mollfpr] 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.
  • [@stephanieelliott] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@Prince-Mendiratta
Copy link
Contributor

Sharing the timeline of this issue to help with the eventual analysis, calculated with this tool.

🐛 Issue created at: Mon, 10 Apr 2023 21:24:56 GMT
🧯 Help Wanted at: Fri, 14 Apr 2023 19:37:50 GMT
🕵🏻 Contributor assigned at: Tue, 18 Apr 2023 16:50:24 GMT
🛸 PR created at: Tue, 18 Apr 2023 17:07:37 GMT
🎯 PR merged at: Thu, 20 Apr 2023 20:39:34 GMT
😱 Regression PR merged at: Fri, 28 Apr 2023 19:30:11 GMT
💰 Timeline Bonus: No bonus applicable.

@mollfpr
Copy link
Contributor

mollfpr commented May 15, 2023

[@mollfpr] The PR that introduced the bug has been identified. Link to the PR:
[@mollfpr] 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:
[@mollfpr] 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:

Another improvement to Onfido languages, so no offending PR.

[@mollfpr] Determine if we should create a regression test for this bug.

Maybe we can add the check to Workspace - Add bank account - Plaid back account selector screen?

@mollfpr
Copy link
Contributor

mollfpr commented May 17, 2023

Propose update for Workspace - Add bank account - Plaid back account selector screen TC added a step 14-18

  1. Log in with a applause.expensifail account (that does not have any bank account already added)
  2. Enable staging Web secure server in Account Preferences if disabled
  3. Navigate to the add bank account modal (Workspace settings > Add bank account)
  4. Select the "Connect with plaid" method to add a bank account
  5. On the bank account list select "Wells Fargo". You'll be redirected to the "First Platypus Bank"
  6. Enter the credentials "user_good / pass_good"
  7. If a verification is prompted - select mobile and enter "credentials_good" as the verification mode
  8. Checkmark the "Plaid Checking" and "Plaid Saving"
  9. Checkmark the 2 options under "additional information you want to share" and submit
  10. Check the T&C and click "Connect account information" and submit
  11. Click on the last confirmation on the plaid modal
  12. Verify you're redirected to the "choose an account" screen in NewDot
  13. Select the bank account ending in 0000 but do not proceed to the next screen
  14. Hover on the "back" arrow button
  15. Verify that it's show the text "Back"
  16. Change the account language preference to Spanish
  17. Hover again on the "back" arrow button
  18. Verify that it's show the text "Volver"
  19. Click on the "back" arrow from the right panel and redo [4-12]
  20. Verify the selector shows "choose an account" and there is no button below
  21. Select the bank account ending in 1111
  22. Verifya submit button appears below the selector
  23. Click on the button
  24. Verifyyou see the "Company Information" form

@stephanieelliott
Copy link
Contributor

Hey @Prince-Mendiratta @mollfpr @ayazhussain79 can you please apply for the job in Upwork so that we can pay this out? Thank you!

@Prince-Mendiratta
Copy link
Contributor

Hiya @stephanieelliott! Already applied here when I put in the PR, I'm not able to reapply as it says job closed.

@ayazhussain79
Copy link
Contributor

@stephanieelliott This job is no longer available link, can you please send the invitation here

@michaelhaxhiu
Copy link
Contributor

Jumping in on behalf of Steph.

New job post - https://www.upwork.com/jobs/~012bae1e57414f2d48

@michaelhaxhiu
Copy link
Contributor

I sent offers to all 3 just now.

@michaelhaxhiu
Copy link
Contributor

Checklist complete and QA test posted in E/E repository https://github.com/Expensify/Expensify/issues/286071

@michaelhaxhiu michaelhaxhiu added Daily KSv2 and removed Weekly KSv2 labels May 24, 2023
@MrJithil
Copy link

Are you still looking for someone to fix this? If yes, I can land a PR in 24 hours.

@melvin-bot

This comment was marked as off-topic.

@ayazhussain79
Copy link
Contributor

@michaelhaxhiu Offer accepted

@MrJithil
Copy link

Contributor details
Your Expensify account email: [email protected]
Upwork Profile Link: https://www.upwork.com/freelancers/~01efe261118bd962c0

@melvin-bot
Copy link

melvin-bot bot commented May 24, 2023

✅ Contributor details stored successfully. Thank you for contributing to Expensify!

@MrJithil
Copy link

Im on it.

@michaelhaxhiu
Copy link
Contributor

No sorry. This job is already done and we are paying the contributors who solved it.

@MrJithil if you are interested in taking on a job, please filter by Help Wanted in the E/App repo:

https://github.com/Expensify/App/issues?q=is%3Aopen+is%3Aissue+label%3A%22Help+Wanted%22

@MrJithil
Copy link

Thank You.

@michaelhaxhiu
Copy link
Contributor

@MrJithil No problem! I just noticed you didn't request an invite to our slack channels yet. I recommend reading this page real quick to get started with contributing:

https://github.com/Expensify/App/blob/main/contributingGuides/CONTRIBUTING.md#propose-a-solution-for-the-job

@michaelhaxhiu
Copy link
Contributor

All paid. Closing.

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