Repository navigation
fix(native): the map was black in every iOS release, Office tables threw, and iPads got two layouts at once - #769
Merged
Merged
Conversation
…rew, and iPads got two layouts at once Closes #373 — the iPad audit that was filed as low priority and turned out to hold a P0. The native map has never rendered. mapboxStyleConfig.ts set the light style to mapbox://styles/mapbox/standard in fe152b1 (2026-03-13) and the dark style to a Scaffald style that imports it. Both need Mapbox Maps SDK v11; the app bundles MapboxMaps 10.19.5 (@rnmapbox/maps 10.1.45). On v10 the style request answers 200 — the token is fine, which is why #686/#694 could not have caught this — and the SDK paints nothing: a black map with markers floating on it. git tag --contains fe152b1 is every tag from app-v1.0.1 through app-v1.17.1, the build on TestFlight now. Proven by swapping in streets-v12 alone and watching the same screen render. Native now reads NATIVE_MAP_STYLE_CONFIG (streets-v12 / dark-v11); web keeps Standard, which mapbox-gl JS v3 draws. The SDK v11 move that lets native have Standard too is #765. Every Office table threw "Text strings must be rendered within a <Text> component" on native. columnsFromTanStack() hands flexRender()'s result to @scaffald/ui's Table, which drops render() output straight into a <View>; flexRender returns the raw value for any column without a custom cell. Web tolerates a bare string there, native does not. Primitives now get a <Text>. A 1032pt iPad Pro rendered the drawer's sidebar layout (width < 1024) and the map screen's phone layout (isSmallScreen = width <= 800 || isNativeMobile) at the same time, so the floating Map/List bar sat clipped over a desktop-width map. Phones are under 800 on every platform, so the native override only ever changed the answer for tablets, and changed it the wrong way. Width alone now. ui-sweep.mjs takes AUDIT_DEVICE (iphone | ipad-portrait | ipad-landscape | android) so #373's viewports and #372's web half are one command each; its login no longer clicks a terms checkbox the form has not had since #342; and it dismisses the dev error overlay the #681 hydration mismatch paints over every protected route at these widths. Three sweeps ran clean on --no-dev: 121 captures, 0 errors, no tablet-only layout break on web (768 gets the phone layout, 1024 gets the sidebar). Verified on the iPad Pro 13" simulator with an SDK 56 dev client built from this tree: map renders, Office loads without the error, sidebar + desktop map layout. Findings that need a decision rather than a fix are filed: #764 (native shows the web cookie banner), #765 (SDK v11). Two gotchas hit on the way and worth knowing: Metro OOMs when a native lazy route bundles during a web SSR sweep (#680) — keep the simulator idle while sweeping — and the preview launcher reads the main checkout's .claude/launch.json, not the worktree's. scf-core:typecheck clean; biome reports only pre-existing hits on untouched lines.
This was referenced Sep 15, 2026
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 #373. The iPad audit was filed as low priority in May; the first real pass found a P0 that has nothing to do with iPads.
The native map has never rendered
mapboxStyleConfig.tsset the light style tomapbox://styles/mapbox/standardinfe152b16f(2026-03-13) and the dark style to a Scaffald style thatimportsit. Both need Mapbox Maps SDK v11. The app bundles MapboxMaps 10.19.5 (@rnmapbox/maps 10.1.45,apps/scaffald/ios/Podfile.lock:387). On v10 the style request answers 200 — the token is fine, which is exactly why #686/#694 could not have caught this — and the SDK paints nothing: a black map with the markers floating on it.git tag --contains fe152b16fis every tag fromapp-v1.0.1throughapp-v1.17.1— including the build on TestFlight now.Invalid size … {64, 64}in the Mapbox logProven rather than reasoned: swapping in
streets-v12alone made the same screen render. Native now readsNATIVE_MAP_STYLE_CONFIG(streets-v12/dark-v11); web keeps Standard, which mapbox-gl JS v3 draws. Getting native onto Standard too is the SDK v11 move in #765.Every Office table threw on native
Text strings must be rendered within a <Text> component— component stack<flexRender />.columnsFromTanStack()handsflexRender()'s result to@scaffald/ui'sTable, which dropsrender()output straight into a<View>;flexRenderreturns the raw value for any column without a custom cell. Web tolerates a bare string in a div; native does not. Primitives now get a<Text>; elements pass through. Office loads clean on the iPad after this. (The table's layout on native is still wrong — filed separately.)An iPad Pro got two layouts at once
DrawerLayoutsayswidth < 1024is small; the map screen saidwidth <= 800 || isNativeMobile. A 1032pt iPad Pro therefore had the sidebar and the phone-only floating Map/List bar, clipped, over a desktop-width map. Phones are under 800 on every platform, so the native override only ever changed the answer for tablets — and changed it the wrong way. Width alone now.The sweep can do tablets and Android now
scripts/audit/ui-sweep.mjstakesAUDIT_DEVICE(iphone|ipad-portrait|ipad-landscape|android), so #373's viewports and #372's web half are one command each. Its login no longer clicks a terms checkbox the form hasn't had since #342, and it dismisses the dev error overlay that the #681 hydration mismatch paints over every protected route at these widths.No tablet-only layout break on web. Run against
expo start --no-dev(the dev overlay otherwise sits in every screenshot).Filed, not fixed
CookieConsentProvider.native.tsxmounts it deliberately; what consent native should collect is a product/ATT call.Two things that cost an hour each, so the next person doesn't pay them
.claude/launch.json, not the worktree's.Verified on the iPad Pro 13" simulator with an SDK 56 dev client built from this tree.
scf-core:typecheckclean; biome's only hits are pre-existing on untouched lines. The iPad mini pass needs the simulator-access prompt answered; not blocking.🤖 Generated with Claude Code