ls1intum / Artemis

Artemis - Interactive Learning with Automated Feedback
https://docs.artemis.cit.tum.de
MIT License
487 stars 288 forks source link

Drag and drop boxes #8698

Open mhunter02 opened 4 months ago

mhunter02 commented 4 months ago

Is your feature request related to a problem?

When using an external model/background from the Apollon, there is an "issue" with the drag-and-drop boxes. The background becomes transparent enough to see what is hidden behind it. NB: It will save time for instructors because right now, you have to manually erase the part that you want to be dragged

image

Describe the solution you'd like

Transparency of the box to be 0 => When holding an item to be dragged and dropped, the boxes should be highlighted as it is, but the transparency should be 0.

Describe alternatives you've considered

No response

Additional context

No response

krusche commented 4 months ago

We have an integrated drag and drop editor for modeling quizzes that cuts out background. You simply select the elements that students should drag and drop and the rest (including the quiz config) is done automatically for you 😊

The solution that you propose would not be secure because the background image needs to be loaded and users could try to download it manually to see the solution

kerstinandree commented 4 months ago

Unfortunately, we cannot use Apollon to create our models because we use the ArchiMate Framework which is not supported by Artemis. That's why we have to create a modeling quiz by creating a normal drag-and-drop task where we upload the image of the model we created in a separate modeler specifically developed for ArchiMate. As Mihail mentioned, it is a lot of work to erase specific parts of the model and create for every drag-and-drop element an individual image. As far as I understand the drag-and-drop editor you mentioned, it is only possible to have the quiz automatically generated when using the Apollon modeler, right? So in our use case we cannot use it.

krusche commented 4 months ago

It's currently not possible to integrate other external modeling tools.

What we could potentially do: use an image tool and crop out the drop boxes automatically when the quiz is saved. We would then need to store two image versions so that instructors can still edit the original image (e.g. move drop boxes) after initially saving the file.

This would make it much easier I guess.

We will consider this in the future after we have finished the work on the migration of the quiz database structure in https://github.com/ls1intum/Artemis/pull/8430 and potentially subsequent PRs