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
@@ -329,6 +329,18 @@ public class FakeDocumentation : IDocumentationRepository
|
||||
public void HardDelete(Guid id) => _all.RemoveAll(d => d.Id == id);
|
||||
}
|
||||
|
||||
public class FakeVorgangRepository : IVorgangRepository
|
||||
{
|
||||
private readonly List<Vorgang> _all = [];
|
||||
public void Add(Vorgang v) => _all.Add(v);
|
||||
public List<Vorgang> GetAll() => _all.Where(v => !v.IsDeleted).ToList();
|
||||
public List<Vorgang> GetByStudent(Guid studentId) =>
|
||||
_all.Where(v => !v.IsDeleted && v.StudentIds.Contains(studentId)).ToList();
|
||||
public Vorgang? GetById(Guid id) => _all.FirstOrDefault(v => v.Id == id && !v.IsDeleted);
|
||||
public void Save(Vorgang vorgang) { _all.RemoveAll(v => v.Id == vorgang.Id); _all.Add(vorgang); }
|
||||
public void Delete(Guid id) { var v = _all.FirstOrDefault(x => x.Id == id); if (v is not null) v.IsDeleted = true; }
|
||||
}
|
||||
|
||||
public class FakeAttachmentStorage : IAttachmentStorage
|
||||
{
|
||||
private readonly Dictionary<string, byte[]> _blobs = [];
|
||||
|
||||
Reference in new issue
Block a user