feat: Basiswert-Details im Pruefdialog aufklappbar

- Info-Link 'Was ist enthalten?' klappt Enthalten/Nicht enthalten inline auf
- zweiter Klick blendet die Details wieder aus
- kein separates Fenster, keine Fenster-Z-Order-Probleme
- 266 Whiteboard-Assertions (934 gesamt)
- Doku und Findings aktualisiert
This commit is contained in:
torsten 2026-10-31 10:59:06 +01:00
parent 334603c810
commit 531a057168
7 changed files with 90 additions and 10 deletions

View file

@ -210,7 +210,8 @@ Begrenzung auf zwei Features pro Fuß.
Einmal pro Programm) mit „bestanden/geprüft“-Zählern. Nicht anwendbare
Kategorien nennen den Grund (z. B. „keine Features gesetzt“). Darunter
stehen die Befunde mit Abschnitt und Element; ein leeres Ergebnis wird
positiv bestätigt. Speichern und Export bleiben möglich.
positiv bestätigt. Der Basiswert zeigt seine Grenzen hinter dem Link
„ⓘ Was ist enthalten?“. Speichern und Export bleiben möglich.
- **Section-Verwaltung:** Ein Panel rechts zeigt die chronologische
Abschnittsliste. Neue Sections werden angelegt, umbenannt, gelöscht und
hoch-/runtergeschoben; `sequence_order` wird nach jeder Änderung
@ -371,7 +372,7 @@ Aktueller Stand:
Prüfstatistik je Kategorie und die Basiswert-Summe.
- **Canvas:** 90 Assertions für Meter→Pixel-Mapping, Fit/Zoom/Pan,
Rink-Kontur und die reine Bogen-Geometrie.
- **Whiteboard:** 262 Assertions für Controller-Verdrahtung, Segmenterzeugung,
- **Whiteboard:** 266 Assertions für Controller-Verdrahtung, Segmenterzeugung,
Linien-/Bogenpfade, Klemmen an der Bande, Auswahl, Griff- und
Richtungs-/Kanten-Bearbeitung, Segmentlöschung, Element-Marker (Setzen,
Typwechsel, Inspector inkl. Kürzelauswahl, Standzeit, Base-Value- und

View file

@ -12,7 +12,7 @@ Base Values aller Elemente mit gültigem Katalogwert.
| Wertungsliste | pro Element `Label — Wert`, nicht gewertete als `—` |
| Zähler | gewertete und nicht gewertete Elemente |
| Ort | Prüfdialog, oberhalb der Prüfliste |
| Tests | 930 Assertions gesamt, `./tools/test.sh` grün |
| Tests | 934 Assertions gesamt, `./tools/test.sh` grün |
## Berechnung
@ -48,7 +48,7 @@ Der Prüfdialog zeigt nach dem Kopf:
```text
Basiswert: 9,10
3 von 4 Elementen gewertet · 1 ohne Base Value
Nur Base Values: ohne GOE, 1,1-Faktor, Komponenten und Abzüge.
Nur Base Values · ⓘ Was ist enthalten?
Wertung
3Lz — 5,90
@ -57,6 +57,12 @@ ChStSq L2 — —
StSq — 1,50
```
Der Link **ⓘ Was ist enthalten?** klappt direkt im Dialog eine Erklärung auf,
was in den Basiswert eingeht (Base Values, `ChSq`, gültige Katalogwerte) und
was nicht (GOE, 1,1-Faktor, PCS, Abzüge, Kombinationen, Programmtyp). Ein
zweiter Klick blendet die Details wieder aus; ein separates Fenster gibt es
nicht.
Danach folgen wie bisher Prüfliste und Befunde. Die Wertungsliste macht die
Summe nachvollziehbar; nicht gewertete Elemente bleiben mit `—` sichtbar.
@ -81,8 +87,8 @@ Gesamtpunktzahl.
- **Validierung:** 63 Assertions (vorher 54), u. a. Summe 7,40 aus
`CCoSp L4` + `StSq L4`, `3Lz` 5,90, `ChSq` 3,00, unbekannter Code ohne Wert.
- **Whiteboard:** 262 Assertions (vorher 259), u. a. Anzeige von Basiswert,
Zählern und Wertungsliste im Dialog.
- **Whiteboard:** 266 Assertions (vorher 259), u. a. Anzeige von Basiswert,
Zählern, Wertungsliste sowie auf- und zuklappbaren Score-Details.
Visuell geprüft über `tests/manual/capture_elements.gd ... validate` bei
1400 × 876: `Basiswert: 9,10`, 3 von 4 Elementen gewertet.

View file

@ -209,7 +209,10 @@ Die Schätzung enthält **keine** GOE, keinen 1,1-Faktor für die zweite
Programmhälfte, keine Programmkomponenten und keine Abzüge. Freitext- und
Kombinationselemente ohne Katalogwert werden als nicht gewertet markiert.
Der angezeigte Wert ist damit ein technischer Basiswert, keine
Gesamtpunktzahl. Noch nicht geprüft werden
Gesamtpunktzahl.
Der Link **ⓘ Was ist enthalten?** klappt diese Grenzen direkt im Prüfdialog
auf; ein zweiter Klick blendet sie wieder aus. Noch nicht geprüft werden
Programmtyp, erlaubte Elementanzahl, Wiederholungs- und Kombinationsregeln
sowie die Begrenzung auf zwei Features pro Fuß.

View file

@ -962,4 +962,4 @@ offset_right = 708.0
offset_bottom = 456.0
bbcode_enabled = true
scroll_active = true
selection_enabled = true
selection_enabled = true

View file

@ -166,6 +166,7 @@ var _element_level: int = 0
var _element_catalog: ElementCatalog
var _level_rules: ElementLevelRules
var _dialog_features: PackedStringArray = PackedStringArray()
var _show_score_info: bool = false
var _preset_speed: float = DEFAULT_SPEED_MPS
var _current_path: String = ""
var _dirty: bool = false
@ -270,6 +271,7 @@ func _ready() -> void:
element_button.pressed.connect(_open_element_dialog)
element_dialog.confirmed.connect(_on_element_confirmed)
validation_button.pressed.connect(open_validation_dialog)
validation_text.meta_clicked.connect(_on_validation_meta_clicked)
element_type_option.item_selected.connect(_on_element_type_selected)
resized.connect(_apply_responsive_layout)
@ -449,6 +451,11 @@ func validate_routine() -> Array[ValidationIssue]:
## Opens the validation dialog with the current findings and the checks that
## were performed.
func open_validation_dialog() -> void:
_show_score_info = false
_render_validation_dialog()
func _render_validation_dialog() -> void:
var validator: RoutineValidator = ROUTINE_VALIDATOR_SCRIPT.new(
_element_catalog,
_level_rules
@ -486,9 +493,16 @@ func open_validation_dialog() -> void:
if report.unscored_elements > 0:
scored_text += " · %d ohne Base Value" % report.unscored_elements
lines.append(scored_text)
lines.append(
"[color=#94a3b8]Nur Base Values: ohne GOE, 1,1-Faktor, Komponenten und Abzüge.[/color]"
var info_label := (
"ⓘ Details ausblenden" if _show_score_info else "ⓘ Was ist enthalten?"
)
lines.append(
"[color=#94a3b8]Nur Base Values · [/color][url=score_info][color=#60a5fa]%s[/color][/url]"
% info_label
)
if _show_score_info:
lines.append("")
lines.append_array(_score_info_lines())
if not report.element_values.is_empty():
lines.append("")
lines.append("[b]Wertung[/b]")
@ -534,6 +548,9 @@ func open_validation_dialog() -> void:
)
validation_text.text = "\n".join(lines)
if validation_dialog.visible:
return
var target := Vector2i(720, 520)
var viewport_size := Vector2i(get_viewport_rect().size)
if viewport_size.x > 0:
@ -543,6 +560,28 @@ func open_validation_dialog() -> void:
validation_dialog.popup_centered(target)
func _score_info_lines() -> PackedStringArray:
var lines := PackedStringArray()
lines.append("[b]Enthalten[/b]")
lines.append("- Base Value jedes Elements aus Katalog und gewähltem Level")
lines.append("- ChSq mit festem Level 1")
lines.append("- nur Elemente mit gültigem Katalogwert")
lines.append("")
lines.append("[b]Nicht enthalten[/b]")
lines.append("- GOE / Ausführungsqualität")
lines.append("- 1,1-Faktor für Sprünge in der zweiten Programmhälfte")
lines.append("- Programmkomponenten (PCS)")
lines.append("- Abzüge (Stürze, Zeitüberschreitungen usw.)")
lines.append("- Kombinationen und Freitext-Codes ohne Katalogwert")
lines.append("- Programmtyp und Adult-spezifische Regeln")
lines.append("")
lines.append(
"[b]Ergebnis[/b]\nDer angezeigte Wert ist ein technischer Basiswert, "
+ "keine vorhergesagte Gesamtpunktzahl."
)
return lines
func _validation_check_line(check: ValidationCheck) -> String:
var color := "#22c55e"
var icon := "✓"
@ -641,6 +680,13 @@ static func _format_base_value(value: float) -> String:
return ("%.2f" % value).replace(".", ",")
func _on_validation_meta_clicked(meta: Variant) -> void:
if str(meta) != "score_info":
return
_show_score_info = not _show_score_info
_render_validation_dialog()
func get_selected_element_features() -> PackedStringArray:
var segment := get_selected_segment()
if segment == null:

View file

@ -91,6 +91,9 @@ func _capture() -> void:
controller.element_button.pressed.emit()
elif args.size() > 3 and args[3] == "validate":
controller.open_validation_dialog()
elif args.size() > 3 and args[3] == "scoreinfo":
controller.open_validation_dialog()
controller.validation_text.meta_clicked.emit("score_info")
elif args.size() > 3 and args[3] == "pending":
controller.select_segment(jump.segment_id)
controller.element_button.pressed.emit()

View file

@ -1279,6 +1279,27 @@ func _run() -> void:
and controller.validation_text.text.contains("3X — —"),
"the scoring breakdown marks unknown elements as unscored"
)
_check(
controller.validation_text.text.contains("Was ist enthalten"),
"the score caveats are available behind an info link"
)
_check(
not controller.validation_text.text.contains("1,1-Faktor"),
"the score details are hidden by default"
)
controller.validation_text.meta_clicked.emit("score_info")
_check(
controller.validation_text.text.contains("Enthalten")
and controller.validation_text.text.contains("GOE")
and controller.validation_text.text.contains("1,1-Faktor")
and controller.validation_text.text.contains("Kombinationen"),
"the score info link expands the excluded scoring parts"
)
controller.validation_text.meta_clicked.emit("score_info")
_check(
not controller.validation_text.text.contains("1,1-Faktor"),
"the score info link collapses the details again"
)
controller.validation_dialog.hide()
controller.new_routine()