Commit graph

2999 commits

Author SHA1 Message Date
jenkins-bot ebe216e4c1 Merge "Never show a negative number in the notifications badge" 2016-04-11 08:47:33 +00:00
Kunal Mehta f35251fce6 Never show a negative number in the notifications badge
If we calculate a negative number should be shown, just show 0 instead.

Bug: T130853
Change-Id: I6e061525d034276cbb9e307eff53b77ddb06ef9a
2016-04-11 01:20:08 -07:00
Translation updater bot d51ac74ee8 Localisation updates from https://translatewiki.net.
Change-Id: I670eee76826ec0ea8f173c8508093a4094f470de
2016-04-10 20:00:07 +02:00
Matthew Flaschen 732c8496f0 Also show the survey tooltip on click
To implement this, use PopupButtonWidget and override to handle hover
in addition to click.

Bug: T128937
Change-Id: I79f5bb5839491516b0a3f77630b481cd6c2cc3da
2016-04-08 17:13:28 -07:00
Roan Kattouw a4ea2de123 FooterNoticeWidget: Set image height explicitly
If we don't do this, the footer becomes slightly taller
when the image loads, which makes the popup clip incorrectly.

Change-Id: Ica84d704692676d884b847f8fe01c49319f04931
2016-04-08 17:13:28 -07:00
Translation updater bot 1f7bb09607 Localisation updates from https://translatewiki.net.
Change-Id: Ied386fc9d28a3ea0afe538cdb1261b7b273479d4
2016-04-07 23:00:10 +02:00
jenkins-bot a61a83b3b1 Merge "Update notifications when reopening the popup" 2016-04-07 14:32:21 +00:00
Translation updater bot aea3a64972 Localisation updates from https://translatewiki.net.
Change-Id: I7b1e53149b3a7d372b70a84e6ca0a05601ab9336
2016-04-06 23:11:26 +02:00
Moriel Schottlender bdb50c7b60 Update notifications when reopening the popup
When reopening the popup, update the notification list to reflect
changes.

Bug: T127027
Change-Id: I6c3e948293b7c25cfab37f96b1faaca844014c28
2016-04-06 15:09:03 +00:00
Translation updater bot ee1347e88d Localisation updates from https://translatewiki.net.
Change-Id: Ia6a4ddda5640234e96db31aa5499bd9f5c20c91b
2016-04-05 22:55:36 +02:00
Translation updater bot 0518d8e15f Localisation updates from https://translatewiki.net.
Change-Id: Ieba2e906232a7e9b4f834c14074aefcd361d364e
2016-04-04 22:11:38 +02:00
Translation updater bot 1d59ff898c Localisation updates from https://translatewiki.net.
Change-Id: I0c34cac98328c8ea09828935cd282d2eafad8aba
2016-04-03 23:18:52 +02:00
Roan Kattouw a9c6515a4b Fix regression from 0fc63bde36: unbreak number formatting in short timestamps
We were using momentjs here before (causing bug T123845),
but we switched to using a hack for short timestamps.
This hack didn't call convertNumber(), so we stopped performing
number formatting for languages that don't use Western Arabic
numerals (0-9).

Strictly, that regression "fixed" T123845 because it caused
0-9 to be used in all cases, including the case that that bug
asked for. This patch fixes the regression but preserves the
desired behavior for arwiki, since convertNumber() respects
$wgTranslateNumerals.

Bug: T123845
Change-Id: Ic9acb12f534e0f049e22577afe276f8bf68f691d
2016-04-02 18:40:22 +03:00
jenkins-bot f082457d27 Merge "Revert "Add GENDER support to tooltip messages"" 2016-04-02 15:07:59 +00:00
Siebrand 543d75c472 Revert "Add GENDER support to tooltip messages"
There was no need to merge this, and I suggest it is reverted. Parameterless use of GENDER is supported
 already.

"{{GENDER:|male|female|other}}" will switch for the
current user.

This reverts commit c8b80f2003.

Change-Id: I15a0bd79abea9d9f0e9b0547c87e848ebf88b5de
2016-04-02 13:41:56 +00:00
jenkins-bot 31139295c6 Merge "Make foreign NotificationGroupItems aware of their section" 2016-04-02 08:57:11 +00:00
Translation updater bot 742ae77604 Localisation updates from https://translatewiki.net.
Change-Id: I63165a5c4a026ca0c89a11fc1117c579667386e6
2016-04-01 22:25:42 +02:00
Matthias Mullie f1c708ef9e Make foreign NotificationGroupItems aware of their section
This caused notifications on mobile to show notifications for
both alert|message, as the type was always "all".

Bug: T130801
Change-Id: Ice245eb407ca360d8e882c0ba48cb7b3e0ecb851
2016-04-01 15:38:22 +02:00
jenkins-bot 722f9f58a8 Merge "Remove unused icon files" 2016-04-01 11:15:53 +00:00
jenkins-bot e9de6bbc29 Merge "Add GENDER support to tooltip messages" 2016-04-01 09:58:38 +00:00
Justin Du c8b80f2003 Add GENDER support to tooltip messages
https://translatewiki.net/wiki/Thread:Support/About_MediaWiki:Echo-pref-tooltip-mention/es

Change-Id: I10228205785527b273c1fd06af85fcc26df9e583
2016-03-31 22:50:17 -05:00
Translation updater bot 8ee7fd9509 Localisation updates from https://translatewiki.net.
Change-Id: Ie1126ae5fc639c7ebbfb5bee9e47b39f65621240
2016-03-31 22:43:44 +02:00
Timo Tijhof 169a1d3561 Remove legacy qunit handling from Echo
* QUnit is now handled by MediaWiki core. For running QUnit from the command
  line. See: <https://www.mediawiki.org/wiki/Manual:JavaScript_unit_testing>
  Basically:
  > $ cd mediawiki-core && npm install && grunt qunit

  Similar to the PHPUnit entry point in core, it will also run tests
  for extensions enabled on the target wiki.

Bug: T129282
Bug: T131389
Change-Id: Iab4ebf2e61f5834cedc1b2656bd4487f6dcfeabd
2016-03-31 19:09:48 +00:00
Roan Kattouw c15cb2675f jscs: Enable checkRedundantParams and make pass
Change-Id: I3182708b5ab5b127b7e4a32d875d390485370816
2016-03-31 07:12:46 +00:00
Translation updater bot d424794b72 Merge "Localisation updates from https://translatewiki.net." 2016-03-30 20:44:39 +00:00
Translation updater bot f2ae13a472 Localisation updates from https://translatewiki.net.
Change-Id: Ie15adf807a4c11292e12e36c46ad696761c3d43f
2016-03-30 22:37:15 +02:00
jenkins-bot ffa21614c3 Merge "jscs: Enable checkRedundantReturns and make pass" 2016-03-30 20:36:27 +00:00
jenkins-bot 6e8e68d6ba Merge "RevertedPresentationModel: Don't double-parse summary" 2016-03-30 20:29:34 +00:00
Roan Kattouw 8b7e5dafe6 RevertedPresentationModel: Don't double-parse summary
formatSummary() was first parsing the summary using the
summary parser, then handing off the resulting HTML to
getTextSnippet() which parsed it again with the normal parser.

Bug: T131087
Change-Id: I2724ccb7c23579b3f02dea57d4fc833079169adf
2016-03-29 22:16:31 -04:00
jenkins-bot 2a280e0f71 Merge "Change threshold for survey invitation from 2 unread notifs to 1" 2016-03-30 00:51:10 +00:00
Roan Kattouw 8f01e880b6 Change threshold for survey invitation from 2 unread notifs to 1
Bug: T128937
Change-Id: I28d5d46a5ecd1c184269b7f8d3ba984bfedad77b
2016-03-29 17:25:40 -07:00
Translation updater bot f906069ad0 Localisation updates from https://translatewiki.net.
Change-Id: I2b42f9781f5852fdcd44109d16eef61ffd0fb041
2016-03-29 22:36:06 +02:00
jenkins-bot c57047b573 Merge "Change parameters for user survey footer message" 2016-03-28 21:07:09 +00:00
Moriel Schottlender e0ffd26c23 Change parameters for user survey footer message
Bug: T128937
Change-Id: Idd299293fad8264298174bc372318445cf26c4d3
2016-03-28 13:45:59 -07:00
Translation updater bot 277b66ef8c Localisation updates from https://translatewiki.net.
Change-Id: Ic31418c18ba5300a4b94d798227d94eff8eebe9d
2016-03-28 22:41:07 +02:00
Translation updater bot cdd0866f44 Localisation updates from https://translatewiki.net.
Change-Id: I9d4493c34062ebdb37d3b6414c2cb7333634de4c
2016-03-27 21:14:37 +02:00
jenkins-bot cd6f1b80ff Merge "Stop counting notifications objects on the client" 2016-03-25 20:45:44 +00:00
jenkins-bot d91612014a Merge "jscs: Enable checkParamNames and make pass" 2016-03-25 20:37:02 +00:00
Stephane Bisson 623d07011c Stop counting notifications objects on the client
The flyout loads no more than 25 notifications
from a given source. Using those in-memory notification
objects to count how many are currently unread (and
update the badge) produces a result of at most 25.

This patch extracts the responsibility or counting the
unread from the Model/Item/Groupitem structure into
a new UnreadNotificationCounter class. It receives
estimated updates from other components and synchronizes
with the server after markRead/markUnread operations
have completed.

Bug: T129726
Change-Id: I9af4defc00dd491ed2b355eb4e85073476e08ce7
2016-03-25 15:31:00 -04:00
jenkins-bot 9aa272b721 Merge "jscs: Add "checkTypes": "strictNativeCase" and make pass" 2016-03-25 19:27:26 +00:00
Roan Kattouw df8e97173f jscs: Enable checkRedundantReturns and make pass
Change-Id: I8013198fdb5852246a0f8360b931334740eaa147
2016-03-25 11:54:55 -07:00
Roan Kattouw ee7b10bf4b jscs: Enable checkParamNames and make pass
Change-Id: I50340b156b7c23483da1613eaabe8f40c559660a
2016-03-25 11:54:44 -07:00
Roan Kattouw 44a015970f jscs: Add "checkTypes": "strictNativeCase" and make pass
Change-Id: I4be0d72ba192f0b79a92f5efa2f5a16fb0f327b5
2016-03-25 11:47:00 -07:00
jenkins-bot d80cd6a673 Merge "Styling changes to the footer message" 2016-03-24 22:51:25 +00:00
Moriel Schottlender 2df435c1fb Styling changes to the footer message
Change-Id: Ie57c0f981671392b751a9774de7be6bb187de3b8
2016-03-24 15:42:10 -07:00
Translation updater bot fd1fa9b736 Localisation updates from https://translatewiki.net.
Change-Id: Idf4e9897596e730cea5745543e08681bdbda1541
2016-03-24 22:34:49 +01:00
Matthias Mullie 3641f7c79b Bundle memcached requests
Bug: T127687
Change-Id: I5ccb317d763b9757ba914830bc6dd5129dd5bd1c
2016-03-24 16:33:15 +01:00
jenkins-bot 61cc85e34a Merge "Let EchoUserNotificationGateway return a different notification count" 2016-03-24 01:12:33 +00:00
jenkins-bot 3a5d0ee405 Merge "build: Bump npm devDependencies to latest" 2016-03-24 01:12:30 +00:00
jenkins-bot 22958ab0d0 Merge "Apply text-decoration: none; on non-hover as well" 2016-03-24 01:04:00 +00:00