Skip to content

Feat/dmj gaps 5 - #59

Merged
wiifree merged 2 commits into
mainfrom
feat/dmj-gaps-5
Nov 24, 2026
Merged

wiifree merged 2 commits into
mainfrom
feat/dmj-gaps-5

Conversation

@wiifree

@wiifree wiifree commented Nov 24, 2026

Copy link
Copy Markdown
Member

DataTable exportColumns (recipes, vue, react, native – minor): a shown column can become several columns of the CSV/Excel export, at its position – e.g. "Name" shown as "Doe, Jane", exported as "First name" and "Last name". Found in the DMJ app (13 person tables).

  • Takes precedence over exportHeader/exportValue; exportable: false and hidden columns export nothing
  • Excel: the group label stays in the first export column; aggregate and footer of a split column go to its first part
  • One helper for all three tables (tableExportColumns in the recipes); printing and the table display are unchanged
  • Parity tests for CSV and Excel (groups, totals, precedence, hidden, not exportable) in Vue and React plus the Native helpers; story Export columns; docs section "DataTable export (CSV, Excel)"

Tested locally: export parity tests (19), MCP docs check, ESLint on the changed files, typecheck of recipes, native, react and vue.

…olumns

A shown column could only become one column of the CSV/Excel export.
Typical case: the table shows "Name" as "Doe, Jane", the export needs
"First name" and "Last name" - extra columns would show the name twice,
because only visible columns are exported.

- Column option exportColumns: [{ header, value }] replaces the column in
  the export at its position; it takes precedence over exportHeader and
  exportValue; exportable: false and a hidden column export nothing
- Excel: group label stays in the first export column, aggregate and
  footer of a split column go to its first part (group and total rows)
- One helper for all three tables: tableExportColumns in the recipes
  (Vue, React and tableCsv/tableXlsxSheet of React Native)
- Printing and the table itself are unchanged
- Parity tests (CSV, Excel with groups and totals, precedence, hidden,
  not exportable; Native helpers), story "Export columns", docs section
  "DataTable export (CSV, Excel)"

Signed-off-by: Florian Laabs <florian.laabs@wirecore.net>
Signed-off-by: Florian Laabs <florian.laabs@wirecore.net>
@wiifree
wiifree merged commit 3fe1cea into main Nov 24, 2026
18 checks passed
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