Uh oh!
There was an error while loading. Please reload this page.
polish(console-ai): ease dock canvas-maximize + per-surface chat width (ADR-0057 UX #2477) - #2480
Merged
Merged
Conversation
…h (ADR-0057 UX, #2477) - #4: transition the rail width (200ms ease) on Live Canvas auto-maximize/tuck instead of snapping; suppressed during a manual resize drag (width tracks the pointer 1:1). - #6: parameterize the width storage key (persistWidthKey); the Studio dock uses its own so a wide console chat no longer squeezes the design canvas. Refs #2477 (ADR-0057 UX follow-ups) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
✅ Console Performance Budget
📦 Bundle Size Report
Size Limits
|
Uh oh!
There was an error while loading. Please reload this page.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The two smaller UX follow-ups from #2477 (ADR-0057), after #2478.
#4 — Ease the canvas auto-maximize
When a
buildsession opens the Live Canvas, the rail auto-maximizes; it used to snap to full width. Now it eases over 200ms (and eases back on tuck). The transition is suppressed while a manual resize drag is in progress, so dragging still tracks the pointer 1:1 (a transition there would lag the handle).#6 — Studio dock keeps its own width
The rail width used one shared localStorage key across surfaces, so a wide console chat squeezed the Studio design canvas (and vice-versa).
useChatDockStatenow takes an optionalpersistWidthKey; the Studio dock passes its own (ai-chat-studio-dock-width). Each surface remembers the width that suits it. Mirrors the per-surface expanded key added in #2478.Verification
tsc --noEmitclean;npx vitest runlayout + studio-design: 5 files / 26 tests green (the stored-flag round-trip + folded-tab suites; the width-key wiring mirrors the already-tested expanded-key pattern).Refs #2477 · ADR-0057