[Design] Redesign the chat composer
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 5/5
- 預估耗時
- 一週以上
- 新手友好度
- 42/100
- Issue 類型
- 功能
- 描述清晰度
- 基本清楚
- 活躍度
- 活躍
- 技術堆疊
- typescript
研究方向
Start at /design-audit#surfaces and the chat composer in apps/web, then compare the listed shadcn Input Group and AI Elements PromptInput references with the current behavior. Run bun test apps/web/src/chat and review the required verification commands while checking each listed visual, keyboard, draft, reference, and error state. Done means the chosen library direction is documented, Maggie approves the specimen, and existing composer behavior remains intact.
由索引模型根據 Issue 內容生成。
描述
Base branch: main
Branch: maggie/redesign-chat-composer
Depends on: None
Goal
Replace the visually inconsistent chat composer shell with a polished shared composition built from proven component patterns while preserving Chopin's collaboration behavior.
Context From Planning
- The composer in
/design-audit#surfaceslooks inconsistent with the rest of Chopin and should not be reinvented from scratch. - Investigate shadcn Input Group and AI SDK AI Elements PromptInput as references, not preselected dependencies.
- AI Elements PromptInput is a close reference for auto-resize, submit-status icons, attachments, and keyboard behavior: https://elements.ai-sdk.dev/components/prompt-input
Current Behavior
The production composer owns acknowledged drafts, # document references, a listbox picker, send/stop state, keyboard submission, connection/read-only state, and inline send errors. Its visual shell is assembled from generic field/button classes and local layout utilities.
Desired Behavior
Create a cohesive composer with a clear input surface, footer/actions, reference affordance, busy/error presentation, and excellent keyboard/focus behavior. Reuse a library pattern where it fits, but adapt it to Chopin's existing state model.
Acceptance Criteria
- A short library evaluation compares shadcn Input Group, AI Elements PromptInput, and adapting the current composer; it records the chosen direction and dependency cost.
- The design audit covers empty, drafted, focused, disabled/disconnected, submitting, Planner-working/stop, reference-picker, reference-limit, and send-error states.
- Existing acknowledged-draft behavior,
#references, picker keyboard navigation, Enter/Shift-Enter behavior, submit focus restoration, stop action, and error recovery remain intact. - The composer is usable at narrow widths and with long referenced document names.
- The visual shell is shared where appropriate with comment/research composers without forcing their different domain behavior into one state machine.
- Maggie approves the audit specimen before production migration.
Verification Commands
bun run typesbun run cibun test apps/web/src/chatbun run e2e
Primary Surfaces
/design-audit#surfaces- Chat composer in
apps/web - Reference picker and acknowledged composer drafts
Expected PR Checks
- Repo required checks
Report Requirements
- Library comparison and decision
- Before/after screenshots for key states and widths
- Keyboard/accessibility evidence
- Confirmation that draft/reference behavior is unchanged
Implementation Notes
- Treat external components as visual/interaction references. Chopin's wire protocol and draft reconciliation remain authoritative.
- Do not replace the composer with a component that assumes a different message or attachment model.
- Keep send errors associated with the composer without collapsing the input layout.
Stop Conditions
- A candidate library requires replacing Chopin's draft/reference state model.
- Attachment scope or new composer features would expand beyond this visual redesign.
- 主要語言
- TypeScript
- 星號
- 591
- 分支
- 33
- 平均合併
- 4 小時 13 分鐘
- 30 天內合併 PR
- 412
環境準備
- 提供 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 沒有貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
githubnext/chopin 的其他 Issue
-
documentation triage/human-response
難度 2/5 1-3 小時 新手友好度 74/100
githubnext/chopin#149 · 3 則留言 ·
維護者通常 1 天內回覆
-
/research web search fails instantly (web-search-unavailable) with custom GitHub App auth可能已有人在做 @lavaman131 於 4 天前認領。 未關閉
難度 4/5 3-5 天 新手友好度 55/100
githubnext/chopin#699 · 2 則留言 · 已指派 1 人 ·
維護者通常 1 天內回覆
-
enhancement
難度 3/5 半天 新手友好度 45/100
githubnext/chopin#597 ·
維護者通常 1 天內回覆
-
enhancement
難度 4/5 3-5 天 新手友好度 30/100
githubnext/chopin#596 ·
維護者通常 1 天內回覆
-
enhancement
難度 5/5 一週以上 新手友好度 12/100
githubnext/chopin#595 ·
維護者通常 1 天內回覆
查看 githubnext/chopin 的全部 Issue
相似的 Issue
-
code-quality good-first-issue
難度 2/5 1-3 小時 新手友好度 72/100
OpenRailAssociation/netzgrafik-editor-frontend#1481 ·
維護者通常 1 天內回覆
-
bug implicit-state
難度 2/5 1-3 小時 新手友好度 74/100
-
area:models enhancement
難度 2/5 1-3 小時 新手友好度 76/100
維護者通常 1 天內回覆
-
bug frontend ui
難度 2/5 1-3 小時 新手友好度 68/100
維護者通常 1 天內回覆
-
Recording drops clicks on links, filters and checkboxes that share a form with a search field可能已有人在做 @columbia11 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 75/100
Tencent/BrowserSkill#657 ·
維護者通常 1 天內回覆