#30842/ Fix param SidebarUtils.getOrderedReportIDs type#32296
#30842/ Fix param SidebarUtils.getOrderedReportIDs type#32296NikkiWines merged 5 commits intoExpensify:mainfrom
Conversation
|
changes made according to this comment |
| policies: Record<string, Policy>, | ||
| priorityMode: ValueOf<typeof CONST.PRIORITY_MODE>, | ||
| allReportActions: OnyxCollection<ReportActions>, | ||
| allReportActions: OnyxCollection<ReportAction[]>, |
There was a problem hiding this comment.
I'm curious about this change, the structure should be OnyxCollection<ReportActions>.
There was a problem hiding this comment.
Yes, but in the component where this method is used , there is a selector in withOnyx which is mapping value to type ReportAction[]
There was a problem hiding this comment.
In the original issue I put a screenshot (I am also a creator of this issue XD) I found it when migrating ReportUtils
There was a problem hiding this comment.
Ok, I understand now. So maybe we should use Record<string, ReportAction[]> like you used in the other file?
| ], | ||
| ]), | ||
| ) as unknown as OnyxCollection<ReportActions>; | ||
| ) as unknown as Record<string, ReportAction[]>; |
There was a problem hiding this comment.
Where is this Record<string, ReportAction[]> structure from?
There was a problem hiding this comment.
Actually it should be OnyxCollection<ReportAction[]> I will change it
|
@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] |
|
@kubabutkiewicz please pull main |
|
@aimane-chnaif done |
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid.movAndroid: mWeb Chromemchrome.moviOS: Nativeios.moviOS: mWeb Safarimsafari.movMacOS: Chrome / Safariweb.movMacOS: Desktop |
aimane-chnaif
left a comment
There was a problem hiding this comment.
Looks good except this known bug:
|
✋ 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/NikkiWines in version: 1.4.10-0 🚀
|
|
🚀 Deployed to staging by https://github.com/NikkiWines in version: 1.4.10-0 🚀
|
|
🚀 Deployed to production by https://github.com/Julesssss in version: 1.4.10-1 🚀
|
|
🚀 Deployed to production by https://github.com/Julesssss in version: 1.4.10-1 🚀
|
Details
Fixed Issues
$ #30842
Tests
Offline tests
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)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
android.mp4
Android: mWeb Chrome
iOS: Native
ios.mp4
iOS: mWeb Safari
MacOS: Chrome / Safari
web2.mp4
MacOS: Desktop
desktop.mp4