Skip to content

fix(Table): stacked rows actually paint on native — plain map, content-sized container, no empty toolbar - #35

Merged
thinkclay merged 1 commit into
mainfrom
fix/table-stacked-native-layout
Sep 17, 2026
Merged

thinkclay merged 1 commit into
mainfrom
fix/table-stacked-native-layout

Conversation

@thinkclay

Copy link
Copy Markdown
Contributor

What

Third and last piece of Scaffald/SaaS#768. After #33 (native stacks) and #34 (strings get a Text), an iPad rendered the Office storage table as… nothing below the search box, with 4 rows present. Three causes, each confirmed on the simulator:

  • Nested FlatList painted nothing. The stacked list was a FlatList scrollEnabled={false} inside the page's ScrollView with removeClippedSubviews; on native it measured a zero-height window. It does not scroll (the page does), so it is a plain map now.
  • flex: 1 container collapsed to zero. styles.container is flex: 1 + overflow: hidden; inside a content-sized parent (a Card in a ScrollView) Yoga gives that zero height and clips every row. Web's CSS flex sizes it to content, which is why the phone layout never showed it. Stacked tables use a content-sized stackedContainer.
  • Empty toolbar. showHeader defaults true, so a table with neither search nor actions still drew a 64px padded block — the 'empty header' in the issue. The toolbar renders only when it has something in it.

Verification

iPad Pro 13" simulator, Office → Storage Analytics with four seeded rows: the table renders as labelled cards (User, Total Usage, Work Logs, Portfolio, Certifications, Limit, Last Updated), no overlap, no empty block. Screenshot on the Scaffald/SaaS PR. Existing 17 Table tests pass; tsc and biome clean. Web grid mode untouched; web stacked (phone) uses the same map and content-sized container, which is what cards want.

🤖 Generated with Claude Code

…t-sized container, no empty toolbar

Three things the first stacked render on an iPad showed (Scaffald/SaaS#768):
- the stacked list was a FlatList nested in the page ScrollView with
  removeClippedSubviews; on native it measured a zero-height window and
  painted no rows. The list does not scroll, so it is a plain map now.
- the container was flex: 1 + overflow: hidden; inside a content-sized
  parent Yoga resolves that to zero height and clips every row. Stacked
  tables use a content-sized container.
- the toolbar rendered as a 64px padded block with neither search nor
  actions in it. It only renders when it has content.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@thinkclay
thinkclay merged commit 5ba981d into main Sep 17, 2026
@thinkclay
thinkclay deleted the fix/table-stacked-native-layout branch September 17, 2026 08:53
thinkclay added a commit to Scaffald/SaaS that referenced this pull request Sep 17, 2026
thinkclay added a commit to Scaffald/SaaS that referenced this pull request Sep 17, 2026
… as cards on an iPad (#794)

* fix(native): no cookie sheet on iOS/Android — native answers consent 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]>

* chore(ui): bump @scaffald/ui to Scaffald/ui#33 — Table stacks on native, percentage widths

Part of #768.

Co-Authored-By: Claude Fable 5.1 <[email protected]>

* chore(ui): bump @scaffald/ui to Scaffald/ui#34 — stacked lines wrap bare strings in Text

Part of #768.

Co-Authored-By: Claude Fable 5.1 <[email protected]>

* fix(table-columns): call formatter cells directly so their strings reach 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]>

* chore(ui): bump @scaffald/ui to Scaffald/ui#35 — stacked rows paint on native

Part of #768.

Co-Authored-By: Claude Fable 5.1 <[email protected]>

* chore(lockfile): drop lucide-react, which Scaffald/ui#31 removed from 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]>

* chore(ui): bump @scaffald/ui to Scaffald/ui#36 — docs-site no longer aliases to the removed lucide-react

Part of #768; unblocks CI on #794.

Co-Authored-By: Claude Fable 5.1 <[email protected]>

---------

Co-authored-by: Claude Fable 5.1 <[email protected]>
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.

1 participant