[CP Staging] Expense - Add to unreported expenses issues#72339
Conversation
|
@brunovjk @mjasikowski One of you needs to 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] |
Codecov Report❌ Patch coverage is
... and 6 files with indirect coverage changes 🚀 New features to boost your workflow:
|
|
|
||
| const filteredTransactions = useMemo(() => { | ||
| if (!debouncedSearchValue.trim()) { | ||
| if (!debouncedSearchValue.trim() || !shouldShowTextInput) { |
There was a problem hiding this comment.
This is to fix the empty list issue
| setErrorMessage(''); | ||
| }, [selectedIds, translate, report, isASAPSubmitBetaEnabled, session?.accountID, session?.email, policy, reportNextStep, policyCategories]); | ||
|
|
||
| const footerContent = useMemo(() => { |
There was a problem hiding this comment.
This is to fix the error message not showing issue
| includeSafeAreaPaddingBottom | ||
| shouldEnablePickerAvoiding={false} | ||
| shouldEnableMaxHeight | ||
| enableEdgeToEdgeBottomSafeAreaPadding |
There was a problem hiding this comment.
This is to fix the button is hidden by keyboard issue
Reviewer Checklist
Screenshots/VideosAndroid: HybridApp72339_android_native.movAndroid: mWeb ChromeiOS: HybridApp72339_ios_native.moviOS: mWeb Safari72339_ios_web.movMacOS: Chrome / Safari72339_web_chrome.movMacOS: Desktop72339_web_desktop.mov |
| /> | ||
| )} | ||
| <Button | ||
| success |
There was a problem hiding this comment.
@lorretheboy, to clarify, why did we create this button, instead of using the ScreenWrapper one as before? Thank you.
There was a problem hiding this comment.
@brunovjk if so there is no error message on empty state. This is also one of the current pattern in codebase
App/src/pages/iou/SplitExpensePage.tsx
Line 266 in c8684e2
|
I have fixed this by adding |
|
@JS00001 all yours |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
[CP Staging] Expense - Add to unreported expenses issues (cherry picked from commit 45472c3) (cherry-picked to staging by mountiny)
|
🚀 Cherry-picked to staging by https://github.com/mountiny in version: 9.2.29-4 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.2.29-5 🚀
|
|
🚀 Cherry-picked to staging by https://github.com/mountiny in version: 9.2.30-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.2.30-6 🚀
|


Explanation of Change
Fixed Issues
$ #72336
$ #72355
$ #72310
$ #69978
PROPOSAL:
Tests
Test 1: Add to report button is hidden behind the keyboard
Precondition:
Create at least 16 unreported expenses.
Test 2: No result screen persists when search field disappears in unreported expense list
Precondition:
Create at least 16 unreported expenses in self DM.
Test 3: "Select at least one expense" error is not shown when there is no result
Precondition:
Have at least 16 unreported expenses in self DM.
Offline tests
QA Steps
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))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
WEBSITE.ANDROID.mov
iOS: Native
IOS.mov
iOS: mWeb Safari
WEBSITE.IOS.mov
MacOS: Chrome / Safari
WEBSITE.mov
MacOS: Desktop
DESKTOP.mov