Skip to content

Grids: type and refactor m_header_panel - #35717

Merged
anna-shakhova merged 3 commits into
DevExpress:mainfrom
anna-shakhova:type_header_panel_main
Oct 16, 2026
Merged

anna-shakhova merged 3 commits into
DevExpress:mainfrom
anna-shakhova:type_header_panel_main

Conversation

@anna-shakhova

Copy link
Copy Markdown
Contributor

No description provided.

@anna-shakhova anna-shakhova self-assigned this Oct 15, 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.

🟢 Approval recommended

Static review supports this behavior-preserving refactor with no unresolved issues; tests were not run.

0 open findings

What changed in this PR

Refactors the shared grid header panel with stronger TypeScript types and consolidates CSS class constants across grid features.

Changes:

  • Adds explicit header-panel types and simplifies toolbar option handling.
  • Extracts header-panel constants into a dedicated module.
  • Replaces duplicated CSS constants with shared view constants.

Paths below are relative to packages/devextreme/js/__internal/grids/grid_core/.

File Description
virtual_scrolling/​m_virtual_scrolling.ts Uses shared row and column-line constants.
virtual_scrolling/​const.ts Removes duplicated CSS constants.
views/​m_rows_view.ts Uses centralized view constants.
views/​const.ts Defines shared view CSS constants.
search/​m_search.ts Uses the shared header-panel constant.
row_dragging/​m_row_dragging.ts Uses the shared rows-view constant.
row_dragging/​const.ts Removes the duplicated rows-view constant.
master_detail/​m_master_detail.ts Uses the shared row-lines constant.
master_detail/​const.ts Removes the duplicated row-lines constant.
keyboard_navigation/​utils.ts Uses the shared free-space-row constant.
keyboard_navigation/​m_keyboard_navigation.ts Uses shared view selectors.
keyboard_navigation/​const.ts Removes duplicated view constants.
header_panel/​m_header_panel.ts Strengthens types and simplifies option handling.
header_panel/​const.ts Extracts toolbar and header-panel constants.
column_headers/​m_column_headers.ts Uses shared wrapping and column-line constants.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@anna-shakhova
anna-shakhova marked this pull request as ready for review October 15, 2026 12:40
@anna-shakhova
anna-shakhova requested a review from a team as a code owner October 15, 2026 12:40
Comment thread packages/devextreme/js/__internal/grids/grid_core/header_panel/m_header_panel.ts Outdated
Comment thread packages/devextreme/js/__internal/grids/grid_core/header_panel/m_header_panel.ts Outdated
bit-byte0
bit-byte0 previously approved these changes Oct 16, 2026
Copilot AI balanced review requested due to automatic review settings October 16, 2026 08:56

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.

🟢 Approval recommended

Static review found no blocking issues in this focused refactor; automated tests were not run.

0 open findings

🧠 Review effort: Balanced

@anna-shakhova
anna-shakhova added this pull request to the merge queue Oct 16, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 16, 2026
@anna-shakhova
anna-shakhova added this pull request to the merge queue Oct 16, 2026
Merged via the queue into DevExpress:main with commit a74ef31 Oct 16, 2026
173 of 175 checks passed
@anna-shakhova
anna-shakhova deleted the type_header_panel_main branch October 16, 2026 10:08
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.

3 participants