Add student-level Vorgänge tab and homework/lateness dashboard warnings
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:
adminandClaude Sonnet 5 committed 2026-09-25 23:55:54 +02:00
1 parent 4b73d2bea2
commit 3270b48850
16 files changed
+963 -21

No files matched your search

@@ -225,6 +225,11 @@ public partial class ManageStudentDialogViewModel : ObservableObject
public partial class StudentDetailViewModel : ObservableObject
{
/// Tab-Reihenfolge im Schülerdetail (Übersicht=0, Kontakte=1, Noten=2, Dokumentation=3) — für
/// MainWindowViewModel.NavigateToStudentCase, damit die Dashboard-Warnungen (Fehlzeiten,
/// Hausaufgaben, Verspätungen) gezielt hierher statt auf den Standard-Tab springen können.
public const int VorgaengeTabIndex = 4;
private readonly IStudentRepository _students;
private readonly IGroupMembershipRepository _memberships;
private readonly IGroupRepository _groups;
@@ -240,6 +245,7 @@ public partial class StudentDetailViewModel : ObservableObject
private readonly SchoolYearService _schoolYear;
[ObservableProperty] private Student? _student;
[ObservableProperty] private int _activeTabIndex;
[ObservableProperty] private string _studentTitle = "";
[ObservableProperty] private bool _isEditing;
[ObservableProperty] private string _editFirstName = "";
@@ -260,6 +266,7 @@ public partial class StudentDetailViewModel : ObservableObject
public ObservableCollection<DocumentationItem> Documentation { get; } = [];
public ObservableCollection<ContactItem> Contacts { get; } = [];
public ObservableCollection<StudentGradeHistoryGroup> GradeHistory { get; } = [];
public StudentVorgaengeViewModel VorgaengeTab { get; }
public bool HasNoContacts => Contacts.Count == 0;
public Func<Contact?, Task<Contact?>>? OnEditContact { get; set; }
public Action<ContactItem>? OnViewAddress { get; set; }
@@ -278,13 +285,14 @@ public partial class StudentDetailViewModel : ObservableObject
IDocumentationRepository docs, IExamRepository exams, IExamResultRepository examResults,
IGradeRepository grades, IParticipationRepository participation,
IParticipationSessionRepository participationSessions, AttendanceBalanceService attendanceBalance,
PersonalDataExportService export, SchoolYearService schoolYear)
PersonalDataExportService export, SchoolYearService schoolYear, StudentVorgaengeViewModel vorgaengeTab)
{
_students = students; _memberships = memberships;
_groups = groups; _subjects = subjects; _docs = docs;
_exams = exams; _examResults = examResults; _grades = grades;
_participation = participation; _participationSessions = participationSessions;
_attendanceBalance = attendanceBalance; _export = export; _schoolYear = schoolYear;
VorgaengeTab = vorgaengeTab;
}
public void LoadStudent(Guid id)
@@ -316,6 +324,7 @@ public partial class StudentDetailViewModel : ObservableObject
LoadContacts();
LoadDocumentation();
LoadAttendanceBalance();
VorgaengeTab.Load(Student.Id);
}
// ── Dokumentation (5.1) ───────────────────────────────────────────────────