Skip to content

Grids: ColumnsController - move column merging and fixing utils into the class - #36827

Open
Alyar666 wants to merge 6 commits into
DevExpress:mainfrom
Alyar666:grids_columns_controller_utils_b5_26_2
Open

Alyar666 wants to merge 6 commits into
DevExpress:mainfrom
Alyar666:grids_columns_controller_utils_b5_26_2

Conversation

@Alyar666

@Alyar666 Alyar666 commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@Alyar666
Alyar666 requested a review from a team as a code owner December 4, 2026 17:42
@Alyar666 Alyar666 added the 27_1 label Dec 4, 2026
Copilot AI balanced review requested due to automatic review settings December 4, 2026 17:43
@Alyar666 Alyar666 self-assigned this Dec 4, 2026

Copilot AI 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.

🟡 Changes recommended

Some grid test fixtures lack required row IDs, and several reorder assertions pass even when no column moves.

5 open issues
What changed in this PR

This PR moves column layout logic into the shared ColumnsController without changing the public grid API.

Changes:

  • Moves command-column merging, column fixing, and first/last-column checks into private controller methods.
  • Makes the adaptive visibility hook protected and replaces direct helper tests with tests for visible columns and column reordering.
File Description
packages/​devextreme/​js/​__internal/​grids/​grid_core/​columns_controller/​columns_controller.ts Adds the private methods and updates their callers.
packages/​devextreme/​js/​__internal/​grids/​grid_core/​columns_controller/​columns_controller_utils.ts Removes the helpers moved into the controller.
packages/​devextreme/​js/​__internal/​grids/​grid_core/​columns_controller/​__tests__/​columns_controller.visible_columns.test.ts Adds tests for command columns, group and detail expanders, and column moves.
packages/​devextreme/​js/​__internal/​grids/​grid_core/​columns_controller/​__tests__/​columns_controller_utils.test.ts Removes direct tests for the moved helpers and adjusts a band-column fixture.
packages/​devextreme/​js/​__internal/​grids/​grid_core/​adaptivity/​extenders/​adaptivity_columns_controller.ts Makes the adaptive visibility override protected.

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings December 5, 2026 00:13

Copilot AI 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.

🔵 Needs a closer look

Human review is needed because the replacement tests can pass even if the merge ignores configured overrides or mutates a built-in column.

No open issues 🎉

5 resolved since last review

Review effort: Balanced

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants