Description
Better signal and identify Abstract Fragment render errors when shown in the Abstract Preview window, so that editors can understand the failure, and react.
abstractwiki_run_fragment can return a variety of errors:
- generated at the abstract wiki side, while executing the API
- generated at the wikifunctions side (php or orchestrator), while calling wikilambda_function_call
Errors can be php errors or Zerrors returned from the orchestrator.
Decide:
- How to signal an error (currently cdx-message type=error
- What is the message to show
- How do we show error details (dialog? inline?)
- What actions we enable for the user (refresh fragment?)
Devices and Design (URLs or screenshots)
- Desktop: ...
- Small screens/mobile: ...
Completion checklist
- Before closing this task, review one by one the checklist available here: https://www.mediawiki.org/wiki/Abstract_Wikipedia_team/Definition_of_Done#Front-end_Task/Bug_Completion_Checklist