Updated mediawiki/extensions Project: mediawiki/extensions/Citoid a06d4100fb390249a889ff6736e5d37c285ad6d1
Refactor Citoid extension as an inspector
Transform the dialog into an inspector and refactor it to work with
promises, as well as stage an initial empty reference and apply or
erase it when the user chooses what to do.
Depends on ooui fix I9d0c6c12c19043
- Make the Citoid extension an inspector.
- Change the workflow to depend on promises. Abort all promises when the user clicks away.
- Create a 'lookup' button that sends the API request and creates a list of rendered citation previews for the user to choose from.
- Display a preview of the citation the way it will appear in the reference list, including its type and a matching icon.
- The citation is added only if the user actively picks the preview option.