Skip to content

Feat/dmj gaps 6 - #61

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

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

Conversation

@wiifree

@wiifree wiifree commented Nov 24, 2026

Copy link
Copy Markdown
Member

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 with stateKey).

  • Saved state: it now lists the columns it knows (knownColumns). Known columns keep the user's choice; a column added later starts with its hidden value instead of suddenly showing for everyone with a saved state. A state saved before treats every column with hidden as new.
  • While hiddenColumns is set it decides alone; hideable: false wins over hidden (warning in development).
  • React Native has no column menu: a column with hidden is not shown and not exported.
  • Recipe helpers 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.

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>
@wiifree
wiifree merged commit 41a8d55 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