Skip to content

Keep chat composer full size - #846

Open
Harry19081 wants to merge 1 commit into
developfrom
dev/full-size-composer
Open

Keep chat composer full size#846
Harry19081 wants to merge 1 commit into
developfrom
dev/full-size-composer

Conversation

@Harry19081

Copy link
Copy Markdown
Member

Problem

The chat input could collapse into a compact pill in maximized and contextual presentations. That separate layout path also hid or changed ordinary composer controls and required a resize observer to switch back to the full editor.

Solution

Remove the compact presentation, pill shell variant, inline ComposerBar layout, compact editor styles, and expansion observer. Default and contextual chat inputs now always use the shared full-size stacked composer, while existing edit-mode surfaces remain unchanged.

Potential risks

Contextual Canvas prompts now occupy the full composer height and expose the standard toolbar controls, so their visual footprint is larger by design. No persistence, API, IPC, or wire behavior changes. Rollback is a direct revert of commit ae8500d96.

Audit

The architecture sweep covered presentation types, compact-layout control flow, dead code, shared component boundaries, defaults, and naming. Backend wire, initialization, and resolver layers were not applicable. The configured frontend UI audit skill was unavailable in this workspace.

Verification

  • npx vitest run src/components/ComposerBar/index.test.ts src/engines/ChatPanel/InputArea/__tests__/inputAreaPresentation.test.ts src/engines/ChatPanel/InputArea/components/InputComposerBars.test.ts src/engines/ChatPanel/InputArea/components/InputEditor.test.ts src/engines/Simulator/apps/canvas/design/CanvasDesignSurface.test.ts — 5 files, 15 tests passed.
  • npx eslint src/components/ComposerBar/index.tsx src/components/ComposerShell/index.tsx src/engines/ChatPanel/InputArea/__tests__/inputAreaPresentation.test.ts src/engines/ChatPanel/InputArea/components/InputAreaChrome.tsx src/engines/ChatPanel/InputArea/components/InputComposerBars.test.ts src/engines/ChatPanel/InputArea/components/InputComposerBars.tsx src/engines/ChatPanel/InputArea/components/InputEditor.test.ts src/engines/ChatPanel/InputArea/components/InputEditor.tsx src/engines/ChatPanel/InputArea/index.tsx src/engines/ChatPanel/InputArea/inputAreaPresentation.ts — passed.
  • npm run typecheck — passed.
  • git diff --check — passed.

No screenshot was captured because local UI control is explicit opt-in; the component and Canvas integration tests cover the changed presentation contract.

Pre-commit hook ran. Total eslint: 5, total circular: 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant