Commit graph

2200 commits

Author SHA1 Message Date
Translation updater bot cd1461e5ca Localisation updates from https://translatewiki.net.
Change-Id: Icf896c21e9b3cad9598474909dbf8f4768789d5c
2020-03-10 08:15:34 +01:00
Ed Sanders 050911fe11 Use faster implicit conversion instead of Number.parseFloat
Change-Id: Ide478617475c73bfe6a81cdb171d606082a1448b
2020-03-03 17:26:55 +00:00
Translation updater bot 59dbc59a81 Localisation updates from https://translatewiki.net.
Change-Id: If0f234e85ddcbadd8b1293a4ced23bbf2b641af4
2020-03-03 08:14:52 +01:00
Translation updater bot d4ad999835 Localisation updates from https://translatewiki.net.
Change-Id: I85fe047bc897fbbf45f805eac4da49bbeb7f32bb
2020-03-02 09:11:12 +01:00
Umherirrender 731a9935ce build: Updating dependencies
* mediawiki/mediawiki-codesniffer: 29.0.0 → 30.0.0
* mediawiki/mediawiki-phan-config: 0.9.0 → 0.9.2
* mediawiki/minus-x: 0.3.2 → 1.0.0

Change-Id: Ibbcaf9b631a735abdb6e06b8428bd44414f73ae6
2020-02-28 20:48:57 +01:00
Translation updater bot b770991d06 Localisation updates from https://translatewiki.net.
Change-Id: I03ae052f05bd23f16dbd22d0fc03649e0b32d477
2020-02-26 08:25:24 +01:00
jenkins-bot 7b1276d909 Merge "Replace grunt fix with grunt eslint --fix" 2020-02-25 17:23:08 +00:00
Sam Smith 2a75aa525b docs: Generate documentation with Doxygen
doc.wikimedia.org is a helpful resource when iterating on a codebase.
Like MobileFrontend, generate documentation with Doxygen so that it can
be published there.

Note well that:

- The CALL_GRAPH and CALLER_GRAPH statements have been removed as they
  were being set to the default value (NO)

- DOT_FONTSIZE was increased from 10 to 12

Bug: T242779
Change-Id: I41e4c6ca2b604382b036606ebcb40f11a1e8abc0
2020-02-24 17:10:53 +00:00
Ed Sanders 6de53e8681 Replace grunt fix with grunt eslint --fix
Appending --fix is what the eslint output suggests when
fixable errors are detectable, so better to just support
that than invent a new grunt sub-task.

Pass the same option to stylelint.

Change-Id: Ic8902f821d53a3fe6ca521ff1785c52baa99ceb1
2020-02-24 14:49:19 +00:00
Translation updater bot 0324efbbd5 Localisation updates from https://translatewiki.net.
Change-Id: I16f2b8b90908aeed6fe6588762c897ae1e628bcc
2020-02-24 09:03:36 +01:00
Translation updater bot 45d7b1b54c Localisation updates from https://translatewiki.net.
Change-Id: I86f962553315f5df13b7191a685274d6eeda0fb0
2020-02-17 08:47:25 +01:00
Translation updater bot 6f5ccd407c Localisation updates from https://translatewiki.net.
Change-Id: Ibde251723850a53942257f97c69a5753dfc98bfb
2020-02-14 08:26:24 +01:00
DannyS712 68d52f7fa9 Use assertTrue instead of assertSame to compare with true
Bug: T244552
Change-Id: I42c50e37515e49a15658041147edc1d644812c46
2020-02-07 07:17:04 +00:00
Translation updater bot afcba48cc0 Localisation updates from https://translatewiki.net.
Change-Id: I351b22f257bc2d42cd509d1d5429d0590a32f3dd
2020-02-06 08:19:50 +01:00
jenkins-bot 992f73ebab Merge "build: Upgrade jquery to version used in MediaWiki" 2020-02-04 09:21:14 +00:00
jdlrobson 62af052bf6 build: Upgrade jquery to version used in MediaWiki
Change-Id: Ied35038ad5c86cad847d9f5fc3d395d7a087124c
2020-02-04 17:04:25 +08:00
jenkins-bot ee6c902702 Merge "build: Upgrade nyc from 13.1.0 to 15.0.0" 2020-02-04 08:04:18 +00:00
jdlrobson 2337c84a78 build: Upgrade nyc from 13.1.0 to 15.0.0
Bug: T243790
Change-Id: Ib8cc7041d792bed0a19d18e14506627099a69bea
2020-02-04 15:35:29 +08:00
Piotr Miazga 0ab39f88e7 Enable by default
Popups is enabled on the Wikipedias but disabled by default, which makes
it more difficult to enable on third-party wikis.

Things should be enabled by default, and them WMF configs should disable
features when they are not used/available.

Supporting changes:

- Rename PopupsContextTest#testAnonUserHasDisabledPagePreviews and
  remove the associated data provider, which provided only one datum

- Set $wgPopupsReferencePreviews to false in
  PopupsContextTest#testShouldSendModuleToUser in order to isolate the
  code under test

Change-Id: Ib8cc7041d792bed0a19d18e14506627099a69bef
2020-01-29 15:40:23 +00:00
jenkins-bot fa7af0a187 Merge "[hygiene] [doc] consolidate docs in root readme" 2020-01-28 08:51:27 +00:00
jenkins-bot be746b567b Merge "[hygiene] [Git] anchor Storybook .gitignore path" 2020-01-27 08:00:53 +00:00
Umherirrender 9fa7f2071c build: Updating mediawiki/mediawiki-codesniffer to 29.0.0
Change-Id: Ifb739130872b192b0fee54351555b65c3099981e
2020-01-26 20:22:03 +01:00
jenkins-bot acead3c76b Merge "Don't use double dash in refrence preview tests" 2020-01-24 17:55:39 +00:00
Translation updater bot df874266fd Localisation updates from https://translatewiki.net.
Change-Id: If352b8b36ad72dd382f370b4014c25b253772623
2020-01-24 08:15:29 +01:00
WMDE-Fisch 4f263bebfc Don't use double dash in refrence preview tests
The default way to build these ids is without a double dash afaik.

Change-Id: I068d97de517f9da09c203d543cf6eb51cf306465
2020-01-23 18:41:50 +01:00
Translation updater bot 06b19134c3 Localisation updates from https://translatewiki.net.
Change-Id: I063ce21138641c1c90cbcc1c670549a84733630b
2020-01-22 08:30:34 +01:00
Translation updater bot efb3f93d41 Localisation updates from https://translatewiki.net.
Change-Id: Ie691712e0d37dc5a6b73e8b234dee5f69be3d1b0
2020-01-20 08:50:21 +01:00
Stephen Niedzielski 7d86f0d732 [hygiene] [doc] consolidate docs in root readme
Move /docs/ui/README.md into /README.md. This fixes an issue where the
precommit script dirties the working directory on every commit (it
deletes docs/ui/README.md, which can be confusing) and makes the root
readme the single source of documentation.

Change-Id: Id99ca09b738a6fd3299f1acb4f238902461cdd95
2020-01-14 08:58:34 -07:00
Stephen Niedzielski f9473f1830 [hygiene] [Git] anchor Storybook .gitignore path
For consistency and best practice, anchor the .storybook/mocks/**/*.less
path at the repo root.

Change-Id: I6121d5de6eb53ba2839a97a867c079d8e044f97f
2020-01-14 08:50:12 -07:00
Stephen Niedzielski 735b5cc854 [doc] [typo] fix Storybook readme command
Replace `docs` NPM script with `doc`. Only the latter exists and the
former was likely a typo.

Change-Id: Id5122a86a3ecc4bf9bf09a4829c46c931fc4c4a3
2020-01-14 08:50:05 -07:00
Stephen Niedzielski 36935fe1f3 [hygiene] move ServiceWirings.php to ServiceWiring.php
Remove pluralization from the service wiring filename for consistency
with similar files in other Web repos. There are multiple services in
this file but the point of distinction doesn't seem worthwhile.

Change-Id: I6ff4f9caf66a6156f6aa6a8b808f51c356df3414
2020-01-14 08:49:11 -07:00
James D. Forrester 23bb1c1796 build: Upgrade tap-mocha-reporter from 3.0.7 to 5.0.1 for npm audit issue
Change-Id: I1c51725ec66df14b112937e830dd697a576bfeaa
2020-01-06 16:13:12 -08:00
Translation updater bot df4447f455 Localisation updates from https://translatewiki.net.
Change-Id: I60fa6cc693eef10b629f2ab0c3620971cb49dcab
2020-01-06 08:50:16 +01:00
Umherirrender 6eeeace41e build: Updating composer dependencies
composer:
* mediawiki/minus-x: 0.3.1 → 0.3.2
* jakub-onderka/php-console-highlighter: 0.3.2 -> 0.4.0
* mediawiki/mediawiki-phan-config: 0.8.0 -> 0.9.0

Change-Id: Ibc178d4b0670c9077281dfcdc603c45abe04810c
2020-01-05 11:35:22 +01:00
Translation updater bot aa311e0eb8 Localisation updates from https://translatewiki.net.
Change-Id: Ie7e2b348b7791ac556f23cbf32cdec3cffcad846
2020-01-02 08:59:32 +01:00
Umherirrender dd076b7542 Require MediaWiki 1.31 in extension.json for AutoloadNamespaces
AutoloadNamespaces is a new feature in 1.31

Change-Id: Ice5e01cf780aae12653916c6dc893557354eecfe
2019-12-28 13:44:09 +01:00
Translation updater bot 7463e4bb9c Localisation updates from https://translatewiki.net.
Change-Id: I0212f4356b5ae19a8cd92a648c033187bd3e027b
2019-12-24 10:03:10 +01:00
jenkins-bot 0954eed1dd Merge "Update extension.json to make use of PSR-4" 2019-12-19 16:55:59 +00:00
jenkins-bot 85c24a89ac Merge "Update extension.json to use manifest_version 2" 2019-12-19 16:55:57 +00:00
Volker E b8cf442f85 Add standard transition to settings icon
Change-Id: Ia04b179005a8bedde896c33f2cd230e1014e7de6
2019-12-18 17:33:39 -08:00
jenkins-bot 635c37903e Merge "Simplify Hooks section in extension.json" 2019-12-18 10:31:58 +00:00
jenkins-bot 5d925e3479 Merge "Add tests case for user preferences while in Beta mode" 2019-12-18 07:57:40 +00:00
Thiemo Kreuz 776f4af6c5 Add tests case for user preferences while in Beta mode
This is a direct follow up for I4d31805. Note the previous patch was
only testing the code path when Beta is disabled. But the bug was about
what happens when Beta is enabled. This is now properly covered by
these tests.

Bug: T240947
Change-Id: I54c5e9751e14a94808e85d935e1972eea0395002
2019-12-17 16:27:26 +01:00
Thiemo Kreuz fc6a72094d Turn some tests into faster running "pure" unit tests
On my local machine, this reduced the runtime for all PHPUnit tests
combined from 900ms to 800ms.

Change-Id: Iec4f0396115fd270ba1a1f6668e1672cea5f7aff
2019-12-17 16:20:27 +01:00
Thiemo Kreuz 5752c2538e Fix initial preferences for newly created user accounts
It appears like we accidentially copy-pasted the behavior for
PagePreviews and made ReferencePreviews behave the same, not taking
into account that the later feature is in Beta mode.

Bug: T240947
Change-Id: I4d31805ee9b2045c49c7ab4179c5a4adbcba0394
2019-12-17 13:37:11 +00:00
Thiemo Kreuz dc60f44e87 Simplify Hooks section in extension.json
It is possible, but very rare to have more than a single hook handler
per hook in a single extension. The value can be an array or string in
both version 1 and 2 of extension.json.

Change-Id: If3a7d89030b28b46e3601c63cda2b3fed14eb00c
2019-12-17 11:49:00 +01:00
Translation updater bot 219c0c208b Localisation updates from https://translatewiki.net.
Change-Id: I158bea73a9f94f237c5803323cc0a65d304cc389
2019-12-16 12:14:59 +01:00
jdlrobson 1803ac5b2d Storybook: Images should be relative uris
Follow up to I58493db15b27f148fcc1cf42ab0b0148ee291eb6

Bug: T236589
Change-Id: I305badda5a3f93684270bfe07d6cc19c92df3e07
2019-12-13 01:42:13 +00:00
jdlrobson 24666442d5 Storybook: Copy over static files
Follow up to  I58493db15b27f148fcc1cf42ab0b0148ee291eb6

Bug: T236589
Change-Id: I706107f80048a14a8122df503f53eb6936b95395
2019-12-12 13:08:22 -08:00
jdlrobson 44239076af Use local files for storybook
Currently images do not display on docs.wikimedia.org
These need to be local due to the security restrictions there.

Bug: T213223
Bug: T236589
Change-Id: I58493db15b27f148fcc1cf42ab0b0148ee291eb6
2019-12-12 11:28:27 -08:00