Skip to content

fix(*): add mustCoerceToInt to relevant props - master#17239

Open
IMinchev64 wants to merge 2 commits intomasterfrom
iminchev/add-coerceToInt-to-props-master
Open

fix(*): add mustCoerceToInt to relevant props - master#17239
IMinchev64 wants to merge 2 commits intomasterfrom
iminchev/add-coerceToInt-to-props-master

Conversation

@IMinchev64
Copy link
Copy Markdown
Contributor

Attribute is needed so the metadata descriptions which are used by Blazor can be updated which would resolve the enum values as numbers instead of strings.

Related to: https://infragistics.visualstudio.com/Indigo_Platform/_workitems/edit/34678

Description

Motivation / Context

Type of Change (check all that apply):

  • Bug fix
  • New functionality
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Refactoring (no functional changes)
  • Documentation
  • Demos
  • CI/CD
  • Tests
  • Changelog
  • Skills/Agents

Component(s) / Area(s) Affected:

How Has This Been Tested?

  • Unit tests
  • Manual testing
  • Automated e2e tests

Test Configuration:

  • Angular version:
  • Browser(s):
  • OS:

Screenshots / Recordings

Checklist:

  • All relevant tags have been applied to this PR
  • This PR includes unit tests covering all the new code (test guidelines)
  • This PR includes API docs for newly added methods/properties (api docs guidelines)
  • This PR includes feature/README.MD updates for the feature docs
  • This PR includes general feature table updates in the root README.MD
  • This PR includes CHANGELOG.MD updates for newly added functionality
  • This PR contains breaking changes
  • This PR includes ng update migrations for the breaking changes (migrations guidelines)
  • This PR includes behavioral changes and the feature specification has been updated with them
  • Accessibility (ARIA, keyboard navigation, focus management) has been verified

Copilot AI review requested due to automatic review settings April 27, 2026 07:45
@IMinchev64 IMinchev64 added ❌ status: awaiting-test PRs awaiting manual verification 💠 grid: elements labels Apr 27, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds the /* mustCoerceToInt */ metadata marker to several enum-typed interface properties so downstream metadata consumers (notably Blazor) resolve enum values as numbers rather than strings.

Changes:

  • Annotate IDimensionsChange.dimensionCollectionType with /* mustCoerceToInt */.
  • Annotate IPinningConfig.columns / IPinningConfig.rows with /* mustCoerceToInt */.
  • Annotate PositionSettings alignment properties with /* mustCoerceToInt */.
  • Annotate filtering expression tree enum properties (operator, type) with /* mustCoerceToInt */.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
projects/igniteui-angular/grids/core/src/pivot-grid.interface.ts Adds mustCoerceToInt marker to a pivot dimension-collection enum property for metadata generation.
projects/igniteui-angular/grids/core/src/common/grid.interface.ts Adds mustCoerceToInt markers to pinning config enum properties.
projects/igniteui-angular/core/src/services/overlay/utilities.ts Adds mustCoerceToInt markers to overlay position enum properties (alignment-related).
projects/igniteui-angular/core/src/data-operations/filtering-expressions-tree.ts Adds mustCoerceToInt markers to filtering tree enum properties used in metadata.

Comment on lines +100 to +109
/* mustCoerceToInt */
/** Direction in which the component should show */
horizontalDirection?: HorizontalAlignment;
/* mustCoerceToInt */
/** Direction in which the component should show */
verticalDirection?: VerticalAlignment;
/* mustCoerceToInt */
/** Target's starting point */
horizontalStartPoint?: HorizontalAlignment;
/* mustCoerceToInt */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

💠 grid: elements ❌ status: awaiting-test PRs awaiting manual verification

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants