-
Notifications
You must be signed in to change notification settings - Fork 71
Closed
Labels
kind: featureNew user-facing feature.New user-facing feature.
Milestone
Description
Related issue(s) or PR(s): N/A
Related project scope(s): UI, learn-ocaml-client, Teacher-dashboard
Related user(s): @erikmd
The problem
Currently, the webapp views (student UI vs. teacher dashboard) only show one flavor of the "last version of the exercise":
- the last contents of save.json/
exercises-editorsfor the student UI - the last version of the graded exercise for the teacher dashboard
Additionally it is feasible for student to also retrieve the last version of the graded exercises by clicking on Download all source files in the home page. But it is certainly not very user-friendly.
Wanted solution
- In the student UI:
- Replace the
Resetbutton and icon with a drop-down button that proposes:Reset to templateReset to last graded versionReset to last saved draft
- Replace the
- In the teacher dashboard:
- Add another tab
DraftafterAnswerthat displays the last saved draft (although it is not taken into account for the grading; maybe add a tooltip in the Draft tab to remind this)
- Add another tab
- In learn-ocaml-client:
- Double-check what
learn-ocaml-client fetchfetches - Provide a similar command, e.g.,
learn-ocaml-client fetch-graded, to fetch the last graded version
- Double-check what
Remarks to be aware when reviewing this feature:
- Check that in the student UI, when resetting the editor with one of the 3 choices, the exercise is not automatically synced yet.
- Check what happens w.r.t. the refresh of the teacher dashboard when an exercise has been very recently synced/graded → open a new issue if need be.
- TODO internationalization with @erikmd
Considered alternatives
N/A
Additional context
N/A
Metadata
Metadata
Assignees
Labels
kind: featureNew user-facing feature.New user-facing feature.