-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Make optimistic reportActions appear last #15942
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
Conversation
|
@Santhosh-Sellavel @cristipaval One of you needs to copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
Messages do not reshuffle, but I noticed the following bugs
Screen.Recording.2023-03-15.at.6.17.50.PM.mov |
This comment was marked as outdated.
This comment was marked as outdated.
|
Thanks for testing @Santhosh-Sellavel, those bugs should be fixed now. Updated the test & QA steps accordingly. |
mountiny
left a comment
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.
Looks good, left one question. @Santhosh-Sellavel would you be able to re-test again?
|
Yes will do today |
Reviewer Checklist
Screenshots/VideosWebScreen.Recording.2023-03-24.at.12.38.16.AM.movMobile Web - ChromeScreen_Recording_20230324_010359_Chrome.mp4Mobile Web - SafariRPReplay_Final1679600290.MP4DesktopScreen.Recording.2023-03-24.at.12.57.25.AM.moviOSUnable to test this AndroidAndroid_Screen.mp4 |
|
Can someone anyone of you test this one on iOS Native alone on a real device cc: @cristipaval or @mountiny I tested on other platforms it works well! |
mountiny
left a comment
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.
Tested in the emulator, which was not great for the reshuffling but we can assume that works fine across platforms, however, when I deleted the last reportAction, the new unread message marker appeared above 2.
I am not sure if this is a regression from this PR tho, could you reproduce this on @Santhosh-Sellavel ?
Screen.Recording.2023-03-24.at.17.37.23.mp4
|
@mountiny Force offline is useless here, actions are executed data is sent to server only fetch is pending. |
Gotcha, I unfortunatelly dont have this running on my device, lets try the |
|
@mountiny just FYI you need to add the |
I was just wondering whats going on, there there is this SO for anyone internal https://stackoverflowteams.com/c/expensify/questions/15195/15196#15196 comes across |
|
🧪🧪 Use the links below to test this build in android and iOS. Happy testing! 🧪🧪 |
|
@Santhosh-Sellavel Can you test now if you have physical iPhone? |
|
Tested with my iPhone and it works. RPReplay_Final1679692996.MP4 |
|
Soooo, let's merge this then? 🙂 |
|
@mountiny looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
|
All tests have passed, not an emergency |
|
🚀 Deployed to staging by https://github.com/mountiny in version: 1.2.90-4 🚀
|
|
@mountiny My checklist was not completed that's why an emergency was added |
|
I investigated this further. As we know you tested the above with So I just the tested this PR for online case, I see shuffling of messages Screen.Recording.2023-03-27.at.7.26.47.PM.mov |
|
The above doesn't happen on staging, it would cause a regression. We should handle this before deploying @roryabraham Screen.Recording.2023-03-27.at.7.34.15.PM.mov |
|
@roryabraham I think we should revert this one, there is couple of regressions: Also sending a message in a new workspace admins chats puts the messages above the CREATED report action. |
|
@roryabraham please tag me for review in the new PR thanks! |
|
🚀 Deployed to production by https://github.com/luacmartins in version: 1.2.90-7 🚀
|
|
Will do! |
Details
#13250 (comment)
Fixed Issues
$ #13250
Tests
1,2,3,4,54as the message preview for this report.Offline tests
All the tests are offline tests 😉
QA Steps
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)Avataris modified, I verified thatAvataris working as expected in all cases)ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Web
web.mov
Mobile Web - Chrome
AndroidWeb.mov
Mobile Web - Safari
RPReplay_Final1678801099.MP4
Desktop
Desktop.mov
iOS
RPReplay_Final1678827873.MP4
Android
Android.mov