fix: Feature-Auswahl im Element-Dialog pending und live

- Feature-Button folgt dem pending Typ/Kuerzel statt dem gespeicherten
  Segment; nach der Kuerzelwahl wird er sofort aktiv
- Feature-Auswahl aktualisiert Level, Base Value und Hinweis live
- Erst Uebernehmen schreibt Typ, Kuerzel, Features, Level und Standzeit
  in einem Undo-Schritt; Abbrechen verwirft
- 259 Whiteboard-Assertions (918 gesamt)
- Doku und Findings aktualisiert
This commit is contained in:
torsten 2026-10-31 10:49:03 +01:00
parent 1f5834752e
commit 15f7eab9cf
6 changed files with 234 additions and 72 deletions

View file

@ -15,7 +15,7 @@ der Feature-Auswahl.
| Unbekannte Freitext-Codes | Level bleibt manuell |
| Oberfläche | Level-Regler bei Katalog-Elementen read-only |
| Undo | Feature- und Leveländerung in einem Schritt |
| Tests | 912 Assertions gesamt, `./tools/test.sh` grün |
| Tests | 918 Assertions gesamt, `./tools/test.sh` grün |
## Verhalten
@ -34,6 +34,21 @@ der Feature-Auswahl.
- Der Feature-Hinweis zeigt nur noch `Features: n · Level m`; die frühere
Mismatch-Anzeige entfällt bei automatisch abgeleiteten Elementen.
## Feature-Auswahl im Dialog
Die Feature-Auswahl ist eine **Pending-Auswahl**:
1. Typ und Kürzel im Dialog wählen.
2. Der Button **Features (n)** wird aktiv, sobald das Kürzel im Katalog steht.
3. Features anhaken; Level, Base Value und Hinweis aktualisieren sich sofort.
4. Erst **Übernehmen** schreibt Typ, Kürzel, Features, Level und Standzeit in
einem Undo-Schritt ins Segment. **Abbrechen** verwirft die Auswahl.
Damit ist die Feature-Prüfung nicht mehr an das bereits gespeicherte Segment
gebunden. Vorher blieb der Button nach einem Typ-/Kürzelwechsel stumm, weil er
noch die alten Segmentdaten las; das war der gemeldete „Level bleibt Base“-
Effekt.
## Auswirkungen auf Altdaten
- Ein gespeicherter manueller Level ohne Features wird beim nächsten Öffnen
@ -55,7 +70,7 @@ der Feature-Auswahl.
## Tests
Erweitert: `tests/run_whiteboard_tests.gd` (241 → 253 Assertions)
Erweitert: `tests/run_whiteboard_tests.gd` (241 → 259 Assertions)
- Katalog-Spin ohne Features ist Base
- vier Features ergeben Level 4, drei Level 3, zwei Level 2
@ -64,6 +79,8 @@ Erweitert: `tests/run_whiteboard_tests.gd` (241 → 253 Assertions)
- Level-Regler ist bei Katalog-Spin deaktiviert
- Suffix-Code und unbekannter Freitext-Code funktionieren weiterhin
- Sequenzbereich erhält Level 2 aus zwei Features
- kompletter Dialogfluss von leeren Marker über Typ-/Kürzelwahl und
Feature-Auswahl bis zum bestätigten Level 2
Visuell geprüft über `tests/manual/capture_elements.gd ... features` bei
1400 × 876: `Level 2` ausgegraut, `Base Value: 2,50`, Status `CCoSp L2`.