Skip to content

vmui: seed Table view columns from Group display fields - #1643

Open
qveensi wants to merge 1 commit into
VictoriaMetrics:masterfrom
qveensi:vmui-seed-table-columns
Open

vmui: seed Table view columns from Group display fields#1643
qveensi wants to merge 1 commit into
VictoriaMetrics:masterfrom
qveensi:vmui-seed-table-columns

Conversation

@qveensi

@qveensi qveensi commented Jul 29, 2026

Copy link
Copy Markdown

Implements #1633.

Table columns already persist via the columns URL param + localStorage; what users lose on a Group→Table switch is their Display fields selection, because the two views don't share it. This PR seeds the Table default columns (only when nothing was explicitly configured) with _time + the Group view's displayFields ∩ available columns. Explicit Table selections keep priority; behavior without displayFields is unchanged.

Unit tests added to useTableColumnView.test.tsx.

Closes #1633

@func25 func25 added the web-ui Issues related to the user interface: layout, styling, usability, or UI-specific bugs. label Jul 29, 2026

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 3 files

Re-trigger cubic

When the Table view has no explicit column selection (URL param or saved
storage), default the columns to _time + the Group view's displayFields
(intersected with available columns) instead of the generic defaults, so
switching Group -> Table keeps the user's chosen fields. Explicit Table
column choices keep priority.

VictoriaMetrics#1633
@qveensi
qveensi force-pushed the vmui-seed-table-columns branch from 7c0ff41 to 5c5c832 Compare July 29, 2026 08:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

web-ui Issues related to the user interface: layout, styling, usability, or UI-specific bugs.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

vmui: selected Table columns are lost when switching between Group and Table views

2 participants