refactor: Phase 1 — Extract ChatHeader, SystemPromptCard, ChatAlerts, ChatComposer from ChatMessagesPanel#361
Draft
refactor: Phase 1 — Extract ChatHeader, SystemPromptCard, ChatAlerts, ChatComposer from ChatMessagesPanel#361
Conversation
…ser from ChatMessagesPanel Phase 1 of chat UI overhaul (#360). - ChatHeader (123 LOC): conversation header bar with rename, title gen, voice, tools, status - SystemPromptCard (104 LOC): system prompt view/edit with save/cancel/reset - ChatAlerts (38 LOC): error banner + server-stopped warning - ChatComposer (110 LOC): composer with deep research toggle and send/stop ChatMessagesPanel reduced from 857 → 652 LOC. All assistant-ui primitives preserved. Context isolation unchanged.
Wrap TwoPanelLayout in visibility container divs to fix CSS cascade conflict between Tailwind's 'hidden' and 'md:grid' display rules that caused both Chat and Console views to render simultaneously. Also ran npm audit fix to bump flatted 3.3.4 → 3.4.1 (DoS vuln), though package-lock.json is gitignored so that fix is local only.
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.
Phase 1: Component Decomposition (#360)
Extracts 4 focused subcomponents from
ChatMessagesPanel(857 → 652 LOC):ChatHeaderSystemPromptCardChatAlertsChatComposerComposerPrimitive, deep research toggle, send/stopWhat's preserved
assistant-uiprimitives (ThreadPrimitive,ComposerPrimitive,MessagePrimitive) — wrapped, never replacedThinkingTimingContext,VoiceContext,DeepResearchContextremain separateresearchMessageIdRefstays inChatMessagesPanel(mutated before render tree)Testing checklist