Conversation
|
@ 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] |
|
@rayane-djouah I am not sure why but no reviewer has been assigned to this pr. You have reviewed #49838 and I think you can review this one as a follow up pr to #49838. |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-10-25.at.10.30.58.PM.movAndroid: mWeb ChromeScreen.Recording.2024-10-25.at.10.33.27.PM.moviOS: NativeSimulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2024-10-25.at.22.19.25.mp4iOS: mWeb SafariSimulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2024-10-25.at.22.24.09.mp4MacOS: Chrome / SafariScreen.Recording.2024-10-25.at.10.08.32.PM.mov1.mov2.mov33.movMacOS: DesktopScreen.Recording.2024-10-25.at.10.11.37.PM.mov |
luacmartins
left a comment
There was a problem hiding this comment.
Nice changes. Was the link dropping issue a parsing problem?
|
Yes, the link dropping issue was a parsing problem. When you pasted the link parsing error occurred and router navigated to search page with the last query without error. |
luacmartins
left a comment
There was a problem hiding this comment.
@289Adam289 we have conflicts and some tests are failing
|
We also have conflicts now |
|
@rayane-djouah I fixed both bugs and resolved conflicts |
|
all yours @rayane-djouah |
|
@289Adam289 We still have a parsing error with the
|
|
I've given it a try and I think it works. Unit tests pass but further testing is needed because I've changed important rules heavily. cc @rayane-djouah |
luacmartins
left a comment
There was a problem hiding this comment.
LGTM. I did some testing on the latest grammar and it seems to be working well. All yours @rayane-djouah
|
🎯 @rayane-djouah, thanks for reviewing and testing this PR! 🎉 An E/App issue has been created to issue payment here: #51506. |
|
✋ 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/luacmartins in version: 9.0.55-0 🚀
|
|
Hi! I haven't confirmed yet but it seems like this is related to #51661 - can you take a quick look? |
|
Okay yep confirmed - it's d3f99c1 The error is: |
|
🚀 Deployed to production by https://github.com/Beamanator in version: 9.0.55-10 🚀
|
|
|
||
| Object.keys(query.flatFilters) | ||
| query.flatFilters.forEach((filter) => { | ||
| filter.filters.sort((a, b) => localeCompare(a.value.toString(), b.value.toString())); |
|
|
||
| Object.keys(query.flatFilters) | ||
| query.flatFilters.forEach((filter) => { | ||
| filter.filters.sort((a, b) => localeCompare(a.value.toString(), b.value.toString())); |
| } | ||
| if (filterName === CONST.SEARCH.SYNTAX_FILTER_KEYS.AMOUNT) { | ||
| if (typeof filter === 'string') { | ||
| const backendAmount = CurrencyUtils.convertToBackendAmount(Number(filter)); |
There was a problem hiding this comment.
This change caused #79934,
This PR added amount-to-cents conversion (convertToBackendAmount) to the findIDFromDisplayValue function in src/libs/SearchQueryUtils.ts. The PR's intent was to fix "amount display value in cents," but this function was already being called for all search submissions from SearchRouter.tsx — including clicks on recent search items.


Details
This pr fixes following problems mentioned in #50250:
Fixed Issues
#50250
#50988
PROPOSAL:
Tests
Open Search Page
Enter custom search query with
amountVerify that filters except default filters and free text don't change order
Verify that
amountfilter is not displayed in centsVerify that special characters e.g. emoji can be used in search input
Verify that no errors appear in the JS console
Offline tests
QA Steps
Open Search Page
Enter custom search query with
amountVerify that filters except default filters and free text don't change order
Verify that
amountfilter is not displayed in centsVerify that special characters e.g. emoji can be used in search input
Verify that no errors appear in the JS console
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.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.2024-10-17.at.17.41.04.mp4
Android: mWeb Chrome
iOS: Native
Screen.Recording.2024-10-17.at.17.35.11.mp4
iOS: mWeb Safari
Screen.Recording.2024-10-17.at.17.36.41.mp4
MacOS: Chrome / Safari
Screen.Recording.2024-10-17.at.17.28.59.mp4
MacOS: Desktop