fix: An extra space is created at the top of the chat list when pin and unpin#38656
fix: An extra space is created at the top of the chat list when pin and unpin#38656Julesssss merged 2 commits intoExpensify:mainfrom
Conversation
|
@aimane-chnaif 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] |
aimane-chnaif
left a comment
There was a problem hiding this comment.
Code looks good, though it's weird to have some duplicated logic in different places.
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid.movAndroid: mWeb Chromemchrome.moviOS: Nativeios.moviOS: mWeb Safarimsafari.movMacOS: Chrome / Safariweb.movMacOS: Desktopdesktop.mov |
aimane-chnaif
left a comment
There was a problem hiding this comment.
@Julesssss all yours
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
| let reportsToDisplay = allReportsDictValues.filter((report) => { | ||
| const parentReportActionsKey = `${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${report?.parentReportID}`; | ||
| const parentReportActions = allReportActions?.[parentReportActionsKey]; | ||
| const reportActions = ReportActionsUtils.getAllReportActions(report.reportID); |
There was a problem hiding this comment.
@Julesssss This line is creating a crash for me.
The correct line should be
const reportActions = ReportActionsUtils.getAllReportActions(report?.reportID);There was a problem hiding this comment.
@dukenv0307 Would you create a new PR, and I will review this as @aimane-chnaif is OOO.
There was a problem hiding this comment.
Interesting. When's the case of report being nullish? Maybe you have bad Onyx data?
I prefer early return false if (!report)
There was a problem hiding this comment.
Umm. The problem is that the type of this function is not correct right now. I corrected it in another PR, but that got unfortunately reverted due to a performance issue.
There was a problem hiding this comment.
Nice, so I think we'd just need to run the test from here to confirm.
|
@mountiny Can you profile this PR for performance? The code is very similar to what I wrote in #35907. |
|
🚀 Deployed to staging by https://github.com/Julesssss in version: 1.4.56-0 🚀
|
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 1.4.56-8 🚀
|
Details
Fixed Issues
$ #37497
PROPOSAL: #37497 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.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
android-resize.mp4
Android: mWeb Chrome
ios-mweb.mov
iOS: Native
Screen.Recording.2024-03-20.at.14.30.01.mov
iOS: mWeb Safari
ios-mweb.mov
MacOS: Chrome / Safari
Screen.Recording.2024-03-20.at.14.16.00.mov
MacOS: Desktop
Screen.Recording.2024-03-20.at.14.16.31.mov