-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[$250] Android - 2-FA – Use two-factor authentication code and Use recovery codes blinks #48712
Comments
Triggered auto assignment to @kevinksullivan ( |
@kevinksullivan FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors |
ProposalPlease re-state the problem that we are trying to solve in this issue.The use recovery code/use 2fa code blinks when pressing it. What is the root cause of that problem?The text button for use recovery code/2fa code use the same Pressable. We just conditionally render the text depends on whether we want to use recovery/2fa code. App/src/pages/signin/ValidateCodeForm/BaseValidateCodeForm.tsx Lines 347 to 357 in 9affb13
So, when we press the text button, the press dim is applied, which reduces the opacity to 0.2 and because it uses the same Pressable, the dim affects the 2nd text too. For example, if the text is initially Use recovery code, when we press it, the text is switched to Use 2FA code and the dim is applied briefly to Use 2FA code too, so it looks like the text is blinking. The 0.2 opacity makes the "blink" obvious. What changes do you think we should make in order to solve the problem?We can remove the 0.2 dim value and just let it use the default value (0.8), just like the Go back text button but I don't think it solves the root cause. So, to solve the root cause, we can set a key to the pressable so a new instance of pressable is created every time we switch between codes. We can use the boolean value (and convert it to string) as the key or use the text itself or any other value.
|
@bernhardoj Your proposal will be dismissed because you did not follow the proposal template. |
@kevinksullivan Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
@kevinksullivan Eep! 4 days overdue now. Issues have feelings too... |
Job added to Upwork: https://www.upwork.com/jobs/~021834200655136685716 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @brunovjk ( |
Looping in another BZ as I am going OOO |
Triggered auto assignment to @VictoriaExpensify ( |
I will review the proposals once I am done with another PR. |
Reviewing. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@lanitochka17 Is this issue only reproducible on Android? I couldn’t reproduce it on any platform. @bernhardoj Were you able to reproduce this without any issues? Thanks! |
Yes, you can see that when the text switches, the text dims. android.mp4 |
@kevinksullivan @VictoriaExpensify @brunovjk this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
@bernhardoj is this blinking? Screen.Recording.2024-09-20.at.15.01.17.movJudging by the archive history, it doesn't seem like a regression to me, it's been like that for a long time. Screen.Recording.2024-09-20.at.15.05.32.movWhat do you mean by "I don't think it solves the root cause."? Thank you :D |
not really. I think it's reproducible when the app is a bit lagging. When you press the text, the dims effect is applied to the switched text, so it looks like its blinking. Use recovery code So, reducing the dims doesn't solve the issue. We need to prevent the dim effect to be applied to the switched text. |
Hey @bernhardoj, I tested the changes and noticed only a small improvement with the Without Screen.Recording.2024-09-21.at.09.47.09.movWith Screen.Recording.2024-09-21.at.09.48.31.movBefore proceeding, I’ll ask an internal to confirm whether we should remove With Screen.Recording.2024-09-21.at.09.54.23.movOnce confirmed, we can move forward with your proposal and test thoroughly. Thanks for your work! 🎀👀🎀 C+ reviewed |
Triggered auto assignment to @NikkiWines, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
Hey @NikkiWines, could you please check my previous comment and confirm if we should remove Thanks! |
Removing the dimming value sounds right to me 👍 |
Great, so we can go with @bernhardoj's proposal :D |
Yep! @bernhardoj proposal looks good 👍 |
📣 @brunovjk 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
PR is ready cc: @brunovjk |
Regression Test Proposal: Prerequisite: 2FA is enabled; Plataform: Android native.
Do we agree 👍 or 👎? |
Payment summary: Thanks for your work on this! |
Requested in ND. |
$250 approved for @bernhardoj |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 9.0.30-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: N/A
Email or phone of affected tester (no customers): applausetester+gm103086@applause.expensifail.com
Issue reported by: Applause - Internal Team
Action Performed:
User have 2-FA established
Expected Result:
"Use two-factor authentication code" and "Use recovery codes" options should not blink
Actual Result:
Options "Use two-factor authentication code" and "Use recovery codes" blinks
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6595150_1725614013433.Recording__3889.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @brunovjkThe text was updated successfully, but these errors were encountered: