Problem:
The generic error screen that is shown when an error occurs during saving only says "An error occurred". We need to show them something more meaningful.
Screenshots/mockups:
Desktop
Mobile
Please find specs in this Figma artboard.
Acceptance criteria:
- generic error message is shown as in mock-ups whenever there is no specific error available
- "report an error" link leads to a "create new task" page on Phabricator with Bridge tag filled in
- can be configured to some other system for 3rd-party installs
- if the reporting system doesn't support submitting details in the link then that can be omitted
- include information necessary for debugging - e.g. stacktrace in the prefilled task form link (make sure first it doesn't reveal private information)
- the message of the internal error object is shown
- track the number of times each error is triggered
Notes:
The "Go back" button in desktop is replaced by the Minerva back arrow in the header on the mobile version of the error.
Template for report:
Title: Wikidata Bridge error
Tag: Wikidata-Bridge
Content:
The error happened on: $articlename, $wikiname <- could also be $articleURL, whatever is easier
Item: $itemID
Property: $propertyID
Error message: $errormessage <- should make it clear that this was happening on save
Debug information: $stacktrace <- potentially shortened?