Open markkuriekkinen opened 3 years ago
The user experience could be maybe improved with very small changes.
I would make the following changes to the UI:
One thing that I find a bit confusing in the current UI is the fact that the exercises don't react when you switch groups from the navbar. After switching to an appropriate group, the exercises still display warnings about the group size. I think we should make the exercises react properly, or perhaps even get rid of the navbar group selection, since each exercise has its own group selection anyway.
Nice ideas!
In addition, exercise UI (e.g., the blue exercise frame in chapter pages) does not highlight the group settings at all. This could be changed so that students always know which exercise allows groups and which do not (even after closing the warning overlay). Maybe the top bar of the frame should show the allowed group sizes?
If the navbar group menu is removed, what are the consequences? I think the original idea was that the navbar group menu remembers the choice when the user reloads the page or moves to other pages. But it should be possible to implement the same in the exercise-specific group menus.
We could talk about this after a daily.
Two potential places to put the group size indicator:
In the exercise frame or as a notification box. Does the first option make the frame look a bit crowded? I suppose it could also be below the "Points"/"My submissions" items, but I'm afraid that that would make the frame even uglier.
It is safer to put it in the exercise frame navbar since there is other code that depends on the contents of the exercise frame. Some courses manipulate the exercise contents with their own JavaScript/CSS code and the active elements JS in chapter.js does similar tricks.
I just realized that there may be 3 info texts in the frame navbar, when there is a minimum number of points required. If we stack them vertically, the navbar stretches and the left-hand side looks ugly (especially with the hover effect). Maybe we could also stretch the left-hand side and center the labels vertically?
We could also spread the right-hand side texts horizontally instead of vertically, but they can't fit on a single line and would get wrapped under the left-hand side.
Edit: actually they fit on a single line just fine if the font is a bit smaller (like it originally was) and the resolution is 1080p. On smaller resolutions the entire right-hand side is placed under the left-hand side and I think it looks okay.
The navbar may also contain buttons for the exercise template files (typically skeleton code) and the model solution. Teachers also see the "view all submissions" button. As far as I remember, the current navbar contents already stack both vertically and horizontally to some extent.
I ended up with a layout like this:
I feel like the info texts are far more noticeable when stacked vertically and with the icons added. The buttons on the right-hand side are a bit weirdly placed, but that's how they were originally. I can try to align those better too, if that seems worthwhile.
@skulonen the screenshot looks good to me! Remember to check how it looks on small screens too. Now I don't remember if the deadline text currently ever shows the late submission deadline after the normal deadline has passed, but if it does, then it would take some more space. Remember also that the group sizes are often flexible, i.e., the min and max group size settings allow multiple group sizes. For example,
It might not be very easy to get rid of the group selector in the top navbar. The alternate group selector within the exercise frame is populated (using Javascript) by reading the contents of the navbar group selector. So if we remove the navbar group selector, we would need another way to feed the group choices to the Javascript code.
I think I'll focus on the other issues in this sprint for now and return to this later. I feel like the user experience is already improved somewhat by adding the group size indicator to the exercise frame.
@Mankro thanks for the comment! Yes, I checked it on a smaller screen size and spent the last hour fiddling with it to make it look good. And yes, I've taken into account the alternate group sizes. There are 5 alternate strings that may be displayed in the group size indicator (alone, group of X, group of X-Y, alone or group of X, alone or group of X-Y).
OK! :+1:
I merged two fixes related to this issue, to get them ready for 1.9. They don't fully resolve this issue, but improve the user experience.
Recap:
For now, it is not worthwhile to try to remove the top navbar group selector.
What could still be done is to check/test that everything works as described again.
Is this a real bug?
This might not be a bug, but the user experience is confusing anyway. The student is expected to change the group in the top navbar before even opening the next exercise.
Internal ticket: https://rt.cs.aalto.fi/Ticket/Display.html?id=18683