Skip to content

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

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

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
@AleksanderBodurri AleksanderBodurri added action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release labels Apr 14, 2025
@kirjs
Copy link
Contributor

kirjs commented Apr 14, 2025

This PR was merged into the repository by commit 7c1a16d.

The changes were merged into the following branches: main, 19.2.x

@kirjs kirjs closed this in 7c1a16d Apr 14, 2025
kirjs pushed a commit that referenced this pull request Apr 14, 2025
Currently, highlighting works only when a directive explorer node is hovered. The change enables this feature on node selection as well.

PR Close #60744
@hawkgs hawkgs deleted the devtools/create-highlight-overlay-on-select branch April 14, 2025 13:25
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators May 15, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker area: devtools target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy