Create description, merchant and reportID filters#46477
Conversation
Kicu
left a comment
There was a problem hiding this comment.
LGTM 👍
found you a few naming errors, but other than that code looks straightforward
| offlineIndicatorStyle={styles.mtAuto} | ||
| > | ||
| <FullPageNotFoundView shouldShow={false}> | ||
| <HeaderWithBackButton title={translate('common.date')} /> |
There was a problem hiding this comment.
copy-paste error, fix translation
| ); | ||
| } | ||
|
|
||
| SearchFiltersDescriptionPage.displayName = 'SearchFiltersMerchantPage'; |
There was a problem hiding this comment.
| SearchFiltersDescriptionPage.displayName = 'SearchFiltersMerchantPage'; | |
| SearchFiltersDescriptionPage.displayName = 'SearchFiltersDescriptionPage'; |
| offlineIndicatorStyle={styles.mtAuto} | ||
| > | ||
| <FullPageNotFoundView shouldShow={false}> | ||
| <HeaderWithBackButton title={translate('common.date')} /> |
| offlineIndicatorStyle={styles.mtAuto} | ||
| > | ||
| <FullPageNotFoundView shouldShow={false}> | ||
| <HeaderWithBackButton title={translate('common.date')} /> |
| ); | ||
| } | ||
|
|
||
| SearchFiltersReportIDPage.displayName = 'SearchFiltersMerchantPage'; |
There was a problem hiding this comment.
| SearchFiltersReportIDPage.displayName = 'SearchFiltersMerchantPage'; | |
| SearchFiltersReportIDPage.displayName = 'SearchFiltersReportIDPage'; |
luacmartins
left a comment
There was a problem hiding this comment.
PR is looking good. Let's get this in review soon!
src/languages/es.ts
Outdated
| value: 'Valor', | ||
| downloadFailedTitle: 'Error en la descarga', | ||
| downloadFailedDescription: 'No se pudo completar la descarga. Por favor, inténtalo más tarde.', | ||
| reportID: 'ID informe', |
There was a problem hiding this comment.
| reportID: 'ID informe', | |
| reportID: 'ID del informe', |
|
@ikevin127 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] |
|
Ready for review @luacmartins! |
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid.webmAndroid: mWeb Chromeandroid-mweb.webmiOS: Nativeios.mp4iOS: mWeb Safariios-mweb.mp4MacOS: Chrome / Safariweb.movMacOS: Desktopdesktop.mov |
ikevin127
left a comment
There was a problem hiding this comment.
Similarly to #46197 (review), code and UI wise this is on point 🚀
The only thing that I found to be off with the functionality is that once a filter is applied, it doesn't seem to change anything in the search Expenses list compared to before the filter was applied.
For example the reviewer checklist Web video:
MacOS: Chrome / Safari
web.mov
Few other observations (NAB) but wanted to bring them up before merge:
- all 3 fields capitalize the value once added; this does not get passed to the filters URL - only shows capitalized UI
Report IDfield allows all characters (inc. non-numeric)
@luacmartins @SzymczakJ If this is expected for now, and will be fixed to actually work once all filter categories are implemented then we're good to go here 🟢, but if this is supposed to work differently than in the video shown above then I think it should be fixed here before merging.
|
@ikevin127 it's an expected result. We're just modifying URL, which later will be used to produce expected Expenses list, but BE is not ready yet. |
| SCREENS.SEARCH.ADVANCED_FILTERS_MERCHANT_RHP, | ||
| SCREENS.SEARCH.ADVANCED_FILTERS_REPORT_ID_RHP, | ||
| SCREENS.SEARCH.ADVANCED_FILTERS_CATEGORY_RHP, | ||
| ], |
There was a problem hiding this comment.
LGTM! @SzymczakJ Let's fix the capitalization of merchant and description in a follow up PR.
|
✋ 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.16-0 🚀
|
|
🚀 Deployed to production by https://github.com/marcaaron in version: 9.0.16-8 🚀
|
Details
Fixed Issues
$ #46043
$ #46034
$ #46032
PROPOSAL: N/A
Tests
Offline tests
QA Steps
Same as tests.
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
android.mov
Android: mWeb Chrome
androidWeb.mov
iOS: Native
ios.mov
iOS: mWeb Safari
iosweb.mov
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
dekstop.mov