Repository navigation
Conversation
|
@codex please review |
Codex Review Summary: ✅ CompletedThis 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. |
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
|
Codex Review: Didn't find any major issues. Delightful! 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". |
|
Checking one thing so switching to draft for a while... |
|
Discussed this approach internally and I am going to take another look at it tomorrow morning to make sure it does not touch other devices than iPhone Duo and then will reopen if it feels good |
Every modal is wrapped in ModalVerticalBar, but most never show a back button and only a foldable iPhone has a vertical bar. The provider now only tracks headers; the edge, insets and native stack move to ModalVerticalBarStrip, which mounts once a header adds its button.
|
@codex review |
|
Codex Review: Didn't find any major issues. 🚀 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". |


Explanation of Change
On the iPhone Duo, a modal covers the screen and its bar, so back buttons of modal headers (e.g. the date picker's month and year lists) showed nowhere.
ReanimatedModalnow wraps its content inModalVerticalBar, a one-screen native stack along the vertical bar's edge whose bar holds only the back button, anduseVerticalBarBackButtonhands modal headers' buttons to it. The stack takes its edge fromUITraitCollection.verticalBarEdge(newuseVerticalBarEdgehook) and takes touches only over the vertical bar. A header that hands its button over again keeps its place under the headers that came after it.In Split View, UIKit gives the vertical bar's inset only to screens, not to the window. Full-height modals (right-docked and centered types) now keep the screen's side insets (
WindowSafeAreaInsets), so they leave the vertical bar column clear and show their back button there, like screens. Sheets, confirmation dialogs, popovers and full-screen modals still cover the column. A modal opened from another modal, like the month list opened from the date picker's calendar, still reads the screen's insets.Fixed Issues
$ #108752
PROPOSAL: N/A
Tests
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)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
Android: mWeb Chrome
iOS: Native
108752-modal-vertical-bar-back-button.mp4
iOS: mWeb Safari
MacOS: Chrome / Safari