SVVV-Sitzungsstatistik zu Verwaltung hinzugefügt #issue/24 #33

Merged
lrsauvette merged 1 commit from issue/24 into develop 2026-07-31 22:18:33 +00:00
Owner
No description provided.
Adds a per-student counter that tracks how many SVVV sessions the
student has participated in, surfaced as a new sortable column in
the Verwaltung table beside the Nachname column. The new column
can be hidden via a switch in the Einstellungen → Darstellung
section.

Behaviour:
- Each Student carries an int counter `svvvSessionsAttended`
  (default 0, persisted with the student record).
- Generating an Anwesenheitsliste for an SVVV-Sitzung in the
  ErzeugungPage automatically increments the counter for every
  selected student. SVR sessions and cancelled generations are
  not counted. Increment happens before the save dialog, so even
  if the user cancels the file save the session is still
  recorded.
- Backwards-compatible JSON: students persisted before this
  change load with counter = 0.
- A new `ShowSvvvStatsStore` (bool, default = visible) persists
  the column visibility. New `SVVV-Sitzungsstatistik` SwitchListTile
  in the Einstellungen page toggles it.

Tests:
- New unit tests for `ShowSvvvStatsStore` (default, hide + persist,
  show + persist).
- New unit tests for the Student model covering the new field's
  default, JSON roundtrip, backwards-compatible deserialisation,
  and copyWith.
lrsauvette merged commit f5c761970c into develop 2026-07-31 22:18:33 +00:00
lrsauvette deleted branch issue/24 2026-07-31 22:18:33 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
lrsauvette/sv-helfer!33
No description provided.