dillon1000/react
Commit
Browse files [DevTools] Custom Scrubber Design (#34627)
Stacked on #34620. This will let us use different color for different segments of the timeline. Since we're modeling discrete steps (sometimes just a couple), a scrubber with a handle that you have to move is quite annoying and misleading. Doesn't show you how many steps there are. Therefore I went with a design that highlights each segment as its own step and you can click to jump to a step. This is still backed by an input range for accessibility and keyboard controls. <img width="1213" height="434" alt="Screenshot 2025-09-27 at 4 50 21 PM" src="https://github.com/user-attachments/assets/2c81753d-1b66-4434-8b1d-0a163fa22ab3" /> <img width="1213" height="430" alt="Screenshot 2025-09-27 at 4 50 45 PM" src="https://github.com/user-attachments/assets/07983978-a8f6-46ed-8c51-6ec96487af66" /> https://github.com/user-attachments/assets/bc725f01-f0b5-40a8-bbb5-24cc4e84e86d
Changed paths4 files
First-parent comparisonpackages/react-devtools-shared/src/devtools/views/SuspenseTab/SuspenseScrubber.css AddedA packages/react-devtools-shared/src/devtools/views/SuspenseTab/SuspenseScrubber.js AddedM packages/react-devtools-shared/src/devtools/views/SuspenseTab/SuspenseTimeline.css ModifiedM packages/react-devtools-shared/src/devtools/views/SuspenseTab/SuspenseTimeline.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…