Commit graph

2824 commits

Author SHA1 Message Date
Translation updater bot 8ed8184a46 Localisation updates from https://translatewiki.net.
Change-Id: I91c7c1074b213d6a44cd03fb9d610e2b1baebdfc
2021-09-30 08:57:49 +02:00
Umherirrender 9d7c3a9851 Add preference popups-reference-previews to DefaultUserOptions
Without the default the preference is never deleted from the database,
even it was disabled by the user.

Bug: T291748
Change-Id: I63ef1bad22acc4581e7c6aecb7dcc3d54422af18
2021-09-29 10:42:09 +02:00
Translation updater bot e20aa4538c Localisation updates from https://translatewiki.net.
Change-Id: I5f647f0160a08e6bd2c110e597817cac12f54195
2021-09-29 09:02:09 +02:00
Translation updater bot 9a6e501654 Localisation updates from https://translatewiki.net.
Change-Id: I069d7a4b79b98dbfb000d1ce5916d55b17c82705
2021-09-27 08:35:24 +02:00
Translation updater bot e2495f2f75 Localisation updates from https://translatewiki.net.
Change-Id: I1ab0e325a906273282be5c6d753357c2fe5d6720
2021-09-23 12:27:55 +02:00
Translation updater bot 7da1ffad46 Localisation updates from https://translatewiki.net.
Change-Id: Ic1a0c9170dfc3856f0e41290eee2aa2e6a912082
2021-09-17 08:45:41 +02:00
jenkins-bot 9e49edd27f Merge "build: Updating stylelint-config-wikimedia to 0.11.1" 2021-09-13 18:08:58 +00:00
Translation updater bot 91cc1809a3 Localisation updates from https://translatewiki.net.
Change-Id: I1d22f3558aadb82074228b786ff94b09c1b99514
2021-09-13 08:30:09 +02:00
Umherirrender d6eddc9ca0 build: Updating stylelint-config-wikimedia to 0.11.1
Change-Id: Id770e10a4c37503eae2b6fb383f12b389d793f77
2021-09-12 16:11:01 +02:00
Umherirrender 64c6357ec2 build: Updating mediawiki/mediawiki-phan-config to 0.11.0
Change-Id: I543020a6acca80e01f8ca94a049af11eeb931fbc
2021-09-11 16:03:55 +02:00
Translation updater bot 8d73505e20 Localisation updates from https://translatewiki.net.
Change-Id: Ia87062991d465b71278759609ff92d1a73b9580d
2021-09-06 08:21:10 +02:00
Umherirrender f7decec6de build: Updating mediawiki/mediawiki-codesniffer to 37.0.0
Change-Id: Ia585f09b4965319ae62f2d79bab878ce318393dd
2021-09-04 14:24:04 +00:00
Translation updater bot 99f6b12df2 Localisation updates from https://translatewiki.net.
Change-Id: I47d451fa25ebb211c5b85362272d5f8e715401c0
2021-09-02 08:26:39 +02:00
Translation updater bot bb5c2a1852 Localisation updates from https://translatewiki.net.
Change-Id: I6bfdea159d3a2286faa28d47c72caa7f165e5bf6
2021-09-01 08:16:36 +02:00
jdlrobson 497feaf77d Fix cog alignment
Bug: T289362
Change-Id: Id5efc685f8df2a71f465156932eca67c9c633141
2021-08-31 14:53:38 -07:00
Translation updater bot af60c13e74 Localisation updates from https://translatewiki.net.
Change-Id: I069f0e4c42bfa15d413e2292d31442fa0fe341d6
2021-08-27 08:44:08 +02:00
jdlrobson fa19ee0d4f Adjust previews to meet specifications
Apply max-heights and tweak some of the margin values

Bug: T284643
Change-Id: I0c8a77e10c36ae444e541bb52a8797594c77db63
2021-08-25 22:55:26 +00:00
jenkins-bot 21ba0c74a1 Merge "Handle clipped blockquote by adding blockquote fade out effect" 2021-08-25 21:48:00 +00:00
bwang a78546a19e Handle clipped blockquote by adding blockquote fade out effect
- Added styling to apply a psuedoelement to the blockquote
- Added a storybook story to cover blockquotes

Bug: T213107
Change-Id: I09706137fec00b3bff649180a559f4f663b71d90
2021-08-25 17:05:08 +00:00
jenkins-bot 246f2a42a1 Merge "selenium: Upgrade WebdriverIO to v7" 2021-08-25 09:58:27 +00:00
jdlrobson 27e171d9a5 Design spec dimensions should be documented in storybook
Bug: T284643
Change-Id: I17995d48c57140f9243cadbc0e4cef29cb41e447
2021-08-24 14:17:49 -07:00
sahil 7142676629 selenium: Upgrade WebdriverIO to v7
Update npm packages: @wdio/* and webdriverio.

Bug: T274579
Change-Id: Ie9bd50e36f0c888a19e73ab9b424a8b6a5bd67fd
2021-08-24 17:29:16 +00:00
Translation updater bot ddebe5dabe Localisation updates from https://translatewiki.net.
Change-Id: I48a07edae0105d51765d543681cdf4dafbbcebed
2021-08-19 08:13:47 +02:00
Timo Tijhof 06ab2d7676 build: Fix gaps in lint coverage and update old patterns
eslint:
* Remove hardcoded glob paths that are (relatively slow) to expand
  before linting could start, in favour of specifying directories
  which can be iterated while linting happens.
* JSON files in i18n/ were skipped, unlike other repos.
  JS code under .storybook/ was skipped.
  JS code under resources/ext.popups/ was skipped.
  Fix all these by doing what other repos do, which is to let
  ESLint iterate the repository and tell it which directories not to
  enter. This has the happy side-effect of making IDE integrations
  for ESLint work correctly (as customisation in package.json has the
  same problems as using Gruntfile, namely that invoking 'eslint'
  directly can't be aware of this), as well as allowing things like
  `eslint --fix` to be used.

```
/Popups/resources/ext.popups/index.js
  4:2  error  Unexpected var, use let or const instead  no-var
```

nyc:
* Remove SPAWN_WRAP_SHIM_ROOT.
  This was a hack for an early CI experiment that hasn't been
  needed for several years.

storybook:
* Remove gitignore entries for additional npm and build output in the
  storybook subdirectory, which appears to not exist anymore since
  189b386a13.

Doxygen:
* Sync with cookiecutter example from
  https://gerrit.wikimedia.org/g/mediawiki/tools/cookiecutter-library/+/HEAD/
  - remove redundant stuff,
  - enable quiet mode to hide verbose non-warning,
  - include CoC.

Change-Id: If8f6b833067192aea96a87f04c7978c9af11f996
2021-08-16 17:02:05 +00:00
Clare Ming 48df0cbaea Fix popup preview regressions, add story
- Fix margin for page preview flipped-x.
- Fix margins for generic previews.
- Add error story to storybook.
- Fix minor typo, pageIds in MODELS.

Bug: T281170
Change-Id: I5b96719c1d08518cbd977590171974796fd10986
2021-08-13 13:50:13 -06:00
jenkins-bot 0a55cc12d8 Merge "Storybook: Capture "panorama" style portrait and landscape examples" 2021-08-12 20:30:54 +00:00
jdlrobson 7be869649d Storybook: Capture "panorama" style portrait and landscape examples
Reduce min-height per explanation in:
https://phabricator.wikimedia.org/T255549#7266861

Bug: T255549
Change-Id: I2871e8d0377268edb50a6de98ca6a247e9a794b9
2021-08-12 11:39:29 -07:00
Sam Smith 88edf5d999 virtualPageView: Log VirtualPageView events to Event Platform
We started logging VirtualPageView events to the Event Platform in
I645a81a4 but I640ab367c overwrote that change.

Change-Id: I3fcb9b79931da2ce0fa39ffc3be03e141d0d4152
2021-08-11 20:43:18 +01:00
Thiemo Kreuz a99bd13112 Rewrite linkTitle change listener for clarity/easier expansion
This was done while working on T277639 where we introduced
multiple "enabled" flags for individual popup types. This
change listener is one of very few places that work with
this flag. This patch is meant to make this code more robust
and easier to change.

A few unrelated but trivial changes are included that make
code shorter and hopefully easier to read.

Also fixes a bug with tooltips overlapping previews.

Bug: T287119
Change-Id: I7fb0a8d4bb9f5e78fe62cfca524cc157ea89a233
2021-08-11 18:33:34 +00:00
Translation updater bot 0dc39c9d11 Localisation updates from https://translatewiki.net.
Change-Id: I840b62d4d1d0c12629affba5fb6cac8f3ae7cc3a
2021-08-11 08:19:30 +02:00
jdlrobson 75a9d81755 Fix pointer class behaviour
Add unit tests for landscape previews.

Bug: T287520
Change-Id: Ib9a7635b532248a4f44c308d7bb5dc7ab08667e6
2021-08-10 10:40:40 -07:00
jdlrobson a0754c8cf9 Storybook: Fix RTL
Provide containers for page previews examples

In storybook we avoid position absolute but this deviation from
how they behave in reality could lead to subtle differences that impact
the rendering of previews. It also doesn't allow to see the preview
in the context of the link which is an important part of visually
verifying the position of the pokey arrow.

This also allows us to rethink the broken RTL mode. We now scope
LTR rules to a LTR class that is present on the container, and use
the CSSJanus parsed stylesheet for RTL.

Change-Id: I189019824ddd6aa759790fd162ffcd543619a953
2021-08-06 14:40:10 +00:00
Translation updater bot 4868c16ea7 Localisation updates from https://translatewiki.net.
Change-Id: I5fddb35ef9fc522d600ec5dbcb0b4ce625185965
2021-08-05 08:22:27 +02:00
Translation updater bot 505221ef58 Localisation updates from https://translatewiki.net.
Change-Id: Ic7692081f4fed7f1e926fd730cf70cff7d41791a
2021-08-04 08:15:16 +02:00
jenkins-bot e27356325f Merge "Show medium size (<320 wide, but >=250 high) images as well" 2021-08-04 01:04:05 +00:00
Thiemo Kreuz a01c31efd7 Show medium size (<320 wide, but >=250 high) images as well
The requirement for landscape images is to be at least 320px
wide. The requirement for portrait images is more relaxed,
only 250px high. Images that fall between these two
requirements currently don't show a thumbnail, even if they
could.

This change affects a very specific group of images:
* Square images from 250 x 250 to 319 x 319.
* Landscape images from 251 x 250 to 319 x 250.
* Landscape images from 319 x 250 to 319 x 318.

The most extreme ratio is 319 x 250. This will be cut to
203 x 250. I.e. the absolute extreme are 58px missing left
and right, but never more.

Requested at https://www.mediawiki.org/wiki/Topic:Vwl97pm6as9fuf6k

Additional stories for testing more extreme small images:
* Small Tall - 300x1000px
* Small Short - 300x200px

Update tests accordingly.

Bug: T268999
Change-Id: I811f1c0e7e9b0c30280b36a61cc7831a5b9e58c8
2021-08-03 13:17:06 -06:00
Translation updater bot 1fbadad160 Localisation updates from https://translatewiki.net.
Change-Id: I52c8df0bd84d92a0958da33554b7fce450e1c46f
2021-08-02 08:37:26 +02:00
Sam Smith 8f5000f346 Remove Popups instrumentation
Bug: T267211
Change-Id: I640ab367cd235ab8da7dd70dbef7ae9076712e84
2021-07-29 17:01:01 +00:00
Translation updater bot 1de4252bdb Localisation updates from https://translatewiki.net.
Change-Id: Ia077f80d873e3907abaa3262903405c09e68013f
2021-07-29 08:45:11 +02:00
sahil 1e1b8506ac selenium: Update wdio-mediawiki
wdio-mediawiki v1.1.1:
- Includes wdio-defaults.conf.js file that vastly simplifies wdio.conf.js.
- Replaces @wdio/spec-reporter with @wdio/dot-reporter.
- Introduces video recording.

Bug: T283597
Change-Id: I76edb3f16272fc6c1d70b0a796115cf5cc22d255
2021-07-28 16:35:31 +05:30
Clare Ming 7a6c036318 Fix regression with reference previews
- Adjust padding, margins for storybook stories.

Bug: T281170
Change-Id: I05ee0f2123a9999b440e3afdeae1d5b2318e602e
2021-07-27 13:57:08 -06:00
jenkins-bot 082fc17aba Merge "Add reference previews to storybook" 2021-07-26 12:47:28 +00:00
Translation updater bot ed785f13cc Localisation updates from https://translatewiki.net.
Change-Id: Ic686ae414d265745bbd10c62fbaf30069175f7dd
2021-07-26 08:12:34 +02:00
jenkins-bot abff28e0b2 Merge "Update package.json engines property to match .nvmrc" 2021-07-23 22:02:58 +00:00
bwang 089a219f5d Update package.json engines property to match .nvmrc
Change-Id: I56453ee8bbd6b783204765bbdba1fe509d8b4e90
2021-07-23 14:16:54 -05:00
Translation updater bot 305cac2be0 Localisation updates from https://translatewiki.net.
Change-Id: Iacca2c90ae4009cc147f3429926897abff6f5c65
2021-07-23 08:08:32 +02:00
jdlrobson f97d29923b Add reference previews to storybook
Change-Id: I8e9e2db66fa94b33abcf7c9cbaff8defe5003ef6
2021-07-22 23:59:26 +00:00
jenkins-bot c13203acbb Merge "package.json - remove "npm run build-storybook" from test script" 2021-07-22 23:20:28 +00:00
Translation updater bot a7dd72d4e7 Localisation updates from https://translatewiki.net.
Change-Id: I9fffdb7ac8251e441c4426ed9bdef267f1657a50
2021-07-22 08:13:30 +02:00
DannyS712 784d9f4e9b package.json - remove "npm run build-storybook" from test script
The npm "test" script runs, among other things
* npm -s run -s doc
* npm run build-storybook

since the doc script is
`jsdoc -c jsdoc.json && npm run build-storybook`
this results in building the storybook output twice. Remove
it from the "test" script.

Also, remove duplicate -s

Change-Id: Iee54e0c8455b752efc714c1fb1487b030ba007a1
2021-07-22 04:26:59 +00:00