Content-Length: 301564 | pFad | http://github.com/angular/angular/pull/60744

9D refactor(devtools): create highlight overlay on node selection by hawkgs · Pull Request #60744 · angular/angular · GitHub
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(devtools): create highlight overlay on node selection #60744

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hawkgs
Copy link
Member

@hawkgs hawkgs commented Apr 4, 2025

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?

Component highlighting works only when you hover a directive explorer node which is okay when you click on it but doesn't work when you use the keyboard to navigate through the tree.

What is the new behavior?

The change enables this feature on node selection as well.

cc @dgp1130

Screen.Recording.2025-04-04.at.13.23.18.mov

Does this PR introduce a breaking change?

  • Yes
  • No

Currently, highlighting works only when a directive explorer node is hovered. The change enables this feature on node selection as well.
@pullapprove pullapprove bot requested a review from mgechev April 4, 2025 11:20
@ngbot ngbot bot added this to the Backlog milestone Apr 4, 2025
@hawkgs hawkgs requested review from AleksanderBodurri and removed request for mgechev April 4, 2025 11:20
@@ -57,12 +57,16 @@ import {serializeDirectiveState} from './state-serializer/state-serializer';
import {runOutsideAngular, unwrapSignal} from './utils';
import {DirectiveForestHooks} from './hooks/hooks';

type InspectorRef = {ref: ComponentInspector | null};
Copy link
Member

Choose a reason for hiding this comment

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

Any specfic reason for introducing this type instead of using ComponentInspector | null directly ?

Copy link
Member Author

@hawkgs hawkgs Apr 4, 2025

Choose a reason for hiding this comment

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

Mainly for emphasizing and making it clear what's the role of this object. I added the type after the fact.

Edit: Also, the type is used in 2 places so it prevents minor repetition.

@hawkgs hawkgs requested a review from dgp1130 April 4, 2025 12:25
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.

4 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/angular/angular/pull/60744

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy