Skip to content

fix(native): the map was black in every iOS release, Office tables threw, and iPads got two layouts at once - #769

Merged
thinkclay merged 1 commit into
mainfrom
fix/373-ipad-audit
Sep 15, 2026
Merged

thinkclay merged 1 commit into
mainfrom
fix/373-ipad-audit

Conversation

@thinkclay

Copy link
Copy Markdown
Contributor

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.ts set the light style to mapbox://styles/mapbox/standard in fe152b16f (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, 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 fe152b16f is every tag from app-v1.0.1 through app-v1.17.1 — including the build on TestFlight now.

before after
black map, markers only, Invalid size … {64, 64} in the Mapbox log streets-v12 renders; sidebar + desktop map layout

Proven rather than reasoned: swapping in streets-v12 alone made the same screen render. Native now reads NATIVE_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() 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 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

DrawerLayout says width < 1024 is small; the map screen said width <= 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.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 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.

ipad-portrait   768×1024   40 captures, 0 errors   phone layout, bottom tabs
ipad-landscape  1024×768   41 captures, 0 errors   sidebar layout
android         412×839    40 captures, 0 errors

No tablet-only layout break on web. Run against expo start --no-dev (the dev overlay otherwise sits in every screenshot).

Filed, not fixed

Two things that cost an hour each, so the next person doesn't pay them

Verified on the iPad Pro 13" simulator with an SDK 56 dev client built from this tree. scf-core:typecheck clean; 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

…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Audit: iPad viewport + tablet layouts (post v1.6.0)

1 participant