Commit graph

2299 commits

Author SHA1 Message Date
Translation updater bot 48edb12b53 Localisation updates from https://translatewiki.net.
Change-Id: I54fd14561e84fb13c65447c67345dd40aaef04b6
2020-11-03 08:44:54 +01:00
jenkins-bot a81a858453 Merge "Wrap long words in reference preview popups" 2020-11-02 09:29:09 +00:00
Translation updater bot b6a8e3339e Localisation updates from https://translatewiki.net.
Change-Id: I398c2f16f7efea86036a9d3fe41775db839e75e3
2020-11-02 08:53:36 +01:00
Thiemo Kreuz c6ea149d34 Wrap long words in reference preview popups
Bug: T266859
Change-Id: I874d60246a0337577c0f411d0d24f237c1ceebf2
2020-10-30 20:14:39 +01:00
Adam Wight 789cedc168 Remove reference preview "Jump to reference" link
Now that the footnote label links to the references section, we don't
need this additional link.

Bug: T265482
Change-Id: Ib9b2939eb49e7b826c7699a5b7fa0e8255fa9da1
2020-10-30 11:33:24 +00:00
Thiemo Kreuz c1abe80b08 Minor code cleanups, e.g. utilizing arrow functions
Change-Id: I56bcfa040553a96f018f22483f3f988c5639fc97
2020-10-30 11:31:12 +01:00
Thiemo Kreuz 7d2de31fd9 Don't show preview popups with no visible content
I played around with a lot of options, and settled with:
* When there is nothing but text, but the text is all
  whitespace, don't show it.
* Make sure an <img> with no text is still shown. This is done
  by checking for child elements.

A possible future enhancement could be to check the visible
width of the element as well. Unfortunately this fails in
tests. Everything is 0 in tests.

Bug: T240543
Depends-On: I2929a86b6a09f3b72e5e2f4151cb13f52446897d
Change-Id: I94ed575abcd69241c82480ade07017e61cc26c9c
2020-10-30 11:19:52 +01:00
Adam Wight 877c2f3e12 Clicking on a reference should behave normally
We no longer intercept reference clicks, now clicking on a reference
label will scroll to the reference definition in the same way as when
reference previews is disabled.

Metrics about clicking on the label are collected by the Cite
extension, are are unaffected by this change.

Bug: T265482
Change-Id: I2929a86b6a09f3b72e5e2f4151cb13f52446897d
2020-10-30 10:57:41 +01:00
Thiemo Kreuz f4d696e6bf Add (i) info icon to collapsible replacement message
This avoids pulling in the entirety of OOjs, with the disadvantage
that we have to copy a little bit of CSS. I copied parts of this
patch from I2a28666.

There might be a better way to do this, with less code. E.g. is
there a better way to construct these HTML elements?

Bug: T220208
Change-Id: I024155f3ff0f57de1d68bbaf37bfb9e81e692bd0
2020-10-30 10:53:30 +01:00
Translation updater bot 468ca01266 Localisation updates from https://translatewiki.net.
Change-Id: I261fb66b09a91d414253d8acfe7aaae4d136d87d
2020-10-30 08:28:41 +01:00
Thiemo Kreuz 1cf721e2a2 Handle collapsible & sortable elements in reference popups
Elements that are marked as collapsible (often tables, but can
actually be anything) are most certainly marked as such because
they are big and don't fit in a popup.

Another plugin makes tables sortable.

In both cases non-functional UI elements appear in the popup.
We decided:
* Hide collapsible elements (no matter if currently collapsed
  or not), and show a placeholder text instead.
* Remove sortable arrows.

This is a baseline patch that solves everything, except the
(i) icon is missing. This will be added in the next patch.

Bug: T220208
Change-Id: I58f3036bf4988d0ebe5716b0a54506446fca10c3
2020-10-28 17:23:12 +01:00
Thiemo Kreuz ee0bcf626f Increase maximum height for reference previews
Bug: T246029
Change-Id: I6036968a2072af810ffbb6a144f2ede3b2c8f810
2020-10-28 11:29:40 +01:00
Thiemo Kreuz 26ca2bcf5b Scroll reference heading as well
Bug: T249548
Change-Id: I808ee9aadc8766490e98267bb94d25887f404362
2020-10-28 11:26:52 +01:00
jenkins-bot 1f28739cd0 Merge "Move scrollbar for longer references to the right" 2020-10-28 10:20:58 +00:00
jenkins-bot 0afafaa21e Merge "Open only external links in new tabs" 2020-10-28 09:38:08 +00:00
Thiemo Kreuz 7b96ed8c4d Move scrollbar for longer references to the right
Bug: T249530
Change-Id: I2db695aa79fae7511eb316f5463f76654722741d
2020-10-27 14:30:23 +01:00
Thiemo Kreuz cb60ff14c7 Update settings (cog) icon with optimized code from OOUI 0.32.0
This compresses much better. Gzipped it was about 400 bytes
before, and 300 bytes after.

I also noticed the icon was not even symetrical before. This is
fixed now.

Bug: T256504
Change-Id: Ic03d727662e92e36249226c5760583184fd00a43
2020-10-26 21:47:01 +00:00
Translation updater bot 9dbe5b78dd Localisation updates from https://translatewiki.net.
Change-Id: Ia3910e41eabd66f0f4f39979989dd8b0646e62b6
2020-10-23 08:38:34 +02:00
Thiemo Kreuz d6ab2072e3 Open only external links in new tabs
There are 3 types of links:
* Links with no class are links to other pages in the same wiki.
* Links with "extiw" are interlanguage as well as interwiki
  links to other known wikis (e.g. from Wikipedia to Wikidata).
* Links with "external" point to somewhere else on the web.

Bug: T215419
Bug: T239230
Change-Id: Ia25db94d02670a919fc003f3e3562725de2e8eae
2020-10-20 10:52:05 +02:00
hulyak 3fd5daf11c add /tests/selenium/log to .gitignore file
Change-Id: I2ad5a1543929a8eacc61f62edaa74545a83505f8
2020-10-15 10:37:49 -07:00
Translation updater bot ff974cdc11 Localisation updates from https://translatewiki.net.
Change-Id: Id5dacdcd0722109d6518d0b02f340547621bd7fd
2020-10-13 08:43:28 +02:00
Translation updater bot 4543e916db Localisation updates from https://translatewiki.net.
Change-Id: Ib93ecc758d825bb7c45a1f50d988a395fbe39aa9
2020-10-12 08:35:50 +02:00
Umherirrender 3d179775b9 build: Update eslint-config-wikimedia
Fixed the jsdoc issues

Change-Id: Ib6acf224ea5527e5c6a14212cb95b49018241764
2020-09-30 00:46:58 +02:00
Translation updater bot 80a6b0abf5 Localisation updates from https://translatewiki.net.
Change-Id: Ib1aa456735059474341e4f41523ed582110b982a
2020-09-29 08:19:49 +02:00
Translation updater bot cae4561cb4 Localisation updates from https://translatewiki.net.
Change-Id: Ia39f868c1083949e34cc206f27edb44a86fee70f
2020-09-24 08:29:34 +02:00
Umherirrender 23b6332a5b Avoid shadowed variables in javascript
The rule no-shadow gets enabled in the version eslint-config-wikimedia
0.17.0.
In prepration for the automatic update with libup this needs to be done
in a separate patch set due to T262450

Change-Id: I66d405aef6d2b777e9a7f63734f2b5a5649d2080
2020-09-21 20:31:44 +00:00
Volker E 8b6e85dd7c storybook: Update to account for new core LESS variables files
We're using Vector's 'mediawiki.skin.variables.less'
file, as it's Popups main interface.

Bug: T263064
Change-Id: Ib2b3726dddb95e8f7ae54e6c2d4cf52c70d0197a
2020-09-18 13:17:39 -07:00
Translation updater bot 8bb8be458d Localisation updates from https://translatewiki.net.
Change-Id: Ia885fae75100061d74a0173fb19723171cdd08ed
2020-09-17 08:33:25 +02:00
Translation updater bot 3dec6aeadf Localisation updates from https://translatewiki.net.
Change-Id: Ibcb995098d9ca389c66506b82055067cf77c201c
2020-09-16 09:09:18 +02:00
Translation updater bot 6ed417d258 Localisation updates from https://translatewiki.net.
Change-Id: Id78478ff6c2b81bbd1a63e5dac35f9a9a68ed779
2020-09-14 09:16:00 +02:00
Translation updater bot 92d7743d22 Localisation updates from https://translatewiki.net.
Change-Id: I077529aa9f7f5de8a1153b5ab386bc0f66ab2c07
2020-09-10 09:49:52 +02:00
jdlrobson 5dfb0ea04e Fix TypeError: u.abort is not a function
The abort method is not always present and the xhr may not be abortable.
This mirrors the 'abort' in promise check later in the file.

Bug: T259652
Change-Id: I7dad89b083d6a0a83ffc59e29af8942cb0eaf640
2020-09-03 10:16:17 -07:00
Translation updater bot 85006a8e5e Localisation updates from https://translatewiki.net.
Change-Id: Id90a3be4d99e637bd582e2ad0abe5d19c4509359
2020-08-31 09:49:20 +02:00
jenkins-bot fc413f3ad6 Merge "Selenium: Update to WebdriverIO v6" 2020-08-25 10:32:18 +00:00
vidhi-mody bd7b4c87cc Selenium: Update to WebdriverIO v6
Update NPM packages: @wdio/* and webdriverio.

Bug: T258620
Change-Id: I63e6812e5cfd0e29444765b4b956a9a63711dfdb
2020-08-25 15:10:40 +05:30
Translation updater bot 6e68b17e06 Localisation updates from https://translatewiki.net.
Change-Id: Ie8ec1c23eadca30c4de1f8f8a9f1c0aeab636986
2020-08-17 08:44:01 +02:00
Ed Sanders 56d87d6795 Disable popups inside VE surfaces
This was already accidentally the case for the main VE article
editor as it doesn't live inside #mw-content-text, however other
VE surfaces (e.g. DiscussionTools') don't live inside #mw-content-text.

Bug: T259889
Change-Id: I48bdee6f62af33cad7512128b5465d474a6dfebb
2020-08-08 12:53:03 +01:00
Translation updater bot 12195426b4 Localisation updates from https://translatewiki.net.
Change-Id: Id2d52439a56f62a6e2746b209eb675aa6de4d226
2020-07-31 08:46:25 +02:00
Translation updater bot 39bc6bd12b Localisation updates from https://translatewiki.net.
Change-Id: I4cb036b32afcd36bf7c73ed99e76a4ac9d8bc379
2020-07-27 08:38:14 +02:00
jenkins-bot 88fa9c0131 Merge "Disable Reference Previews in the (mobile) Minerva skin" 2020-07-24 14:53:33 +00:00
vidhi-mody 17a3e59a1e Selenium: Update to WebdriverIO v5
Update NPM packages: webdriverio, wdio-mediawiki.

Replace NPM packages:
- wdio-mocha-framework with @wdio/mocha-framework.
- wdio-spec-reporter with @wdio/spec-reporter.
- wdio-junit-reporter with @wdio/junit-reporter.

New NPM packages: @wdio/cli, @wdio/local-runner, @wdio/sync.

Commands that return data no longer wrapped in `{ value: … }`.
Values are now returned directly.

Replace:
- `browser.element` with `$`.
- `chromeOptions` with `'goog:chromeOptions'`.
- `password` with `mwPwd`.
- `username` with `mwUser`.
- `moveToObject()` with `moveTo()`.
- `isVisible()` with `isDisplayed()`.

Bug: T258620
Change-Id: If339ff08b5e87c91905a65927ccd7e1b72b9f8e4
2020-07-24 17:17:01 +05:30
Thiemo Kreuz 5da88be420 Disable Reference Previews in the (mobile) Minerva skin
Bug: T243822
Change-Id: I6de02243301184bce8ff53a56b13752880ecfbe6
2020-07-24 13:01:47 +02:00
Translation updater bot 3581638814 Localisation updates from https://translatewiki.net.
Change-Id: I4212653656c9b30212b9d4ec2482c6705e082962
2020-07-21 09:13:02 +02:00
Translation updater bot 4f3bdec22c Localisation updates from https://translatewiki.net.
Change-Id: I6bd032940e85c0adb4725e3a0c5d55a702bb7ec6
2020-07-15 09:04:49 +02:00
Nikerabbit dccd607523 Revert "Localisation updates from https://translatewiki.net."
This reverts commit fb581364ff.

Reason for revert: Broken export

Change-Id: I09852e5c524b835274ac35cec70b46ddfa52f613
2020-07-13 11:58:03 +00:00
Translation updater bot fb581364ff Localisation updates from https://translatewiki.net.
Change-Id: I07866b9fa6f8d43c5f8d0bb4b7801faf8e2bafbd
2020-07-13 08:44:56 +02:00
Translation updater bot fd3908fb4e Localisation updates from https://translatewiki.net.
Change-Id: I2cf43342b68e3bcc837216dc2a072bcdcb602230
2020-07-10 08:26:10 +02:00
Ammar Abdulhamid 5e405eb2f2 Popups: Rename new config variable
In this patch we introduce a new config variable and update its default
to be the same as the production value of $wgPopupsPageBlacklist.

When this code is deployed everywhere, we will remove wgPopupsPageBlacklist
from mediawiki config and defer to the Popups extension as the source of
truth from now on.

Bug: T254676
Change-Id: Ifebdcf8f5eec854a2b947dc390eaf47704a5c5eb
2020-07-07 09:47:59 -07:00
Translation updater bot da167c0950 Localisation updates from https://translatewiki.net.
Change-Id: Iaa7086d78b805981eff1016e1d148173cdedefb4
2020-07-02 08:42:18 +02:00
Translation updater bot 34c301abdc Localisation updates from https://translatewiki.net.
Change-Id: I4ec40febed3f3e6b3ece4babd4e8ab03854d97f5
2020-06-29 16:26:27 +02:00