-
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
[HOLD for payment 2023-07-14] [$1000] Animation glitches on CTRL+shift+K shortcut after CTRL+K #20621
Comments
Triggered auto assignment to @adelekennedy ( |
Bug0 Triage Checklist (Main S/O)
|
Job added to Upwork: https://www.upwork.com/jobs/~01d07caa1456efda56 |
Current assignee @adelekennedy is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @abdulrahuman5196 ( |
Current assignee @mountiny is eligible for the External assigner, not assigning anyone new. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Using consecutive alternations between CTRL+SHIFT+K and CTRL+K breaks the animation of the Right Modal. Also noticed that the order doesn't matter, you can start with either CTRL+K or CTRL+SHIFT+K , as long as you use both and then try to repeat it will break the animation. TLDR it breaks on A - B - A pattern. What is the root cause of that problem?The root cause of the problem is the Navigation type. I logged the Navigation types while trying to reproduce the issue and these were the logs:
While the action type was supposed to change to REPLACE, it remained as NAVIGATE, and the NAVIGATE type leads to that strange animation on the transition of the 2 shortcuts. The reason this happens is because this scenario doesn't meet the requirements for the below part of the navigation code to be triggered, located in
As you can see, we only expect to do that when we call the navigation with the type being 'UP', which is used on native navigation stuff. What changes do you think we should make in order to solve the problem?After discussing the issue with @WoLewicki ( thank you for your support on this one 🙏 ), the ideal way to approach this issue would be to keep the animation of RHP while moving into deeper levels of the same screen, but discard the animation when moving onto a new top-level RHP. The solution will take place on
In the above code, we get the last route of our current state and the destination route after the navigation command, making sure first that we are facing a RHP to RHP scenario. After that, we get the immediate path of the RHP both in our current state and the one we are navigating to. If both are on the same name (e.x Search) , then we won't discard the animation, since the navigation is between levels of the same screen ( Search ). If these 2 are different (e.x Search -> NewGroup), then we will discard the animation. Below I post a video demonstrating the logs of these 2 variables above, to show the functionality: Screen.Recording.2023-06-19.at.8.28.56.PM.movAll we have to do is check wether we are on a RHP to RHP navigation, and the check wether we are on the same screen as previously, otherwise remove the animation and make the action type Video of solution: Screen.Recording.2023-06-13.at.1.57.11.AM.mov |
Looks like something related to As a reminder, please make sure that all proposals are not workarounds and that any and all attempt to fix the issue holistically have been made before proceeding with a solution. Proposals to change our Feel free to drop a note in #expensify-open-source with any questions. |
@WoLewicki @adamgrzybowski could you review the proposals on this issue please cc @abdulrahuman5196 |
ProposalPlease re-state the problem that we are trying to solve in this issue.Animation glitches on CTRL+SHIFT+K shortcut after CTRL+K What is root cause of that problem?When we open modals that are in RightModalNavigator.js, we add a
So every time modals in Now in defaultModalScreenOptions.js , we call App/src/libs/Navigation/AppNavigator/defaultModalScreenOptions.js Lines 4 to 10 in 71da78e
This Now this is where the problem arises. Every time we open a modal that is in Note – This issue is not limited only to shortcut modals but also for every modals that are in
|
In |
@WoLewicki This is more or less in my proposal, we would check if |
Yeah, it just depends how would you like to check if there is RHP already. Ideally it would be checked in e.g. |
On |
Yeah, but we can navigate inside one of the flows in |
Alright that's a fair point, had to go out for a moment, will check that once I am back |
@WoLewicki I noticed now that via the state ( |
@Thanos30 have you been able to accommodate the feedback to your proposal? |
I believe so, yeah, I am just waiting for a confirmation on my latest comment concerning the depth of the route, to determine if we are heading to top level or inner level |
@WoLewicki, @mountiny, @abdulrahuman5196, @adelekennedy Whoops! This issue is 2 days overdue. Let's get this updated quick! |
PR merged will need one quick follow up |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.37-7 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-14. 🎊 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.
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:
|
This issue was caused after the navigation refractor and fixed as part navigation refractor followups. So we can't point a single PR for this issue.
Yes.
|
@adelekennedy Payment processing for this issue should be unblocked now |
@abdulrahuman5196 thank you! Processing payment now |
$250 for @Thanos30 for help with the proposal Thanks for paying this out @adelekennedy |
Actually payment hasn't been processed yet. cc: @adelekennedy |
Applied @adelekennedy |
Same here @adelekennedy , Thanks 🙏 |
Thanks @adelekennedy, I have also applied to the job. |
Just pending @dhanashree-sawant payment |
Thanks @adelekennedy, offer accepted. |
Done! |
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:
Expected Result:
Animation between keyboard shortcuts should be clean as it is when we press CTRL+K after CTRL+shift+K
Actual Result:
Animation glitches when we press CTRL+shift+K after CTRL+K
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.26-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
bad.animation.between.shortcuts.mp4
Recording.953.mp4
Expensify/Expensify Issue URL:
Issue reported by: @dhanashree-sawant
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1686136012478009
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: