Commit graph

4208 commits

Author SHA1 Message Date
Stephane Bisson dd77a46c1b MentionStatus: prefer failure-type
In MentionStatusPresentationModel, prefer
extra['failure-type'] to event-type to determine
why the mention was not sent.

Bug: T144614
Change-Id: Id3b55e15a0c1a8f3fee19cbe07983c6e373b309e
2017-04-20 12:21:02 -04:00
Gergő Tisza 39ba452b32 Switch TestingAccessWrapper to librarized version
Bug: T163434
Change-Id: Ib5aeffb793cfd84201ca397a96689e0b81f3265f
Depends-On: I52cc257e593da3d6c3b01a909e554a950225aec8
2017-04-20 11:34:57 +00:00
Translation updater bot 2905fced31 Localisation updates from https://translatewiki.net.
Change-Id: Idfe3292a5bcbc42e87c8f027909ca5f034da27a0
2017-04-19 22:56:23 +02:00
Bartosz Dziewoński 0d23ba8bbe Fix browser tests
Some browser tests were broken by 945fccf009.
The badge element is now technically rendered offscreen, with only the
:before and :after pseudoelements being onscreen. Because of this, Selenium
thinks that the badges are invisible, and this breaks various things in
totally unexpected ways.

* article_page.rb: Store references to the parent <li> elements of badges.
  This might not be necessary but I don't know how to access them otherwise.
* badge_steps.rb: When clicking the badges, click the parent <li> element
  rather than the not-really-invisible <a>. Effectively, the <a> gets
  clicked anyway, since they overlap.
* no_javascript.feature/no_javascript.rb: Wait for page load before
  checking that we're on the right page. The wait is no longer
  implicit, since Selenium thinks we're clicking the <li> rather than
  <a> (links are special-cased).
* notification_steps.rb:
  * Check whether the badges exist on the page, rather than whether they
    are visible.
  * Use a weird hack to read badge text. Apparently you can't read the text
    of elements that Selenium thinks are invisible.
    http://stackoverflow.com/questions/20888592/gettext-method-of-selenium-chrome-driver-sometimes-returns-an-empty-string

Bug: T161941
Change-Id: Ic6bcd1088249109e49a47cc9007e6ee002d3d8ba
2017-04-19 22:27:02 +02:00
Stephane Bisson c46d56b018 Special:Notifications show unread by default if there's unread notifications
Bug: T162927
Change-Id: Ibdfaca90803eb8b12b12eb1781b0692e7336b7d9
2017-04-19 15:20:12 -04:00
Translation updater bot 26a77aa7b6 Localisation updates from https://translatewiki.net.
Change-Id: I07e228735e1f9d08f1049eef396e8faeed547389
2017-04-18 22:28:48 +02:00
Elena Tonkovidova 286aeed94a Echo should notify user about mention on wikitext page
Bug: T146916
Change-Id: Id25dbc289fd3fe0fcb92bc4ec85f7851dc72026e
2017-04-18 16:53:18 +00:00
Elena Tonkovidova 69dd622894 Echo should notify a new user with welcome message
Bug: T146916
Change-Id: I5656286c91b2407a4d481531e563b41d245b5b14
2017-04-18 18:30:33 +02:00
Translation updater bot a89354808c Localisation updates from https://translatewiki.net.
Change-Id: I4e30ffc73c2a682bbd49d3bb530ab358f8c2c5ff
2017-04-15 10:47:17 +02:00
Moriel Schottlender ebbe2e81af Make date headings a proper semantic <h2> heading
To support accessibility, make sure the titles in Special:Notifications
are <h2> headings.

Bug: T149955
Change-Id: I4f15694efb04896e9bd7b026d297891047759644
2017-04-13 22:39:28 +00:00
Translation updater bot 6e593a9301 Localisation updates from https://translatewiki.net.
Change-Id: Ie7f7b2be502f7e3c7587b3036922790d5066f600
2017-04-12 22:31:13 +02:00
Translation updater bot 834a1bda69 Localisation updates from https://translatewiki.net.
Change-Id: Ie5a6c4fde2270579b5339adecd01511fdf4fc569
2017-04-11 22:49:44 +02:00
jenkins-bot 658b4a6a7d Merge "Add proper message when user group expiry is changed" 2017-04-11 18:35:20 +00:00
Translation updater bot 5569427822 Localisation updates from https://translatewiki.net.
Change-Id: Ife8f83596ebdba0ff8d258bfb2bf1a1d333dbb22
2017-04-10 22:47:52 +02:00
This, that and the other 3f99672d5e Add proper message when user group expiry is changed
There's a lot more that could be done to improve user "rights"
notifications (really user group notifications), but this will do for now.

Bug: T159301
Depends-On: I5d32445f8e5b41599889b8488a2431e7a908f858
Change-Id: I27d52bc5c39219c832bf63a491faa1e421b0c024
2017-04-10 11:38:49 -07:00
Translation updater bot db442a5a1b Localisation updates from https://translatewiki.net.
Change-Id: I1e29e7b3eb1c8b39a47a987a47dbad9090cbcad5
2017-04-07 22:33:04 +02:00
Translation updater bot 14d8ce2e35 Localisation updates from https://translatewiki.net.
Change-Id: Ib1232af480525ba7be7caa0b681bad5148a1ffcf
2017-04-06 23:42:13 +02:00
Translation updater bot 24f8f1519b Localisation updates from https://translatewiki.net.
Change-Id: I10ba6d39b0f4495853761fb690230ceba4ed376d
2017-04-05 22:34:08 +02:00
Translation updater bot 61b8b2a757 Localisation updates from https://translatewiki.net.
Change-Id: I84f9f3ad99635ae4e4f37f5b90e4a881f1c31f0f
2017-04-04 22:39:53 +02:00
jenkins-bot 4afba1b967 Merge "Revert "Do not use fancy styled badge on Modern and CologneBlue"" 2017-04-04 19:09:49 +00:00
Mooeypoo 84d34a3901 Revert "Do not use fancy styled badge on Modern and CologneBlue"
This reverts commit 08d224e955.

Causes bugs in Vector when displaying the badges.

Bug: T162173
Change-Id: I9e92c304b47ce9204d7a7d2fba67118e67b1bdc9
2017-04-04 18:40:09 +00:00
jenkins-bot d66341f83c Merge "Do not use fancy styled badge on Modern and CologneBlue" 2017-04-03 18:37:23 +00:00
Translation updater bot 0b19cc1233 Localisation updates from https://translatewiki.net.
Change-Id: Ib9eba20d2a2796ed6753a8b8b4ec8391edaa4284
2017-04-02 22:33:24 +02:00
Translation updater bot ee32f32abe Localisation updates from https://translatewiki.net.
Change-Id: Ib3f93b9997d6f81a38d2c2ff43be64503de62301
2017-04-01 22:42:33 +02:00
Bartosz Dziewoński 08d224e955 Do not use fancy styled badge on Modern and CologneBlue
Just show the textual "Alerts (1)" and "Notices (1)".

Updated NotificationBadgeWidget to use that internally as label,
same as the PHP-generated list item does after d4d325e7.

Bug: T141944
Change-Id: I468c67b0866530e21c9af32cd02816075a3693a1
2017-04-01 14:57:34 +02:00
jenkins-bot 85c9397bce Merge "Fire 'ext.echo.badge.countChange' after DOM changes" 2017-04-01 04:52:54 +00:00
Bartosz Dziewoński f0875de9f3 Stop badge hacks from messing up the entire page on IE 11 on MonoBook
Looks like we're hitting an edge case where positioning with negative
offsets inside an inline-block element results in incorrect rendering.
We're accidentally rendering an invisible overlay over nearly the
entire page. Twiddle the styles until we no longer hit that case.

Minimal example of the IE 11 bug: https://jsfiddle.net/50v6m0kb/3/

Bug: T161869
Change-Id: Id4b6ccc1ec6a11b455d6ab45c5aaa0e8544385f7
2017-03-31 20:41:00 +02:00
Moriel Schottlender 5c35535f36 Fire 'ext.echo.badge.countChange' after DOM changes
The event should fire after the count actually changes in the
DOM as well as the internal workings of Echo.

Change-Id: I03f1742b209305080af8784632f07dff63135d81
2017-03-30 15:22:02 -07:00
L10n-bot 15c0a409a1 Merge "Localisation updates from https://translatewiki.net." 2017-03-30 20:52:34 +00:00
Translation updater bot 9777937ab8 Localisation updates from https://translatewiki.net.
Change-Id: I704f44c729dbfbfe2693afdbc8d2bc8c4a8d8f8a
2017-03-30 22:52:27 +02:00
Chad Horohoe f4a5ad9300 LoggerFactory is now namespaced, reference it properly
Bug: T161837
Change-Id: Ide941dc019163ed09f208caa7a615d1e3483bc91
2017-03-30 12:35:47 -07:00
jenkins-bot ea942c6250 Merge "Fix JS error when closing notification popup while animating a moving notification" 2017-03-30 17:59:32 +00:00
Translation updater bot 498dd83c4a Localisation updates from https://translatewiki.net.
Change-Id: I8f16ac94fe94919380625c3757e17ef12626b4bb
2017-03-29 22:29:23 +02:00
jenkins-bot 2040c67254 Merge "Make the invisible text in badges really invisible" 2017-03-28 16:49:15 +00:00
Bartosz Dziewoński 945fccf009 Make the invisible text in badges really invisible
Bug: T161302
Change-Id: I5c7a5bcb7a096b69c28651c6fe1e4017654997ad
2017-03-28 18:26:26 +02:00
Roan Kattouw 089531c1e9 Fix JS error when closing notification popup while animating a moving notification
This failed because it tried to call .resetInitiallyUnseen()
on a ClonedNotificationItemWidget.

Change-Id: Ib675aecfb0d916bfb25f17ad738f3a493a49dd1b
2017-03-28 12:24:25 -04:00
Paladox ecae781538 Fix Illegal string offset 'ltr' in ResourceLoaderEchoImageModule.php
Make $paths an array.

@Krinkle came up with this fix. I just uploaded the patch.

Bug: T161420
Change-Id: I709808bfb0e620f7808175dc272fd57e88b663f5
2017-03-27 23:46:45 +00:00
Translation updater bot 7749ac4684 Localisation updates from https://translatewiki.net.
Change-Id: I8c9eb4536f6552652a934403506ab838cb6ba26d
2017-03-27 23:27:04 +02:00
Translation updater bot bc9f8d76bc Localisation updates from https://translatewiki.net.
Change-Id: I49f31a7936f13e4936a36a4ba9049641f9fe9607
2017-03-26 22:27:05 +02:00
Translation updater bot 13f76eb915 Localisation updates from https://translatewiki.net.
Change-Id: I89e885700a667c185260023f4eb26f98548c7749
2017-03-24 22:42:45 +01:00
Translation updater bot e0618c46d7 Localisation updates from https://translatewiki.net.
Change-Id: Iab28e5f0a408ee11a5aeddbbaf1289c3e28bc026
2017-03-23 22:42:20 +01:00
jenkins-bot 4655c59c5e Merge "Run MWEchoThankYouEditTest on clean DB tables" 2017-03-23 16:43:13 +00:00
jenkins-bot 7576f4cc01 Merge "Use tabs to indent in json" 2017-03-23 16:40:06 +00:00
Translation updater bot 5fb0982405 Localisation updates from https://translatewiki.net.
Change-Id: Iffcb71311b48b0125b2ef8f5ed971dc35f381d01
2017-03-22 22:48:13 +01:00
Umherirrender e064b7f1fc Use tabs to indent in json
Change-Id: I20811dc220cd020b1f795cad62d690f142b68643
2017-03-22 22:23:56 +01:00
Leszek Manicki e45705fd84 Run MWEchoThankYouEditTest on clean DB tables
Other tests (possibly from other enabled extensions) could also,
by chance, create Echo notifications for the user MWEchoThankYouEditTests
uses. In order to those tests be reliable, they should make sure
there is no notification data in the database prior to running tests.

Bug: T161087
Change-Id: I870a50b1f831795731235fa8ec97477b3e470b50
2017-03-22 16:32:49 -04:00
jenkins-bot 43851312a0 Merge "Simplify definition of 'ext.echo.badgeicons' module" 2017-03-22 00:47:51 +00:00
Translation updater bot 531b180241 Localisation updates from https://translatewiki.net.
Change-Id: Iab9bbb250c6eba50d3cceda9e4168d67cf46c7a0
2017-03-21 22:33:01 +01:00
Bartosz Dziewoński c39fffd82f Simplify definition of 'ext.echo.badgeicons' module
* The JSON file for the Apex theme was exactly identical to the
  MediaWiki theme. If the icons are the same, there's no need to
  duplicate it.
* Since we now only have one definition used for all themes,
  ResourceLoaderOOUIImageModule is overkill and we can use the
  slightly simpler ResourceLoaderImageModule.
* Remove "prefix": "oo-ui-icon" from the JSON file, since it is
  overridden in the module definition by "selectorWithoutVariant" and
  "selectorWithVariant".

Change-Id: I1d579873459e079369fd13350a9cb00939c2b76b
2017-03-21 20:33:10 +01:00
Translation updater bot d2b93f5624 Localisation updates from https://translatewiki.net.
Change-Id: Idf0ac24272289ecbe2130582eda0c3f1bc02b9a0
2017-03-19 22:24:12 +01:00