fix: inconsistent category order display in list & expense page#61656
fix: inconsistent category order display in list & expense page#61656dangrous merged 22 commits intoExpensify:mainfrom
Conversation
|
@ahmedGaber93 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/Videos |
|
@daledah The sort work with me only while searching, but the default list is not sorted, do you face this issue? 20250512040420353.mp4 |
|
@ahmedGaber93 I don't think the screenshot you sent is the correct one. In what page did you encountered the list not sorting bug? |
|
In workspace categories page 20250514121510432.mp4 |
|
@daledah Have you been able to identify the issue? |
|
@ahmedGaber93 I'm looking on it. Will give an update soon. |
|
@ahmedGaber93 I updated, it's actually a regression from my previous PR. |
src/hooks/useSearchResults.ts
Outdated
| const normalizedSearchQuery = inputValue.trim().toLowerCase(); | ||
| const filtered = normalizedSearchQuery.length ? data.filter((item) => filterData(item, normalizedSearchQuery)) : data; | ||
| if (prevInputValueRef.current === inputValue) { | ||
| setResult(filtered); | ||
| return; | ||
| } | ||
| prevInputValueRef.current = inputValue; | ||
| startTransition(() => { | ||
| const normalizedSearchQuery = inputValue.trim().toLowerCase(); | ||
| const filtered = normalizedSearchQuery.length ? data.filter((item) => filterData(item, normalizedSearchQuery)) : data; |
There was a problem hiding this comment.
@daledah Can you add more details about this change?
There was a problem hiding this comment.
This was added before when I was trying to fix a performance issue, but it turns out not working as expected because there are cases where we don't sort the items. So I reverted the changes back to initial implementation.
|
@ahmedGaber93 Can you check again if this demo is the correct order we want? cc @dangrous @shawnborton
|
|
@ahmedGaber93 I updated. Should works well now
|
|
@daledah Thanks for update! The order looks well on all places except "Select category" on money request ("a" is displayed before "A"). |
|
@ahmedGaber93 I updated. |
dangrous
left a comment
There was a problem hiding this comment.
two test comments, otherwise looks good!
|
aw shoot conflicts, then we should be good to go |
|
@dangrous Sorry for the delay, conflicts resolved, we're ready to merge 👍 |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Performance Comparison Report 📊 (1/3)Significant Changes To Duration
Show details
|
Performance Comparison Report 📊 (2/3)Meaningless Changes To Duration (1/2)Show entries
Show details
|
Performance Comparison Report 📊 (3/3)Meaningless Changes To Duration (2/2)Show entries
Show details
|
|
@Expensify/mobile-deployers 📣 Please look into this performance regression as it's a deploy blocker. |
|
🚀 Deployed to staging by https://github.com/dangrous in version: 9.1.55-0 🚀
|
|
🚀 Deployed to staging by https://github.com/dangrous in version: 9.1.56-2 🚀
|
|
🚀 Deployed to staging by https://github.com/dangrous in version: 9.1.58-0 🚀
|
|
🚀 Deployed to production by https://github.com/roryabraham in version: 9.1.58-4 🚀
|





































Explanation of Change
Fixed Issues
$ #61156
PROPOSAL: #61156 (comment)
Tests
Offline tests
QA Steps
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
Android: Native
Screen.Recording.2025-05-08.at.22.07.44.mov
Android: mWeb Chrome
Screen.Recording.2025-05-08.at.22.08.19.mov
iOS: Native
Screen.Recording.2025-05-08.at.22.10.38.mp4
iOS: mWeb Safari
Screen.Recording.2025-05-08.at.22.11.32.mp4
MacOS: Chrome / Safari
Screen.Recording.2025-05-08.at.22.12.21.mov
MacOS: Desktop
Screen.Recording.2025-05-08.at.22.22.28.mov