Skip to content

fix(Table): a stacked line wraps bare strings in Text — native threw on the first stacked render - #34

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

thinkclay merged 1 commit into
mainfrom
fix/table-stacked-primitive-content

Conversation

@thinkclay

Copy link
Copy Markdown
Contributor

What

Follow-up to #33, found the moment an iPad actually rendered a stacked table (Scaffald/SaaS#768): every row threw Text strings must be rendered within a component.

A column's render may return a plain string or number (the storage table's formatted byte counts do). The grid path's TableCell wraps those in <Text>; the stacked path put them straight into a <View>, which react-native-web tolerates and native does not. New stackedCellContent(value, color) wraps strings, numbers, booleans and empties in <Text> and passes elements through — the same treatment the no-render case already had.

Verification

2 new tests on the helper (plus the 4 from #33). tsc and biome clean. iPad Pro simulator screenshot of the Office storage table rendering as cards on the Scaffald/SaaS PR.

🤖 Generated with Claude Code

…on the first stacked render

A column's render may return a plain string or number. The grid path's
TableCell wraps those in <Text>; the stacked path put them straight into a
<View>, which react-native-web tolerates and native throws on. Nobody saw it
because native never stacked until #33. Scaffald/SaaS#768.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@thinkclay
thinkclay merged commit 0e35b87 into main Sep 17, 2026
@thinkclay
thinkclay deleted the fix/table-stacked-primitive-content branch September 17, 2026 08:42
thinkclay added a commit to Scaffald/SaaS that referenced this pull request Sep 17, 2026
…are strings in Text

Part of #768.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
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