Fix JSX attribute syntax in constraint editor descriptions
CI / go-lint (push) Has been skipped
CI / python-lint (push) Has been skipped
CI / nodejs-lint (push) Has been skipped
CI / test-go-school (push) Successful in 28s
CI / test-go-edu-search (push) Successful in 33s
CI / test-python-klausur (push) Failing after 2m32s
CI / test-python-agent-core (push) Successful in 19s
CI / test-nodejs-website (push) Successful in 24s

German curly quotes („…") combined with a closing straight " inside
JSX attribute values were terminating the attribute prematurely, e.g.
`description="Beispiel: „X" (jugendgerecht)."` lost everything after
the inner straight quote. Switch all such descriptions to the JSX
expression form `description={"…"}` so the inner quotes are part of
a JavaScript string literal and parsed correctly.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Benjamin Admin
2026-05-21 23:41:24 +02:00
parent 7c96d89927
commit a315db0388
9 changed files with 15 additions and 15 deletions
@@ -34,7 +34,7 @@ export function SubjectMinDayGapEditor() {
<ConstraintShell
testId="subject-min-day-gap-editor"
title="Fach: Min. Tagesabstand"
description="Beispiel: „Mathe nicht an 2 Tagen direkt hintereinander"."
description={"Beispiel: „Mathe nicht an 2 Tagen direkt hintereinander"."}
newLabel="+ Neue Regel"
newDisabled={subjects.length === 0}
prereqWarning={subjects.length === 0 ? 'Zuerst Faecher anlegen.' : null}
@@ -97,7 +97,7 @@ export function SubjectContiguousWhenRepeatedEditor() {
<ConstraintShell
testId="subject-contiguous-when-repeated-editor"
title="Fach: Wenn mehrfach pro Tag, dann zusammenhaengend"
description="Beispiel: Mathe Stunde 1+2 ja, aber 1+3 mit Sachkunde dazwischen verboten."
description={"Beispiel: Mathe Stunde 1+2 ja, aber 1+3 mit Sachkunde dazwischen verboten."}
newLabel="+ Neue Regel"
newDisabled={subjects.length === 0}
prereqWarning={subjects.length === 0 ? 'Zuerst Faecher anlegen.' : null}
@@ -155,7 +155,7 @@ export function SubjectDoubleLessonEditor() {
<ConstraintShell
testId="subject-double-lesson-editor"
title="Fach: Doppelstunde bevorzugt"
description="Soft-Regel: Sport oder Chemie laufen oft besser als 90-Min-Block statt zwei Einzelstunden."
description={"Soft-Regel: Sport oder Chemie laufen oft besser als 90-Min-Block statt zwei Einzelstunden."}
newLabel="+ Neue Regel"
newDisabled={subjects.length === 0}
prereqWarning={subjects.length === 0 ? 'Zuerst Faecher anlegen.' : null}