Repository navigation
Feat/dmj gaps 5 - #59
Merged
Merged
Conversation
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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).exportHeader/exportValue;exportable: falseand hidden columns export nothingtableExportColumnsin the recipes); printing and the table display are unchangedTested locally: export parity tests (19), MCP docs check, ESLint on the changed files, typecheck of recipes, native, react and vue.