Skip to content

refactor(core): update signalGraphTool to accept an Injector#69366

Open
csmick wants to merge 1 commit into
angular:mainfrom
csmick:signal-graph-tool-refactor
Open

refactor(core): update signalGraphTool to accept an Injector#69366
csmick wants to merge 1 commit into
angular:mainfrom
csmick:signal-graph-tool-refactor

Conversation

@csmick

@csmick csmick commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Refactor the AI debugging signalGraphTool to accept an Injector instance (named injector) rather than an HTMLElement. Requiring an Injector directly simplifies the tool's execution validation and decouples it from DOM element discovery utilities, allowing callers (including tests and DevTools) to resolve and pass the appropriate Injector directly.

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • angular.dev application / infrastructure changes
  • Other... Please describe:

What is the current behavior?

The signalGraphTool accepts the root DOM Element of the component for which it will return the signal graph.

Issue Number: N/A

What is the new behavior?

The signalGraphTool accepts the Injector of the component for which it will return the signal graph.

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

Refactor the AI debugging signalGraphTool to accept an Injector instance
(named `injector`) rather than an HTMLElement. Requiring an Injector directly
simplifies the tool's execution validation and decouples it from DOM element
discovery utilities, allowing callers (including tests and DevTools) to resolve
and pass the appropriate Injector directly.
@csmick csmick requested a review from dgp1130 June 15, 2026 21:45
@pullapprove pullapprove Bot requested a review from crisbeto June 15, 2026 21:45
@angular-robot angular-robot Bot added the area: core Issues related to the framework runtime label Jun 15, 2026
@ngbot ngbot Bot added this to the Backlog milestone Jun 15, 2026
@csmick csmick added the target: patch This PR is targeted for the next patch release label Jun 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: core Issues related to the framework runtime target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant