-
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
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please pay more attention to the code by double-checking when pushing it. This line is redundant.
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.
@paultsimura Sorry, Update now
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 |
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.
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 <[email protected]>
Co-authored-by: Pavlo Tsimura <[email protected]>
…rtFieldsInitialListValuePicker.tsx Co-authored-by: Pavlo Tsimura <[email protected]>
@paultsimura I applied your suggestions |
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.
LGTM ✔️
@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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.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
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