Commit graph

2497 commits

Author SHA1 Message Date
DannyS712 cd21c7a2f2 Convert mediawiki links from http to https
Bug: T189687
Change-Id: I87704d1df3698d38b594b54a59b4ed249acb592e
2019-04-19 00:02:49 +00:00
WMDE-Fisch f8562a89d6 svgmin optimizations on updated OOUI icons
Icons were updated in I8feea1b526ff85c4ffdee21ef42c616e72881e76 the
pre-commit svgmin optimizer does these minor changes in the two files.

Pushing these to avoid constantly changed but uncommited SVGs in the 
images directory when working.

Change-Id: Ib8a66df12dc692eb356a33815f5aade1983f625c
2019-04-18 19:21:48 +00:00
jenkins-bot 0067ef6dff Merge "Remove -o-linear-gradient for Opera 11.5, Opera Mobile 12" 2019-04-17 20:24:34 +00:00
Volker E 3fdd8fd7b8 Remove -o-linear-gradient for Opera 11.5, Opera Mobile 12
Removing obsolete vendor property specifically for old subversion
of Opera < 12.1, desktop and mobile.

Change-Id: Ia5f1e4d00dfd80c261b4c0e0e443c02b606e4109
2019-04-17 12:52:12 -07:00
jenkins-bot f24c478a67 Merge "Match callout border color to rest of popup" 2019-04-17 19:23:33 +00:00
jenkins-bot 459942a305 Merge "Update OOUI icons to latest versions" 2019-04-17 19:03:14 +00:00
Ed Sanders 98b421cc3a Match callout border color to rest of popup
Bug: T219585
Change-Id: Ic1d90842c10fb57916cd9ac996bb7d3383ca289e
2019-04-17 17:36:25 +00:00
Ed Sanders 78cbb02191 Update OOUI icons to latest versions
* web.svg was deprecated in favour of browser.svg.
* Update sad-face.svg based on OOUI speechBubble-ltr/rtl
* Apply preview-generic/disambiguation grey colour using CSS.

Change-Id: I8feea1b526ff85c4ffdee21ef42c616e72881e76
2019-04-17 12:11:08 +01:00
Translation updater bot e3211ae596 Localisation updates from https://translatewiki.net.
Change-Id: I0f9d890e1171137ba307a25c3c02bd220b79ecfd
2019-04-14 22:30:21 +02:00
jenkins-bot 515ed91475 Merge "Remove redundant wgPopupsShouldSendModuleToUser variable" 2019-04-12 17:09:56 +00:00
Translation updater bot bece8542eb Localisation updates from https://translatewiki.net.
Change-Id: Ic9128c3373762556e3ea6147a8b040f804f089ac
2019-04-12 08:32:20 +02:00
Translation updater bot 08b67e353d Localisation updates from https://translatewiki.net.
Change-Id: I4a778cb5c2405c40ebc364994b956dfe2ca8263c
2019-04-10 09:23:26 +02:00
Timo Tijhof 81b94eff0a Remove redundant wgPopupsShouldSendModuleToUser variable
It is set based on the same conditional that loads the code,
thus checking it inside the loaded code is a no-op and adds
extra HTML to the <head> that blocks text/layout rendering and
delays fetching of Popups JS.

Bug: T219342
Change-Id: I9c1f4b3861ce2cecb654eb0a78469a616730a40b
2019-04-09 18:31:35 +00:00
WMDE-Fisch 5a38638388 Fix module load script and remove pause
I just realized on another test set, that this is actually not implemented
in a way where it is working correctly. The return value of the browser.exectue()
is returned as part of an object and not directly. So the condition was always
true and the wait until did not really wait for anything.

As a result I'm quite confident the pause is not necessary.

Change-Id: I274bdee0b3c39c418a2b61881d56f89889c53485
2019-04-08 21:17:53 +02:00
WMDE-Fisch 79ee43fbeb Avoid exception when checking for loaded modules
The test would lead to an exception when 'mediaWiki' is not defined. The
exception would then also abort the whole execution so in this context it's
safer to use typeof with 'undefined'.

When the mediaWiki js base is loaded though, loader.getState() is guaranteed
to be available since it is part of the root module.

This also uses "mw" instead of "mediaWiki" for consistency in test.

Change-Id: I1262d0b5c4a1136f4d2294f125336e72118c6e2c
2019-04-08 19:51:11 +02:00
Translation updater bot 54702bff62 Localisation updates from https://translatewiki.net.
Change-Id: Ib03e8f474d6b81864f7177acdd31a2f451912a79
2019-04-08 08:39:14 +02:00
Translation updater bot 472b10e638 Localisation updates from https://translatewiki.net.
Change-Id: I29a3e248be5c09af55ce9aeb1821ecc5e3b28813
2019-04-05 22:27:35 +02:00
WMDE-Fisch b3a58a6dd3 Move browser tests loading steps to beforeEach
- test page loading and waiting for the scripts moved to beforeEach
- removed unnecessary abondonLink call
- removed unnecessary browser.pause()

Change-Id: I28eb7b9b48f105315bf41f7a41e5a1e6ec21cb2b
2019-04-05 15:56:16 +00:00
Translation updater bot c8a893fc42 Localisation updates from https://translatewiki.net.
Change-Id: I1c1f1def61a97c43cd1a525ff9c1be60431ddc7a
2019-04-04 14:54:28 +02:00
Translation updater bot ff818164d1 Localisation updates from https://translatewiki.net.
Change-Id: I3cf3214c3b67c18f7f4bf2bb8a784359ac27ceaa
2019-04-01 22:41:13 +02:00
jenkins-bot 6531459e1a Merge "Improving RTL support for the Storybook app" 2019-03-26 19:20:00 +00:00
Thiemo Kreuz 511c74bf72 Make sure to never trigger multiple events
I had to disable ESLint to be allowed to upload this patch. It starts
complaining about something in code I did not even touched. The error
message does not make any sense to me (something about globals being
forbidden in code where I can not spot anything that would be remotely
global).

Change-Id: I6d4b178a65126c4b81b87d99142a6cdc845ae5ee
2019-03-26 12:39:28 -06:00
Thiemo Kreuz 522f4aa8a2 Fix incomplete test coverage for referencePreview renderer
Two big chunks of code (the "click" and "scroll" event handlers) have
not been covered with QUnit tests before. I found this was not that
complicated and worth the effort.

Note we already have browser tests in place for these features. These
are still required because the scroll feature can not fully be tested
when the popup is not actually rendered on screen.

Bug: T214971
Change-Id: I58111489fe6c4bed65efec59f9fc4184c828b2b3
2019-03-26 16:54:17 +01:00
jenkins-bot 70ebaa221e Merge "Move test for escaped URLs into seperate check" 2019-03-26 13:25:11 +00:00
Translation updater bot 7132273215 Localisation updates from https://translatewiki.net.
Change-Id: I843620ce65099e5abd4b103466c97b2482b8ff6b
2019-03-26 08:45:13 +01:00
WMDE-Fisch de8f7a133c Move test for escaped URLs into seperate check
With this I want to pull apart testing two things at one, checking if the
URL is escaped and if it is put to the right position.

So this adds an explicit test, that makes sure that urls in the popup are
escaped safely and lets the big test become more general in that regard.

Bug: T214971
Change-Id: I09b5225a8370e8b1337b2cf6ca03ccb79b3a64aa
2019-03-25 16:24:26 +01:00
WMDE-Fisch 07318c3a33 Add test for dwelling reference links inside a reference preview
Bug: T214971
Change-Id: Ib2f782a67d85647a385f81d5d5fca89b221a9e22
2019-03-25 12:37:05 +00:00
WMDE-Fisch dc1625de64 Add tests for the reference preview fade effect
Bug: T214971
Change-Id: Ie59347e7f51d449900d3a107fd85b0753a14f449
2019-03-25 12:36:47 +00:00
WMDE-Fisch 2cff0a1a8e Simplify testpage setup for browser test
For the reference preview tests we extended that with a lot of stuff
that we do not really use in the tests atm. Lets only have stuff in there
that's really relevant for the tests.

Change-Id: I03c6e00445e9bfe48572fd1b19a7ef1ecd472f4e
2019-03-25 12:36:26 +00:00
Andrew Kostka 522829c43a Add a fade out to reference content
This will only be applied when the height of the content exceeds four
lines of text.

Bug: T217139
Change-Id: If15952c9886c23827873812bb63e8e3127776709
2019-03-25 13:30:52 +01:00
Jan Drewniak da369d09ae Improving RTL support for the Storybook app
- Adds CSSJanus support on a story-by-story basis for the Storybook app.
- Adds an extra RTL portrait thumbnail test-case.
- Adds an extra RTL 'thin' portrait thumbnail test-case.
- Removes the `createContextualFragment` wrapper from stories,
  as well as the wrapper divs.

Bug: T204627
Change-Id: I22195c6ddc73d69f15dc8e24c33b49ef28d9b0be
2019-03-25 11:19:15 +01:00
Translation updater bot 27c894b0a7 Localisation updates from https://translatewiki.net.
Change-Id: I1941ebeb4ca866f1a3c472719a5a662c4c34c653
2019-03-23 10:23:31 +01:00
Translation updater bot f688bfebdd Localisation updates from https://translatewiki.net.
Change-Id: I351d1e6523ccdc2acbce3bc7d305acc73c2abed4
2019-03-20 22:27:19 +01:00
Andrew Kostka 42ee00fe37 Improve popup pointer positioning
Bug: T217737
Change-Id: Id478b8cc8dc7aefdd07dde5d5567aa0a1d8ee970
2019-03-20 10:39:18 +00:00
Jan Drewniak 8aad5981e4 Fix double pokey bug
When a thumbnail in portrait-mode is narrower than the 200px
expected width, the SVG clip-path should be shifted on the x-axis
in order to align with the thumbnail image.

Adds extra test-cases to validate this logic.

Bug: T204627
Change-Id: I9359c9fb335e5fad3f7d5ba33ee89d2a1f26b8b2
2019-03-20 01:29:46 +00:00
Thiemo Kreuz 4792151769 Split PreviewModel documentation into subclasses
See T218105 for discussion.

Bug: T218105
Change-Id: I0fde5de6e573e219f0937797bf10c20a01021a6a
2019-03-19 14:56:21 +01:00
Translation updater bot 3267e840ba Localisation updates from https://translatewiki.net.
Change-Id: Ic306d7ac9340246d57756f167dd77fc59b4ab82b
2019-03-18 23:07:56 +01:00
Ed Sanders 1627dadcab build: Update eslint-config-wikimedia to 0.11.0
Change-Id: I80e2707d9954f8549aa0241f4c7f64eb2644ec93
2019-03-18 15:48:01 -06:00
Thiemo Kreuz 43b6b89ce6 Avoid use of eslint-disable-… in another case
Most other code in this codebase already uses the /* global … */
syntax.

Change-Id: I00bd4d0490fa6976099f5a182cad6c7253b8e1ac
2019-03-18 12:50:35 +01:00
Translation updater bot b416e6b505 Localisation updates from https://translatewiki.net.
Change-Id: I7d576f24298dda2c175966e0546a9fbad8f75c9e
2019-03-17 22:14:19 +01:00
Translation updater bot fda57710ac Localisation updates from https://translatewiki.net.
Change-Id: I1bd0335a7d46bec517fff0f24c2c9b715c5cd7f7
2019-03-15 22:36:42 +01:00
jenkins-bot 63f5b10779 Merge "Add missing escaping for jQuery ID selector" 2019-03-15 18:23:52 +00:00
Translation updater bot aec0fe4d11 Localisation updates from https://translatewiki.net.
Change-Id: Ie452d959610404e678414b6915e63cdd8021ad5b
2019-03-14 22:52:09 +01:00
Thiemo Kreuz 932271b6db Add missing escaping for jQuery ID selector
We run into this issue already one time, see Ifb5fe89 (T214710). The
exact same applies here.

The effect of this bug is that for certain references (typically ones
with a colon character in their name) the "jump down" link will be
broken.

Change-Id: Ic6723bd910cb5e5e1e1872ce39f2e271012245de
2019-03-14 20:03:15 +01:00
Translation updater bot d816f230b5 Localisation updates from https://translatewiki.net.
Change-Id: I8f894334ee1068a8bb2d6465fb62b9d7fcefd6b3
2019-03-13 22:16:23 +01:00
Thiemo Kreuz 3f7f0cc91b Mention concatenated message keys in a comment for easy grep
Bug: T215063
Change-Id: I3cc87846974ef942181ebdaa1b024cd5ee523529
2019-03-13 15:28:54 +01:00
Thiemo Kreuz 1d2becc25a Consistently talk about "Reference" instead of "Footnote"
During story time on 2019-03-12 it was decided to consistently talk
about "References" in all messages. Main motivation is that this is
the term the community is most familiar with, and it is also the term
that is used in reference section headings most of the time.

Bug: T215063
Change-Id: Iaab8d2c0da1546a3c9d27bc8e2e1c784050ed135
2019-03-13 09:29:26 +01:00
Translation updater bot d07d70899f Localisation updates from https://translatewiki.net.
Change-Id: I433e0a5042fa575b5a8af19b7fd8c8448b10d5e9
2019-03-12 22:29:30 +01:00
jenkins-bot 6ffef3d1fb Merge "Add SVG masks to Storybook app" 2019-03-12 17:16:23 +00:00
WMDE-Fisch 0d2d6d4c9b Move getPreviewType form gateway to model
The method itself has not much to do with gateways as such, it's
more about the general preview type selection. Since the preview
types "live" in the model, I thought it might good to move it there.

Doing that the "original" getPreviewType method in the model was renamed
to avoid conflicts. If I get this right, that method is quite specific to
page previews, since it processes the output from the TextExtracts API-
request. - Therefore I also removed the TYPE_REFERENCE there, because this
code path will never be reached with that type afaik.

Inspired by the comments in Id1fa7dad59d8fe80bc60c1e2d7c3fb4087e52d1f and
as preparation for that patch.

Bug: T215420
Change-Id: Ic9e24a73e945c7d56435c656ecfdb42b65601d22
2019-03-12 08:28:46 -06:00