noarave added a comment.

  After looking into this for a bit and considering @Jakob_WMDE 's comment I 
believe this boils down to two questions:
  
  1. Which templates are required in order for both JS and PHP unit tests to 
pass?
  
    I have collected the following  non-exhaustive list of templates needed for 
each. Please add or remove stuff from this list that may or may not belong 
there.
  
    Jasmin/Qunit tests:
    - Raw gloss widget
    - Language lexical category widget
    - Lemma widget
    - Lexeme header widget
    - Representation widget  .
  
      Unit tests:
    - Lexem form view
    - Lexeme gramatical features form view
    - Senses view
  
  
  
  2. How do we integrate ResourceLoader calls in PHP + JS?
  
  The way to use it on the client side is already clearly stated in the 
ResourceLoader HTML templates link 
<https://www.mediawiki.org/wiki/Manual:HTML_templates#mw.template_(client-side)>
 shared above. 
  This file contains some use of the ResourceLoaderModule, although it's more 
about injecting templates into JS but maybe it's a good start:
  
  - 
https://github.com/wikimedia/mediawiki-extensions-WikibaseLexeme/blob/6aac433df2db00aad47c8a782109a684730c94c9/src/Presentation/View/TemplateModule.php

TASK DETAIL
  https://phabricator.wikimedia.org/T198455

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Rosalie_WMDE, noarave
Cc: noarave, Tarrow, Jakob_WMDE, Pablo-WMDE, Akuckartz, Iflorez, darthmon_wmde, 
alaa_wmde, DannyS712, Nandana, Lahi, Gq86, GoranSMilovanovic, Mahir256, 
QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, Jonas, Izno, 
Wikidata-bugs, aude, Dinoguy1000, Lydia_Pintscher, Mbch331, Jay8g
_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to