fix: sort search terms actually by length#59298
Conversation
|
@madmax330 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] |
|
@hannojg can you link the GH issue instead of a Slack link? Also why isn't there a C+ for review? |
|
We created an issue @Nodonisko can you please pick up here? Thanks! |
538b278 to
05a04b7
Compare
05a04b7 to
4a3987c
Compare
|
Conflicts resolved, should be ready to merge |
Reviewer Checklist
Screenshots/VideosScreen.Recording.2025-04-21.at.3.23.04.PM.mov |
|
@hannojg @chrispader Can either of you link the correct issue here? |
@shubham1206agra done! |
|
✋ 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/madmax330 in version: 9.1.32-0 🚀
|
|
@hannojg Do you have some steps for QA team? |
|
🚀 Deployed to production by https://github.com/thienlnam in version: 9.1.32-8 🚀
|
Explanation of Change
We want to sort the search terms to get the longest word. Before we were using
.sort()which is incorrect, as its sorts strings by their numerical representation, and not by length.This PR fixes that
Fixed Issues
$ #60186
PROPOSAL: https://margelo.slack.com/archives/C08CZDJFJ77/p174316642094294
Tests
Offline tests
same as tests
QA Steps
same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand 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
Sorry, I only had time to test on web. This change shouldn't cause any differences on the other platforms. To my C+ reviewer, could you help me please with creating the remaining test screenshots? Thank you so much in advance! 🫶
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop