Skip to content

Add CSV support to Table component#76

Open
bencounsell wants to merge 3 commits into
mainfrom
auto-fix/issue-67
Open

Add CSV support to Table component#76
bencounsell wants to merge 3 commits into
mainfrom
auto-fix/issue-67

Conversation

@bencounsell
Copy link
Copy Markdown
Member

Summary

Adds CSV support to the Table component, allowing users to:

  • Drop in a CSV file via resource picker
  • Specify a URL to a CSV file (e.g. Google Sheets CSV URL)
  • Optionally use the first row as table headers

The existing manual table editing mode is preserved as the default.

Fixes #67

Auto Fix Bot and others added 3 commits March 30, 2026 09:48
The CSV controls were added directly to the generated properties.json.
This moves them into properties.config.json (the source) and rebuilds
properties.json via rw-build so the change survives future builds.

Also gates Columns, Rows, and the Table Settings heading on
dataSource == 'manual', and reorders so Data Source sits at the top
of the Settings group.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
The template had a compound @if expression and a computed bracket
lookup, which Elements templates don't support — every @if must be a
simple boolean property reference. Precomputes wantsHeader in hooks,
flattens row.cells so each cell already carries its widthClass and a
useCsvText flag, and gives columns a useCsvTitle flag. Template now
only does plain @if(name) checks and direct property reads.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
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.

Add CSV support to Table

1 participant