Repository navigation
Feat/dmj gaps 6 - #61
Merged
Merged
Conversation
Whether a column starts hidden could only be set for the whole table with hiddenColumns, and a saved state (stateKey) replaced the visibility completely: a column added later, meant to be hidden, showed for every user with a saved state, because that state did not list it. - Column option hidden: the column starts hidden, the column menu shows it; while hiddenColumns is set it decides alone; hideable: false wins (warning in development) - The saved state lists the columns it knows (knownColumns): the user's choice for those, hidden for the others; a state saved before treats every column with hidden as new - Recipe helpers hiddenColumnDefaults, restoreHiddenColumns and tableColumnIds, used by Vue and React - React Native has no column menu: a column with hidden is not shown and not exported - Parity tests (start, column menu, export, hiddenColumns, hideable, saved state with/without the column, older state), story "Optional columns", docs section on hidden columns and the saved state 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 column option
hidden(recipes, vue, react, native – minor): a column starts hidden and is shown with the column menu. Found in the DMJ app (optional "First name"/"Last name" columns next to "Name" in 12 tables, most withstateKey).knownColumns). Known columns keep the user's choice; a column added later starts with itshiddenvalue instead of suddenly showing for everyone with a saved state. A state saved before treats every column withhiddenas new.hiddenColumnsis set it decides alone;hideable: falsewins overhidden(warning in development).hiddenis not shown and not exported.hiddenColumnDefaults,restoreHiddenColumns,tableColumnIds; parity tests for Vue and React; story Optional columns; docs section "DataTable: hidden columns and saved state".Tested locally: DataTable parity tests for hidden columns, saved state, column menu and export (55), MCP docs check, ESLint on the changed files, typecheck of recipes, native, react and vue.