fix: Search input on Reports page appends text to existing filter without whitespace#75560
Conversation
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
|
@bernhardoj 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] |
|
I have issue while building ios native now, will add it asap |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppandroid.mp4Android: mWeb Chromeandroid.mweb.mp4iOS: HybridAppios.mp4iOS: mWeb Safariios.mweb.mp4MacOS: Chrome / Safariweb.mp4MacOS: Desktopdesktop.mp4 |
|
@bernhardoj I added ios native record |
| const isDefaultQuery = isDefaultExpensesQuery(queryJSON); | ||
| const [currentUserAccountID = -1] = useOnyx(ONYXKEYS.SESSION, {selector: accountIDSelector, canBeMissing: false}); | ||
| const queryText = buildUserReadableQueryString(queryJSON, personalDetails, reports, taxRates, allCards, allFeeds, policies, currentUserAccountID); | ||
| const queryText = buildUserReadableQueryString(queryJSON, personalDetails, reports, taxRates, allCards, allFeeds, policies, currentUserAccountID, true); |
There was a problem hiding this comment.
Why is this passed as a flag? Why do we only want this behavior on one page?
There was a problem hiding this comment.
@JS00001 This because i don't we it effect to other places like in
App/src/hooks/useSearchTypeMenu.tsx
Lines 88 to 92 in 5717a04
don't want to add an extra space if not needed
There was a problem hiding this comment.
@JS00001 friendly bump here. Is it okay to you?
arosiclair
left a comment
There was a problem hiding this comment.
LGTM other than Jack's question
|
✋ 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 🚀
|
|
@kavimuru As in test steps, white space only added after select filter. We're still allowing users edit without space if they type manually |
|
🚀 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 🚀
|
Explanation of Change
Fixed Issues
$#73760
PROPOSAL:#73760 (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))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
android.mov
Android: mWeb Chrome
android_chorm.mov
iOS: Native
Screen.Recording.2025-11-22.at.14.48.45.mov
iOS: mWeb Safari
ios_sfr.mov
MacOS: Chrome / Safari
chorme.mov
MacOS: Desktop
desktop.mov