-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[WAITING ON CHECKLIST] [$1000] Web - Secondary contact method transition bug - clicking on a contact method that has yet to be validated opens the magic code input (validation) page with a sped up animation #23593
Comments
Triggered auto assignment to @jliexpensify ( |
Bug0 Triage Checklist (Main S/O)
|
Proposal: @joh42 ProposalPlease re-state the problem that we are trying to solve in this issue.We are trying to solve the sped up animation when the secondary contact method validation page is opened. What is the root cause of that problem?The root cause of the problem is that focus is given to the magic code text input instantly, before the transition animation has finished. What changes do you think we should make in order to solve the problem?The solution requiring the least amount of changes to the codebase would be to always pass App/src/pages/settings/Profile/Contacts/ValidateCodeForm/BaseValidateCodeForm.js Line 142 in beebb67
That would be enough to solve this issue. However, while we're at it, we might want to improve the code a bit: We can simplify the MagicCodeInput component by removing the following App/src/components/MagicCodeInput.js Lines 156 to 176 in 2c15e97
Instead we could pass App/src/components/MagicCodeInput.js Lines 327 to 329 in 2c15e97
The TextInput component already supports the App/src/components/TextInput/BaseTextInput.js Lines 67 to 70 in a656c82
What alternative solutions did you explore? (Optional)There is currently an ongoing Slack discussion regarding a general approach to solving this issue. The two alternate solutions to knowing when we should set focus is to use either |
Job added to Upwork: https://www.upwork.com/jobs/~01b86e6c6c9fa20453 |
Current assignee @jliexpensify is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat ( |
Tested on newest version and yes, it is more sped up compared to the default contact method transition. |
Thanks for reposting my proposal from Slack! I'm just going to append the following to the alternative solutions section: Edit: App/src/components/MagicCodeInput.js Lines 327 to 329 in 2c15e97
Getting App/src/pages/tasks/TaskAssigneeSelectorModal.js Lines 181 to 182 in 8b23658
That way we won't have to worry about passing |
ProposalPlease re-state the problem that we are trying to solve in this issue.The page transition appears to not be animated/is sped up. What is the root cause of that problem?In here, we're autofocusing the input, the input is focused before the screen transition completes, which speeds up the animation. What changes do you think we should make in order to solve the problem?We need to use
There's an issue with this approach which is the input will not autofocus if we reload the page sometimes, but it's being addressed separately here so we don't need to handle it in this issue. What alternative solutions did you explore? (Optional)Use |
Bumo @parasharrajat got some proposals! |
This is being discussed internally https://expensify.slack.com/archives/C02NK2DQWUX/p1690384611541439 |
Looks like there are a few similar issues. #22850 (comment) |
@parasharrajat While that issue might be tangential, focusing on reloading works well here: Screen.Recording.2023-07-27.at.14.22.33.movThe issue is solely related to the animation not working: Screen.Recording.2023-07-27.at.14.23.15.movIf there are bugs with using |
So that issue is more related to the alternative solution I mentioned rather than the animation issue |
I agree but similar solutions are being adopted on that issue which will indirectly solve this issue. There are more such issues. |
OK, I kind of agree that this is a different issue. @tienifr's proposal looks good to me. @joh42 Note: @joh42 did mention the ongoing slack thread and using @thienlnam There is a note above for the possible duplicates. 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @thienlnam, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@parasharrajat I'm a bit confused, what part of that proposal was not covered by my original proposal already? According to the contributing guidelines: I clearly mentioned using |
Also, I'm new here, so I'm genuinely curious: should proposals contain high-level solutions, or should they actually delve into what I would consider the nitty gritty, implementation details? |
Your proposal was correctly laid out but your technique had a problem as mentioned before #23593 (comment). A working solution should be posted to a minimum. But I agree there you did mention it earlier so I am going to talk about this internally to take a collective decision. https://expensify.slack.com/archives/C02NK2DQWUX/p1690384611541439 |
Regarding a compensation split, I would like to mention the following: Unless I’m mistaken, the so-called ‘exact solution’ is incorrect. The SignInPage does not and should not use Besides, relying on App/src/pages/signin/SignInPage.js Line 153 in 8cdb506
To be clear, this issue is only related to As such, the ‘exact solution’ is incorrect as it involves a page that does not have this issue, is not affected by the solution to this issue, and said solution would not even work for that page. It’s also worth noting that this is not the first time you submit a proposal that is similar to an existing one and then ask for a compensation split. In issue https://github.com/Expensify/App/issues/16582 your request for a compensation split was rebuffed by an Expensify employee with the following motivation:
That being said, if @thienlnam disagrees with me here and thinks a compensation split is appropriate I’ll go along with it, but I think there is a case to be made against it. |
There are plenty of opportunities for more work here, and I've already made my decision. Let's work on other bugs rather than continuing to go back and fourth on this issue which wastes everyone's time. We'll continue on in this issue as planned - thanks! |
I just noticed that the Storybook stories for the MagicCodeInput are broken on main. Should I write that in Slack? Or should I report that as a bug? @parasharrajat / @thienlnam And should I check off the Storybook checkbox in the PR checklist as it's unrelated to this PR? All other steps for the PR are completed. |
Checking off the Storybook checkbox even though I cannot actually test it, thanks for responding in Slack |
Based on my calculations, the pull request did not get merged within 3 working days of assignment. Please, check out my computations here:
On to the next one 🚀 |
@thienlnam @parasharrajat - would you agree that a bonus is valid since there are 2 weekend days? |
Even excluding the weekend days this unfortunately does not qualify |
Ok, here's a payment summary:
|
@joh42 can you add your full name (Johannes Idarsson) to your GH profile as well? Cheers! |
Added, thanks @jliexpensify |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.51-2 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-08-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.
For reference, here are some details about the assignees on this issue:
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
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:
|
Hmm it was actually deployed to production last week...odd. @parasharrajat let me know if there's a regression test you want GH'd. |
Paid Johannes, job closed. Just awaiting checklist. |
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:
Regression Test StepsSecondary contact method
Two-factor authentication
Do you agree 👍 or 👎 ? |
Cheers, done! |
Payment requested. |
Reviewed the details for @parasharrajat. This $1,000 payment is approved for NewDot based on the BZ summary above. |
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:
Expected Result:
The page transition should be animated like other page transitions, without it being sped up.
Actual Result:
The page transition appears to not be animated/is sped up.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.44.0
Reproducible in staging?: n/a
Reproducible in production?: n/a
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
Screen.Recording.2023-07-24.at.20.29.13.mov
Expensify/Expensify Issue URL:
Issue reported by: @joh42
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1690229176544109
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: