Commit graph

60 commits

Author SHA1 Message Date
Translation updater bot 0a6caeaeec Localisation updates from https://translatewiki.net.
Change-Id: I4ffc9aa958416e062fe2d5424fa8f102b4119b04
2016-01-01 20:01:14 +01:00
Translation updater bot 34b3732fb3 Localisation updates from https://translatewiki.net.
Change-Id: I69470e6987467de57e34db8c419744b76c57e53c
2015-12-30 21:41:22 +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
jenkins-bot 6163c77972 Merge "Remove link from mention notification header" 2015-12-19 10:14:28 +00:00
Brad Jorsch d17e9d9331 Add missing i18n message
Change-Id: If2694de72a62e46cfdc29401c4d2d3756897c998
2015-12-18 12:28:07 -05: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 f6553bf0c6 Localisation updates from https://translatewiki.net.
Change-Id: I5cece879ea7ef919baf22eeab7be64033e5949ce
2015-12-16 22:34:41 +01:00
jenkins-bot 4c0ca5d78b Merge "Add OOUI widgets for cross-wiki bundled notifications" 2015-12-15 20:30:08 +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
Translation updater bot edb8320d7e Localisation updates from https://translatewiki.net.
Change-Id: Ia9bc78e94fc735e2f7077da0f6bad2b8182ed9cc
2015-12-13 22:17:21 +01:00
Translation updater bot 4a2c663867 Localisation updates from https://translatewiki.net.
Change-Id: I67ba3992e6dfee892a48973d3e2f00ca3ae7dfcc
2015-12-10 22:53:35 +01:00
Stephane Bisson 04d4da2783 Presentation model for edit-user-talk
Bug: T116843
Change-Id: Ia11f5b57747ed0be5d4b00c75925d5fcdde87c43
2015-12-09 13:35:10 -05:00
jenkins-bot 47fd3b5896 Merge "Presentation model for page-linked" 2015-12-09 18:02:15 +00:00
Translation updater bot 02ec5fe213 Localisation updates from https://translatewiki.net.
Change-Id: I6c6dd3b4e4640fe91fa310e3de04f73875ce45bf
2015-12-08 22:22:27 +01:00
mhutti1 ea64fe4770 Redirect anonymous user to login page from Special:Notifications
Added code to redirect the user and display a short message informing
them of the need to login.

Bug: T118873
Change-Id: I2145bc1502dbd19d660302d9f19e0d4a2ad5ad50
2015-12-08 11:55:15 -08:00
Stephane Bisson a9f307ceab Presentation model for page-linked
Bug: T116843
Change-Id: Id9894b98a0dd7554a529ff763aaf0f719e36152b
2015-12-08 14:02:19 -05:00
Stephane Bisson 14b842bd34 Add gender support for the viewing user for mention notification
Bug: T119321
Change-Id: I1cd7caa7bfe811bab89a0c6950c1aeaf1739aac6
2015-12-04 16:53:11 -05:00
jenkins-bot 904e1e5a8c Merge "Presentation model for reverted" 2015-11-19 00:55:46 +00:00
Stephane Bisson 44149b6cbd Presentation model for email-user
Bug: T116843
Change-Id: I99e790d72c7c534665d1d86c38459c5d0e60b91b
2015-11-17 12:44:45 -05:00
Stephane Bisson 3fa832c6c7 Presentation model for reverted
Bug: T116843
Change-Id: Ide03220ad8ad621b5943e36d71e484a21bc8a65b
2015-11-17 10:19:15 -05:00
Kunal Mehta 8145cd1425 Remove old, now unused mention flyout messages
These are no longer used in the interface, 'notification-header-mention'
and 'notification-header-mention-nosection' are used instead.

Change-Id: I08ffe47cf7932637b77f43f6ec374272b5e3ca3e
2015-11-16 15:49:44 -08:00
Translation updater bot a070d2ccae Localisation updates from https://translatewiki.net.
Change-Id: Ie6358999cbb818c35f097a9f8789568605e092a1
2015-11-14 22:16:20 +01:00
Kunal Mehta 0a0a62e3c3 Allow welcome notifications to have a primary link
Wikis can customize the 'notification-welcome-link' to a page title
(like "Project:Welcome" for example) and the "Welcome!" notification new
users receive will have a primary link to that page.

Bug: T117509
Change-Id: I29f6d69db480fa7d39573941e762c4dad8737ed0
2015-11-12 14:30:51 -08:00
Moriel Schottlender 88b558f44d Add a presentation model for Echo "Welcome" notification
Bug: T116843
Change-Id: Ia43ce2c467873390c2b36439af1db8932708cda9
2015-11-02 16:02:06 -08:00
Translation updater bot 7083c0ebfa Localisation updates from https://translatewiki.net.
Change-Id: I35b9f14b1f756c280eaab50e241a09b558789d9f
2015-10-25 22:03:52 +01:00
Kunal Mehta 56c4b95087 Clean up and refactor formatting system
The workflow to format a notification is
* Get EchoEvent, User, and Language
* Get EchoEventFormatter implementation for notification type
** EchoEventFormatter returns structured data about each part of the
notification (header, body, primary link, secondary link(s))
* Each output type will have a formatter class (e.g.
EchoSpecialNotificationsFormatter, EchoPlainTextEmailFormatter) which
takes a EchoEventPresentationModel and generates whatever it wants
(HTML, plain-text email, etc).

Included is an example conversion of the user-rights and mention
formatters. The previous infrastructure will remain in place for
backwards compatability until other extensions can be updated.

Bug: T107823
Change-Id: I4397872a7ec062148dfcb066ddd8ab83f40486ac
2015-10-19 10:00:23 -07:00
jenkins-bot d248a13f69 Merge "Add an emailuser web notification" 2015-09-22 00:03:44 +00:00
umherirrender 07761b632e Add an emailuser web notification
When an user sent an email to another user with [[Special:Emailuser]] or
action=emailuser, give an echo for the target user to be lookup in his
mailbox.
This option is off by default. It is only useful as web notification,
because an email notification would go to the same address.

Bug: T56130
Change-Id: Ie279457daf51e1c34c998197ce9e76c78ee705e4
2015-09-22 01:58:17 +02:00
jenkins-bot 26d4552df1 Merge "IP addresses should link to Special:Contributions instead of user page for revert" 2015-09-20 20:01:37 +00:00
Alangi Derick ba4789760c IP addresses should link to Special:Contributions instead of user page for revert
This changes the revert notification (special page version) to link
to the contributions page for anonymous (logged out) editors.
It still links to the user page for logged in editors.

Bug: T55564
Change-Id: Ib1f17fb88237b96cda63dd30ed488a8ffd84750e
2015-09-20 15:53:10 -04:00
Moriel Schottlender 5e8e18ee48 Show a default message if no notifications are available
Bug: T112251
Change-Id: Ia17c50a11ea0a49041795332ba79bd3cbda5b548
2015-09-17 16:25:54 -07:00
Moriel Schottlender fd0aed5ae4 Handle API fetching errors
Bug: T112251
Change-Id: Ifb9c63cd056b0cc0e7076c73e98155cef445038f
2015-09-17 15:03:28 -07:00
Moriel Schottlender 73e3ed3717 Add a tooltip to the notification badges
Since the nojs "base" version uses the automatic title creation
of the personal tools, the message keys were adjusted accordingly,
and the old unified message was removed.

Bug: T108190
Change-Id: I1f242f530aa68562aa4dc885156586c22c4df618
2015-09-08 14:03:34 -07:00
Translation updater bot d747263f2d Localisation updates from https://translatewiki.net.
Change-Id: I14b40436e30331bcc6e4a3b1874a8e2bc3dc5dbe
2015-09-04 21:49:08 +02:00
Moriel Schottlender e650df6644 Separate 'seen time' for alerts and messages
Bug: T111285
Change-Id: I277f94ae705d3323ac8612111d7fd704b36793cb
2015-09-03 13:14:15 -07:00
Kunal Mehta 4d8b977ff9 Get rid of disabled 'echo-notify-show-link' preference
This preference has been disabled since bug 47562, and doesn't make
sense to keep around given that the flyout is the main interaction most
users have with Echo.

Change-Id: I7e8ddf96dbde9a95ac01a0cc83bad396151d01bd
2015-07-07 17:10:49 -07:00
Kunal Mehta 23f877fe76 Remove unused 'echo-error-preference' and 'echo-error-token' messages
They stopped being used in 08fc83b6de.

Change-Id: I439d15e6c894b7358ee8add0d9c882eb791909c4
2015-06-24 09:41:20 -07:00
Matthias Mullie da07893647 Display red badge based on time of notifications vs last time panel was opened
I tried to stick as close to the existing code as possible.

Special:Notifications is slightly different from the overlay,
however. I made it add .mw-echo-unread class for consistency,
but that JS doesn't record seen time (it only loads older
entries), not does the CSS fadeout apply there (it marks
everything as read as soon as it's displayed, so different
behavior from overlay)

PS: I'm not sure about browser compat for the fadeout. But
even if some obscure browsers don't support this, meh. It's
not an "important" feature that can't be missed.

Bug: T94634
Change-Id: Ibb201823fb52ef8a3d5eaa39b0b724ede8d271d1
2015-05-01 11:39:45 -07:00
Translation updater bot a83449d9cd Localisation updates from https://translatewiki.net.
Change-Id: Iace22c16736d5d07031b1e4baec8de39412c46e7
2015-03-23 21:50:39 +01:00
Translation updater bot 943ad13048 Localisation updates from https://translatewiki.net.
Change-Id: I8d188118bd667c5617038b89b6ba3895c8f194a1
2015-03-14 21:32:55 +01:00
Matthias Mullie f048d248bd Clarify alert/messages meaning
Bug: T72255
Change-Id: I2dde0c2e2c7bbd89f11112ceb738b19a49fda21b
2014-12-16 14:27:10 +01:00
Translation updater bot 495bb34be0 Localisation updates from https://translatewiki.net.
Change-Id: I98c874bb95c903fda8eedd1be6c4b7df3371f034
2014-11-25 21:48:38 +01:00
Translation updater bot 32ff462db3 Localisation updates from https://translatewiki.net.
Change-Id: Ica057e02ddcc46c5ed58a0545929dbab5046a15b
2014-11-06 21:49:38 +01:00
Brad Jorsch 09c881e1a0 Add i18n for API module help
MediaWiki core change I04b1a384 added support for i18n of API module
help. This takes advantage of that while still maintaining backwards
compatibility with earlier versions of MediaWiki.

Once support for MediaWiki before 1.25 is dropped, the methods marked
deprecated in this patch may be removed.

Change-Id: I67395aff48185f3e09da31b51a08aa2541fe6a17
2014-10-29 16:37:38 -04:00
Translation updater bot c7b9326633 Localisation updates from https://translatewiki.net.
Change-Id: Iea5a32c6739cff8bae15e99f155ec113872d893e
2014-10-22 22:02:23 +02:00
Translation updater bot 2909923b7e Localisation updates from https://translatewiki.net.
Change-Id: I669e3049416317430a4047dc2f834cccf7b38b01
2014-09-11 23:56:18 +02:00
bsitu 75d5c9b9a3 Remove (X) next to Alerts/Messages if there is one section
Change-Id: Ibf66328e31bfefb3d588196c3f4babfa65bb52f3
Eg: Alerts(X) becomes Alerts
2014-09-09 11:12:38 -07:00
Translation updater bot b89163bbfd Localisation updates from https://translatewiki.net.
Change-Id: I681e050ecb04cc85dae46b0715edf096e9a72615
2014-09-07 21:59:02 +02:00
Translation updater bot 15d75c4cdb Localisation updates from https://translatewiki.net.
Change-Id: Ie90d4c91f61c667d76bf992d5f09aa4aee792a30
2014-08-23 21:53:16 +02:00
Translation updater bot 1242f6ec12 Localisation updates from https://translatewiki.net.
Change-Id: I81dfe6ab41bf2291cd2ec89a43babda8e980e5d2
2014-08-18 22:38:11 +02:00