dillon1000/react
Commit
Browse files [DevTools] Assign a different color and label based on environment (#34893)
Stacked on #34892. In the timeline scrubber each timeline entry gets a label and color assigned based on the environment computed for that step. In the rects, we find the timeline step that this boundary is part of and use that environment to assign a color. This is slightly different than picking from the boundary itself since it takes into account parent boundaries. In the "suspended by" section we color each entry individually based on the environment that spawned the I/O. <img width="790" height="813" alt="Screenshot 2025-10-17 at 12 18 56 AM" src="https://github.com/user-attachments/assets/c902b1fb-0992-4e24-8e94-a97ca8507551" />
Changed paths7 files
First-parent comparisonpackages/react-devtools-shared/src/devtools/constants.js ModifiedM packages/react-devtools-shared/src/devtools/views/Components/InspectedElementSuspendedBy.js ModifiedA packages/react-devtools-shared/src/devtools/views/SuspenseTab/SuspenseEnvironmentColors.css AddedA packages/react-devtools-shared/src/devtools/views/SuspenseTab/SuspenseEnvironmentColors.js AddedM packages/react-devtools-shared/src/devtools/views/SuspenseTab/SuspenseRects.js ModifiedM packages/react-devtools-shared/src/devtools/views/SuspenseTab/SuspenseScrubber.js ModifiedM packages/react-devtools-shared/src/devtools/views/SuspenseTab/SuspenseTimeline.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…