Commit graph

2476 commits

Author SHA1 Message Date
Stephane Bisson 421ba29a2f Add agent link to most notifications
Affected notifications are
  - edit-user-talk
  - email-user
  - mention
  - reverted
  - user-rights

Bug: T121737
Change-Id: I826cc6088b4f9c1aaef9e8adee0566d25982ed47
2016-01-11 14:34:39 -08: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
jenkins-bot 7858d06537 Merge "Use UTC timestamps in flyout" 2015-12-23 15:48:16 +00: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
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
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
Justin Du 889dcc6584 Use the double speech bubble icon in the Messages panel
Bug: T119377
Change-Id: Icc7d751ef307fab9f8914728aac229fa28f1a860
2015-12-16 18:02:48 -06:00
Translation updater bot f6553bf0c6 Localisation updates from https://translatewiki.net.
Change-Id: I5cece879ea7ef919baf22eeab7be64033e5949ce
2015-12-16 22:34:41 +01:00
jenkins-bot 0c249a23d9 Merge "Update mediawiki_selenium Ruby gem to the latest version" 2015-12-16 20:09:45 +00:00
jenkins-bot ea7e2f87b6 Merge "Use current (with keys) array format for primary & secondary links" 2015-12-16 18:49:07 +00:00
jenkins-bot d340ed2100 Merge "Add filter to ApiEchoNotifications" 2015-12-16 18:49:04 +00:00
Matthias Mullie 3f65ed519f Use current (with keys) array format for primary & secondary links
They're currently auto-converted to the new format, but ideally,
we wouldn't need that B/C code. And since this is the extension
others will likely look at for examples when implementing, we
should do it right here.

Also: there is no B/C correction for missing keys in secondary
links (description, icon).

Change-Id: If1a8b9911e81bb4c565f21a4b9e31fdc73426d93
2015-12-16 17:52:04 +01:00
Geoffrey Mon 13948c949f Replace EchoBatchRowUpdate with BatchRowUpdate
Also removes tests for the class.

Bug: T119253
Change-Id: I4c0d7187c2b847297dd0867faecba26185cfba37
Depends-On: Iccafbbdb06711463fee0f30a11326c7771df30e2
2015-12-16 16:36:59 +00:00
Željko Filipin a7a391c4d2 Update mediawiki_selenium Ruby gem to the latest version
Bug: T114241
Change-Id: I7056dd7113791ece87cecb968e60ee88969f6d1a
2015-12-16 16:39:54 +01:00
Translation updater bot ec2429dfbd Localisation updates from https://translatewiki.net.
Change-Id: I9f4d23279002d2e93533040579a5ffa485f2b0b8
2015-12-15 22:22:34 +01:00
jenkins-bot 4c0ca5d78b Merge "Add OOUI widgets for cross-wiki bundled notifications" 2015-12-15 20:30:08 +00:00
jenkins-bot 95290e8a4e Merge "Also support continuation requests for $unreadFirst" 2015-12-15 17:32:17 +00:00
Moriel Schottlender a4659baec5 Add OOUI widgets for cross-wiki bundled notifications
* Add the ability to use bundled expandable
  notification groups
* Display bundled cross-wiki notifications following
  the design

Bug: T115419
Bug: T115423
Bug: T115422
Change-Id: I8c3eba6d627c3f06d51d74fc9774e3fc2d02915d
2015-12-14 17:22:34 -08:00
jenkins-bot 78a28d6e5a Merge "Add missing @throws tag and change Exception subclass being thrown" 2015-12-14 21:48:01 +00:00
Translation updater bot 6488cd144e Localisation updates from https://translatewiki.net.
Change-Id: I669205750e9ae0755104951848e16eadea349257
2015-12-14 22:02:13 +01:00
Kunal Mehta 8ede0bf20d Add missing @throws tag and change Exception subclass being thrown
Change-Id: I39e3cdbdf4bddc12ca2d7d6a2696b92b8b7cbd10
2015-12-14 10:41:54 -08:00
Matthias Mullie f8a483d1f8 Add filter to ApiEchoNotifications
It lets you query for read/unread/all notifications.

Bug: T119890
Change-Id: I5d09b5ff9474c77577734e9ceb0bcbcad6c99c0c
2015-12-14 17:29:52 +01:00
jenkins-bot 7f44c242a0 Merge "Fix broken and incomplete PHPDoc tags" 2015-12-14 15:57:57 +00:00
Thiemo Mättig 66d5e17a25 Fix broken and incomplete PHPDoc tags
Change-Id: I0c8928a2dbf67cb15841fae6cc55c363357ec265
2015-12-14 11:03:09 +01:00
Thiemo Mättig 27e1a986da Fix visibility of setUp methods in tests
Change-Id: Ib1c425b9934a8325a4338f160aafcf17216aa250
2015-12-14 11:02:34 +01:00
Translation updater bot edb8320d7e Localisation updates from https://translatewiki.net.
Change-Id: Ia9bc78e94fc735e2f7077da0f6bad2b8182ed9cc
2015-12-13 22:17:21 +01:00
jenkins-bot 2603f1c30a Merge "Update grunt-jsonlint to 1.0.6" 2015-12-12 01:37:10 +00:00
Translation updater bot 45425782dd Localisation updates from https://translatewiki.net.
Change-Id: I8d302b17c697e57051f4351df485f646649addda
2015-12-11 23:49:15 +01:00
Kunal Mehta cfdc6cb3d0 Unbreak notformat=text|html in the API
Just pass any unknown formats through.

Change-Id: I156b49a959b5453cd37cd4c3d58652b5420132f3
2015-12-10 15:23:57 -08:00
Translation updater bot 4a2c663867 Localisation updates from https://translatewiki.net.
Change-Id: I67ba3992e6dfee892a48973d3e2f00ca3ae7dfcc
2015-12-10 22:53:35 +01:00
jenkins-bot b8bd7c80a8 Merge "Add support for cross-wiki notifications to Schema:EchoInteraction" 2015-12-10 19:27:30 +00:00
jenkins-bot ade37b5925 Merge "Share code between EchoNotificationMapper::fetchByUser & fetchUnreadByUser" 2015-12-10 19:16:17 +00:00
Kunal Mehta 479d7a2dd9 Add support for cross-wiki notifications to Schema:EchoInteraction
Adds support in the logger code that is unused for now.

Note that I9bf6f4bcd41d8da5 must be deployed before this can be used on
Wikimedia sites.

Bug: T120158
Change-Id: I1968f36e21139975d25231ac25c22a73dea6fd0d
2015-12-10 10:07:20 -08:00
Matthias Mullie 55cc28dd81 Also support continuation requests for $unreadFirst
Right now, it'll only respond a certain, fixed, amount,
not allowing you to paginate the list.

Note: haven't properly tested all possible cases yet!

Change-Id: I84761b13a1b9203cb8e3fcc80941d739cd28659f
2015-12-10 17:33:32 +01:00