Skip to content

fix(native): no cookie sheet on iOS/Android, and Office tables render as cards on an iPad - #794

Merged
thinkclay merged 7 commits into
mainfrom
fix/764-768-native-review
Sep 17, 2026
Merged

thinkclay merged 7 commits into
mainfrom
fix/764-768-native-review

Conversation

@thinkclay

@thinkclay thinkclay commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

What

Track B of #778 — the native review pass. Fixes #764 and #768, and adds the pre-submit checklist line #765 asked for.

#764 — no cookie sheet on iOS/Android

The native provider was a copy of the web one: the "This site uses cookies" sheet pinned to every screen, writing consent_records rows tagged ReactNative/ios. Decision taken as recommended on the epic — option 1, native collects no cookie consent: an app sets no cookies, its analytics are first-party (PostHog, Sentry as service providers), nothing tracks across apps, so no App Tracking Transparency prompt either (app.config.ts already declares NSPrivacyTracking: false and no NSUserTrackingUsageDescription).

  • CookieConsentProvider.native.tsx keeps the provider (so useCookieConsent() works for shared code) but feeds it a fixed NATIVE_IMPLICIT_CONSENT through a storage that never persists, renders no banner or dialog, and records nothing.
  • useCookieConsentState (the gate AuthProvider uses for PostHog identify / Sentry user) answers the same implicit state on native from the first render, so analytics identity runs on native without a sheet.
  • docs/agents/RELEASE-PROCESS.md gains Native privacy answers (cookie consent, ATT, analytics identity — the same answer for App Store labels, Play Data Safety and the next reviewer) and a Pre-submit checklist (Workers map in both appearances — Native map has been black in every iOS release: light/dark styles are Mapbox Standard, the bundled SDK is v10 #765 — the iPad table, and no cookie sheet).
  • Verified on the iPad Pro and iPhone 17 Pro simulators: the first screen carries no consent UI.

#768 — Office tables readable on an iPad

Three Scaffald/ui PRs, each found by rendering on the simulator after the previous one:

cause fix
ui#33 the grid mode is a web layout (horizontal ScrollView → unbounded '100%' View → FlatList with sticky header) and an iPad portrait is exactly 768pt, so < 768 never stacked native always stacks (shouldStackTable); stackBelow still governs web. Also '20%' column widths were parseFloat'd to 20px, on web too
ui#34 + table-columns.ts here a stacked line put a formatter's string straight into a <View> — native throws. Two layers: flexRender turns any function into a component, so isValidElement waved the string through stackedCellContent wraps primitives in <Text>; the adapter calls plain function cells directly so their primitive reaches it
ui#35 rows existed and painted nowhere: a FlatList nested in the page ScrollView measured a zero-height window; the container's flex: 1 + overflow: hidden resolved to zero height under Yoga; the toolbar drew a 64px empty block plain map; content-sized stackedContainer for stacked tables; toolbar only when it has content

Verified on the iPad Pro 13" simulator, Office → Storage Analytics with four seeded rows: labelled cards (User, Total Usage, Work Logs, Portfolio, Certifications, Limit, Last Updated), no overlap, no empty block. Web grid mode untouched.

The iPhone half of #768's acceptance is blocked by a different bug, filed as #796: the Office storage screen is a plain Stack with no ScrollView, so on a phone it does not scroll at all and the table is unreachable below the fold (the worker Dashboard scrolls under the same gesture on the same device). Stacking is the same code at every native width, and the phone's first screen was checked for #764.

Verification

  • scf-core: 2 native consent tests (hook answers implicit state; provider renders no banner and reports shouldShowBanner: false), 5 columnsFromTanStack tests. ui: 6 Table tests across the three PRs. Typecheck green for scf-core and ui; biome clean; pnpm prepush green.
  • Simulator: dev client 1.17.1 against this branch's Metro, signed in with a locally minted magic link.

Seen on the way, not fixed here

The Applications Lanes view on the iPad overlaps row metadata when the outcome text is long ("Overdue — no first response yet" pushes "Union / Assignee / Outcome" into each other). Lane rows, not Table; worth its own issue under #622.

Also on the way: Scaffald/ui#31 and #32 (another session) removed lucide-react from the ui package, which the pointer bumps pulled in; the lockfile is refreshed here so CI's frozen install passes.

🤖 Generated with Claude Code

thinkclay and others added 6 commits September 17, 2026 04:37
…implicitly, and the privacy answers are written down

Fixes #764. Also the pre-submit checklist line #765 asked for.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
…ve, percentage widths

Part of #768.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
…are strings in Text

Part of #768.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
…ach a <Text>

flexRender turns any function into a React component, so a formatter's
string return came back inside an element that isValidElement waved through
and native then rendered as a bare child of the stacked <View>. Every Office
table on an iPad. Part of #768.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
… the ui package

Pulled in by the pointer bumps; CI's frozen install refused the stale lockfile.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
thinkclay added a commit to Scaffald/ui that referenced this pull request Sep 17, 2026
…moved (#36)

The alias pointed at lucide-react, which is no longer declared anywhere
after #31; #32 declared lucide-react-native for the docs site, so it now
resolves as itself through the react-native-svg mock. A warm webpack cache
hid this locally; every clean install failed (Scaffald/SaaS#794 CI).

Co-authored-by: Claude Fable 5.1 <[email protected]>
…aliases to the removed lucide-react

Part of #768; unblocks CI on #794.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@thinkclay
thinkclay merged commit c67f930 into main Sep 17, 2026
9 checks passed
@thinkclay
thinkclay deleted the fix/764-768-native-review branch September 17, 2026 09:36
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.

Native app shows the web "This site uses cookies" banner on every screen — decide what consent native collects

1 participant