preactjs / preactjs/preact-devtools

Zoom to component

Open
#318 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
345
Forks
39
PR merge metrics
No merged PRs in 30d

Description

In the Preact panel in Chrome, it would be absolutely incredible if we could right click + inspect and zoom to the selected component, as does the Inspect function in Chrome's DOM tools

Use case: particular on large, new codebases, it really helps figure out which components we need to modify!
(The alternative right now: scroll the Elements panel until you find something vaguely right that highlights, then inspect that - 😢 )

🙏 🙏 🙏

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Preact panel in Chrome and compare its component selection flow with the Inspect function in Chrome's DOM tools. Trace how a selected component is represented, then determine the integration needed for a right-click action that zooms to it; done means the selected component is located without manually searching the Elements panel.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
devtools
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.