Add student-level Vorgänge tab and homework/lateness dashboard warnings
CI / build-and-test (push) Canceled after 0s
CI / build-and-test (push) Canceled after 0s
Dashboard warnings (attendance, and now homework backlog and lateness) apply across all classes, but the existing Vorgänge case-file tab only works for the teacher's own class since it resolves the WebUntis classbook roster. Instead of loosening that coupling, students get their own narrower Vorgänge tab, and all three cross-class warnings now jump straight there, offering to open a matching case or create a new one. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
4b73d2bea2
commit
3270b48850
16 files changed
+963
-21
No files matched your search
@@ -144,8 +144,15 @@ public partial class VorgangDialogViewModel : ObservableObject
|
||||
public VorgangDialogViewModel(List<StudentOption> rosterStudents, Vorgang? editing)
|
||||
{
|
||||
_editing = editing;
|
||||
// Bei genau einem Kandidaten (z.B. der schülerbezogene Vorgänge-Tab im Schülerdetail) und
|
||||
// einem neuen Vorgang ist ohnehin nur eine Auswahl möglich — Nutzer-Feedback: der sonst
|
||||
// nötige Extra-Klick auf die einzige Checkbox ist unnötige Reibung.
|
||||
StudentOptions = new ObservableCollection<VorgangStudentOption>(rosterStudents.Select(s =>
|
||||
new VorgangStudentOption(s.Id, s.Name) { IsSelected = editing?.StudentIds.Contains(s.Id) == true }));
|
||||
new VorgangStudentOption(s.Id, s.Name)
|
||||
{
|
||||
IsSelected = editing?.StudentIds.Contains(s.Id) == true
|
||||
|| (editing is null && rosterStudents.Count == 1),
|
||||
}));
|
||||
if (editing is null) return;
|
||||
|
||||
Title = editing.Title;
|
||||
|
||||
Reference in new issue
Block a user