Skip to content

fix: don't clear the plan when toggling a student/group selection#52

Merged
obcode merged 1 commit into
mainfrom
fix/ops-selection-keeps-plan
Jul 19, 2026
Merged

fix: don't clear the plan when toggling a student/group selection#52
obcode merged 1 commit into
mainfrom
fix/ops-selection-keeps-plan

Conversation

@obcode

@obcode obcode commented Jul 19, 2026

Copy link
Copy Markdown
Owner

Was

Bug: einen Studi in der onlyFor-Auswahl ankreuzen ließ die Plan-Vorschau verschwinden (toggleTarget und die alle/keine-Buttons setzten plan = null) — verwirrend.

Ein Ausführen/Terminieren nutzt ohnehin das onlyFor aus dem Plan-Token (die Teilmenge vom Plan-Zeitpunkt), nicht die aktuellen Checkboxen — der Plan muss also nicht gelöscht werden. Jetzt wird die Auswahl erst beim Klick auf „Planen" übernommen; die gezeigte Vorschau bleibt, und ein kleiner Hinweis „Auswahl geändert — Planen erneut klicken" erscheint, wenn die Auswahl vom Geplanten abweicht.

Verifikation

pnpm run check && pnpm run lint && pnpm test && pnpm run build — grün.

🤖 Generated with Claude Code

Checking a student in the onlyFor selection cleared the plan preview (toggleTarget
and the alle/keine buttons set plan = null), which was confusing. A run/schedule
uses the onlyFor carried by the plan token (the subset it was planned with), not the
live checkboxes, so the plan does not need clearing. Now the selection is applied
only when you click "Planen"; the shown plan stays, and a small "Auswahl geändert —
Planen erneut klicken" hint appears when the selection differs from what was planned.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@obcode
obcode merged commit 1e5c83a into main Jul 19, 2026
3 checks passed
@obcode
obcode deleted the fix/ops-selection-keeps-plan branch July 19, 2026 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant