Skip to content

Core: type position and the collection data controller - #35945

Open
pharret31 wants to merge 1 commit into
DevExpress:mainfrom
pharret31:5382-coremisc-remove-m_-prefix-improve-typing-of-position-the-collection-data-controller-and-the-themes-callback
Open

pharret31 wants to merge 1 commit into
DevExpress:mainfrom
pharret31:5382-coremisc-remove-m_-prefix-improve-typing-of-position-the-collection-data-controller-and-the-themes-callback

Conversation

@pharret31

Copy link
Copy Markdown
Contributor

No description provided.

@pharret31 pharret31 self-assigned this Oct 26, 2026
@pharret31
pharret31 requested a review from a team as a code owner October 26, 2026 15:14
Copilot AI balanced review requested due to automatic review settings October 26, 2026 15:14

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 offset parameter type excludes supported event inputs and should preserve that capability for typed callers.

1 open issue
What changed in this PR

This PR strengthens TypeScript typing for DevExtreme’s internal positioning utilities and collection data controller, and updates their UI consumers.

Changes:

  • Introduces shared position types and typed positioning functions.
  • Adds data-controller signatures and accessor overloads, removing obsolete casts and suppressions.
  • Adds defensive handling for missing positioning results.
File Description
packages/​devextreme/​js/​__internal/​ui/​tag_box.ts Removes an obsolete suppression and documents promise handling.
packages/​devextreme/​js/​__internal/​ui/​select_box.ts Removes an obsolete search-value suppression.
packages/​devextreme/​js/​__internal/​ui/​popover/​popover.ts Handles missing position results and offsets.
packages/​devextreme/​js/​__internal/​ui/​overlay/​overlay_position_controller.ts Updates the initial-position type.
packages/​devextreme/​js/​__internal/​ui/​list/​list.edit.search.ts Removes an obsolete filter suppression.
packages/​devextreme/​js/​__internal/​ui/​drop_down_editor/​drop_down_list.ts Uses typed controller results without redundant casts.
packages/​devextreme/​js/​__internal/​ui/​drop_down_editor/​drop_down_editor.ts Guards missing offsets when determining popup position.
packages/​devextreme/​js/​__internal/​ui/​collection/​m_data_controller.ts Types controller methods and accessor overloads.
packages/​devextreme/​js/​__internal/​ui/​collection/​collection_widget.edit.ts Adjusts suppressions for typed controller calls.
packages/​devextreme/​js/​__internal/​common/​core/​animation/​types.ts Defines shared positioning interfaces and target types.
packages/​devextreme/​js/​__internal/​common/​core/​animation/​m_position.ts Types positioning helpers and setup overloads.

Review effort: Balanced

Comment thread packages/devextreme/js/__internal/common/core/animation/m_position.ts Outdated
@pharret31
pharret31 force-pushed the 5382-coremisc-remove-m_-prefix-improve-typing-of-position-the-collection-data-controller-and-the-themes-callback branch from 354ade5 to cac3b64 Compare October 26, 2026 15:54
Copilot AI balanced review requested due to automatic review settings October 26, 2026 15:54

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 the type-focused refactor and defensive positioning changes; builds and tests were not run.

No open issues 🎉

1 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants