Graylog2 / Graylog2/graylog2-server

Add reset button if needed to each layout variant

Open
#26,031 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
8.1k
Forks
1.1k
Avg merge
1d 20h
Merged PRs (30d)
217

Description

The issue is that EntityDataTable stores column widths and column order in local state. This is intentional: it keeps column resizing and reordering responsive and avoids UI freezes while the user interacts with the table.

However, when a layout reset is triggered, the persisted layout preferences are reset, but the local column state inside EntityDataTable is not reset at the same time. As a result, the UI can continue showing the previous column order or widths until the table is remounted or reloaded.

This is especially tricky for resets triggered from the top section, because the top section is rendered inside PaginatedEntityTable, while the column state lives deeper inside EntityDataTable. The top section currently has no direct access to that local state, so we need a way to notify EntityDataTable that a layout reset happened and that it should also reset its local column order and width state.

For now, I just removed reset functionality from the top section items, as we can do that from the reset all columns button.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.