Maintain user defined order in search query - #71075
Conversation
|
@shubham1206agra 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] |
d764822 to
b6514f3
Compare
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
@shubham1206agra This is ready for review. |
|
@shubham1206agra Gentle bump on the review here. |
|
@ShridharGoel Can you add some comments to the functions? The PR is quite complex and it might be hard to follow for everyone later too. |
|
@shubham1206agra Some more comments have been added. |
|
@ShridharGoel Can you add comments in |
|
@shubham1206agra Added. |
|
@shubham1206agra Do let me know if some part is unclear and needs more documentation. |
|
@shubham1206agra @JS00001 How can we progress on the review for this? It's open since almost 2 weeks. |
|
Is this just waiting on review? If so, @shubham1206agra can you please re-review |
|
@ShridharGoel Sorry, I was on leave last week. I will catch up to this PR. |
|
Thanks! |
Screen.Recording.2025-10-10.at.7.21.12.PM.mov@ShridharGoel NAB: When selecting filter, the order is switching up. Can we maintain the order here somehow? |
Screen.Recording.2025-10-10.at.7.25.38.PM.mov@ShridharGoel If I use duplicate key, it does not remove the duplicate key. (Note - We should keep the first position of the key) |
|
Theres also conflicts |
|
@shubham1206agra Can you check for duplicate entries now? |
|
@ShridharGoel Can you fix the errors? |
|
@shubham1206agra Updated. |
|
@shubham1206agra Did you get a chance to check this? Thanks |
|
@shubham1206agra Any update on this? |
|
Pinged in slack: https://expensify.slack.com/archives/C02NK2DQWUX/p1760702972360109 |
|
@ShridharGoel I think we should update test steps to mention that the order of query could be changed when using form filter, see #71075 (comment). Wdyt? |
|
@eh2077 I had already updated the test steps based on #71075 (comment), thanks for the suggestion |
|
@JS00001 Can you have a look? |
|
@ShridharGoel Please take a look at conflicts, thanks! |
|
@JS00001 Done |
| const [isExportWithTemplateModalVisible, setIsExportWithTemplateModalVisible] = useState(false); | ||
| const [searchRequestResponseStatusCode, setSearchRequestResponseStatusCode] = useState<number | null>(null); | ||
| const [isDEWModalVisible, setIsDEWModalVisible] = useState(false); | ||
|
|
|
Great work on this, thank you! |
|
@ShridharGoel Can you please pull main to fix typechecks/jest? |
|
✋ 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/JS00001 in version: 9.2.67-0 🚀
|
|
🚀 Deployed to staging by https://github.com/JS00001 in version: 9.2.70-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.2.70-0 🚀
|
|
This PR caused #87285. Explanation here. |
|
This PR caused #79952. When searching in |
Explanation of Change
Maintain user defined order in search query. Now, inputs will not jump around and will remain at the same place where the user would have typed them.
Fixed Issues
$ #69394
PROPOSAL: #69394 (comment)
Tests
Offline 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))npm run compress-svg)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-09-25.at.1.18.31.AM.mov
Android: mWeb Chrome
Screen.Recording.2025-09-25.at.1.16.58.AM.mov
iOS: Native
Simulator.Screen.Recording.-.iPhone.16.Plus.-.2025-09-25.at.01.01.14.mp4
iOS: mWeb Safari
Simulator.Screen.Recording.-.iPhone.16.Plus.-.2025-09-25.at.01.11.51.mp4
MacOS: Chrome / Safari
Screen.Recording.2025-09-25.at.1.12.56.AM.mov
MacOS: Desktop
Screen.Recording.2025-09-25.at.1.09.09.AM.mov