Files
claude-projects/wuerth-plato/memory/feedback_no_native_alerts.md
T

19 lines
870 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
name: feedback_no_native_alerts
description: Niemals window.alert/confirm Dialog-Komponente bzw. errorList nutzen
metadata:
node_type: memory
type: feedback
originSessionId: bcf0637c-def5-4024-b8c6-e8be02a43c4f
---
**Grundsätzlich kein `window.alert()` / `window.confirm()`** in der App. Wirkt billig und lieblos, passt nicht zum Design-System.
Stattdessen:
- **Bestätigungen/Warnungen** (z. B. „Bearbeitung beenden, Daten gehen verloren") → `ConfirmDialog`-Komponente aus `@plato/ui-common` (Token-basiert, Teleport, v-model/confirm/cancel, `danger`-Flag). Texte über i18n.
- **Fehlermeldungen** → `errorList.push(msg, { code, severity })` → ErrorOverlay.
**Why:** Konsistente, wertige UI; native Browser-Dialoge brechen den Look.
**How to apply:** Beim Schreiben neuer UI nie zu alert/confirm greifen. Siehe [[project_fe_design_system]].