You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(ui): print next steps before animating the "Next steps" header (#343)
* fix(ui): render next-steps list before sweeping the header highlight
animateHeader redrew only the header line in place, so the 'Next steps' header
shimmered alone for the duration of the animation while the steps printed only
afterward, making it look hung. Print the whole block up front, then step the
cursor back up to sweep the header in place.
Covers clerk link, clerk auth login, clerk init, and clerk deploy next-steps.
* fix(ui): fall back to plain write when block exceeds terminal height
The cursor-up escape that repositions the header only works when the
block fits on screen without scrolling. With a tall next-steps body
(~27 lines for deploy), a short terminal scrolls the buffer and the
cursor-up no longer lands on the header, corrupting the output.
Guard against this by comparing rowsBelow against process.stderr.rows
before entering the animation path.
Print the "Next steps" list before sweeping the highlight across its header, so the animation no longer leaves a lone "Next steps" line that looks hung while the steps are hidden.
0 commit comments