hypothesis / lms

LTI app for integrating with learning management systems
BSD 2-Clause "Simplified" License
45 stars 14 forks source link

Improve handling of grading submission errors in frontend #6384

Closed robertknight closed 2 weeks ago

robertknight commented 2 weeks ago

This is a revised version of https://github.com/hypothesis/lms/pull/6289, to improve how grading submission errors are handled in the frontend. In addition to addressing the TODOs in that draft, I have also tweaked the wording in the error messages to try and make it a bit shorter. I also used the term "Dismiss" rather than "Close" on the button to make it clearer that it is going to dismiss just the error message rather than "close" the whole assignment.


Summary of changes:

With the testing diff from https://github.com/hypothesis/lms/pull/6289 applied, creating an annotation will fail with an error that looks like this:

Grading submission error
robertknight commented 2 weeks ago

This change does affect the appearance of some other errors, which can occur despite the content having loaded, such as errors related to setting up groups:

Grading error

Note here that the error is not dismissible, because although the content did load, the user cannot annotate.