infi-pc / locatorjs

https://www.locatorjs.com
1.41k stars 67 forks source link

feat: right-click -> show parent components #69

Open infi-pc opened 2 years ago

infi-pc commented 2 years ago

Problem

Sometimes the deepest component is not the one we want to go to. The current tree view is just too complicated for this use case. We should have a more simple view - having just a list of parents could be a good solution.

Solution

Replace tree view with parent components list. In addition to </> icon, we could trigger the same popover with right-click.

Alternate solutions

simplify the tree view, and add right-click anyway.

nfarina commented 1 year ago

Agree - LocatorJS is so amazing when it works, but often it'll be impossible for me to find the parent component I really want - instead I can only hover over generic components like "Button" or "TextBox" etc.