Repository navigation
Keep Agents selection buttons on the header row in landscape mode - #96338
Conversation
Co-authored-by: Nicolás Bonet <NicolasBonet@users.noreply.github.com>
|
There's no code failure to fix here — the only failing check is Every actual code check is green:
I also sanity-checked the diff: the new import The Next step: complete the PR Author Checklist and that last check will clear. |
|
🚧 NicolasBonet has triggered a test Expensify/App build. You can view the workflow run here. |
This comment has been minimized.
This comment has been minimized.
|
All checks are green now — nothing to fix. 🎉 The only check that had been failing was The only item still running is |
|
@eh2077 could you please check this today or let me know so we ca re-assign it? Thank you! |
|
@NicolasBonet I can review it if needed, since I managed the landscape mode project |
Let's give @eh2077 the chance to check this today, if not we can re-assign |
|
@truph01 re-assigned to you, could you please give it a look asap? 🙏 |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppScreen.Recording.2026-07-23.at.17.59.33.movScreen.Recording.2026-07-23.at.18.01.02.moviOS: mWeb SafariMacOS: Chrome / SafariScreen.Recording.2026-07-23.at.18.07.54.mov |
|
@MelvinBot Please update the Tests and QA steps section to: |
|
Updated the Tests section with your steps (added the precondition, and simplified the Agents-only flow), and set QA Steps to "Same as tests". ✅ |
|
🚧 carlosmiceli 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! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/carlosmiceli in version: 9.4.44-0 🚀
|
|
🤖 I reviewed the changes in this PR against Expensify's help site files under No help site changes are required. This PR is a purely cosmetic layout fix: it switches the button-placement guards on the Agents page from the raw There is no change to any feature, workflow, setting, label, or documented behavior. The existing AI Agents help articles (e.g. Create and Use Custom Agents, Create Agent Rules) describe how to create and use agents and rules; none of that content is affected by where these buttons visually appear on narrow landscape screens. Accordingly, no draft PR was created. @NicolasBonet, please review the linked help site PR and confirm it reflects the current behavior. Then mark the linked help site PR |
|
🚀 Deployed to production by https://github.com/marcaaron in version: 9.4.44-6 🚀
Bundle Size Analysis (Sentry): |
Explanation of Change
In landscape mode on narrow screens, the Agents page was rendering the selection-mode header buttons (
1 selected/Select multiple) on a separate row below the header instead of on the header row itself, unlike the Expense Rules page.The placement was gated on the raw
shouldUseNarrowLayoutflag, which istrueon narrow screens in both portrait and landscape. This change switches the two button-placement guards to the existinguseShouldDisplayButtonsInSeparateLine()hook (which returnsshouldUseNarrowLayout && !isInLandscapeMode), matching how the Expense Rules page already handles this. The rest of theshouldUseNarrowLayoutusage (selection-mode header title/icon/back button) is intentionally left unchanged — only the button placement needed the landscape-aware check.Fixed Issues
$ #96297
PROPOSAL: #96297 (comment)
Tests
Precondition: Create an expense rule and agent.
Offline tests
N/A
QA Steps
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, 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.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
iOS: Native
iOS: mWeb Safari