Commit graph

2824 commits

Author SHA1 Message Date
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
WMDE-Fisch 3915dd166f Remove unused parameter
As far as I can see this is not used in the method.

Change-Id: I0d6373ba5697fbc228552465e1e8d95c05720132
2019-03-11 16:51:49 -06:00
jenkins-bot 23a4f6cbba Merge "Change delay for ReferencePreviews to 150ms" 2019-03-11 22:46:00 +00:00
WMDE-Fisch 4803a717ad Change delay for ReferencePreviews to 150ms
Bug: T215420
Change-Id: Id1fa7dad59d8fe80bc60c1e2d7c3fb4087e52d1f
2019-03-11 16:37:53 -06:00
Thiemo Kreuz e32fc4914e Add some missing newlines to separate PHP code better
I believe these additional newlines all make the code easier to read.
It's easier to see what belongs together, and what is a separate thing.
I found the Squiz.WhiteSpace.FunctionSpacing sniff very helpful to
enforce this code style. We enabled this already in almost all WMDE
codebases. It is not yet part of the upstream MediaWiki rule set, but
discussed.

Change-Id: Ibdf788529b28637bf98e7940c2516852c3afcef7
2019-03-11 11:33:13 +01:00
Translation updater bot 1e620a5df8 Localisation updates from https://translatewiki.net.
Change-Id: Ia71a10c9b425182fb8f625e9daf9f77f2d895e12
2019-03-10 22:27:52 +01:00
jenkins-bot 96487a79f5 Merge "Localisation updates from https://translatewiki.net." 2019-03-08 21:40:19 +00:00
jenkins-bot b5599d14fa Merge "Build: synchronize Webpack config with MobileFrontend" 2019-03-08 21:40:17 +00:00
Translation updater bot 024f1d726a Localisation updates from https://translatewiki.net.
Change-Id: Ib0d0c929195af24ed3efa942f820488c731d35df
2019-03-08 22:29:28 +01:00
jenkins-bot e341ec8268 Merge "Clean up PHPDoc documentation tags for constants" 2019-03-07 21:51:26 +00:00
Translation updater bot c0712bf8c9 Localisation updates from https://translatewiki.net.
Change-Id: I8e761e93e366692e6b9baa35a568fe7324d89247
2019-03-07 22:41:00 +01:00
Stephen Niedzielski b3dd38c8aa Build: synchronize Webpack config with MobileFrontend
Minimize the difference between MobileFrontend and Popup's
configuration where possible. No build delta was generated so the change
is expected to be nonfunctional.

- Set the Webpack configuration file's ESLint environment to Node.js
  instead of manually specifying Node.js globals.

- Directly export the configuration as a function instead of persisting
  a local and assigning it to module.exports at the end.

- Export the configuration as a function and replace Node.js variables
  with Shell compatible parameters. This required inlining a couple
  single-use variables. See
  I83e507fad1ee2f477bb95c2987d0b24f082b2165.

- Reorder configuration and update comments to match MobileFrontend.

Change-Id: I24545da2d029d08b0ea0e1330b6bb71ce423e6b7
2019-03-07 13:37:59 -07:00
Jan Drewniak bdb535c643 Add SVG masks to Storybook app
The SVG masks used for previews are clip paths, making it hard to
visualize what their actual shape is. This patch extracts the paths
inside those clip paths into new SVG objects and renders them in
the Storybook app.

Also removes a few previews from the portrait/landscape thumbnails
so that the Knobs addon can function properly.

Change-Id: I160746d8877deaa12ace925ce170323946ce532d
2019-03-06 14:21:33 +00:00
Translation updater bot 28ce5a8075 Localisation updates from https://translatewiki.net.
Change-Id: Idb7b6ff1bd9c804e4a0c02ce989a3aece5a59ce6
2019-03-05 22:42:55 +01:00
jenkins-bot 8fb90dfb11 Merge "Minor code optimizations in SVG files" 2019-03-05 19:57:44 +00:00
WMDE-Fisch b6c1ea3f03 Minor code optimizations in SVG files
Change-Id: I8c9b1a7c2cc11690d72f4c851d598b68560bcf36
2019-03-05 19:29:20 +00:00
Translation updater bot 541892823d Localisation updates from https://translatewiki.net.
Change-Id: I20b2daa3068505fde12a1f6e64d064b285a6c08b
2019-03-04 22:16:16 +01:00
Translation updater bot 7fceb75fbf Localisation updates from https://translatewiki.net.
Change-Id: I28936626849709e7aaccee0b3247142e67abd5e7
2019-03-03 22:17:47 +01:00
Translation updater bot b5e5435644 Localisation updates from https://translatewiki.net.
Change-Id: I321d4250bc816512fbd2cf9e31bda6976401c314
2019-03-02 22:42:42 +01:00
Thiemo Kreuz 1cf4e5902b Enable Squiz.Strings.DoubleQuoteUsage PHPCS sniff
The majority of this was fixed just recently via I8de42df. The sniff
makes sure all old and new code conforms to this style.

Change-Id: I8aecf3653d021fc8f86abcdc5939529864f86a48
2019-03-01 11:28:20 +01:00
Derick Alangi 8fa98056f7 PopupsContextTest: Improve the PopupsContext test suit
-> Use single quotes for string literals.
-> Document missing parameter in test method.

This is just to improve on code readability, consistency
and maintainability.

Change-Id: I8de42df9f856ecb409637fe33b5f84b8bed1b547
2019-03-01 09:38:17 +01:00
Translation updater bot 4c3f4d3fe0 Localisation updates from https://translatewiki.net.
Change-Id: Ib7067710c1a3e2d1332ee0b8cbe2b014fca19f87
2019-02-28 22:25:10 +01:00
WMDE-Fisch 5da1009d4b Fix shade of blue in beta feature images
Bug: T215896
Change-Id: I19b7098afc176f929951c8a51a000393eabd6f32
2019-02-27 14:19:11 +01:00
WMDE-Fisch 7e6afa7bbb Add missing "the"
Bug: T215896
Change-Id: If04f26d4d134ba58e1121331879bb01e825cd955
2019-02-27 13:46:55 +01:00