-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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: 30726 A blank spot appears after deleting a money request #31670
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 |
@tienifr Can you merge main here please? |
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we still need this change since we rolled back what caused the change?
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.
@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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)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
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