Commit graph

2323 commits

Author SHA1 Message Date
Translation updater bot 35e8bf2d3f Localisation updates from https://translatewiki.net.
Change-Id: I62bc0a80b35b6ddf3d5807218f857fcd1ed325bc
2020-11-26 08:28:20 +01:00
Translation updater bot 468b7b065e Localisation updates from https://translatewiki.net.
Change-Id: Ia428285fd5407083e59e5caf85cebdc6cd12cf77
2020-11-25 08:34:25 +01:00
Translation updater bot d70d4b7736 Localisation updates from https://translatewiki.net.
Change-Id: Ib15eb2488f7a521c12ea241991c50b23f0b0e0b4
2020-11-24 08:40:10 +01:00
Translation updater bot c082efa2d7 Localisation updates from https://translatewiki.net.
Change-Id: Id06d8713da94e15a7f3aef689eabfab4db561b2e
2020-11-23 08:39:57 +01:00
Umherirrender c85b6cd6ac build: Updating mediawiki/mediawiki-phan-config to 0.10.4
Change-Id: I0629382e1ff17f0eb4eee547aa78c7c8c7bbbc0d
2020-11-20 16:21:02 +01:00
WMDE-Fisch 22b0e54cf1 Use Util.waitForModuleState in browser tests
Change-Id: I09dbaa703818bf3df62c290e83ca6e36adf2f72a
2020-11-20 10:35:10 +01:00
jenkins-bot 7da453230d Merge "Fix and re-enable ReferencePreview browser tests" 2020-11-20 09:10:41 +00:00
Translation updater bot 3e16611e0b Localisation updates from https://translatewiki.net.
Change-Id: I84572c1644973d44c04fd55ccff27bace289e47b
2020-11-20 09:18:07 +01:00
Translation updater bot 22adc5ce73 Localisation updates from https://translatewiki.net.
Change-Id: If4e1d8a7389db413a4897807c5247a837d8f26b3
2020-11-19 09:10:33 +01:00
WMDE-Fisch 0cd94df686 Fix and re-enable ReferencePreview browser tests
The tests were skipped for some time already because the beta
feature mode is taken into account on the test systems. The tests
need to login and enable the beta feature mode to be executed. This
is fixed with that patch.

The patch also fixes broken tests due to changes that made one test
obsolete and another that needed adjustments.

There are also comments added to places where code can be removed or
altered if the feature gets out of beta status.

Bug: T268134
Change-Id: Ib96d23f3cb6c6130fd5880a78fafd252bf706475
2020-11-18 14:33:45 +01:00
Translation updater bot edd18801ca Localisation updates from https://translatewiki.net.
Change-Id: I79517c769a7c5d0420af42d04a90aaff8f8fcead
2020-11-18 08:56:50 +01:00
Umherirrender 05faae63a8 build: Updating mediawiki/mediawiki-codesniffer to 33.0.0
Change-Id: Ia2551ff625132f0acb5cbeed8d893809438583f0
2020-11-17 23:23:29 +01:00
jenkins-bot 46ece02214 Merge "Use a checkbox for the preference" 2020-11-17 12:31:32 +00:00
jenkins-bot b5c5b66074 Merge "hide reference previews when reference tooltip gadget is active" 2020-11-17 11:24:40 +00:00
Translation updater bot 7114dff1cd Localisation updates from https://translatewiki.net.
Change-Id: Ia8739a9eb9f64b74aac66ebb3723c178d1f295d3
2020-11-17 08:43:09 +01:00
Svantje Lilienthal 0b6c859a2b hide reference previews when reference tooltip gadget is active
Change-Id: I5f43270bfeba944c05dc09adf771ed07057237c7
2020-11-16 18:36:04 +01:00
Translation updater bot 43383c7418 Localisation updates from https://translatewiki.net.
Change-Id: If4992fea5fc89917c654c429c257eb58b93ada8c
2020-11-16 08:37:46 +01:00
jdlrobson 140b1e5828 Settings cog should come from icon pack
To avoid continuously updating this cog, use the icon pack directly.
Use mw-ui-icon-small to control the size rather than custom CSS - this
reduces the amount of CSS overrides that are needed.
Also use `opacity` instead of icon SVG fill for coloring the icon. This
enables simple transition in interaction states.

Storybook: The settings cog will now be tied to the production icon.
Note for now this will not appear at all, as this code must first
have ridden the train. For local testing feel free to point to
localhost to verify this change.

Bug: T256504
Change-Id: I2a28666dbd644bb599146fabb84d148ff0167ed3
2020-11-12 05:57:57 -08:00
Translation updater bot 1c47ddee01 Localisation updates from https://translatewiki.net.
Change-Id: I8360fae1f9dcbb2837eb1d27778300b3b7932a08
2020-11-12 08:22:32 +01:00
jenkins-bot d2018ebfe0 Merge "Resize popup to 403px" 2020-11-06 10:29:45 +00:00
Translation updater bot 9e958e0e38 Localisation updates from https://translatewiki.net.
Change-Id: I01bdb244ca88be8366bbb02a59c13618b752c201
2020-11-06 08:34:28 +01:00
Translation updater bot bf10d30e3a Localisation updates from https://translatewiki.net.
Change-Id: I442a79927dc79c9634e263677720b108811368f2
2020-11-04 08:33:52 +01:00
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
Adam Wight 50c0e46b0a Resize popup to 403px
Restores the max-size introduced in I6036968a2, after conflicting
changes to the popup layout.

Bug: T246029
Change-Id: I82ea48929b44d97d78112bd96ad75724ae6f46af
2020-10-30 20:25:47 +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
Bartosz Dziewoński 310d587732 Use a checkbox for the preference
Bug: T174726
Change-Id: Ie7dff009adc97653fdb3106f58ea97d26da49f49
2020-10-28 20:40:25 +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