Repository navigation
Fix elements hidden behind keyboard in landscape mode - #102433
NicolasBonet merged 23 commits into
Conversation
…den behind keypad
|
@Expensify/design here I'm fixing a few places where inputs are hidden behind keyboard in landscape mode. I want to ask which of these solutions are better in your opinion on Spend screen and when creating expense:
Screen.Recording.2026-09-28.at.16.58.14.movScreen.Recording.2026-09-28.at.16.57.47.mov
Screen.Recording.2026-09-28.at.16.59.19.movScreen.Recording.2026-09-28.at.17.02.03.movFirst option should give enough space and is the easiest one, the second one gives more space but the header and tab selector have separate collapsible containers as it's hard to have one in current setup as they are place in different places in the code and it may look weird |
|
2 obviously looks and feels better, but if we know it's not gonna be working reliably like that then option 1 feels okay. I very much prefer two though haha. |
|
Second option it is then 👍 |
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
@codex please review |
|
@MelvinBot review |
ReviewThe refactor looks correct. Moving the shared logic into
Nits
I didn't run the app. These changes are native-only, so the web build renders |
|
@MelvinBot please review bro |
Follow-up review (up to
|
| shouldUpdateFocusedIndex | ||
| alternateNumberOfSupportedLines={2} | ||
| disableKeyboardShortcuts | ||
| listFooterContent={shouldFooterBeInsideList ? footer : undefined} |
There was a problem hiding this comment.
Use footerContent + shouldFooterBeInsideList here too?
The other lists in this PR pass footerContent with shouldFooterBeInsideList. Would it make sense to do the same here and drop the listFooterContent / !shouldFooterBeInsideList && footer toggle?
There was a problem hiding this comment.
using footerContent + shouldFooterBeInsideList would change the layout in portrait mode -> SelectionList is wrapped in OfflineWithFeedback, so the errors would be displayed below the button instead of between the list and the button
| <View style={styles.ph5}> | ||
| <Text style={[styles.textHeadlineLineHeightXXL, styles.mb6]}>{translate('addPersonalBankAccount.countrySelectionStepHeader')}</Text> | ||
| </View> | ||
| <CollapsibleHeaderOnKeyboardGroupMember> |
There was a problem hiding this comment.
BankAccountPurposePage and CollectDepositAccount also render this list without a CollapsibleHeaderOnKeyboardGroup, so the header never collapses there.
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. Keep them coming! Reviewed commit: ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
|
I see github actions are currently failing due to Setup node step failure caused by something not added on this PR |
|
@GCyganek Could you merge main? The failing checks should be fixed now |
|
We did not find an internal engineer to review this PR, trying to assign a random engineer to #102082 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
|
🚧 NicolasBonet has triggered a test Expensify/App build. You can view the workflow run here. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/NicolasBonet in version: 9.5.8-0 🚀
|
|
|
|
🚀 Deployed to production by https://github.com/cristipaval in version: 9.5.8-5 🚀
Bundle Size Analysis (Sentry): |
Explanation of Change
In landscape the header plus the open keyboard left no vertical room for the focused input. Five screens now wrap their header/top content in
CollapsibleHeaderOnKeyboardand the combination of newCollapsibleHeaderOnKeyboardGroup/GroupMemberso it collapses while the keyboard is open, and three selection lists move their footer into the list viauseShouldFooterBeInsideListso the confirm button scrolls with the data instead of eating the remaining space.Fixed Issues
$ #102082
$ #102047
$ #102122
$ #102120
$ #102119
$ #102899
PROPOSAL: N/A
Tests
1. Create expense
2. Spend screen
3. Wallet
4. Workspace remove fixed distance
commuterExclusionsbeta enabled5. Workspace additional approver
6. Workspace company card edit name
Pre-condition: Keep font size to maximum
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
Android: Native
Screen.Recording.2026-09-29.at.14.33.54.mov
Screen.Recording.2026-09-29.at.14.34.22.mov
Screen.Recording.2026-09-29.at.14.34.44.mov
Screen.Recording.2026-09-29.at.14.36.24.mov
Screen.Recording.2026-09-29.at.14.37.26.mov
Screen.Recording.2026-10-08.at.11.37.36.mov
iOS: Native
Screen.Recording.2026-09-29.at.14.52.44.mov
Screen.Recording.2026-09-29.at.15.29.42.mov
Screen.Recording.2026-10-08.at.11.36.16.mov