Skip to content

refactor(loading-spinner): use inputBinding and remove injector logic to pass values - #2377

Merged
spike-rabbit merged 1 commit into
mainfrom
deprecate-loading-spinner-tokens
Jul 27, 2026
Merged

refactor(loading-spinner): use inputBinding and remove injector logic to pass values#2377
spike-rabbit merged 1 commit into
mainfrom
deprecate-loading-spinner-tokens

Conversation

@chintankavathia

@chintankavathia chintankavathia commented Jul 20, 2026

Copy link
Copy Markdown
Member

BREAKING CHANGE: removed LOADING_SPINNER_BLOCKING and LOADING_SPINNER_OVERLAY from si-loading-spinner injection tokens.


Documentation.
Examples.
Dashboards Demo.
Playwright report.

Coverage Reports:

Code Coverage


Documentation.
Examples.
Dashboards Demo.
Playwright report.

Coverage Reports:

Code Coverage

@chintankavathia
chintankavathia requested review from a team as code owners July 20, 2026 10:45
@chintankavathia chintankavathia changed the title refactor(loading-spinner): deprecate LOADING_SPINNER_BLOCKING and LOADING_SPINNER_OVERLAY refactor(loading-spinner): use inputBinding and remove injector logic to pass values Jul 20, 2026

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request refactors the loading spinner component and directive to use Angular's portal input bindings instead of custom portal injectors, deprecating the LOADING_SPINNER_BLOCKING and LOADING_SPINNER_OVERLAY injection tokens. Feedback suggests explicitly typing the isSpinnerOverlay and isBlockingSpinner inputs as boolean to avoid type inference of unknown (violating strict type checking guidelines) and to prevent potential breaking changes for consumers.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread projects/element-ng/loading-spinner/si-loading-spinner.component.ts Outdated
@chintankavathia
chintankavathia force-pushed the deprecate-loading-spinner-tokens branch 4 times, most recently from 3b2f944 to c3254ba Compare July 20, 2026 11:26
Comment thread projects/element-ng/loading-spinner/si-loading-spinner.component.ts Outdated
@chintankavathia
chintankavathia force-pushed the deprecate-loading-spinner-tokens branch from c3254ba to e77d146 Compare July 21, 2026 04:56
@chintankavathia chintankavathia added the breaking-changes Marks issues and PRs that are breaking the API label Jul 21, 2026
@chintankavathia
chintankavathia force-pushed the deprecate-loading-spinner-tokens branch from e77d146 to c23ce6c Compare July 21, 2026 05:04
@kfenner kfenner added this to the 51.0.0 milestone Jul 21, 2026
… to pass values

BREAKING CHANGE: Removed `LOADING_SPINNER_BLOCKING` and `LOADING_SPINNER_OVERLAY`
injection tokens. Use the corresponding inputs of `si-loading-spinner` instead.
@spike-rabbit
spike-rabbit force-pushed the deprecate-loading-spinner-tokens branch from c23ce6c to 384a042 Compare July 27, 2026 07:09

@spike-rabbit spike-rabbit left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

What about improving the input names?

FYI, with the force push I just changed the commit message.

Comment thread projects/element-ng/loading-spinner/si-loading-spinner.component.ts
Comment thread projects/element-ng/loading-spinner/si-loading-spinner.component.ts
@chintankavathia
chintankavathia force-pushed the deprecate-loading-spinner-tokens branch from 384a042 to 55d9090 Compare July 27, 2026 07:38
@chintankavathia
chintankavathia force-pushed the deprecate-loading-spinner-tokens branch from 55d9090 to 384a042 Compare July 27, 2026 10:30

@spike-rabbit spike-rabbit left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

👍

@spike-rabbit
spike-rabbit added this pull request to the merge queue Jul 27, 2026
Merged via the queue into main with commit d1ea461 Jul 27, 2026
25 checks passed
@spike-rabbit
spike-rabbit deleted the deprecate-loading-spinner-tokens branch July 27, 2026 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking-changes Marks issues and PRs that are breaking the API

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants