-
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
[$500] Request money - The transition between tabs is not smooth after changing the merchant #31193
Comments
Triggered auto assignment to @sonialiap ( |
Job added to Upwork: https://www.upwork.com/jobs/~0122f38a619454be7f |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @fedirjh ( |
I don't understand this one, So the transition is not smooth when changing merchant, it seem not smooth for me when changing description or anything else as well, probably because changing these results in onyx merge which would cause a bit of lag. |
ProposalPlease re-state the problem that we are trying to solve in this issue.The navigation after saving the merchant page form is not smooth when creating a new manual money request. What is the root cause of that problem?The problem is caused by having to set the new merchant name in onyx using onyx.merge which takes a few milliseconds to set the data and so the animation after the form is saved is interrupted. The updateMerchant calls navigateBack without waiting for the state update to finish.
What changes do you think we should make in order to solve the problem?We can instead pass the navigate back method to the action that sets the onyx state and wait for the data to be merged. This can be done by adding a .then clause to the onyx merge call to invoke the navigate back function as a call back. Since setting the onyx state happens quickly , in milliseconds, the user will not see any delay before the navigation starts. The code can be modified to remove the navigateBack call as follows.
And the action that updates onyx can take this as a callback and start the navigation after the state update is complete.
You can see a video of the functionality with the fix implemented below. Screen.Recording.2023-11-11.at.2.03.26.PM.movWhat alternative solutions did you explore? (Optional)Alternatively, we could try subscribing to an event for when onyx is done updating its state but this would require an update to its low level pub/sub library so subscribers are notified. |
📣 @beodw! 📣
|
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
@sonialiap, @fedirjh Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@fedirjh a new proposal, what do you think? |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Checking now |
I was not able to reproduce the issue with a normal account on staging: CleanShot.2023-11-20.at.13.27.37.mp4@beodw The issue was replicated with A High Traffic Account with 6X CPU slowdown. I was able to replicate with all the fields within the money request flow (amount, description, date). CleanShot.2023-11-20.at.13.43.34.mp4@beodw Could you provide further clarification on the root cause? It is unclear to me why |
I've shared this issue with the Margelo team to see if they're able to pick it up |
Taras from Margelo said they can take a look after they finish their current tasks. I've asked today for an ETA so that we can keep melvin peaceful |
@sonialiap @fedirjh this issue is now 4 weeks old and preventing us from maintaining WAQ, can you:
Thanks! |
Current assignee @fedirjh is eligible for the Internal assigner, not assigning anyone new. |
@sonialiap, @fedirjh Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Bumped them again |
We can possibly have them take a look at this next week |
The delay is minimal but I can still reproduce it. Bumping margelo |
Hey everyone i'm Chris from Margelo :) Outcomes from my investigationJust looked into this issue and i'm (only) able to reproduce it with a high-traffic account with 6x CPU throttling as suggested before, though the high-traffic doesn't seem to make any difference. I agree with what was said before, that this is mainly caused due to a I noticed this also during my work on the theme switching project, where the UI lags (on web) when you change the theme in the preferences. Imo, this is a somewhat expected effect on web-based platforms with just the JS thread doing all the work. Possible solutionYou experience this problem in many cases where we navigate at the same time as storing something to Onyx. Especially when throttling the CPU (like 6x in this case) this occurs to me on basically any other page in the settings. Therefore i think the scope of this is way bigger than just this single flow. As suggested before, the most straightforward solution to fix this is to just delay the navigation until after the data has been stored to Onyx. |
Hmm, I couldn't reproduce. I vote close |
I'm still seeing a delay, but it's not as bad in my account as in Fedi's comment #31193 (comment). Most of our ND users probably won't become high-traffic accounts so I we probably won't hear about this from them any time soon. If this is a wider behavior as suspected by Chris, then it will likely crop up in a flow that's used more than updating a merchant name and will become a higher priority for being fixed. I'm going to close this issue for now since it sounds like it requires a larger update then it's worth atm |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 1.3.98-0
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
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
Issue found when executing PR #30420
Action Performed:
Expected Result:
The transition between tabs is smooth
Actual Result:
The transition between tabs is not smooth
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6271549_1699637835916.Recording__6715.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: