Refactored localeCompare in TagsOptionsListUtils#67397
Refactored localeCompare in TagsOptionsListUtils#67397tgolen merged 2 commits intoExpensify:mainfrom
Conversation
|
@DylanDylann 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] |
Reviewer Checklist
Screenshots/VideosScreen.Recording.2025-07-31.at.16.26.16.movAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
|
@shubham1206agra We got conflict |
tgolen
left a comment
There was a problem hiding this comment.
Could you please add some unit tests for sortTags()?
|
@tgolen What kind of tests do you want? Earlier tests were comprehensive. |
|
I'm just looking for something super basic. There aren't any unit tests that I could find for |
| const unorderedTags = createTagObjects(unorderedTagNames); | ||
| const expectedOrder = createTagObjects(expectedOrderNames); | ||
| expect(sortTags(unorderedTags)).toStrictEqual(expectedOrder); | ||
| expect(sortTags(unorderedTags, localeCompare)).toStrictEqual(expectedOrder); |
There was a problem hiding this comment.
@tgolen There are tests written like here
There was a problem hiding this comment.
ohhhhh, I see. Thanks for pointing them out. OK, yes. This is just what I wanted. Sorry I missed them!
|
✋ 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/tgolen in version: 9.1.89-1 🚀
|
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 9.1.89-21 🚀
|
Explanation of Change
Fixed Issues
$ #66325
Tests
Offline tests
Same as Tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
Same as Tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)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