2014-02-17 16:00:19 -08:00
|
|
|
<?php
|
|
|
|
|
2014-07-23 10:03:09 +10:00
|
|
|
final class PhabricatorNotificationsApplication extends PhabricatorApplication {
|
2014-02-17 16:00:19 -08:00
|
|
|
|
2014-07-23 08:15:44 -07:00
|
|
|
public function getName() {
|
|
|
|
return pht('Notifications');
|
|
|
|
}
|
|
|
|
|
2014-02-17 16:00:19 -08:00
|
|
|
public function getBaseURI() {
|
|
|
|
return '/notification/';
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getShortDescription() {
|
2014-05-29 12:17:54 -07:00
|
|
|
return pht('Real-Time Updates and Alerts');
|
2014-02-17 16:00:19 -08:00
|
|
|
}
|
|
|
|
|
2016-01-28 08:40:22 -08:00
|
|
|
public function getIcon() {
|
2015-01-24 23:41:43 -08:00
|
|
|
return 'fa-bell';
|
|
|
|
}
|
|
|
|
|
2014-02-17 16:00:19 -08:00
|
|
|
public function getRoutes() {
|
|
|
|
return array(
|
|
|
|
'/notification/' => array(
|
2014-08-16 11:14:32 -07:00
|
|
|
'(?:query/(?P<queryKey>[^/]+)/)?'
|
2014-02-17 16:00:19 -08:00
|
|
|
=> 'PhabricatorNotificationListController',
|
|
|
|
'panel/' => 'PhabricatorNotificationPanelController',
|
|
|
|
'individual/' => 'PhabricatorNotificationIndividualController',
|
|
|
|
'clear/' => 'PhabricatorNotificationClearController',
|
2014-02-17 16:00:33 -08:00
|
|
|
'test/' => 'PhabricatorNotificationTestController',
|
2014-02-17 16:00:19 -08:00
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
(Redesign) Clean up older "Tile" code
Summary:
This does some backend cleanup of the tile stuff, and some general cleanup of other application things:
- Users who haven't customized preferences get a small, specific set of pinned applications: Differential, Maniphest, Diffusion, Audit, Phriction, Projects (and, for administrators, Auth, Config and People).
- Old tile size methods are replaced with `isPinnnedByDefault()`.
- Shortened some short descriptions.
- `shouldAppearInLaunchView()` replaced by less ambiguous `isLaunchable()`.
- Added a marker for third-party / extension applications.
Test Plan: Faked away my preferences and viewed the home page, saw a smaller set of default pins.
Reviewers: chad
Reviewed By: chad
Subscribers: epriestley
Differential Revision: https://secure.phabricator.com/D9358
2014-06-03 15:47:27 -07:00
|
|
|
public function isLaunchable() {
|
2014-02-17 16:00:19 -08:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|