[Design] Redesign the chat composer
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 42/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- typescript
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 591
- Forks
- 33
- Ø Merge
- 4 Std. 13 Min.
- Gemergte PRs (30 T.)
- 412
Entwicklungsumgebung
- Enthält ein Dockerfile oder eine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Kein Beitragsleitfaden
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus githubnext/chopin
-
documentation triage/human-response
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
githubnext/chopin#149 · 3 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 55/100
githubnext/chopin#699 · 2 Kommentare · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement
Schwierigkeit 3/5 Ein halber Tag Anfängerfreundlichkeit 45/100
githubnext/chopin#597 ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 30/100
githubnext/chopin#596 ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 12/100
githubnext/chopin#595 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in githubnext/chopin
Ähnliche Issues
-
bug needs-triage potential-regression
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
aws/aws-sdk-js-v3#8408 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
colinhacks/zod#6743 ·
Maintainer antworten meist innerhalb von 1 Tag
-
[BUG] Packing list: the weight field drops digits on a slow connection and saves the wrong weightOffen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 79/100
openai/openai-node#3124 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 73/100
anthropics/anthropic-sdk-typescript#1296 ·
Maintainer antworten meist innerhalb von 8 Tagen