Commit graph

2085 commits

Author SHA1 Message Date
libraryupgrader 8c3c943468 build: Updating mediawiki/mediawiki-phan-config to 0.6.1
Change-Id: I98849b0e976c261fe5e3bef98e5c71e1b5b99da9
2019-06-10 10:03:03 +00:00
James D. Forrester 4fb6120fc9 Upgrade from node 6 to node 10, now that CI is running that
Change-Id: I8830cc39c8f5c5d22299d3c3cc90b308f50fb08a
2019-06-03 14:51:51 -07:00
Translation updater bot 8f850877c2 Localisation updates from https://translatewiki.net.
Change-Id: I8830cc39c8f5c5d22299d3c3cc90b308f50fb08c
2019-06-02 22:30:45 +02:00
Translation updater bot 54a5f6f6ab Localisation updates from https://translatewiki.net.
Change-Id: I7cd8635b1d0d6d4ac84f4babfed0512c94a70490
2019-05-30 22:54:02 +02:00
Volker E d1fc6786bf Remove wrong ARIA role=tooltip from container
Removing wrong ARIA `role=tooltip`. Those are meant only for static
text content on short `title` like dynamic tooltips.

Bug: T223827
Change-Id: Ib4f490c7ad421e516fb0cf47eff4335bcaf26c43
2019-05-29 15:27:08 -07:00
Translation updater bot 5f573d1abf Localisation updates from https://translatewiki.net.
Change-Id: I8033b42e93683c954d5ab8490dbe83a846ed7222
2019-05-26 22:23:28 +02:00
Translation updater bot b67d7e2181 Localisation updates from https://translatewiki.net.
Change-Id: I30eb99428db6e8b0f6c1a3108797c63481b9107c
2019-05-23 23:06:39 +02:00
James D. Forrester 692a706e08 build: Upgrade mediawiki/mediawiki-phan-config from 0.5.0 to 0.6.0
Change-Id: I96b36d9e535c6d886aec7e9e77334ed239569b3a
2019-05-23 19:18:53 +00:00
Thiemo Kreuz 59a5e4e981 Fix fade-out gradient not disappearing when page is zoomed
We did a strict === comparison before. This works fine when the page
zoom is either 100% or 200%. Other zoom factors produce fractional
numbers. Comparing them with === is doomed to fail because these numbers
are IEEE representations, not necessarily being identical in situations
where you would expect them to be identical.

This applies two fixes: Change the comparison to a >=, and always ignore
1 extra pixel. If we are so close to the bottom, the gradient is not
helpful any more.

Change-Id: Idf4c604142de8d2a803e1d94f3093cec8a8abb72
2019-05-20 11:02:19 +00:00
jenkins-bot 8c7527af04 Merge "referencePreview: Replace width: 0 with display: none" 2019-05-18 14:45:19 +00:00
jenkins-bot af5adf3e07 Merge "Docs: Remove incorrect documentation about LocalSettings in tests README" 2019-05-18 14:43:23 +00:00
Translation updater bot 0af283914a Localisation updates from https://translatewiki.net.
Change-Id: I986aec37b7bf17e50da8e2f6c65da49b09107638
2019-05-16 09:10:14 +02:00
Translation updater bot 68362f26de Localisation updates from https://translatewiki.net.
Change-Id: I97173e6314ebb7daef1bf478764e4a9a9e6f5e62
2019-05-15 09:14:08 +02:00
Translation updater bot a6b41e6569 Localisation updates from https://translatewiki.net.
Change-Id: I1253c6eda10e4d6f7881dde71e93bc02aeb79a12
2019-05-13 23:22:27 +02:00
Adam Wight ed06a6dbb1 Docs: Remove incorrect documentation about LocalSettings in tests README
Follows-up 1cff4a15a7.

There is no such file to copy, delete from README.

Change-Id: I1fa0ac574743f5dbd577653aa74d416ca4609aa8
2019-05-13 11:52:55 +00:00
Translation updater bot 2dc22b24ae Localisation updates from https://translatewiki.net.
Change-Id: I6daaf1a38ad178566fb819c6b4d649eb2fe3acbf
2019-05-12 22:34:11 +02:00
WMDE-Fisch a498423f90 Avoid popups on self links with file extension
This fixes page previews appearing when there is self link to a page
that has a file extension in it's name.

Bug: T222869
Change-Id: I5caf610fa76986026948a5b7b55537723752b755
2019-05-10 18:02:50 +02:00
jenkins-bot 32a415d81e Merge "referencePreview: No event bubbling on inner child elements" 2019-05-10 08:28:35 +00:00
Translation updater bot 498aa793b6 Localisation updates from https://translatewiki.net.
Change-Id: Id59e3933d4a417090b65d3683868c69f9fa0ca80
2019-05-10 09:20:43 +02:00
Thiemo Kreuz ac65bd3082 referencePreview: No event bubbling on inner child elements
This is relevant in case the HTML looks like this:
<… class="reference"><a><span>[</span>2<span>]</span></a></…>
The additional <span> cause many additional mouseover and mouseout
events. The code already tries to filter these duplicate events that
are all triggered on the same link, but gets confused, especially when
the multiple chains of events overlap each other in unexpected ways.
It's a timing issue. This change does not fix the fundamental issue,
but does make it much less painfull.

This patch also removes the > from the selector. This is in case the
HTML looks like this:
<… class="reference"><span><a>[2]</a></span></…>
The additional inner <span> would prevent any reference preview from
being shown.

Bug: T214693
Change-Id: If2554ba78072245c27a1f85c46f33e3c58582c1d
2019-05-09 13:23:45 +02:00
Thiemo Kreuz b3fb2b5867 referencePreview: Replace width: 0 with display: none
Before, the element is still part of the DOM, shows up in the debugger,
and consumes rendering time (probably close to zero, but still). After,
the element is gone.

Change-Id: I580fd89868b5a91118a8115d71d819824ff7f80c
2019-05-09 13:19:14 +02:00
jenkins-bot fe6c707da1 Merge "Show referencePreviews on click" 2019-05-08 16:00:02 +00:00
Translation updater bot 503184584a Localisation updates from https://translatewiki.net.
Change-Id: I74e847b56c7033724879a98baa3fe948f8bda6fc
2019-04-29 22:16:13 +02:00
WMDE-Fisch 1879a4d59e Show referencePreviews on click
Introducing the REFERENCE_CLICK action that will fetch and show the
preview for the clicked reference right away without any delay.

The main goal of the new chain of events introduced with the reference
click is showing the reference preview right away. The actions triggered
by the dwelling include delays in multiple parts of the process.

If there's a dwell action-chain in progress when the click action is
executed, the related promise ( that might still include steps with
delays ) and the reference preview is retrieved and shown right away
re-using the token. 

In the case where there's no dwell action running ( e.g. when the click
was triggered via touch ) we create a new token and start from scratch.

In either case we want to avoid, that multiple clicks trigger multiple
actions and abort early when there's already a click action in progress.

Bug: T218765
Change-Id: I073a93be2d17a21178aebe12267765f60a2811b9
2019-04-29 17:46:49 +00:00
Translation updater bot e18e92dbf9 Localisation updates from https://translatewiki.net.
Change-Id: I6b15463c03804756a6e925eaf83092f85b59dc1a
2019-04-26 22:28:12 +02:00
Thiemo Kreuz 3ca2709cfe Streamline code calculating fade-out bottom position
I actually tried to bring the animation for the "bottom" property back.
When finished, I realized this animation is done on *top* of the
horizontal scrollbar. This looks fancy, but is not what we want. We
need to keep animating the opacity.

This patch here contains a bit of refactoring that was left after I
went back animating the opacity.

Bug: T220200
Change-Id: Icf613f72f3baa3de86f8aa319667c8e8f16593fd
2019-04-26 18:14:30 +02:00
WMDE-Fisch d72ef0fa65 Avoid fade-out above horizontal scrollbars
The changes in the patch check if a horizontal scrollbar is present
and move the absolute positioned fade overlay above that scrollbar.

Since we cannot change the CSS of the :after element via JS a new div
element was introduced.

Bug: T220200
Change-Id: Ia69c9be0facaf3ecebdb9f76d36f7cb3412c0816
2019-04-26 18:02:06 +02:00
Thiemo Kreuz 8305eb8634 Minimize createStubTitle() helper method
Pretty much all usages of this function do *not* use the second
parameter to pass a page name prefixed with a namespace, but pass the
page name only.

This patch here removes the redundancy. The namespace prefix is now a
generated one, saying "Namespace <number>:…". It turns out no test
relies on this so far.

Bug: T220097
Change-Id: Ibd45d49c91e86a2647afe676a5e3bb07dfeab6ed
2019-04-26 07:45:13 -06:00
WMDE-Fisch 6c535739bf Use title.getNameText() to compare selflinks
config.get( 'wgTitle' ) returns the unnormalized title of the current
page while title.getName() gets the normalized title (e.g. with underscores ).

On pages with spaces in the check failed before this patch.

Bug: T220097
Change-Id: I58a532627bb27be030cbc553f1181a89109edd80
2019-04-26 13:58:08 +02:00
jenkins-bot f40cc718ce Merge "Use title and namespace id to check if link is current page" 2019-04-26 11:04:12 +00:00
jenkins-bot c334b7cdf7 Merge "Allow text selection on all fade-outs, not only on references" 2019-04-26 10:12:44 +00:00
jenkins-bot 61c91d7256 Merge "Don't block clicks on vertical scrollbar behind fade-out effect" 2019-04-26 10:12:42 +00:00
Umherirrender d7767ed7f5 Add phan
Change-Id: Ia56406f26ecf81d35f505d4a62a93615fcc718fd
2019-04-25 20:54:33 +02:00
Thiemo Kreuz 34cf1f0764 Allow text selection on all fade-outs, not only on references
The last line in all popups ends with a fade-out gradient to white.
The text in this last line can currently not be selected because it is
covered by this partially transparent container, and the container
consumes all mouse events.

This patch here moves the existing solution from "reference previews
only" (where this was a much more serious problem that on page
previews) to the top-level .less file that is for all popup types.
This is not strictly required, but I feel the code belongs there.

Bug: T220200
Change-Id: Iedf667ead453c9e72025d5fdc7af34756456e68a
2019-04-25 19:31:54 +02:00
Thiemo Kreuz 06cdb58d3e Don't block clicks on vertical scrollbar behind fade-out effect
This does not solve all two acceptance criteria mentioned in T220200:
* This will allow *interacting* with the scrollbar, no matter if it
  is partly covered by the fade-out effect.
* This still does not place the scrollbar in front of the fade-out
  effect. Very thin scrollbars are still very hard to see.

Bug: T220200
Change-Id: I394aea6a25c4b3923ad01e18328d42a5e50081f3
2019-04-25 19:26:25 +02:00
Translation updater bot 8df99c6b95 Localisation updates from https://translatewiki.net.
Change-Id: If7fce7c64aefcdbbc5a8b3729ed02cfa4d72e499
2019-04-23 22:46:03 +02:00
WMDE-Fisch 35aa05afee Use title and namespace id to check if link is current page
Bug: T220097
Change-Id: Ieffd6a02b4126f6713610e968d662516499d4998
2019-04-23 15:17:06 +02:00
Adam Wight 0acc8db529 Decode fragment, needed for multilingual named references
Named references may include non-ascii characters, so we decode the fragment before matching against reference IDs.

Bug: T220196
Change-Id: I63bba59fa8f0f6aa95aeadbb1f85745d480988bd
2019-04-23 11:39:30 +02:00
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