fix: 30726 A blank spot appears after deleting a money request#31670
fix: 30726 A blank spot appears after deleting a money request#31670rlinoz merged 17 commits intoExpensify:mainfrom
Conversation
|
@shubham1206agra Please 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] |
|
Should we use const previousLastIndex = useRef(sortedReportActions[0].reportActionID) // we can use useRef here
useEffect(()=>{
if(previousLastIndex.current !== sortedReportActions[0].reportActionID && reportActionSize.current > sortedReportActions.length){
reportScrollManager.scrollToBottom()
}
previousLastIndex.current = sortedReportActions[0].reportActionID;
}, [sortedReportActions[0].reportActionID]) |
|
@shubham1206agra Updated |
|
One last thing |
|
Can you check if this doesn't break any other test defined #30461? |
|
@shubham1206agra But we should not remove |
|
@tienifr No other component is using InvertedFlatList. So I think its safe to remove this. |
|
Agree with you, I just updated the PR |
Screen.Recording.2023-12-03.at.7.26.55.PM.mov@tienifr Can you check this problem occuring on iOS native? |
|
@shubham1206agra you mean the problem when the IOU preview is not present unless we scroll up and down? |
|
Both the original problem we are trying to solve and the one you mentioned just now |
Result Screen.Recording.2023-12-05.at.17.55.21.mov |
|
@tienifr Thanks for the update. |
|
@shubham1206agra We put the pendingAction here App/src/pages/home/report/ReportActionItem.js Line 692 in 43b1722 |
|
Can you tell me why skeleton was removed in #26939? |
|
@tienifr bump |
|
merged |
|
@tienifr Can you fix the lint error here? |
|
@tienifr This will not work as |
|
@shubham1206agra Yes, I just noticed that, I'm checking why it's removed |
|
updated |
Screen.Recording.2023-12-19.at.1.14.41.PM.mov@tienifr Attachment is not autoscrolling to end |
Lets add this back in. Its creating problems beyond the scope of the PR. |
|
@shubham1206agra updated |
|
@shubham1206agra any updates? |
|
Sorry for the delay. I will finish this today |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2023-12-26.at.6.15.40.PM.mp4Android: mWeb ChromeScreen.Recording.2023-12-26.at.6.39.20.PM.moviOS: NativeScreen.Recording.2023-12-26.at.5.51.48.PM.moviOS: mWeb SafariScreen.Recording.2023-12-26.at.6.33.08.PM.movMacOS: Chrome / SafariScreen.Recording.2023-12-26.at.6.27.42.PM.movMacOS: DesktopScreen.Recording.2023-12-26.at.6.41.59.PM.mov |
| InteractionManager.runAfterInteractions(() => { | ||
| reportScrollManager.scrollToBottom(); | ||
| }); |
There was a problem hiding this comment.
Do we still need this change since we rolled back what caused the change?
There was a problem hiding this comment.
@rlinoz After testing carefully, I realize that we don't need InteractionManager.runAfterInteractions anymore, so I just removed it. Thank you
|
✋ 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 production by https://github.com/mountiny in version: 1.4.18-8 🚀
|
Details
Fixed Issues
$ #30726
PROPOSAL: #30726 (comment)
Tests
Offline tests
Same as above
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.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 */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
Android: Native
Screen.Recording.2023-11-22.at.15.48.16.mov
Android: mWeb Chrome
Screen.Recording.2023-11-22.at.15.16.48.mov
iOS: Native
Screen.Recording.2023-11-02.at.15.06.19.mov
iOS: mWeb Safari
Screen.Recording.2023-11-22.at.14.28.04.mov
MacOS: Chrome / Safari
Screen.Recording.2023-11-22.at.14.19.58.mp4
MacOS: Desktop
Screen.Recording.2023-11-22.at.14.24.46.mp4