Skip to content

FilterBuilder: fix errors and improve typing - #35477

Merged
EugeniyKiyashko merged 8 commits into
DevExpress:mainfrom
EugeniyKiyashko:typescript/filter_builder/typing_5275
Oct 6, 2026
Merged

EugeniyKiyashko merged 8 commits into
DevExpress:mainfrom
EugeniyKiyashko:typescript/filter_builder/typing_5275

Conversation

@EugeniyKiyashko

Copy link
Copy Markdown
Contributor

No description provided.

@EugeniyKiyashko EugeniyKiyashko self-assigned this Oct 5, 2026
@EugeniyKiyashko
EugeniyKiyashko marked this pull request as ready for review October 5, 2026 12:22
Copilot AI balanced review requested due to automatic review settings October 5, 2026 12:22
@EugeniyKiyashko
EugeniyKiyashko requested a review from a team as a code owner October 5, 2026 12:22

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.

Copilot review overview

🔵 Needs a closer look

The shared type changes and integration suppressions need compiler validation and final human review before approval.

Review effort: Balanced
Findings: None

What changed in this PR

This PR strengthens FilterBuilder’s internal typing and adapts its shared utilities’ grid integration points.

Changes:

  • Adds explicit types for filter expressions, fields, operations, editors, and events.
  • Refactors utility and widget code while preserving existing behavior.
  • Documents remaining type mismatches with targeted suppressions.
File Description
packages/​devextreme/​js/​__internal/​grids/​new/​grid_core/​filtering/​utils.ts Annotates unknown filter input mismatches.
packages/​devextreme/​js/​__internal/​grids/​new/​grid_core/​filtering/​legacy_filter_custom_operations.ts Annotates expression-array type mismatches.
packages/​devextreme/​js/​__internal/​grids/​new/​grid_core/​filtering/​header_filter/​view_controller.ts Annotates filter-removal input mismatches.
packages/​devextreme/​js/​__internal/​grids/​new/​card_view/​header_panel/​header_panel.tsx Removes a boolean cast and annotates the input mismatch.
packages/​devextreme/​js/​__internal/​grids/​grid_core/​filter_sync/​utils.ts Annotates optional filter input mismatches.
packages/​devextreme/​js/​__internal/​grids/​grid_core/​filter_sync/​m_filter_custom_operations.ts Annotates expression-array type mismatches.
packages/​devextreme/​js/​__internal/​grids/​grid_core/​filter_sync/​extenders/​filter_sync_column_headers_view.ts Annotates an optional filter input mismatch.
packages/​devextreme/​js/​__internal/​grids/​grid_core/​filter_builder/​m_filter_builder.ts Annotates grid and FilterBuilder type incompatibilities.
packages/​devextreme/​js/​__internal/​filter_builder/​m_utils.ts Types and refactors shared filtering utilities.
packages/​devextreme/​js/​__internal/​filter_builder/​m_filter_operations_dictionary.ts Types operation dictionaries and lookups.
packages/​devextreme/​js/​__internal/​filter_builder/​m_filter_builder.ts Types widget options, state, menus, and handlers.
packages/​devextreme/​js/​__internal/​filter_builder/​m_between.ts Types range values and editor-factory contracts.

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

Comment thread packages/devextreme/js/__internal/filter_builder/m_filter_builder.ts Outdated
Comment thread packages/devextreme/js/__internal/filter_builder/m_utils.ts
Comment thread packages/devextreme/js/__internal/filter_builder/m_utils.ts Outdated
Comment thread packages/devextreme/js/__internal/filter_builder/m_utils.ts Outdated
Comment thread packages/devextreme/js/__internal/filter_builder/m_utils.ts Outdated
Copilot AI balanced review requested due to automatic review settings October 5, 2026 20:17

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.

Copilot review overview

🔵 Needs a closer look

The shared typing refactor spans multiple grid integrations, with compiler and regression validation still unverified.

Review effort: Balanced
Findings: None

Copilot AI balanced review requested due to automatic review settings October 5, 2026 21:20
@EugeniyKiyashko
EugeniyKiyashko force-pushed the typescript/filter_builder/typing_5275 branch from b4e4e0d to d8770d4 Compare October 5, 2026 21:20

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.

Copilot review overview

🔵 Needs a closer look

The broad typing refactor crosses shared grid contracts and needs type-check validation and final human review.

Review effort: Balanced
Findings: None

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.

Copilot review overview

🔵 Needs a closer look

The shared typing refactor spans multiple grid integrations, and successful type-checking and regression execution remain unverified.

Review effort: Balanced
Findings: None

Copilot AI balanced review requested due to automatic review settings October 6, 2026 09:23
@EugeniyKiyashko
EugeniyKiyashko force-pushed the typescript/filter_builder/typing_5275 branch from eaca9cf to 7e9458d Compare October 6, 2026 09:23

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.

Copilot review overview

🔵 Needs a closer look

The cross-grid typing refactor needs confirmed type-check and UI regression results before final approval.

Review effort: Balanced
Findings: None

@EugeniyKiyashko
EugeniyKiyashko added this pull request to the merge queue Oct 6, 2026
Merged via the queue into DevExpress:main with commit 7fdaeed Oct 6, 2026
149 checks passed
@EugeniyKiyashko
EugeniyKiyashko deleted the typescript/filter_builder/typing_5275 branch October 6, 2026 11:04
EugeniyKiyashko added a commit to EugeniyKiyashko/DevExtreme that referenced this pull request Oct 6, 2026
The filter builder was typed in DevExpress#35477 after the hub typing was cut: its action config is
the merged object that the action options do not accept. Only a directive is added, the
emitted code is unchanged.
EugeniyKiyashko added a commit to EugeniyKiyashko/DevExtreme that referenced this pull request Oct 6, 2026
The filter builder was typed in DevExpress#35477 after the hub typing was cut: its action config is
the merged object that the action options do not accept. Only a directive is added, the
emitted code is unchanged.
EugeniyKiyashko added a commit to EugeniyKiyashko/DevExtreme that referenced this pull request Oct 6, 2026
The filter builder was typed in DevExpress#35477 after the hub typing was cut: its action config is
the merged object that the action options do not accept. Only a directive is added, the
emitted code is unchanged.
EugeniyKiyashko added a commit to EugeniyKiyashko/DevExtreme that referenced this pull request Oct 6, 2026
The filter builder was typed in DevExpress#35477 after the hub typing was cut: its action config is
the merged object that the action options do not accept. Only a directive is added, the
emitted code is unchanged.
EugeniyKiyashko added a commit to EugeniyKiyashko/DevExtreme that referenced this pull request Oct 6, 2026
The filter builder was typed in DevExpress#35477 after the hub typing was cut: its action config is
the merged object that the action options do not accept. Only a directive is added, the
emitted code is unchanged.
EugeniyKiyashko added a commit to EugeniyKiyashko/DevExtreme that referenced this pull request Oct 7, 2026
The filter builder was typed in DevExpress#35477 after the hub typing was cut: its action config is
the merged object that the action options do not accept. Only a directive is added, the
emitted code is unchanged.
EugeniyKiyashko added a commit to EugeniyKiyashko/DevExtreme that referenced this pull request Oct 7, 2026
The filter builder was typed in DevExpress#35477 after the hub typing was cut: its action config is
the merged object that the action options do not accept. Only a directive is added, the
emitted code is unchanged.
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