Commit graph

1313 commits

Author SHA1 Message Date
libraryupgrader 8dce8f341f build: Updating mediawiki/mediawiki-codesniffer to 21.0.0
Change-Id: Ie17ff96cb2b49203d8d5b2337d1dbc3e408ff49f
2018-07-27 23:57:18 +00:00
Translation updater bot 3c7a4d1676 Localisation updates from https://translatewiki.net.
Change-Id: Id07d9f569f111d067019ea259e68d2432cb2c456
2018-07-27 21:55:55 +02:00
Nicholas Ray 17749f6cc4 Add mediawiki.Uri as dependency for skins.minerva.editor
mw.Uri is being used in resources/skins.minerva.editor/init.js but was
not listed as a dependency for this module. Adding this as a dependency
will ensure mw.Uri is loaded before this script is executed and tries to
use mw.Uri.

Change-Id: Ib34ca9eb9ba91d4b446a164fde42eec7f8e92000
2018-07-27 09:44:11 -06:00
jenkins-bot 4f907cd148 Merge "Remove fancy block info popups (move to MobileFrontend)" 2018-07-27 03:41:09 +00:00
jenkins-bot 68d1bc61f6 Merge "Limit editor text area styles to where they are needed" 2018-07-26 23:28:55 +00:00
Bartosz Dziewoński f114f81d42 Remove fancy block info popups (move to MobileFrontend)
We only used them for registered users, but MobileFrontend's
EditorOverlay code can use them for anonymous users as well.

Remove code for looking up block details in wgMinervaUserBlockInfo,
now we only care whether the user is blocked at all to display a
different icon. MobileFrontend looks up the same information via API
already.

Remove unused message 'mobile-frontend-editor-blocked-info-loggedin',
it was only used by non-fancy popups, which were removed in favor of
the new ones in f51cf7db7b.

Bug: T193754
Bug: T198765
Depends-On: I80564c3e6e2d0f4d7eae754f206780fb4054f254
Change-Id: I64be24845b4fee76d6b4a8e481a218f2160fced6
2018-07-26 23:44:28 +02:00
jdlrobson 28b9517dcb Limit page issues truncation to at least 2 lines
In the case of template {{dictdef}} the issue gets limited to one
line making it unreadable on mobile at certain resolutions due to the
learn more link taking up space that's available to the issue itself

As well as enforcing a max-height, enforce a height so that all issues
can have at least 2 lines to play with on all mobile screen resolutions

Bug: T197931
Change-Id: Icebdcf37d0f307dc82493c5ced53b632a6b09aea
2018-07-26 08:14:08 -05:00
Jan Drewniak a10bb49c01 Truncate page-issues to 2 lines of text.
Truncates ambox template styles to only show 2 lines of text.
"Learn more" link is placed on the same line as message text
and a fade is applied so that it doesn't overlap with the message text.

On table & larger layouts, the "learn more" link is placed on its
own line below the page-issue text.

Bug: T197931
Change-Id: Id607dea537c212298c02a0e1639aef2a786eb424
2018-07-26 08:14:08 -05:00
jdlrobson c7cb4ecee0 Limit editor text area styles to where they are needed
Currently we load textarea styles across all pages. However, in practice
textareas only show up in the edit page and inside our JavaScript overlays

To avoid loading these styles as rendering blocking CSS

Additional changes:
* Drop css reset for textarea so that textareas where unstyled
have sensible defaults. Note given the usage of OOUI and MediaWiki UI
this should be minimal/no disruption.
* For consistency intentionally change the padding of the non-js editor
to be consistent with other textareas
* The padding-left/padding-right rules currently override the default rule
so consolidate them into one single rule

Note:
* This will not break non-JavaScript editor mode as the module
mediawiki.action.edit.styles is loaded on that page as a render blocking
style.

Bug: T199000
Depends-On: I1ab170fc4089b0c8129a3e62ee78efad1c6709fa
Change-Id: I91743fdf1942a1b1b750422e973bf98fc4d106db
2018-07-26 10:35:16 +08:00
jdlrobson a3efca1582 Remove unnecessary skins.minerva.base.styles
* truncated-text is only used in MainMenu, last modified bar,
 a few special pages
Making this a mixin and limiting it to mobile.startup skinStyles
and mobile.special.styles thus makes sense
* cloaked-element is only ever added by Skin.js in mobile.startup
* position-fixed is only ever added by Skin.js

Change-Id: Iaf7061e9dda87eb25c963f8a281175af08f358e5
2018-07-26 01:18:00 +00:00
Translation updater bot b70046f2a0 Localisation updates from https://translatewiki.net.
Change-Id: I4361792ccf3e2067b62f25e2728ac04516892157
2018-07-25 22:02:49 +02:00
jenkins-bot 8276241e39 Merge "Move overlay-header styles to Overlay" 2018-07-25 14:00:47 +00:00
jenkins-bot 54a3ffb144 Merge "Update: remove the internal link icons" 2018-07-25 03:06:57 +00:00
Stephen Niedzielski 9a7ee86fc1 Update: remove the internal link icons
Bug: T190549
Change-Id: I87c55d26d36eead60c0137e244bdcc09f4239a76
2018-07-25 10:55:39 +08:00
jenkins-bot 0f1fc3733d Merge "Hygiene: make JSDoc configs consistent" 2018-07-25 02:54:30 +00:00
jenkins-bot bffb6eabcd Merge "Hygiene: move JSDoc and SVGO to devDependencies" 2018-07-25 02:53:10 +00:00
jdlrobson 8351c88c50 Move overlay-header styles to Overlay
.header > form matches no element on the page
all other selectors are linked to the mobile Overlay so should
be shipped along with those styles.

Remove .header-action rule, given that header-action's only appear
inside Overlays (Editor, Category and Talk)

A more generic rule already exists (.overlay .header-action > *)
for overlays that sets the min-height

Change-Id: I114fe80e50bb833e9e6bb0fb6b13c2e929244ddf
2018-07-25 02:45:34 +00:00
jenkins-bot ef63ced9b4 Merge "Match section issues to section number" 2018-07-24 23:03:18 +00:00
jenkins-bot e6f5d0e754 Merge "Set some authors inside Minerva" 2018-07-24 20:12:11 +00:00
jenkins-bot 65728feb27 Merge "Don't ship 2 magnifying glass icons" 2018-07-24 18:14:19 +00:00
jdlrobson 775af007f0 Don't ship 2 magnifying glass icons
We already make use of the images 'name' key inside
skins.minerva.content.styles.images to define the full
CSS selector. We can use this approach to ship a single version of
the magnifying glass icon, rather than having 2 defined in both
skins.minerva.base.styles and skins.minerva.icons.images

Change-Id: Ie5ec06152c418c4aa1b620b3d0a904cc9517e5d0
2018-07-24 11:55:41 -06:00
jdlrobson 1046d23f5e Set some authors inside Minerva
Apologies in advance if any unintentional hurt feelings!
This is based on a git blame of the skins directory in
I985c4e3a88b59461d471945ccf74cd291db45a61 before the Minerva move
and consulting the extension.json of MobileFrontend.

I've listed anyone with over 100 commits to the MobileFrontend resources/
skins folder as an author.

The Readers Web Team as the current maintainers are listed first.

If you feel you should be listed as an author of this skin
as someone who has contributed more than 100 commits to the skin code
(not MobileFrontend code), apologies and please add yourself.

Change-Id: Ifffb07d1decb47a5e08b9c45c88ccf106f0797a1
2018-07-24 19:35:20 +08:00
Translation updater bot 0364e741cb Localisation updates from https://translatewiki.net.
Change-Id: I2479e6739b44e40a3a11f295c9136e7cc0c6b315
2018-07-23 22:11:37 +02:00
Stephen Niedzielski 0e28238027 Hygiene: make JSDoc configs consistent
Make the Popups, MobileFrontend, and MinervaNeue JSDocs consistent. For
MinervaNeue:

- Replace "packageX" option which was unfound in the JSDoc repo with
  "package".

- Remove redundant default configurations.

- Replace tabs with spaces since that's the standard in this repo.

http://usejsdoc.org/about-configuring-jsdoc.html
http://usejsdoc.org/about-commandline.html
http://usejsdoc.org/about-configuring-default-template.html

Bug: T188261
Change-Id: Ic767e78ceee35400bdd9bb6f51c865e475f8f337
2018-07-23 14:45:10 -05:00
jdlrobson fcaf244cc4 Hygiene: lazy loading animations do not need to be render blocking
The transition only happens when images are loaded via JavaScript
so limit the styles to a file loaded via JS NOT render blocking
CSS

Change-Id: I56661db13e7fbb400a05b13c369d8598df449297
2018-07-23 13:57:42 -05:00
jenkins-bot 4aba34a5ed Merge "Cleanup: Last modified active color should be loaded via JS" 2018-07-23 16:54:28 +00:00
jdlrobson 54af37c269 Match section issues to section number
The section number relates to the position of the corresponding heading
not the corresponding top level section.

This only changes the URL, not the functionality. sub section issues
will continue to be grouped along with other section issues.

Bug: T197932
Change-Id: I325a3b477f89c9cc24f13ca017f478a6b7e7b68e
2018-07-23 10:09:32 -05:00
jenkins-bot 7c4ef3b2db Merge "Hygiene: remove IE8 menu hack" 2018-07-23 10:36:12 +00:00
Stephen Niedzielski 69ffc0b988 Hygiene: remove IE8 menu hack
Remove JavaScript hack introduced in
MobileFrontend 858a66d9f.

This hack is already provided by html5shiv.

Change-Id: I09251a23f4c0dda2f971028fa0250335bfe998b4
2018-07-23 02:45:30 +00:00
Translation updater bot 4d2e92c6b0 Localisation updates from https://translatewiki.net.
Change-Id: I04faf3fd4654bf4b7fc403a1949224a811849201
2018-07-22 21:54:33 +02:00
Translation updater bot 91fd14c71a Localisation updates from https://translatewiki.net.
Change-Id: I8800164ed6739aaccef0bb8570c8f17aa9758c6f
2018-07-21 21:58:01 +02:00
Translation updater bot 0924d64ff3 Localisation updates from https://translatewiki.net.
Change-Id: If8c75169cde79e0ce6955e2a1cc410182c9ef56d
2018-07-20 21:54:53 +02:00
Translation updater bot edb2de50fc Localisation updates from https://translatewiki.net.
Change-Id: I6e5fc5e91c69ae2e7cef4ab01ee30fbbfa8a2b24
2018-07-19 22:15:02 +02:00
Stephen Niedzielski 749ccf22c2 Hygiene: move JSDoc and SVGO to devDependencies
JSDoc and SVGO are development-time-only dependencies. Move them from
package dependencies to devDependencies.

Change-Id: Ifd955b84bb041c3f02cf3e6938f73ee718ea34a7
2018-07-19 08:10:56 -05:00
jenkins-bot d763602ce5 Merge "Update: page issue icons" 2018-07-19 12:25:20 +00:00
Translation updater bot 4192d67439 Localisation updates from https://translatewiki.net.
Change-Id: I9d18ee344957313171eaa95979d33f93cfde6c07
2018-07-18 21:59:26 +02:00
jenkins-bot 35f2fc515f Merge "Replace foundationwiki url" 2018-07-18 07:30:33 +00:00
Stephen Niedzielski d2f6c38fe7 Update: page issue icons
- Fix a bug where the all issues endpoint would incorrectly collect
  issues from all sections.

- Update the page issue iconography. This increases the size of the
  delivered code and images by 1743 B minified uncompressed according to
  mw.inspect() (from 16.4 KiB to 18.1 KiB).

- Add support for identifying page issue severity based on template CSS
  classes.

- For multiple issues templates, show the highest priority icon.

Bug: T191528
Change-Id: Ie0a4c83ec7cfb856ec581d058797109746e3cb99
2018-07-17 15:54:17 -05:00
Reedy 7db16b308d Replace foundationwiki url
Bug: T199812
Change-Id: Iec87e90ed3dd058a2b06b87278793dab5c16c0c9
2018-07-17 20:39:19 +00:00
Translation updater bot b515ad47bf Localisation updates from https://translatewiki.net.
Change-Id: I45dea2a0bb23f02c4593b12334fa9f90a8132a83
2018-07-17 22:00:38 +02:00
jdlrobson 99bc9d8c55 Enforce lowercase jsdoc types
Follow up to I6cbac15940e4501aee7ede8f421b77ffd027170d

Change-Id: I22bcbf1f083451a0f68b692b9a0acc716d11c62c
2018-07-17 08:06:35 -05:00
Translation updater bot cedaa3a22c Localisation updates from https://translatewiki.net.
Change-Id: I306c71e24f5c6e7478b6efcbfff969847e01a8e6
2018-07-16 22:02:44 +02:00
Translation updater bot bd0f0ce540 Localisation updates from https://translatewiki.net.
Change-Id: I7ebf8a185e0cf45ce9dffa338a573e67362b0bcc
2018-07-15 21:57:29 +02:00
Translation updater bot 4dc9b28a92 Localisation updates from https://translatewiki.net.
Change-Id: Id5856e553bcab65320d781e16b26025a265959f0
2018-07-14 22:03:16 +02:00
Translation updater bot b5bc3b00e1 Localisation updates from https://translatewiki.net.
Change-Id: Ieca26e38116fe59cbb3bb280abb33c004da69047
2018-07-13 22:04:23 +02:00
jenkins-bot 6c981fa4f8 Merge "Section issues overlay has different heading" 2018-07-13 12:46:20 +00:00
jdlrobson dfc29032b5 Section issues overlay has different heading
Per https://phabricator.wikimedia.org/T197932#4417319
Note that given talk/category overlay does not use or
display section issues, to simplify things any section other
than 0 or all will use this heading.

Bug: T197932
Change-Id: I737fb07aaadcea7772d0b08f8b0652dcf2f4623d
2018-07-12 15:07:22 -07:00
Translation updater bot ecc0edd718 Localisation updates from https://translatewiki.net.
Change-Id: I5bf368993b7610b356d70e989ea953117395da4e
2018-07-12 22:19:27 +02:00
Stephen Niedzielski 10024b641e Hygiene: fix DownloadIcon function typing
Change-Id: I421332acae4ace9d0bb7cfcd4b31d9f4581c3e34
2018-07-11 13:39:55 -05:00
jenkins-bot d2b1771f13 Merge "Tie issues to sections" 2018-07-11 17:33:37 +00:00