Skip to content

feat(webui): add reset column sizes button to all grid toolbars#1333

Open
mohamadyasser118 wants to merge 1 commit intocybertec-postgresql:masterfrom
mohamadyasser118:feat/reset-column-sizes-all-grids
Open

feat(webui): add reset column sizes button to all grid toolbars#1333
mohamadyasser118 wants to merge 1 commit intocybertec-postgresql:masterfrom
mohamadyasser118:feat/reset-column-sizes-all-grids

Conversation

@mohamadyasser118
Copy link
Copy Markdown
Contributor

Description

Fixes #1308

useGridState already exposes resetColumnSizes() but it was never
connected to the UI.

This PR adds a "Reset column sizes" button to the toolbar of all three
grid pages: Sources, Metrics, and Presets.

image

AI & Automation Policy

  • I am the human author and take full personal responsibility for every change in this PR.
  • No AI or automated generative tool was used in any part of this PR OR I have disclosed all tool(s) below.
    Drafted with the assistance of Claude Sonned 4.6

Checklist

  • Code compiles and existing tests pass locally.
  • New or updated tests are included where applicable.
  • Documentation is updated where applicable.

- Added onResetColumns prop to SourcesGridToolbar, MetricsGridToolbar,
  and PresetsGridToolbar
- Wired resetColumnSizes from useGridState into all three grids
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.

feat(webui): add "Reset column sizes" button to grid toolbars

1 participant