GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [devtools-shell] layout options for testing by jsdf · Pull Request #33516 · react/react

Conversation

@jsdf

@jsdf jsdf commented Jun 12, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Summary

This PR adds a 'Layout' selector to the devtools shell main example, as well as a resizable split pane, allowing more realistic testing of how the devtools behaves when used in a vertical or horizontal layout and at different sizes (e.g. when resizing the Chrome Dev Tools pane).

How did you test this change?

split.pane.mov

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@jsdf
[devtools-shell] layout options for testing
014364e
@facebook-github-bot facebook-github-bot added the CLA Signed label Jun 12, 2025
@hoxyq
hoxyq self-requested a review June 12, 2025 16:02
@jsdf jsdf mentioned this pull request Jun 12, 2025
[devtools] Added minimum indent size to Component Tree #33517
Merged
@jsdf
jsdf marked this pull request as ready for review June 12, 2025 17:28
hoxyq
hoxyq approved these changes Jun 13, 2025
View reviewed changes

@hoxyq hoxyq left a comment

Copy link
Copy Markdown
Collaborator

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Amazing, thank you!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@hoxyq
hoxyq merged commit ed023cf into react:main Jun 13, 2025
hoxyq pushed a commit that referenced this pull request Jun 13, 2025
@jsdf
[devtools] Added minimum indent size to Component Tree (#33517)
12bc60f
## Summary

The devtools Components tab's component tree view currently has a
behavior where the indentation of each level of the tree scales based on
the available width of the view. If the view is narrow or component
names are long, all indentation showing the hierarchy of the tree scales
down with the view width until there is no indentation at all. This
makes it impossible to see the nesting of the tree, making the tree view
much less useful. With long component names and deep hierarchies this
issue is particularly egregious. For comparison, the Chrome Dev Tools
Elements panel uses a fixed indentation size, so it doesn't suffer from
this issue.

This PR adds a minimum pixel value for the indentation width, so that
even when the window is narrow some indentation will still be visible,
maintaining the visual representation of the component tree hierarchy.

Alternatively, we could match the behavior of the Chrome Dev Tools and
just use a constant indentation width.

## How did you test this change?

- tests (yarn test-build-devtools)
- tested in browser:
- added an alternate left/right split pane layout to
react-devtools-shell to test with
(#33516)
- tested resizing the tree view in different layout modes

### before this change:



https://github.com/user-attachments/assets/470991f1-dc05-473f-a2cb-4f7333f6bae4

with a long component name:



https://github.com/user-attachments/assets/1568fc64-c7d7-4659-bfb1-9bfc9592fb9d





### after this change:




https://github.com/user-attachments/assets/f60bd7fc-97f6-4680-9656-f0db3d155411

with a long component name:


https://github.com/user-attachments/assets/6ac3f58c-42ea-4c5a-9a52-c3b397f37b45
This was referenced Jun 13, 2025
Upgrade React from b7e2de63-20250611 to 12bc60f5-20250613 vercel/next.js#80495
Closed
Upgrade React from b7e2de63-20250611 to 79d9aed7-20250620 vercel/next.js#80710
Merged
@eps1lon eps1lon mentioned this pull request Jun 20, 2025
Upgrade React from 197d6a04-20250424 to 79d9aed7-20250620 vercel/next.js#79477
Merged
17 tasks done
This was referenced Jun 23, 2025
Upgrade React from 197d6a04-20250424 to fa3feba6-20250623 vercel/next.js#80804
Merged
Upgrade React from 197d6a04-20250424 to bbc13fa1-20250624 vercel/next.js#80855
Closed
Upgrade React from fa3feba6-20250623 to cee7939b-20250625 vercel/next.js#80904
Merged
@hoxyq hoxyq mentioned this pull request Jun 27, 2025
React DevTools 6.1.2 -> 6.1.3 #33657
Merged
hoxyq added a commit that referenced this pull request Jun 27, 2025
@hoxyq
React DevTools 6.1.2 -> 6.1.3 (#33657)
d92056e
Full list of changes:

* devtools: emit performance entries only when profiling
([hoxyq](https://github.com/hoxyq) in
[#33652](#33652))
* Get Server Component Function Location for Parent Stacks using Child's
Owner Stack ([sebmarkbage](https://github.com/sebmarkbage) in
[#33629](#33629))
* Added minimum indent size to Component Tree
([jsdf](https://github.com/jsdf) in
[#33517](#33517))
* [devtools-shell] layout options for testing
([jsdf](https://github.com/jsdf) in
[#33516](#33516))
* Remove feature flag enableRenderableContext
([kassens](https://github.com/kassens) in
[#33505](#33505))
* refactor[devtools]: update css for settings and support css variables
in shadow dom scnenario ([hoxyq](https://github.com/hoxyq) in
[#33487](#33487))
* [mcp] Add MCP tool to print out the component tree of the currently
open React App ([jorge-cab](https://github.com/jorge-cab) in
[#33305](#33305))
* [scripts] Switch back to flow parser for prettier
([rickhanlonii](https://github.com/rickhanlonii) in
[#33414](#33414))
* upgrade json5 ([rickhanlonii](https://github.com/rickhanlonii) in
[#33358](#33358))
* Get source location from structured callsites in prepareStackTrace
([sebmarkbage](https://github.com/sebmarkbage) in
[#33143](#33143))
* Clean up enableSiblingPrerendering flag
([jackpope](https://github.com/jackpope) in
[#32319](#32319))
@eps1lon eps1lon mentioned this pull request Aug 25, 2025
Create more realistic containers in DevTools fixture #34296
Merged
hanzo-dev pushed a commit to hanzoai/react that referenced this pull request Sep 9, 2026
@jsdf
[devtools-shell] layout options for testing (react#33516)
3d4565f
## Summary

This PR adds a 'Layout' selector to the devtools shell main example, as
well as a resizable split pane, allowing more realistic testing of how
the devtools behaves when used in a vertical or horizontal layout and at
different sizes (e.g. when resizing the Chrome Dev Tools pane).

## How did you test this change?



https://github.com/user-attachments/assets/81179413-7b46-47a9-bc52-4f7ec414e8be
hanzo-dev pushed a commit to hanzoai/react that referenced this pull request Sep 9, 2026
@jsdf
[devtools] Added minimum indent size to Component Tree (react#33517)
24d913f
## Summary

The devtools Components tab's component tree view currently has a
behavior where the indentation of each level of the tree scales based on
the available width of the view. If the view is narrow or component
names are long, all indentation showing the hierarchy of the tree scales
down with the view width until there is no indentation at all. This
makes it impossible to see the nesting of the tree, making the tree view
much less useful. With long component names and deep hierarchies this
issue is particularly egregious. For comparison, the Chrome Dev Tools
Elements panel uses a fixed indentation size, so it doesn't suffer from
this issue.

This PR adds a minimum pixel value for the indentation width, so that
even when the window is narrow some indentation will still be visible,
maintaining the visual representation of the component tree hierarchy.

Alternatively, we could match the behavior of the Chrome Dev Tools and
just use a constant indentation width.

## How did you test this change?

- tests (yarn test-build-devtools)
- tested in browser:
- added an alternate left/right split pane layout to
react-devtools-shell to test with
(react#33516)
- tested resizing the tree view in different layout modes

### before this change:



https://github.com/user-attachments/assets/470991f1-dc05-473f-a2cb-4f7333f6bae4

with a long component name:



https://github.com/user-attachments/assets/1568fc64-c7d7-4659-bfb1-9bfc9592fb9d





### after this change:




https://github.com/user-attachments/assets/f60bd7fc-97f6-4680-9656-f0db3d155411

with a long component name:


https://github.com/user-attachments/assets/6ac3f58c-42ea-4c5a-9a52-c3b397f37b45
hanzo-dev pushed a commit to hanzoai/react that referenced this pull request Sep 9, 2026
@hoxyq
React DevTools 6.1.2 -> 6.1.3 (react#33657)
4c75f2a
Full list of changes:

* devtools: emit performance entries only when profiling
([hoxyq](https://github.com/hoxyq) in
[react#33652](react#33652))
* Get Server Component Function Location for Parent Stacks using Child's
Owner Stack ([sebmarkbage](https://github.com/sebmarkbage) in
[react#33629](react#33629))
* Added minimum indent size to Component Tree
([jsdf](https://github.com/jsdf) in
[react#33517](react#33517))
* [devtools-shell] layout options for testing
([jsdf](https://github.com/jsdf) in
[react#33516](react#33516))
* Remove feature flag enableRenderableContext
([kassens](https://github.com/kassens) in
[react#33505](react#33505))
* refactor[devtools]: update css for settings and support css variables
in shadow dom scnenario ([hoxyq](https://github.com/hoxyq) in
[react#33487](react#33487))
* [mcp] Add MCP tool to print out the component tree of the currently
open React App ([jorge-cab](https://github.com/jorge-cab) in
[react#33305](react#33305))
* [scripts] Switch back to flow parser for prettier
([rickhanlonii](https://github.com/rickhanlonii) in
[react#33414](react#33414))
* upgrade json5 ([rickhanlonii](https://github.com/rickhanlonii) in
[react#33358](react#33358))
* Get source location from structured callsites in prepareStackTrace
([sebmarkbage](https://github.com/sebmarkbage) in
[react#33143](react#33143))
* Clean up enableSiblingPrerendering flag
([jackpope](https://github.com/jackpope) in
[react#32319](react#32319))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@hoxyq hoxyq hoxyq approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

CLA Signed

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@jsdf @hoxyq @facebook-github-bot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.