Commit graph

2504 commits

Author SHA1 Message Date
jenkins-bot 4233f09bf2 Merge "Only update seenTime in the local API" 2016-01-11 21:57:14 +00:00
Translation updater bot 40f85255c4 Localisation updates from https://translatewiki.net.
Change-Id: Ie8cb878b333c06b7de12d7e9afd841e2c6bdab95
2016-01-11 22:50:38 +01:00
jenkins-bot e38115fd69 Merge "Don't parse wikitext in edit-user-talk snippets" 2016-01-11 18:47:31 +00:00
Stephane Bisson abf0b86683 Replace 'a message' with 'messages' in 'notification-bundle-header-edit-user-talk'
Bug: T121328
Change-Id: I94382523bd214c4e3ce7021b14e413cedc7b17ca
2016-01-11 09:06:57 -08:00
Translation updater bot d2a2190681 Localisation updates from https://translatewiki.net.
Change-Id: Id9c787be45b7d9091c56869c67f25a3d412e4a20
2016-01-10 23:11:09 +01:00
Translation updater bot 39cfb32977 Localisation updates from https://translatewiki.net.
Change-Id: Ibc5c92677c27970ecec2f3a6983eef14c80ab9c9
2016-01-08 22:18:02 +01:00
Kunal Mehta 7f0dafbe73 Don't parse wikitext in edit-user-talk snippets
Bug: T121994
Change-Id: I427def99f2773896feabaf6202e7f4eecd850be1
2016-01-08 09:22:20 -08:00
Translation updater bot 01ef6ee342 Localisation updates from https://translatewiki.net.
Change-Id: Iacfa2eb0696ea600be0e3d06b6f9980c308cc6dd
2016-01-07 23:35:07 +01:00
Translation updater bot e3cf5a44ec Localisation updates from https://translatewiki.net.
Change-Id: I12da0d15493394aa6f8b6909c64198b876467d88
2016-01-05 22:27:46 +01:00
Kunal Mehta c07236a121 build: Updating development dependencies
* jakub-onderka/php-parallel-lint: 0.9 → 0.9.2

Change-Id: I8dea1aa0be23a7de6e784ed4fd60397b7294f0ea
2016-01-05 10:34:05 -08:00
Translation updater bot 4b0869b894 Localisation updates from https://translatewiki.net.
Change-Id: I957b1b4f08261f883a1e89a92f5124da047679eb
2016-01-04 22:35:48 +01:00
Kunal Mehta 95cbd5de30 build: Updating development dependencies
* mediawiki/mediawiki-codesniffer: 0.5.0 → 0.5.1

Change-Id: I46a926adc0b2d00058ef732bd39037a46e89ebf2
2016-01-03 18:47:18 -08:00
Translation updater bot fa402885cb Localisation updates from https://translatewiki.net.
Change-Id: If860d572f7070503ea9b0abb08fabc3306907bb2
2016-01-03 21:41:09 +01:00
Translation updater bot 0a6caeaeec Localisation updates from https://translatewiki.net.
Change-Id: I4ffc9aa958416e062fe2d5424fa8f102b4119b04
2016-01-01 20:01:14 +01:00
Aaron Schulz 576303e03a Use Maintenance DB transaction methods
Change-Id: I0acde61f57240c95d8f2b8afd55bffbe7b5b98fb
2015-12-31 15:12:05 -08:00
Translation updater bot 34b3732fb3 Localisation updates from https://translatewiki.net.
Change-Id: I69470e6987467de57e34db8c419744b76c57e53c
2015-12-30 21:41:22 +01:00
Kunal Mehta 8c0772c94b build: Updating development dependencies
* grunt-jsonlint: 1.0.6 → 1.0.7

Change-Id: I7ad87b06bd568e1b125fa5ccbe8f0b846f572f25
2015-12-29 11:23:54 -08:00
Translation updater bot cabf3452b1 Localisation updates from https://translatewiki.net.
Change-Id: I8a7dc411fa97f9013b94a947b3f87ea77e371d46
2015-12-28 21:01:41 +01:00
Translation updater bot f452f01e75 Localisation updates from https://translatewiki.net.
Change-Id: I444948b1ebb45b10e102f6a7b80e8396f9d78730
2015-12-27 20:35:16 +01:00
Translation updater bot 0cc4e87268 Localisation updates from https://translatewiki.net.
Change-Id: Id1e0de1ba1a2ce704dd99072377a0bb0f502176d
2015-12-26 21:08:05 +01:00
Translation updater bot 8f2aaca89b Localisation updates from https://translatewiki.net.
Change-Id: I1ac7fa140c8e00643c1a2b5b12aae8599dbf80e2
2015-12-25 21:52:03 +01:00
Translation updater bot 0ea10e090d Localisation updates from https://translatewiki.net.
Change-Id: I306f19a60763c4c17a9efd9e2cc9243a53f6ff7e
2015-12-23 22:04:20 +01:00
jenkins-bot 97f64ee855 Merge "Display readable API error message" 2015-12-23 20:18:34 +00:00
jenkins-bot 564805f200 Merge "Add space between notification item buttons" 2015-12-23 20:16:47 +00:00
jenkins-bot 73ae7d8b39 Merge "Replace 'a message' with 'messages' in 'notification-edit-talk-page-bundle'" 2015-12-23 19:00:13 +00:00
jenkins-bot 1ca53fe96a Merge "Fix casing of Whatlinkshere in page-linked presentation model" 2015-12-23 18:54:17 +00:00
Stephane Bisson 1eccdbcb49 Fix casing of Whatlinkshere in page-linked presentation model
It generates an annoying orange notice.

Change-Id: Ia548cd08e66db8ab381052874f21ccc49fb03981
2015-12-23 13:04:38 -05:00
Moriel Schottlender c387ac2a63 Add space between notification item buttons
Bug: T121955
Change-Id: Ica5123193ee6fc5252e27cdf3214072c6b9c3624
2015-12-23 09:32:22 -08:00
jenkins-bot 7858d06537 Merge "Use UTC timestamps in flyout" 2015-12-23 15:48:16 +00:00
Stephane Bisson 8c653849c4 Replace 'a message' with 'messages' in 'notification-edit-talk-page-bundle'
Bug: T121328
Change-Id: Ib5dbfd64ce153d57dd8ea40dce5da6c89a5e5bff
2015-12-23 09:26:23 -05:00
jenkins-bot 34ab32507a Merge "Replace EchoBatchRowUpdate with BatchRowUpdate" 2015-12-22 23:32:42 +00:00
Translation updater bot cb25ad5452 Localisation updates from https://translatewiki.net.
Change-Id: I62409663d67291368af9c0b06aa7114262d13744
2015-12-22 22:09:06 +01:00
Moriel Schottlender 4b7520af90 Display readable API error message
If an error has occurred while fetching from the API, the
placeholder item should display the API error information.

If the error is specifically a login issue, a specific
error message is displayed.

Also, adjusted the mw.echo.ui.PlaceholderItemWidget to
accept a clickable link; when valid (currently only with
login error) the link is applied so the user can click
the notification and be taken to the login page.
For general notices (like API error or a general 'no
notifications found' message) the link does nothing.

Bug: T121923
Change-Id: I89a43c7c0eb2cf8e63d03704536e0938ab57dd4d
2015-12-22 10:34:01 -08:00
Matthias Mullie 089d922ac7 Use UTC timestamps in flyout
We already output unix timestamp both in user preference timezone as well as
utc, but we only had the user timezone version for TS_MW format.
While we could change the frontend to use the unix timestamp format, I don't see
any reason not to also include the MW format in utc. Frontend can now easily use
that.

Also fixed creation of the moment object. The timestamp was created as UTC, but
the way it got there was wrong: it expects the timezone offset (Z) to be
included in the timestamp, which is not the case (so it just ended up at +0:00,
which was fine, but confusing). I removed the 'Z' and forced it to be
interpreted as utc.

Bug: T121813
Change-Id: I09403615a1ffbde5dd69af9914afdbdd86cbfe4d
2015-12-22 17:07:31 +01:00
jenkins-bot fe9db1b78c Merge "Make notification body text lighter" 2015-12-22 14:50:33 +00:00
Moriel Schottlender a7aae23806 Remove read item from counter after it was actually marked as read
We removed the item first from the 'unread' counter and then told
the API to mark it as read. The API, however, wisely first checks
if there is anything *to* mark as read, but by that point, the
unread count is zero, so it gracefully refuses and returns an
empty resolved promise.

That is clearly not the way to go. Remove the read item from its
smart unread counter only **after** it was sent to the API to be
marked as read.

Note: We shouldn't wait for the API promise to resolve to remove
the item from the counter, but the API should run its preliminary
tests before the item is removed.

Bug: T122087
Change-Id: Ia5fc35c7435db8c4742238897da67681cee23c41
2015-12-21 15:13:29 -08:00
Translation updater bot 48ffc26ca6 Localisation updates from https://translatewiki.net.
Change-Id: I06bde33f1ba5d7e7beb24e809b4d2de9b7817fe4
2015-12-21 22:04:12 +01:00
Moriel Schottlender 3828f29160 Only update seenTime in the local API
Do not send an update to 'seenTime' to remote wikis; only update
the items that are in the local API.

Bug: T121928
Change-Id: I291ecdb53364327dbdcb769c0d93512eeed3ab29
2015-12-21 10:49:11 -08:00
Translation updater bot 306c597be9 Localisation updates from https://translatewiki.net.
Change-Id: If458709e573667b9cb797ed745e48f6f81afff8a
2015-12-20 22:33:07 +01:00
jenkins-bot 60cd07bbd3 Merge "Add mw-echo-payload class to body in Special:Notifications as well" 2015-12-19 10:16:21 +00:00
jenkins-bot 6163c77972 Merge "Remove link from mention notification header" 2015-12-19 10:14:28 +00:00
Translation updater bot c8b1ff3ead Localisation updates from https://translatewiki.net.
Change-Id: Ifa2a9f70594bade6f466be240905cbec54942ebd
2015-12-18 23:35:44 +01:00
Roan Kattouw 88d6f01c33 Make notification body text lighter
Use #888 instead of #666 to match secondary link text
(which is #000 with 50% opacity), both in the flyout and
on the special page.

Bonus: use LESS variables for these colors.

Change-Id: Ifc1182a001e9b25f6ff7c213b6fcde3dc2f0acd2
2015-12-18 13:13:22 -08:00
Roan Kattouw aef3050207 Add mw-echo-payload class to body in Special:Notifications as well
This was already done earlier in the old flyout formatter.

Change-Id: I3b4029de4c76910e139d02c9b93cf50e0fac0236
2015-12-18 12:56:32 -08:00
Brad Jorsch d17e9d9331 Add missing i18n message
Change-Id: If2694de72a62e46cfdc29401c4d2d3756897c998
2015-12-18 12:28:07 -05:00
jenkins-bot 68b755466f Merge "Add a period at the end of notification-header-emailuser" 2015-12-18 14:17:15 +00:00
Roan Kattouw eefccecff5 Add a period at the end of notification-header-emailuser
All other notification messages end with a period.

Change-Id: If0aff1e25c45026966ebdcdc4f18f93c9593acb2
2015-12-17 17:13:25 -08:00
Roan Kattouw f52e653d5d Remove link from mention notification header
We're trying to get rid of links in notification
messages, and the link was redundant with the primary link
in both cases.

Change-Id: I69e888a355c263b5a8c5ca7a46430746895de44c
2015-12-17 15:01:01 -08:00
Translation updater bot e65650c6c5 Localisation updates from https://translatewiki.net.
Change-Id: Ic31ea3705c29aa81ea7dcbae95a399d67610310d
2015-12-17 22:42:56 +01:00
Justin Du d62649e62c Clarify link and revert icons on notifications
Bug: T121624
Change-Id: I0bd1121226b655f82d6a4d46e8c5547ef4726cc2
2015-12-17 20:04:33 +00:00