Commit graph

4489 commits

Author SHA1 Message Date
jenkins-bot 211a53fb67 Merge "Flag that Minerva now depends on 2.1 of MobileFrontend" 2018-02-07 14:16:42 +00:00
jdlrobson 4389b67989 Explicitly use LESS variable for breakpoint defined in mediawiki ui
$wgResourceLoaderLESSVars is deprecated. Let's not use it anymore.

Change-Id: If28ab6884668700bc46533c8e2c377f17e6be696
Depends-On: Ib9f843147db4473ce5590741e0fb490384b0007e
Bug: T171365
2018-02-06 22:23:32 +00:00
jdlrobson d783eb934d Flag that Minerva now depends on 2.1 of MobileFrontend
The changes to the FeatureManager mean that MobileFrontend
2.0 and Minerva are now incompatible.

Change-Id: Ia5ccb3b66bee2fb99e58c297f1ca91df642323af
2018-02-06 22:23:27 +00:00
jenkins-bot 7b84dc6171 Merge "Merge remote-tracking branch 'gerrit/specialpages' into T182217" 2018-02-06 22:19:43 +00:00
jdlrobson fa27cf8a0d Merge remote-tracking branch 'gerrit/specialpages' into T182217
(Depends-On I535b24803341dc3912aed4bef06970e2861fe3ad)

Change-Id: I3fc50739415686032683c421008e832e785e1651
Bug: T182217
2018-02-06 21:39:22 +00:00
Translation updater bot 35298ff1d2 Localisation updates from https://translatewiki.net.
Change-Id: I600ef4dbeeb8c7cd472c8b92db4cbd1867f2035e
2018-02-06 22:10:58 +01:00
jdlrobson 97136f9d63 Prepare for breaking change to MobileContext
With the introduction of the FeaturesManager the
getConfigVariable method will disappear.
(I535b24803341dc3912aed4bef06970e2861fe3ad)

That change cannot be merged until Minerva stops using the
method.

This temporary fix ensures it resolves to false when the method
doesn't exist.

Bug: T182217
Change-Id: I619fd8fac47a98d1ff8f3646d61b8e285246a17f
2018-02-05 13:15:34 -08:00
Translation updater bot 1d609fdc6b Localisation updates from https://translatewiki.net.
Change-Id: I11dadc66377dae900543e44849842a794dcb89e3
2018-02-04 21:56:42 +01:00
Translation updater bot b40650330a Localisation updates from https://translatewiki.net.
Change-Id: Ia5c0d4f0cb0dd4006dd08e88688cbae7ca02a161
2018-02-03 22:04:25 +01:00
Timo Tijhof d5145178b9 Hygiene: Replace QuickTemplate test subclass with mock
Change-Id: I32aa9d5103f4b6790a5118d5cad2cd91d3ddc459
2018-02-03 03:11:14 +00:00
Translation updater bot f2048cd92d Localisation updates from https://translatewiki.net.
Change-Id: I9d4955b17a74e2c1bdee5b2060ff631820dc60b1
2018-02-01 22:00:47 +01:00
jdlrobson 3047f3e0fa Merge remote-tracking branch 'gerrit/master' into specialpages
Change-Id: I1bc48ac546865f515df65e9d7f0c75e7f5c6d684
2018-02-01 11:35:11 -08:00
jdlrobson 326ec90cd5 Disable download button on Chrome like browsers
Add Dolphin, Opera and Maxthon to whitelist

Bug: T182059
Change-Id: I39bf9d016aba189016b2ce5b42a2e95b58cb33ce
2018-02-01 10:59:18 -08:00
jenkins-bot e15d5b812d Merge "Preferences tabs should be horizontally scrollable" 2018-02-01 15:53:12 +00:00
jdlrobson 6b801b8c5c Console recruit message has been moved to MobileFrontend
Change-Id: I48eb8ac7471f7e17ed10ac326230cf2ffed467d1
Depends-On: I3ee0c34139ec658566e8d324a3c8c28a80e930fd
2018-02-01 00:48:13 +00:00
jdlrobson 20f69d0b49 Do not add non-existent skins.minerva.special.preferences.scripts
This module does not exist.
Don't pretend it does and add it.

Bug: T185934
Change-Id: Iefef261fdac2c513e5ee278e94574026601f76f9
2018-02-01 00:33:48 +00:00
jdlrobson 4f6e9e69e1 Preferences tabs should be horizontally scrollable
Change-Id: I6766b4ef5a99c66ebb54079b07739315294c86a7
2018-01-31 18:37:16 +00:00
Translation updater bot 152465abd3 Localisation updates from https://translatewiki.net.
Change-Id: Ia33416537abd6ef2f4adadeb7861c9c48c6f5dec
2018-01-30 21:58:47 +01:00
jenkins-bot af9db025df Merge "Remove horizontal line from popups preview in MinervaNeue skin" 2018-01-30 19:18:58 +00:00
Alangi Derick 3c81e0c717 Remove horizontal line from popups preview in MinervaNeue skin
A horizontal line shows in popup previews in the MinervaNeue skin
just above the setting icon due to a css rule that affect all footer
elements. Removing this effect to apply only for the MN skin.

Bug: T184560
Change-Id: Idb0c40c3fc24e4ec2d32cb2de9520952448da77a
2018-01-30 20:06:42 +01:00
jenkins-bot 36780b8156 Merge "Hygiene: add package-lock file" 2018-01-29 21:10:46 +00:00
jenkins-bot fcc759ee19 Merge "Fix editing of non-mobile-formatted pages" 2018-01-29 21:05:31 +00:00
jenkins-bot 805dfedab0 Merge "Fix download icon spinner" 2018-01-29 21:03:54 +00:00
Stephen Niedzielski 7fcc2b06bd Hygiene: add package-lock file
Add NPM package-lock file, a new feature of NPMv5.

http://blog.npmjs.org/post/161081169345/v500

Change-Id: I4cd5d9c040ceba8fe211c7f2f8cc745b6ca0e312
2018-01-29 20:56:47 +00:00
jdlrobson 6cdcc8ddfa Fix editing of non-mobile-formatted pages
Template pages do not run the MobileFormatter
(see MFMobileFormatterNamespaceBlacklist).

As a result page.getLeadSectionElement() will
return null

When this happens do not change the edit icon to point
to section 1. Instead give them the non-JS editor.

After this patch, the feature remains as:

* Page with lead section get the JS edit overlay for section 0
* Page without lead section but with other sections gets the JS overlay
  editor for section 1
* Pages that didn't run through MobileFormatter don't modify the edit
  link and just link to the fallback editor (useful for Template pages
  at this moment)

Bug: T172948
Change-Id: Icee96e12f62ec13a1cbd3169c687fa4b3af70754
2018-01-29 20:56:31 +00:00
Translation updater bot 351512265b Localisation updates from https://translatewiki.net.
Change-Id: I772aae3c0e11bd47523e6e85726947aff743e91e
2018-01-29 21:55:57 +01:00
jdlrobson 1e56e46724 Fix download icon spinner
Regression, introduced in
I6e474562ba5f2c704364c9d7b49f982f7bab8a18

Bug: T182162
Change-Id: I56464d42e437a94b2008338b00f49b4e0b086561
2018-01-29 20:08:04 +00:00
jenkins-bot 780f3c5e07 Merge "Remove use of QuickTemplate::setRef" 2018-01-27 13:15:49 +00:00
Timo Tijhof 08985b2229 Remove use of QuickTemplate::setRef
Follows-up 2c01147c13be, 429f557cc7f68a46.

The array is already copied by value once returned from getLanguages().
Setting it by reference within the QuickTemplate instance doens't
have any effect, but does logically break the concept of pushing
data in a single direction through the skin.

Remove use of setRef in preparation for restricting skins only
consuming data as given, without the ability to change data
in other parts of the system.

Bug: T140664
Change-Id: I0978dd5c123fda57f45534a8d2e51b7e65e55223
2018-01-27 13:11:37 +00:00
Translation updater bot 0c95f210db Localisation updates from https://translatewiki.net.
Change-Id: I9c2aebf833f8b9d0070c7adc5c648d82311ba8b5
2018-01-26 22:17:24 +01:00
Alangi Derick 8cd73c01af Update Minus-X utility from 0.2.1 to 0.3.0 in MinervaNeue skin
Change-Id: Ibbdef91034b2e3ac3d3abb50f63d1725babad66c
2018-01-26 16:50:32 +01:00
Translation updater bot b9accca0b2 Localisation updates from https://translatewiki.net.
Change-Id: I57a5727e515f44bdf902eac6dfcc4d0f69592854
2018-01-25 21:57:38 +01:00
jenkins-bot d5c89c88a0 Merge "Prefix icons in Minerva" 2018-01-23 00:28:54 +00:00
Translation updater bot 364b36f54d Localisation updates from https://translatewiki.net.
Change-Id: I492bca3862dac924b42bf167bbd3075f307ea2bb
2018-01-22 21:58:09 +01:00
Translation updater bot 929324cc08 Localisation updates from https://translatewiki.net.
Change-Id: Id4cf550e05bf4243e03fb3f4d27ded1f156faaef
2018-01-21 21:57:28 +01:00
Translation updater bot 319b1829a9 Localisation updates from https://translatewiki.net.
Change-Id: I4d2855ede8ddd7a26ad2e0cd98eef90909de2eec
2018-01-20 14:08:45 +01:00
jdlrobson c5d09c0288 Prefix icons in Minerva
Changes:
* MinervaUI will now prefix any icons with `minerva`
* Update definitions in skin.json, retaining selectors for cached
HTML for icons that are rendered via PHP.
* In I9021c53c2c04bdd7ce395eed33d89986acbfea6d watch and watched
and arrow are moved to MobileFrontend so are removed from the RL module
skins.minerva.icons.images.scripts as they are not
used directly in this repo. user and anonymous are no longer used
so also removed.
* Presentation of userpage now belongs to MobileFrontend. Icons
are styles were moved there in depends on. They are retained in
skin.json to support cached HTML as user pages are subject to
cache. They can be removed in a week.
* In code review we noticed the anonymous icon was badly named. We
rename to login. No caching implications.
* Main menu icons are now prefixed with minerva rather than mf to
reflect where they come from.

Depends-On: I9021c53c2c04bdd7ce395eed33d89986acbfea6d
Bug: T182162
Change-Id: I93264024f4915fc910c792b1905b89cdc6b8b546
2018-01-19 15:30:03 -08:00
jdlrobson fe3ac29fe7 Merge branch 'master' into 'specialpages'
Change-Id: I167f03477fd79e5ea0c7fa5cdf5df71bb8da31c2
2018-01-19 11:00:55 -08:00
Translation updater bot 91d5fee9d7 Localisation updates from https://translatewiki.net.
Change-Id: I8c90b4189139d586259abf507849370105344c9d
2018-01-18 22:30:39 +01:00
petarpetkovic 413fcc12f6 Fix seen notifications appearing as unseen on mobile
Important note: Make sure to distinguish unseen from unread

One way to reproduce minerva and non-minerva notification inconsistencies:
- Have all your alerts and notices seen. This is displayed with grayed out
number on vector skin or no number at all, if you have (marked as) read.
- Generate new alert or notice (one is enough) in your preferred way.
- You can check minerva and non-minerva at this step. Both should be in sync.
But don't perform any additional action.
- Open the notification popup in some non-minerva skin (I have tried with
vector and monobook), marking it as seen.
- Check the notification icon in minerva. At this point, you should see
notification displayed as unseen.

The reason bug appeared in the first place is that alert/notice timestamps
were mixed up when seen time is obtained. We get seen time from
EchoSeenTime class, where we get smaller of the two timestamps,
using PHP method `min()`. See I27109ee6a248. Then, we get last unread
notification timestamp (which can be either alert or notice), and compare
that to seen time. That leads to the situation when you have only one of
alerts or notices with unread items, smaller timestamp is used for seen,
and most recent for unread, at which point we compare timestamps for
two separate things.

Previous behavior of getting seen timestamps (using max instead of min) would
probably solve the problem, but some other inconsistencies might arrise.
This should prevent any weird and unpredictable behavior to happen.

Bug: T183076
Change-Id: I20bbd6c590086b1c3eccf82983aad59eb3144a7a
2018-01-18 14:18:56 +01:00
Translation updater bot 4907c66ffb Localisation updates from https://translatewiki.net.
Change-Id: I593d9d98f3a45f0653ed9efefcfb49e016708b5b
2018-01-17 22:24:47 +01:00
jenkins-bot 80f51c4d5d Merge "Fix infobox styles to work well with multiple column infobox rows" 2018-01-17 20:04:02 +00:00
jenkins-bot 2a6114b7dd Merge "Show Download button only on Android >= 5 & Chrome >= 41" 2018-01-16 21:51:52 +00:00
Translation updater bot 44aaf215ce Localisation updates from https://translatewiki.net.
Change-Id: Ic45d9d7ff37e47bccd04b88166d1bcd23d3d81d6
2018-01-16 22:28:29 +01:00
Piotr Miazga 4ca5666c06 Show Download button only on Android >= 5 & Chrome >= 41
Changes:
 - moved DownloadButtton checks & initialization to separate function
 - introduced supportedNamespaces variable for better readability
 - reorganized huge if(){} statement to set of smaller if's with
 nice comments why this configuration is not supported
 - introduced getAndroidVersion and getChromeVersion helper functions
 - added check to not allow Android < 5 or Chrome < 41
 - added unit tests

Bug: T182059
Change-Id: Ib5064459ee56aed68179389f37b4bc3b5c2c4492
2018-01-16 22:15:07 +01:00
David Sn 5d46c576bb Fix infobox styles to work well with multiple column infobox rows
I used the fix provided by TheDJ and tested out locally
on Firefox 57 and Chrome latest, but I couldn't test out
any grade C browser as on Linux it's really hard to find
such an outdated browser like Internet Explorer on Windows.

Bug: T168716
Change-Id: I8e03610e4eb3c93b80bb757592c2fb3079a68412
2018-01-16 17:19:39 +00:00
Translation updater bot 2f2095ac50 Localisation updates from https://translatewiki.net.
Change-Id: I4e577f59c60991b8e5bcfd743ce4170eef1eef21
2018-01-15 22:04:47 +01:00
Translation updater bot cea0408065 Localisation updates from https://translatewiki.net.
Change-Id: I710ee51fc3fed337c1488c9f9c2d99339212312e
2018-01-14 21:59:02 +01:00
Translation updater bot 588fce815d Localisation updates from https://translatewiki.net.
Change-Id: I57e7be1c2f32b59c576a681b17fc942532a461a5
2018-01-13 21:56:31 +01:00
Translation updater bot def790a9e9 Localisation updates from https://translatewiki.net.
Change-Id: I17c2c83551ab0c3270f9d5945c5bb8aaaf68c8a5
2018-01-11 23:28:13 +01:00