aboutsummaryrefslogtreecommitdiff
path: root/js/mock.js
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2026-06-24 09:18:26 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2026-06-24 09:18:26 +0200
commitaf8585faa1aa7c39564c583963349c4a2922df9c (patch)
tree5a806a738a76e5f928e68e4def47e0b3a857d490 /js/mock.js
parent13f9914757b2a72e77369859bbaec35339f31446 (diff)
downloadbycs-sol-af8585faa1aa7c39564c583963349c4a2922df9c.tar.gz
bycs-sol-af8585faa1aa7c39564c583963349c4a2922df9c.zip
cockpit: finish prototype UI
* remove process and calendar * add observation period * improve mocking
Diffstat (limited to 'js/mock.js')
-rw-r--r--js/mock.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/js/mock.js b/js/mock.js
index fe60ef3..e4aca53 100644
--- a/js/mock.js
+++ b/js/mock.js
@@ -48,6 +48,7 @@ for (const s of students) {
graduationChanges[s.name] = [
GraduationChange.newGreenPointChange(s, "", "Florian Fischer"),
GraduationChange.newGreenPointChange(s, "", "Florian Fischer"),
+ new GraduationChange(new Date(), s.id, s.name, "Änderung", "", "", '{"type": "ObservationStart"}'),
];
break;
case "b b b":
@@ -55,6 +56,8 @@ for (const s of students) {
GraduationChange.newRedPointChange(s, "", "Florian Fischer"),
];
}
+ // Build the student's graduation
+ Graduation.from(s, graduationChanges[s.name]);
}
function fetchGraduationMock(s) {