HomePhabricator

Refactor Citoid extension as an inspector

Authored by Mooeypoo.

Description

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.

Bug: T88152
Change-Id: Ib2e06015529c239c972093f8d285d9f814c16961

Details

Committed
MooeypooMar 9 2015, 5:34 PM
Parents
rECEXa3955536d6a2: Fix JS error caused by typo
Branches
Unknown
Tags
Unknown
References
refs/changes/73/190973/16
ChangeId
Ib2e06015529c239c972093f8d285d9f814c16961