Skip to content
  1. Apr 19, 2024
  2. Apr 18, 2024
  3. Apr 17, 2024
  4. Apr 16, 2024
  5. Apr 12, 2024
    • Samwilson's avatar
      Re-enable the toolbox link after closing dialog · 96a250eb
      Samwilson authored
      Prior to this, opening the dialog multiple times would leave the
      toolbar link greyed out. To fix this, the removal of the CSS
      color is moved up to the two places where we open the dialog.
      
      The grey colour is only used as an indicator while we load the
      RL modules, so isn't needed once the dialog is open.
      96a250eb
  6. Apr 09, 2024
    • Samtar's avatar
      Merge branch 'items-not-found-T356836' into 'main' · fda651fb
      Samtar authored
      Move items-not-found message into Dialog rather than notification
      
      See merge request !51
      fda651fb
    • Samwilson's avatar
      Move items-not-found message into Dialog rather than notification · ea3d0ce3
      Samwilson authored and Samtar's avatar Samtar committed
      Add a new `setMessage()` method to the Dialog class that can be
      used to set the items-not-found message or the existing already-linked
      message.
      
      To make this all a bit clearer, move most of the dialog layout setup
      into the `initialize()` method which now creates the message,
      fieldset, and sets up the radio button listener. Each part is then
      toggled to be hidden until it's actually used (i.e. by either
      `setItems()` or `setMessage()` being called).
      
      Bug: T356836
      ea3d0ce3
    • HMonroy's avatar
      Merge branch 'pending-state' into 'main' · a02ca0c0
      HMonroy authored
      Add pending state on API calls
      
      See merge request !49
      a02ca0c0
    • Samwilson's avatar
      Add pending state on API calls · 21f42bff
      Samwilson authored and HMonroy's avatar HMonroy committed
      Add pushPending/popPending pairs for all API calls, as well as
      a pushPending for the submit action (which doesn't need to pop
      because the dialog is closed at that point).
      
      Bug: T360184
      21f42bff
  7. Apr 08, 2024
  8. Apr 03, 2024
    • Samtar's avatar
      Merge branch 'load-once' into 'main' · 72e72984
      Samtar authored
      Avoid loading the dialog window multiple times
      
      See merge request !48
      72e72984
    • Samwilson's avatar
      Avoid loading the dialog window multiple times · ebc077a6
      Samwilson authored and Samtar's avatar Samtar committed
      This updates the init logic to only create one instance of the
      main AutosuggestSitelink object, and to move the initialization
      code to a new init() method (the old init function is renamed to
      main() here to avoid confusion).
      
      Since d99574c5 the translations
      are loaded in the constructor. This means that the loadTranslations()
      method doesn't need to be called later, so these are removed.
      
      Bug: T361333
      ebc077a6
  9. Mar 18, 2024
  10. Mar 16, 2024
    • Samtar's avatar
      Merge branch 'open-dialog-immediately-and-in-a-loading-state' into 'main' · 4458b8f5
      Samtar authored
      feat: allow the user to link a wikidata item to an article
      
      See merge request !45
      4458b8f5
    • ThierryW23's avatar
      feat: allow the user to link a wikidata item to an article · d99574c5
      ThierryW23 authored and Samtar's avatar Samtar committed
      **Changes proposed so far:**
      
      - Now, when a user click to the _AutosuggestSiteLink_ link in the Menu Tools, the dialog is immediately opened
      - Now the user can select a Wikidata item and link it to an article
      
      **Remaining change to get this task done**
      
      - Add the loading indicator when the dialog is opened until the search results are back.
      
      ----
      
      Bug: T360184
      d99574c5
    • Samwilson's avatar
      Merge branch 'T360248' into 'main' · 843b2d8c
      Samwilson authored
      Upgrade to Node 18
      
      See merge request !46
      843b2d8c
    • Samtar's avatar
      Upgrade to Node 18 · 5569447d
      Samtar authored and Samwilson's avatar Samwilson committed
      - Upgrade `.nvmrc` and the gitlab CI configuration to the latest possible Node version supported by our runners (v18.19.1)
      - Use `ncu` to upgrade packages
      - Fix the `npm run fix` command
      - Use `npm run fix` to bring up to date with eslint rules
      - Test and build
      
      
      Bug: T360248
      5569447d
    • Samtar's avatar
      Merge branch 'rm-color' into 'main' · 3c15a425
      Samtar authored
      Keep link greyed out during loading
      
      See merge request !44
      3c15a425
    • Samwilson's avatar
      Keep link greyed out during loading · f7f8fd5d
      Samwilson authored and Samtar's avatar Samtar committed
      Rather than only greying out the toolbox link for 3 seconds while
      loading the search results etc., instead pass a $link object to
      the handlers and remove the grey color only after the API calls
      have been made.
      
      This doesn't preclude also adding the loading state to the dialog
      and opening that earlier, but because we need to load the OOUI
      dependencies it seems like keeping a loading state on the link
      is probably a good idea as well.
      
      Bug: T360184
      f7f8fd5d
  11. Mar 15, 2024
  12. Nov 29, 2023
  13. Nov 24, 2023
  14. Sep 28, 2023