Skip to content

PivotGrid: type area item, headers and data areas - #36501

Open
bit-byte0 wants to merge 7 commits into
DevExpress:mainfrom
bit-byte0:refactor/pivotgrid-type-area-item-main
Open

bit-byte0 wants to merge 7 commits into
DevExpress:mainfrom
bit-byte0:refactor/pivotgrid-type-area-item-main

Conversation

@bit-byte0

Copy link
Copy Markdown
Contributor

What

Typed PivotGrid area item, headers and data areas

How

Area cells reuse the data controller types, the widget is reached through a narrow AreaItemComponent interface. Cell rendering moved into a helper, unused _getCloseMainElementMarkup removed

@bit-byte0
bit-byte0 requested a review from a team as a code owner November 23, 2026 12:00
@bit-byte0 bit-byte0 added the 27_1 label Nov 23, 2026
Copilot AI balanced review requested due to automatic review settings November 23, 2026 12:00
@bit-byte0 bit-byte0 self-assigned this Nov 23, 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

The new option contract is incompatible with PivotGrid’s inherited getter types, causing existing DataArea and header-area constructor calls to fail type checking.

1 open issue
What changed in this PR

This PR strengthens typing in PivotGrid’s area-rendering layer, reusing data-controller cell types and introducing a narrow interface for access to the widget.

Changes:

  • Adds shared types for cells, component access, styling, and scrolling.
  • Extracts cell rendering into a helper and removes unused closing-markup methods.
  • Updates area implementations and tests, adding header-cell rendering coverage.
File Description
packages/​devextreme/​js/​__internal/​grids/​pivot_grid/​headers_area/​m_headers_area.ts Types header rendering, scrolling, and layout methods.
packages/​devextreme/​js/​__internal/​grids/​pivot_grid/​headers_area/​m_headers_area.test.ts Adds cell-rendering tests and typed fixtures.
packages/​devextreme/​js/​__internal/​grids/​pivot_grid/​fields_area/​m_fields_area.ts Adapts field areas to the typed base class and chooser access.
packages/​devextreme/​js/​__internal/​grids/​pivot_grid/​data_area/​m_data_area.ts Types data-area rendering and scrolling methods.
packages/​devextreme/​js/​__internal/​grids/​pivot_grid/​data_area/​m_data_area.test.ts Updates fixtures and DOM access for stronger typing.
packages/​devextreme/​js/​__internal/​grids/​pivot_grid/​area_item/​types.ts Defines shared area types and the component contract.
packages/​devextreme/​js/​__internal/​grids/​pivot_grid/​area_item/​m_area_item.ts Types the base area implementation and extracts cell rendering.

Review effort: Balanced

@@ -117,7 +121,7 @@ class FieldsArea extends AreaItem {
const that = this;

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.

we can remove this alias

anna-shakhova
anna-shakhova previously approved these changes Nov 23, 2026
Copilot AI balanced review requested due to automatic review settings November 24, 2026 09:04
anna-shakhova
anna-shakhova previously approved these changes Nov 24, 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

No active review issues remain for the PivotGrid typing and cell-rendering refactor.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

@bit-byte0
bit-byte0 force-pushed the refactor/pivotgrid-type-area-item-main branch from cb822bd to 04b767f Compare November 24, 2026 09:30
Copilot AI balanced review requested due to automatic review settings November 24, 2026 09:30

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

No active review issues are recorded for the PivotGrid typing and cell-rendering changes.

No open issues 🎉

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.

3 participants