feat(console/ai): collapsible conversations list (auto-tucks when preview opens)#1703
Merged
Merged
Conversation
…view opens) The desktop AI chat showed a fixed 18rem conversations list at all times. When the Live Canvas preview opens, the layout becomes list + chat (42%) + preview — the chat gets cramped. Make the list collapsible to reclaim that space. - A desktop header toggle (PanelLeftClose / PanelLeftOpen) collapses/expands the list; the preference persists in localStorage. - Opening the preview auto-tucks the list (and restores it on close) — but only if the auto-collapse is what hid it. A manual toggle, or a list the user already collapsed, is never overridden; auto-collapse is transient. The collapse logic is extracted into an exported `useCollapsibleChatsList` hook and unit-tested. ChatPane reports preview open/close up via a new `onCanvasOpenChange` callback. Test: 477 pass (5 new) — default/persist/init-from-storage, auto-tuck + restore, respect a manual collapse (no spurious re-expand), and a manual toggle during preview taking control. tsc clean; new code lint-clean. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
✅ Console Performance Budget
📦 Bundle Size Report
Size Limits
|
This was referenced Jun 13, 2026
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 free
to 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.
Why
The desktop AI chat pins an 18rem conversations list at all times. When the Live Canvas preview opens, the layout becomes list + chat (42%) + preview — the chat column gets cramped (the exact complaint: "右侧展开预览之后,屏幕空间就特别窄"). Make the list collapsible to reclaim that space.
What
PanelLeftClose/PanelLeftOpen) collapses/expands the list; the preference persists (localStorage).The collapse logic is extracted into an exported
useCollapsibleChatsListhook (testable in isolation).ChatPanereports the preview opening/closing up via a newonCanvasOpenChangecallback.Verification
tscclean; new code lint-clean.Mobile is unchanged (it already uses a Sheet drawer). First step in a broader chat-UX pass.
Note: logic is unit-tested; I haven't yet captured a live-rig screenshot of the collapse animation (needs a console rebuild into the EE rig) — can do on request.
🤖 Generated with Claude Code