[Design] Unify destructive actions and error states
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 30/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- typescript
- Área
- accessibility, design, frontend
Línea de trabajo
Start with the design audit at /design-audit#surfaces and inspect TerminalAlert consumers in apps/web, plus the document deletion and other destructive dialogs. Review the existing focus, recovery, and announcement behavior before mapping the required states. Done means approved audit specimens, accessibility evidence, migrated consumers, screenshots, and passing bun run types, bun run ci, bun run design-audit:test, and bun test.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Base branch: main
Branch: maggie/design-error-and-destructive-states
Depends on: None
Goal
Design a coherent system for destructive actions and inline, recoverable, and terminal errors across Chopin.
Context From Planning
- The destructive dialog and all error specimens in
/design-audit#surfacescurrently feel visually crude and inconsistent. - Destructive buttons, warnings, validation errors, retryable failures, and terminal failures need related semantics without making every error equally loud.
- This is a proper design pass requiring human review, not a CSS-only color adjustment.
Current Behavior
Errors are presented through a mix of plain destructive text, TerminalAlert, ad hoc banners, and dialog-local copy. Destructive actions use related colors but do not form a clear severity, placement, or recovery system.
Desired Behavior
Define reusable alert/status and destructive-action patterns with clear severity, readable hierarchy, consistent actions, accessible announcements, and calm visual weight appropriate to the consequence.
Acceptance Criteria
- The design audit covers inline validation, recoverable error with retry, terminal error, destructive confirmation, destructive failure, and disabled/busy destructive action.
- Each pattern defines icon, title/body hierarchy, action placement, color role, surface, spacing, and announcement semantics.
- Errors remain understandable without color alone and meet contrast requirements.
- Retry, cancel, and destructive confirmation keep their existing behavior and focus management.
- A shared primitive replaces duplicate presentation while retaining consumer-specific copy and recovery behavior.
- Maggie approves the audit specimens before production migration.
Verification Commands
bun run typesbun run cibun run design-audit:testbun test
Primary Surfaces
/design-audit#surfacesTerminalAlertconsumers inapps/web- Document deletion and other destructive dialogs
- Research, navigation, and composer failures
Expected PR Checks
- Repo required checks
Report Requirements
- State matrix and before/after screenshots
- Accessibility behavior for alerts and dialogs
- Production consumers migrated
- Deferred edge cases
Implementation Notes
- Preserve the distinction between validation, recoverable, and terminal failures.
- Preserve persistence-before-publication and existing action semantics; presentation must not acknowledge work early.
- Build on shared tokens/components rather than bespoke dialog and banner CSS.
Stop Conditions
- Severity semantics or copy require a product decision.
- A proposed shared component cannot preserve a consumer's focus or recovery contract.
- Lenguaje dominante
- TypeScript
- Estrellas
- 392
- Forks
- 22
- Merge medio
- 1 d 7 min
- PR fusionados (30 d)
- 203
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de githubnext/chopin
-
documentation triage/human-response
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
githubnext/chopin#149 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
enhancement triage/human-response
Dificultad 4/5 3-5 días Aptitud para principiantes 55/100
githubnext/chopin#203 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
[Design] Style Mermaid diagramsAbiertoenhancement triage/human-response
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
githubnext/chopin#165 ·
Los mantenedores suelen responder en 1 día
-
enhancement triage/human-response
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
githubnext/chopin#164 ·
Los mantenedores suelen responder en 1 día
-
triage/human-response
Dificultad 5/5 Más de una semana Aptitud para principiantes 38/100
githubnext/chopin#163 ·
Los mantenedores suelen responder en 1 día
Todos los issues de githubnext/chopin
Issues similares
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
supadata-ai/mcp#27 ·
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
capricorn86/happy-dom#2485 ·
Los mantenedores suelen responder en 2 días
-
优化导入 OCR 模型选择文件的按钮样式Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
siyuan-note/siyuan#20430 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
Albert-Weasker/niubigeo#194 ·
Los mantenedores suelen responder en 1 día