Kunal Mehta
40667ca7d4
EventPresentationModel: Add accessor for current user's username
...
Only to be used for GENDER purposes.
Bug: T118058
Change-Id: I5cf0563374ac1eaf934fecbf4bb68d35fa287edd
2015-11-12 14:34:24 -08: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
Kunal Mehta
fb56d61d68
Fix some phpdoc, add missing @throws
...
Change-Id: Iba072d64443ed9117233f591f1aea3cc6a4adc44
2015-11-12 14:10:52 -08:00
Translation updater bot
6185098c26
Localisation updates from https://translatewiki.net .
...
Change-Id: Ia1f33f7449061dfd13516bd9a6938ee6f78c5a0e
2015-11-12 22:59:02 +01:00
Kunal Mehta
c6d53ad8ed
Remove unncessary code from NotifUserTest
...
setMwGlobals() already restores global state upon teardown, so this
isn't necessary.
Change-Id: Ia2a2d7a8d3aa3c83443718d5bbf7e7ebd40af472
2015-11-12 11:27:36 -08:00
jenkins-bot
bacbd34a94
Merge "Don't export unused wgEchoOverlayConfiguration/wgEchoHelpPage JS variables"
2015-11-12 19:26:52 +00:00
Kunal Mehta
5114aa2c26
Remove unused NotifUser::getFormattedNotificationCount()
...
As of 0790125dd4
, this is unused.
Change-Id: I7d7080cd2c45c14a3fb59fc3b9d224fac8e55dd8
2015-11-12 11:21:56 -08:00
Kunal Mehta
0790125dd4
Don't export unused wgEchoOverlayConfiguration/wgEchoHelpPage JS variables
...
And make the if conditional a little easier to read: is logged in versus
not anonymous.
Change-Id: I76784b74caabd1ea0a5f0f506661a1682c865394
2015-11-12 10:42:54 -08:00
Translation updater bot
0896dfac1f
Localisation updates from https://translatewiki.net .
...
Change-Id: Ie42cd73989f9f2a8e45a83a17dc2ad5c988362c6
2015-11-11 21:53:05 +01:00
jenkins-bot
b46fcf57b3
Merge "Separate skin specific styles and improve Monobook appearance"
2015-11-11 02:18:59 +00:00
Ed Sanders
219b3d8b28
Separate skin specific styles and improve Monobook appearance
...
Bug: T112290
Change-Id: I1e73c92c69cf6df7c4d08b27a392f9c9bc19446f
2015-11-10 17:57:44 -08:00
Translation updater bot
8144d6d44e
Localisation updates from https://translatewiki.net .
...
Change-Id: I389952288252d4df169c0433e478d8f5dc58dfaa
2015-11-10 22:34:10 +01:00
Željko Filipin
00524cfebe
Added Rakefile
...
This is needed for our continuous integration.
Bug: T117993
Change-Id: I505de688e73488624cbecc5e644aa1b739ad1f23
2015-11-10 10:25:12 +00:00
Translation updater bot
51cf12ed8e
Localisation updates from https://translatewiki.net .
...
Change-Id: I92e0adc8a971e56cdaded587492c14d042866022
2015-11-09 21:45:16 +01:00
Paladox
a4bf773a49
Recurse into sub folders for jshint and jscs
...
Change-Id: I3799151bc4cf30f7bcb4bea2f860da9310959444
2015-11-09 12:52:42 +00:00
Translation updater bot
fb5089f612
Localisation updates from https://translatewiki.net .
...
Change-Id: I596d3c92f2ddc8bf3800de1851e214bc926975d2
2015-11-08 22:10:42 +01:00
Translation updater bot
2a7ad87e1c
Localisation updates from https://translatewiki.net .
...
Change-Id: I970b3870d1c9eff160ec4ad6ef40dcd0717faa10
2015-11-07 22:42:43 +01:00
jenkins-bot
a75919dde4
Merge "Implement SortedList in Echo notifications"
2015-11-07 01:11:54 +00:00
jenkins-bot
8a35b1b59b
Merge "Allow notification model and widget to show combined notifications"
2015-11-07 01:08:33 +00:00
jenkins-bot
03b7995d83
Merge "Initialize notifications model outside of the widget"
2015-11-07 01:08:07 +00:00
Translation updater bot
e7d03773ae
Localisation updates from https://translatewiki.net .
...
Change-Id: I030ee453ae72e0aec61c407e86590fc12dbbd32d
2015-11-06 22:25:17 +01:00
Moriel Schottlender
02530f19e1
Implement SortedList in Echo notifications
...
This is especially important for combined notifications and
notification lists from different sources; the model list should
be sorted to reflect items by timestamp and unread status.
Note: The dm.List and dm.SortedList now mirror the structures
OO.EmitterList and OO.SortedEmitterList that are awaiting to be
added for oojs in Ib94e4e4a49 and I3fd569691549 respectively.
Once those are available, the dm.List and dm.SortedList can
be removed, and the model can mixin OO.SortedEmitterList instead.
Change-Id: I97e1ecbe5dccc478be527a94f037500f78f74b14
2015-11-06 11:01:10 -08:00
Moriel Schottlender
f4deb6829c
Allow notification model and widget to show combined notifications
...
Make sure it's possible to create a combined notification widget
that features both alerts and messages.
Change-Id: I4b3f263039f54430a61acc1a261d8aca8e894a90
2015-11-06 18:50:06 +00:00
Moriel Schottlender
44c2afbfee
Initialize notifications model outside of the widget
...
Change-Id: I19c239326b04eaa07b62e0b06f181c86ff0a0ef8
2015-11-06 10:49:11 -08:00
jenkins-bot
1619c87109
Merge "Make EchoEvent::create() a no-op if the DB is read-only"
2015-11-06 18:22:24 +00:00
Translation updater bot
c43e52aaff
Localisation updates from https://translatewiki.net .
...
Change-Id: Ic2ee672ac64c45e6764bd3650a79767cb1409161
2015-11-05 21:42:51 +01:00
jenkins-bot
188310641a
Merge "Add an APIHandler to Echo notifications"
2015-11-05 19:57:43 +00:00
Moriel Schottlender
61f75f4c1e
Make 'x' button in notifications bigger
...
Bug: T112217
Change-Id: Id645a14406accb006736df038fab667cdd9aabd1
2015-11-05 19:44:24 +00:00
Moriel Schottlender
466858bbe8
Add an APIHandler to Echo notifications
...
This simplifies the operation of the API a bit, but more importantly
this will let us create a demo where we can manipulate the API result
and test various new notification formats while the work on the
backend API responses is ongoing, and also will allow us to have a
constant test for all notifications types, including backwards
compatibility.
Change-Id: I6081329a287cda4f5f1f1604ace5d04ff8d9fe3d
2015-11-05 10:50:03 -08:00
Stephane Bisson
7e1a6e7b6f
Output body in flyout
...
* Also rename getBodyText to getBodyMessage
since it returns a Message.
Change-Id: I2aad6f766407c13625b1c35df3ae209f75849970
2015-11-04 16:24:37 -05:00
Translation updater bot
ba86ffb623
Localisation updates from https://translatewiki.net .
...
Change-Id: Ice2660c4cb283eec384b74bb7bedfe9e18d25d34
2015-11-04 21:19:53 +01:00
jenkins-bot
bc4888169d
Merge "Add a presentation model for Echo "Welcome" notification"
2015-11-04 18:34:33 +00:00
Moriel Schottlender
c3787f4c51
Don't mark read notifications as unseen
...
If a notification is already read it is by definition seen. Don't
mark those as unseen. This can actually happen if our seenTime is
invalid (like a cache miss)
Change-Id: Id943691599116597b6c68d2cc40e7b89a25ce05e
2015-11-03 15:34:09 -08:00
Moriel Schottlender
c4ad851fc3
Prep for mobile rewrite in Echo
...
Fix event documentation and add mobile target for ext.echo.ui
Change-Id: I86131293ec83359fa2dc6eaccf35a2824e0cf051
2015-11-03 14:51:20 -08:00
Translation updater bot
4e64ea6a42
Localisation updates from https://translatewiki.net .
...
Change-Id: I6f7d7495e77963591146ff68f6457026b40b6316
2015-11-03 21:50:20 +01:00
Timo Tijhof
59e1be5af9
Migrate LocalCache from MapCacheLRU to HashBagOStuff
...
Depends on If39d72983 for HashBagOStuff::clear().
Change-Id: I90a03ea44430223ef420be9175bea9bcc8da8cf5
2015-11-03 06:49:50 +00:00
Timo Tijhof
b99048e9aa
LocalCache: Fix bad type hint of getTargets()
...
Change-Id: Ib05064b6d812b89948f7927caa6a6bf5634a6a08
2015-11-03 06:02:31 +00: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
Kunal Mehta
38e54e14fb
Allow notifications to not have a primary link
...
Because 'welcome' doesn't.
Returning `false` indicates that there is no link, and the
FlyoutFormatter was updated accordingly.
Change-Id: Ifd329b396f3361fc7c08c607a6407181ffdb8bf6
2015-11-02 15:55:17 -08:00
Translation updater bot
2b10ece420
Localisation updates from https://translatewiki.net .
...
Change-Id: I6052db71b0fe307cce8997214e5c8e0c1ed8a48d
2015-11-02 22:36:28 +01:00
Aaron Schulz
e261aa7593
Make EchoEvent::create() a no-op if the DB is read-only
...
This seems better for availability than stopping the world
and rolling everything back (or just throwing post-commit
errors that didn't stop the original change anyway).
Change-Id: I816b3cb5f0d26de608e620a01571a332aa832c05
2015-11-02 11:17:05 -08:00
Translation updater bot
f60eff1e66
Localisation updates from https://translatewiki.net .
...
Change-Id: Iaee36a109993e5aeaa567071f424bf03408859c3
2015-11-01 21:39:39 +01:00
Translation updater bot
357a8dd40f
Localisation updates from https://translatewiki.net .
...
Change-Id: I5a92fce5d3d72d3311329652a35d3c5134928eed
2015-10-31 21:05:33 +01:00
jenkins-bot
a306a2dcab
Merge "IDatabase::delete() does not take a fourth parameter"
2015-10-31 02:21:25 +00:00
Translation updater bot
cf0d71ff7f
Localisation updates from https://translatewiki.net .
...
Change-Id: I4a2a46f090acee50747be19b78cc152a6e078b7a
2015-10-30 21:47:59 +01:00
Kunal Mehta
558cc64bc2
IDatabase::delete() does not take a fourth parameter
...
And don't use the deprecated getDB() function.
Change-Id: I824fb1e69262298d6b76fb22b499d961c1189f98
2015-10-30 10:49:59 -07:00
Kunal Mehta
74b50cad30
Move some boilerplate code into EchoEventFormatter
...
The conversion of EchoEvent into a EchoEventPresentationModel is now
done by EchoFlyoutFormatter, instead of having each subclass do it. It
also does the canRender() check so subclasses don't need to worry about
it.
The subclasses no longer have access to the underlying EchoEvent object,
so the timestamp is exposed in EchoEventPresentationModel.
Change-Id: I7f0a650373eebac7aa2231b1795b51a6d031ad67
2015-10-29 21:22:54 +00:00
Translation updater bot
a1282bcec0
Localisation updates from https://translatewiki.net .
...
Change-Id: I257b549ea4d8b6ea639dfdce463921c47a579d25
2015-10-29 21:23:34 +01:00
Kunal Mehta
94004aeda5
Re-enable presentation model for mentions
...
T116888 has been resolved.
Change-Id: I5380d06252878b8808e4c81e12de05145a3f992c
2015-10-29 10:52:04 -07:00
jenkins-bot
5b74ffce63
Merge "build: Enable phpcs rule 'MediaWiki.VariableAnalysis.UnusedGlobalVariables' and make pass"
2015-10-29 17:40:49 +00:00