Improve the UX when creating groups as a supervisor #123

Merged
niat8586 merged 9 commits from group-creation-ux into develop 2025-03-05 11:01:37 +01:00
Showing only changes of commit 5ae62e771f - Show all commits

View File

@ -49,7 +49,10 @@ public class EditGroupPanel extends Panel {
// since they may not be included in the relevant projects if they're inactive or completed. // since they may not be included in the relevant projects if they're inactive or completed.
// To allow them to be removed from the group, it will not be possible to add them again. // To allow them to be removed from the group, it will not be possible to add them again.
projects.addAll(model.getObject().getProjects()); projects.addAll(model.getObject().getProjects());
return projects.stream().toList(); return projects
.stream()
.sorted(Comparator.comparing(Project::getStartDate).reversed().thenComparing(Project::getTitle))
.toList();
}); });
add( add(
new ListView<>("available_projects", availableProjects) { new ListView<>("available_projects", availableProjects) {