Repository navigation
Fix spend rule card page landscape overlap - #87678
Conversation
When no eligible cards exist, the BlockingView already communicates the empty state. Showing headerMessage simultaneously causes the search box text and BlockingView illustration to stack and overlap in landscape mode. Co-authored-by: Carlos Martins <luacmartins@users.noreply.github.com>
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
The Prettier check that previously failed on |
|
The only failing check is PR Reviewer Checklist, which requires manual action from a reviewer — it's not a code or CI failure. All code-related checks (ESLint, TypeScript, tests, builds, etc.) are passing. No fix is needed. |
|
Updated! |
Co-authored-by: Carlos Martins <luacmartins@users.noreply.github.com>
|
Fixed the failing ESLint check: replaced |
Reviewer Checklist
Screenshots/Videos |
|
🚧 @JS00001 has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
✋ 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.3.60-0 🚀
Bundle Size Analysis (Sentry): |
|
No help site changes are required for this PR. The changes are purely UI fixes (landscape overlap, empty-state layout, button label) on the SpendRuleCardPage and SpendRuleCategoryPage. There are no existing help site articles under |
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.3.60-22 🚀
|








Explanation of Change
When there are no eligible cards on the SpendRuleCardPage, both the
headerMessagetext (rendered below the search box) and theBlockingViewillustration are shown simultaneously. In landscape mode on Android, this causes them to overlap.This change makes
headerMessagereturn an empty string wheneligibleCards.length === 0, since theBlockingViewalready communicates the empty state ("No active cards" or "No results found"). TheheaderMessageis now only computed when there are eligible cards but the search input has filtered them all out.Fixed Issues
$ #87490
PROPOSAL: #87490 (comment)
Tests
Got itOffline tests
N/A
QA Steps
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))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: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari