Navigation inspector UI updates#94959
Conversation
Failing test suitesCommit: bd389c0 | About building and testing Next.js
Expand output● Telemetry CLI › production mode › cli session: babel tooling config ● Telemetry CLI › production mode › cli session: custom babel config (plugin) ● Telemetry CLI › production mode › cli session: package.json custom babel config (plugin) ● Telemetry CLI › production mode › cli session: custom babel config (preset) ● Telemetry CLI › production mode › cli session: next config with webpack ● Telemetry CLI › production mode › detect static 404 correctly for ● Telemetry CLI › production mode › detect page counts correctly for |
Stats cancelledCommit: bd389c0 |
| // its height doesn't change during the fade-out animation. | ||
| const [previousPanel, setPreviousPanel] = useState(panel) | ||
| const [exitingHeight, setExitingHeight] = useState<null | number>(null) | ||
| if (previousPanel !== panel) { | ||
| setPreviousPanel(panel) | ||
| setExitingHeight(containerHeight) |
There was a problem hiding this comment.
| // its height doesn't change during the fade-out animation. | |
| const [previousPanel, setPreviousPanel] = useState(panel) | |
| const [exitingHeight, setExitingHeight] = useState<null | number>(null) | |
| if (previousPanel !== panel) { | |
| setPreviousPanel(panel) | |
| setExitingHeight(containerHeight) | |
| // its height doesn't change during the fade-out animation. We only freeze | |
| // the height while leaving the panel; re-entering it must reset back to | |
| // null so the container can size to its content again. Otherwise, reopening | |
| // the panel before it unmounts (it stays mounted briefly for the fade-out) | |
| // would leave the height frozen at the dismissed value (e.g. 0), keeping | |
| // the panel permanently collapsed. | |
| const [previousPanel, setPreviousPanel] = useState(panel) | |
| const [exitingHeight, setExitingHeight] = useState<null | number>(null) | |
| if (previousPanel !== panel) { | |
| setPreviousPanel(panel) | |
| setExitingHeight(panel === 'instant-navs' ? null : containerHeight) |
exitingHeight is frozen on every panel change and never reset, so reopening the Navigation Inspector within the fade-out window leaves the panel permanently collapsed (height 0).
Updates the Navigation Inspector panel UI to match the new shell-inspection design.
ResumeactionTo try it out, run
Screen.Recording.2026-06-18.at.5.56.00.PM.mov