-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
shouldShowEmptyState
doesn't check if there are no transactions in the search results.Hence,
isSearchResultsEmpty
is used to determineshouldShowEmptyState
instead of checking if the search resultsdata
length 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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.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