-
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
fix: clicking submit button makes flicking on a workspace with delay … #53541
Conversation
This comment was marked as off-topic.
This comment was marked as off-topic.
Reviewer Checklist
Screenshots/VideosMacOS: Chrome / Safari53541-web-safari-001.mp4MacOS: Desktop53541-desktop-001.mp4Android: Native53541-android-native-001.mp4Android: mWeb Chrome53541-mweb-chrome-001.mp4iOS: Native53541-ios-native-001.mp4iOS: mWeb Safari53541-mweb-safari-001.mp4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @jacobkim9881 for the PR. And sorry for the delay in PR review here.
NAB but please add the following as step (3) in the tests
so that QA is aware of the verification step.
Verify that the Submit button does not flicker
Also, please copy the Precondition
to the QA steps.
@rafecolton The changes LGTM and works well too.
All yours for review. Thanks.
@rojiphil Thanks for reviewing and I'll edit as soon. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/rafecolton in version: 9.0.74-0 🚀
|
🚀 Deployed to production by https://github.com/luacmartins in version: 9.0.74-8 🚀
|
@@ -10,6 +10,7 @@ const requestsToIgnoreLastUpdateID: string[] = [ | |||
SIDE_EFFECT_REQUEST_COMMANDS.RECONNECT_APP, | |||
WRITE_COMMANDS.CLOSE_ACCOUNT, | |||
WRITE_COMMANDS.DELETE_MONEY_REQUEST, | |||
WRITE_COMMANDS.SUBMIT_REPORT, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rafecolton @rojiphil @jacobkim9881 hey I noticed this change while investigating another issue. I don't have full context on this bug, but this is almost certainly the wrong way to fix it. We're essentially disabling reliable Onyx updates for SubmitReport
requests here and ignoring any Onyx updates that may have been missed. I think we should revert this change and find another way to address the root problem.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😬 thanks Andrew. I agree that does not sound great, and I did not realize that's what this change would do. Let's revert. I commented on the issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No worries and thanks for raising the PR 🙇. Changes to this file aren't always obvious so maybe we should add a MelvinBot comment with a warning when a change is detected
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I think that would be a good improvement
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@arosiclair Thanks for reviewing. It makes me find an issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for reviewing. It makes me find an issue.
@jacobkim9881 Not sure if I understand. Can you please share the issue you found due to the change here?
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for reviewing. It makes me find an issue.
@rojiphil It is revealed as unrelated from my side.
Explanation of Change
This PR fixes
Submit
button flicks on a workspace with delay. Flickering occurs forgetMissingOnyxUpdates
API call, so the fix keepSubmit Report
from calling the API.Fixed Issues
$ #53226
PROPOSAL: $ #53226 (comment)
Tests
Precondition
Test
Offline tests
QA Steps
Precondition
Test
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
expensify-test2-1-2024-12-04_18.31.10.mp4
Android: mWeb Chrome
expensify-test2-2-2024-12-04_18.38.31.mp4
iOS: Native
2024-12-04.8.14.40.mov
iOS: mWeb Safari
2024-12-04.8.52.24.mov
MacOS: Chrome / Safari
expensify-test2-0-2024-12-04_18.21.59.mp4
MacOS: Desktop
2024-12-04.7.09.16.mov