Follow-up from "Pregrading and creation of multiple choice options on the exam"
The two important points from this discussion are:
- The label type should not be derived from the label names. Instead, the label type should for example be stored in the database.
This seems extremely fragile and non-extensible. Plus isn't it possible that the options are renamed?
- The backend should provide an image with the rendered checkboxes instead of rendering it in the front-end.
An alternative solution would be to query the backend for the image we have to show there, and that includes all correct labels.
The reason for my proposal is for there to be only one source of truth. The backend must be able to render the image to add it to the exam, and therefore it seems natural to also request it from the backend.