react/scripts
Sebastian Markbåge f6a4882859
[DevTools] Show the Suspense boundary name in the rect if there's no overlap (#34918)
This shows the title in the top corner of the rect if there's enough
space.

The complex bit here is that it can be noisy if too many boundaries
occupy the same space to overlap or partially overlap.

This uses an R-tree to store all the rects to find overlapping
boundaries to cut the available space to draw inside the rect. We use
this to compute the rectangle within the rect which doesn't have any
overlapping boundaries.

The roots don't count as overlapping. Similarly, a parent rect is not
consider overlapping a child. However, if two sibling boundaries occupy
the same space, no title will be drawn.

<img width="734" height="813" alt="Screenshot 2025-10-19 at 5 34 49 PM"
src="https://github.com/user-attachments/assets/2b848b9c-3b78-48e5-9476-dd59a7baf6bf"
/>

We might also consider drawing the "Initial Paint" title at the root but
that's less interesting. It's interesting in the beginning before you
know about the special case at the root but after that it's just always
the same value so just adds noise.
2025-10-19 22:17:45 -04:00
..
babel [flags] remove enableRemoveConsolePatches (#32425) 2025-02-24 10:00:22 -05:00
bench Don't minify symbols in production builds (#28881) 2024-04-20 11:23:46 -04:00
ci [DevTools] Don't inline workers for extensions (#34508) 2025-09-17 17:59:55 +02:00
devtools fix[scripts/devtools/publish-release]: parse version list instead of handling 404 (#31087) 2024-09-30 17:07:54 +01:00
error-codes Release Fragment refs to Canary (#34720) 2025-10-06 21:24:24 -07:00
eslint Allow running yarn lint on subset of paths (#34646) 2025-09-30 12:30:40 +02:00
eslint-rules [tests] Remove to*Dev matchers (#31989) 2025-01-07 14:17:14 -05:00
flags Add MIT license header to feature flag utility script (#34833) 2025-10-16 14:20:21 -04:00
flow [DevTools] Show the Suspense boundary name in the rect if there's no overlap (#34918) 2025-10-19 22:17:45 -04:00
git Remove leftover env variable logic in pre-commit hook 2015-09-01 14:35:47 -07:00
jest [DevTools] Show the Suspense boundary name in the rect if there's no overlap (#34918) 2025-10-19 22:17:45 -04:00
perf-counters [Codemod] Update copyright header to Meta (#25315) 2022-10-18 11:19:24 -04:00
prettier [prettier] Combine compiler and runtime configs 2024-06-21 12:05:29 -04:00
print-warnings Disable consoleWithStackDev Transform except in RN/WWW (#30313) 2024-07-12 14:39:38 -04:00
react-compiler [compiler]: fix link compiler & 4 broken tests from path containing spaces (#33409) 2025-06-09 08:40:27 -07:00
release [ci] Document that full git shas are required for manual prereleases (#34537) 2025-09-20 08:09:44 +02:00
rollup [compiler] improve zod v3 backwards compat (#34877) 2025-10-16 09:46:55 -07:00
shared [Flight] Add Web Stream support to the Flight Client in Node (#33473) 2025-06-06 17:14:15 -04:00
tasks Allow running yarn lint on subset of paths (#34646) 2025-09-30 12:30:40 +02:00