Add sort function in report field pages#46757
Conversation
|
@paultsimura 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] |
|
@cretadn22 the initial values list (steps 6-7) is not sorted: |
|
@paultsimura I fixed that. Could you please review again? |
src/pages/workspace/reportFields/ReportFieldsListValuesPage.tsx
Outdated
Show resolved
Hide resolved
| })); | ||
|
|
||
| const data = listValues | ||
| // .sort((a, b) => localeCompare(a, b)) |
There was a problem hiding this comment.
Please pay more attention to the code by double-checking when pushing it. This line is redundant.
Reviewer Checklist
Screenshots/VideosAndroid: Native2024-08-05.-.18.11.-.android.mp4Android: mWeb Chrome2024-08-05.-.18.11.-.chrome.mp4iOS: Native2024-08-05.-.18.11.-.android.mp4iOS: mWeb Safari2024-08-05.-.18.11.-.Simulator.Screen.Recording.-.iPhone.15.Pro.-.2024-08-05.at.18.09.49.mp4MacOS: Chrome / Safari2024-08-05.-.18.11.-.Screen.Recording.2024-08-05.at.18.04.19.mp4MacOS: Desktop2024-08-05.-.18.11.-.Screen.Recording.2024-08-05.at.18.06.58.mp4 |
|
@cretadn22 please do the following steps:
It should be sorted as well, but it's not: 2024-08-05.-.18.19.-.Screen.Recording.2024-08-05.at.18.18.53.mp4 |
|
@paultsimura I added sort function in EditReportFieldDropdownPage to address this bug
|
|
@cretadn22 what about the "Recent" section on that same page?
|
|
@paultsimura I added sort function to recentlyUsedReportFields to address this case |
paultsimura
left a comment
There was a problem hiding this comment.
One major request and a couple not-a-blocker ones.
...pages/workspace/reportFields/InitialListValueSelector/ReportFieldsInitialListValuePicker.tsx
Outdated
Show resolved
Hide resolved
Co-authored-by: Pavlo Tsimura <paultsimura@gmail.com>
Co-authored-by: Pavlo Tsimura <paultsimura@gmail.com>
…rtFieldsInitialListValuePicker.tsx Co-authored-by: Pavlo Tsimura <paultsimura@gmail.com>
|
@paultsimura I applied your suggestions |
|
@paultsimura I apologize for some oversights in this PR. Thank you very much for your feedback; it will be very helpful for my future pull requests. |
|
There is always a learning curve. As long as it helps to avoid the same mistakes in the future – there is nothing much to worry about. |
|
✋ 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/youssef-lr in version: 9.0.18-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.0.18-10 🚀
|





Details
Add sort function in report field pages
Fixed Issues
$ #46528
PROPOSAL: #46528 (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
22.mov
Android: mWeb Chrome
23.mov
iOS: Native
24.mov
iOS: mWeb Safari
21.mov
MacOS: Chrome / Safari
screen19.mp4
MacOS: Desktop
Screen20.mov