Top bar for outstanding tab refuses to disappear when no transactions are found. #55329
Conversation
|
@mananjadhav 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] |
|
Will review this today. |
|
@Tony-MK I tried deleting the invoice and the row doesn't get deleted. I tried that on different accounts. Screen.Recording.2025-01-21.at.11.58.40.PM.movScreen.Recording.2025-01-22.at.12.01.02.AM.mov |
|
This is a bug from somewhere else because it is also happening in production. Screen.Recording.2025-01-21.at.22.09.23.movLet me try and catch the problem. |
This reverts commit 0a97e9f.
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid-delete-row.movAndroid: mWeb Chromemweb-chrome-delete-row.moviOS: Nativeios-delete-row.moviOS: mWeb Safarimweb-safari-delete-row.movMacOS: Chrome / Safariweb-delete-row.movMacOS: Desktopdesktop-delete-row.mov |
|
It worked fine for me if I delete 1-2 invoices. If I bulk delete say 10-15 invoices, the API takes sometime. We don't have to worry about it here as it's handled in another issue. |
dangrous
left a comment
There was a problem hiding this comment.
man it's annoying to look through all the lint changes from that new rule haha.
New code looks good!
|
✋ 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/dangrous in version: 9.0.92-0 🚀
|
|
@Tony-MK PR is failing with original issue #54731 on mWeb only https://platform.utest.com/services/links/v1/internal/56251306?.mp4 |
|
@izarutskaya Can't access the video, can you upload here please? |
|
@Tony-MK, @mananjadhav, this PR introduced this regression. Is one of you available to fix it, or would we better revert it? |
|
Failing with original bug #54731 in mweb https://platform.utest.com/services/links/v1/internal/56251306?.mp4 |
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 9.0.92-6 🚀
|
Explanation of Change
The top bar for the outstanding tab does not disappear because the condition for
shouldShowEmptyStatedoesn't check if there are no transactions in the search results.Hence,
isSearchResultsEmptyis used to determineshouldShowEmptyStateinstead of checking if the search resultsdatalength is zero.Fixed Issues
$ #54731
PROPOSAL: #54731 (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 stepssectiontoggleReportand 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.-.Native.webm
Android: mWeb Chrome
Android.-.mWeb.webm
iOS: Native
iOS.-.Native.mp4
iOS: mWeb Safari
iOS.-.mWeb.mp4
MacOS: Chrome / Safari
macOS.-.Chrome.mov
MacOS: Desktop
macOS.-.Desktop.mov