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

New Elements panel (opt-in) #9738

Merged
merged 2 commits into from
Sep 27, 2023
Merged

New Elements panel (opt-in) #9738

merged 2 commits into from
Sep 27, 2023

Conversation

bvaughn
Copy link
Contributor

@bvaughn bvaughn commented Sep 18, 2023

Changes in this branch:

  • Add new GenericList component and abstract GenericListData class
  • Update the CSS Rules panel to use these new components
  • Rewrite Elements tree to use these components as well
  • Add opt-in experimental settings to use new Elements tree

Some UX improvements over the current Elements tree:

  • Only render the head of (iframe) #document nodes (old Elements panel showed </#document> tail)
  • Selected sub-tree indicator line looks nicer
  • Head nodes (e.g. <div> and tail nodes (e.g. </div>) can both be selected
  • Loading errors show an error boundary (rather than being uncaught and hanging)

The legacy Elements code is deleted in #9755.

New Elements tree:
Screen Shot 2023-09-26 at 11 45 02 AM

New experimental opt-in setting:
Screen Shot 2023-09-26 at 11 46 26 AM

@vercel
Copy link

vercel bot commented Sep 18, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
devtools ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 27, 2023 0:25am

@replay-io
Copy link

replay-io bot commented Sep 18, 2023

E2E Tests

55 replays were recorded for 7718292.

image 0 Failed
image 55 Passed

View test run on Replay ↗︎

Snapshot Tests

100 replays were recorded for 7718292.

image 0 Failed
image 100 Passed

View test run on Replay ↗︎

@replay-delta
Copy link

replay-delta bot commented Sep 18, 2023

@bvaughn
Copy link
Contributor Author

bvaughn commented Sep 23, 2023

Yup, that was it. Easy fix.

The old Elements panel displays the closing #document tag kind of oddly:
Screen Shot 2023-09-23 at 2 13 45 PM

The new one does better IMO:
Screen Shot 2023-09-23 at 2 13 35 PM

@jasonLaster
Copy link
Collaborator

@bvaughn
Copy link
Contributor Author

bvaughn commented Sep 23, 2023

I think that not showing a tail tag for document roots would be a nice change for the new Elements panel. I might try that.
Screen Shot 2023-09-23 at 2 54 12 PM

@bvaughn
Copy link
Contributor Author

bvaughn commented Sep 23, 2023

Not ignoring your comment, but I can't bring myself to watch a Loom for bug reports on the weekend 😁 I'll check on Monday haha.

Copy link
Contributor

@hbenl hbenl left a comment

Choose a reason for hiding this comment

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

There's an empty file called getDisplayedNodeName.ts...

@bvaughn bvaughn merged commit 01c888b into main Sep 27, 2023
24 of 35 checks passed
@bvaughn bvaughn deleted the FE-1885-part-2 branch September 27, 2023 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants