refactor(ux): Listen-Editoren auf gemeinsame Schlüssel-Validierung vereinheitlicht#26
Merged
Merged
Conversation
…ereinheitlicht Geteilte common/listItemValidation.getDuplicateKeyError (unit-getestet) fuer Auswahlfeld-Optionen und Chip-Gruppen. SingleSelection nutzt sie statt eigener Logik (gleiche Meldungen). ChipGroup bekommt damit erstmals Eindeutigkeits-/ Leer-Pruefung der Chip-field_id (Fehler am Feld + Speichern gesperrt), den IconField-Picker fuers Chip-Icon und einen Leerzustand-Hinweis. Die unterschiedlichen Editiermodelle (Inline-Tabelle vs. Card+Dialog) bleiben bewusst - die Datenformen weichen zu stark ab; ein struktureller Voll-Merge waere ein groesserer Folge-Schritt.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Die beiden Listen-Editoren (Auswahlfeld-Optionen, Chip-Gruppen) verhalten sich jetzt konsistent — gemeinsame Schlüssel-Validierung und einheitliche Affordanzen.
Kernlogik
common/listItemValidation.getDuplicateKeyError(unit-getestet) als Single Source of Truth für die Eindeutigkeits-/Leer-Prüfung von Listen-Schlüsseln.field_id: Fehleranzeige am Feld-ID-Feld + „Speichern" deaktiviert, solange ungültig.Bewusste Scope-Entscheidung
Die unterschiedlichen Editiermodelle bleiben: Inline-Tabelle für einfache Optionen (key/label/icon) vs. Card + Dialog für reichhaltige Chips (field_id/title/icon/required/default/visibility). Die Datenformen weichen zu stark ab, als dass ein identisches Widget sinnvoll wäre; vereinheitlicht wird daher die Verhaltens-/Affordanz-Ebene (Validierung, Icon-Picker, Leerzustand). Ein struktureller Voll-Merge (inline für beide) wäre ein größerer Folge-Schritt.
Test
npm testgrün (142; +5listItemValidation.test.ts),npm run buildohne TS-Fehler.Labels
Refactoring
🤖 https://claude.ai/code/session_01D2Pc4cAexeqUFrM1YonaJL
Generated by Claude Code