fix(orion): replace cover result box with compact status text

This commit is contained in:
Schubert Ferenc 2026-07-12 13:15:02 +02:00
parent 068d00513d
commit 85cd1c30ab
7 changed files with 75 additions and 7 deletions

View file

@ -55,6 +55,17 @@ def validation_result_label(value: str | None) -> str:
return validation_result_presentation(value).label
def validation_result_cover_sentence(value: str | None) -> str:
presentation = validation_result_presentation(value)
sentences = {
"BESTANDEN": "Die technische Validierung wurde erfolgreich bestanden.",
"BESTANDEN_MIT_AUFLAGEN": "Die technische Validierung wurde mit Auflagen bestanden.",
"NICHT_BESTANDEN": "Die technische Validierung wurde nicht bestanden.",
"OFFEN": "Die technische Validierung wurde noch nicht bewertet.",
}
return sentences[presentation.key]
def validation_result_box(value: str | None, *, compact: bool = False) -> str:
presentation = validation_result_presentation(value)
size_class = "result-box--compact" if compact else "result-box--cover"