Repository navigation
fix(native): every Office screen scrolls on a phone - #798
Merged
Merged
Conversation
Fourteen Office screens are rooted in a plain Stack with no ScrollView of their own (storage, payments, transactions, violations, the project and team forms, the developer portal, Stripe settings, ...) and several more drop their scroll container in loading and error branches. On web the document scrolls so nobody noticed; on iOS the storage table sat below the fold with no way to reach it. Rather than a ScrollView per screen, the Office stack now wraps every screen through the navigator's `screenLayout`. `ScreenScroll` is a passthrough on web and a ScrollView with `flexGrow: 1` content on native, so `flex: 1` roots still fill the viewport and taller ones scroll. Screens that already scroll (DashboardLayout, OfficeLayout) nest harmlessly: Yoga sizes the inner scroller to its content and the outer one moves. A screen that must own its full height can override with `layout` on its own Stack.Screen. Also: OfficePageLayout's loading state rendered a bare string inside a Stack, which native logs as an error on every list screen while data loads. It is a Text now. Verified on the iPhone 17 Pro simulator: /office/storage scrolls to the stacked table (the iPhone half of #768), /office/cms/workers and /office/ats/checks scroll through their nested layouts, and the last card clears the bottom nav. Web /office/storage renders no wrapper and the document scrolls as before. Co-Authored-By: Claude Fable 5.1 <[email protected]>
This was referenced Sep 17, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #796. Completes the iPhone half of #768.
What
Fourteen Office screens are rooted in a plain
Stackwith no ScrollView of their own, and several more drop their scroll container in loading/error branches (full audit in the table below). On web the document scrolls so nobody noticed; on iOS the storage table sat below the fold with no way to reach it.Rather than a ScrollView per screen, the Office stack now wraps every screen through the navigator's
screenLayout(packages/scf-core/components/layouts/ScreenScroll.tsx, wired via a newscreenLayoutprop onDrawerLayout):ScrollViewwithcontentContainerStyle={{ flexGrow: 1 }}and bottom padding that clears the floating bottom nav, soflex: 1roots still fill the viewport and taller ones scrollDashboardLayout,OfficeLayout) nest harmlessly: Yoga sizes the inner scroller to its content and the outer one moveslayouton its ownStack.ScreenAlso fixed on the way:
OfficePageLayout's loading state rendered a bare string inside aStack(<Stack>Loading…</Stack>), which native logs as an error on every list screen while data loads. It is aTextnow.Audit: Office roots without a scroll container before this PR
office-storage-dashboard.tsx:243office-applications-screen.tsx:127projects/components/ProjectForm.tsx:179office-universities-form.tsx:200payments/office-payment-analytics.tsx:147payments/OfficeTransactionHistory.tsx:165legal/OfficeViolationReports.tsx:145settings/StripeSettingsPage.tsx:162api-keys/DeveloperPortal.tsx:140oauth/components/OAuthAppList.tsx:28StackrootsPlus loading/invalid branches in
applications/[applicationId]/inquiry,cms/jobs/[id]/edit,cms/organizations/[id]/edit,cms/universities/[id]/edit,cms/teams/[id]/settings,oauth-apps/[id]. The navigator-level wrapper covers all of these and any future screen.Verified
iPhone 17 Pro simulator, dev client 1.17.1 on this branch, signed in as the demo office user:
/office/storage: before, a swipe up changed nothing; after, it scrolls to "Top users by storage consumption", rendered as stacked cards, and the last card clears the bottom nav/office/cms/workers(OfficePageLayout+OfficeLayout, nested case): scrolls through the full user list, no LogBox error/office/ats/checks(DashboardLayout, nested case): scrolls to the endWeb, headless Chromium at 1280 and 1700 wide, signed in:
/office/storagerenders noscreen-scrollwrapper andwindow.scrollYmoves on a document scroll.Tests:
ScreenScroll.native.test.tsx(4) andScreenScroll.web.test.tsx(1).pnpm prepushgreen.Noted, not fixed here
DashboardLayoutscreens under Office now carry the bottom-nav inset twice at the very end of the page (the wrapper's and their own), about 90 px of extra whitespace on four screens.office-storage-dashboard.tsx,Row justify="space-between").🤖 Generated with Claude Code