Update supervisor's idea table immediately upon scheduling a first meeting #105

Merged
ansv7779 merged 4 commits from first-meeting-feedback into develop 2025-02-13 09:59:34 +01:00
Showing only changes of commit d90a373a00 - Show all commits

View File

@ -337,29 +337,26 @@ public class SupervisorMyIdeasPanel extends Panel {
if (idea.getMatch() == null) { if (idea.getMatch() == null) {
return "-"; return "-";
} }
switch (idea.getMatchStatus()) { return switch (idea.getMatchStatus()) {
case UNMATCHED: case UNMATCHED -> getString("status.unmatched");
return getString("status.unmatched"); case COMPLETED -> getString("status.completed");
case COMPLETED: case INACTIVE -> getString("status.inactive");
return getString("status.completed"); case MATCHED -> {
case INACTIVE:
return getString("status.inactive");
case MATCHED:
if (applicationPeriodService.courseStartHasPassed(idea.getApplicationPeriod())) { if (applicationPeriodService.courseStartHasPassed(idea.getApplicationPeriod())) {
if (idea.isExported()) { if (idea.isExported()) {
if (idea.wasExportSuccessful()) { if (idea.wasExportSuccessful()) {
return getString("status.project.created"); yield getString("status.project.created");
} else { } else {
return getString("status.export.failed"); yield getString("status.export.failed");
} }
} else { } else {
return getString("status.awaiting.project.creation"); yield getString("status.awaiting.project.creation");
} }
} else { } else {
return getString("status.awaiting.course.start", Model.of(idea.getApplicationPeriod())); yield getString("status.awaiting.course.start", Model.of(idea.getApplicationPeriod()));
} }
} }
return "-"; // can't happen };
} }
}; };
} }