ls1intum / Artemis

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

`General`: Exercise sidebarelement should reflect the score when working on the exercise #9015

Open florian-glombik opened 1 month ago

florian-glombik commented 1 month ago

Is your feature request related to a problem?

When working on exercises (e.g. automated programming exercises) the score will not be updated in the sidebar (at least if the score has not been defined before). This means that you have to keep track on which exercises you have already worked or reload the page to have the score displayed in the sidebar.

Describe the solution you'd like

The sidebar exercise element should reflect the change of the score immediately and not only when reloading the page.

Describe alternatives you've considered

Remembering which exercise has which state / reloading the page.

Additional context

Screenshot 2024-07-11 at 00 50 31
JohannesStoehr commented 1 month ago

A first step would be to replace jhi-submission-result-status with jhi-updating-result in sidebar-card-item.component.html. This way the sidebar will already update itself when a new result is generated. This only works however if the sidebar element is already initialised with the participation, so we have to find a way how to get the newly created participation into the sidebar element when starting an exercise.