@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Notifications - add a "Clear All Notifications" link to dropdown

Summary: Fixes T2576. Also hyperlinks "Notifications" and "Messages" for easier quick navigation to those areas. Maybe we could get rid of the "See All X" UI at the bottom and use these links?

Test Plan: cleared all notifications from new UI - it worked! observed new linked "Notifications" and "Messages" headers

Reviewers: chad, epriestley

Reviewed By: epriestley

Subscribers: epriestley, Korvin

Maniphest Tasks: T2576

Differential Revision: https://secure.phabricator.com/D8894

+35 -8
+5 -5
resources/celerity/map.php
··· 7 7 return array( 8 8 'names' => 9 9 array( 10 - 'core.pkg.css' => 'a762d94d', 10 + 'core.pkg.css' => 'b7ba02ba', 11 11 'core.pkg.js' => '417722ff', 12 12 'darkconsole.pkg.js' => 'ca8671ce', 13 13 'differential.pkg.css' => '8a064eb7', ··· 38 38 'rsrc/css/aphront/typeahead.css' => '271456a1', 39 39 'rsrc/css/application/auth/auth.css' => '1e655982', 40 40 'rsrc/css/application/base/main-menu-view.css' => '0a599177', 41 - 'rsrc/css/application/base/notification-menu.css' => 'fc9a363c', 41 + 'rsrc/css/application/base/notification-menu.css' => '99ffef72', 42 42 'rsrc/css/application/base/phabricator-application-launch-view.css' => 'd290ba21', 43 43 'rsrc/css/application/base/standard-page-view.css' => '517cdfb1', 44 44 'rsrc/css/application/chatlog/chatlog.css' => '852140ff', ··· 87 87 'rsrc/css/application/phrequent/phrequent.css' => 'ffc185ad', 88 88 'rsrc/css/application/phriction/phriction-document-css.css' => '7d7f0071', 89 89 'rsrc/css/application/policy/policy-edit.css' => '05cca26a', 90 - 'rsrc/css/application/policy/policy-transaction-detail.css' => '21b7daba', 90 + 'rsrc/css/application/policy/policy-transaction-detail.css' => '82100a43', 91 91 'rsrc/css/application/policy/policy.css' => '957ea14c', 92 92 'rsrc/css/application/ponder/comments.css' => '6cdccea7', 93 93 'rsrc/css/application/ponder/feed.css' => 'e62615b6', ··· 705 705 'phabricator-nav-view-css' => '80e60fc1', 706 706 'phabricator-notification' => '0c6946e7', 707 707 'phabricator-notification-css' => 'ef2c9b34', 708 - 'phabricator-notification-menu-css' => 'fc9a363c', 708 + 'phabricator-notification-menu-css' => '99ffef72', 709 709 'phabricator-object-selector-css' => '029a133d', 710 710 'phabricator-phtize' => 'd254d646', 711 711 'phabricator-prefab' => '0326e5d0', ··· 772 772 'phui-workpanel-view-css' => '97b69459', 773 773 'policy-css' => '957ea14c', 774 774 'policy-edit-css' => '05cca26a', 775 - 'policy-transaction-detail-css' => '21b7daba', 775 + 'policy-transaction-detail-css' => '82100a43', 776 776 'ponder-comment-table-css' => '6cdccea7', 777 777 'ponder-feed-view-css' => 'e62615b6', 778 778 'ponder-post-css' => 'ebab8a70',
+6 -1
src/applications/conpherence/controller/ConpherenceNotificationPanelController.php
··· 81 81 '<div class="phabricator-notification-header">%s</div>'. 82 82 '%s'. 83 83 '<div class="phabricator-notification-view-all">%s</div>', 84 - pht('Messages'), 84 + phutil_tag( 85 + 'a', 86 + array( 87 + 'href' => '/conpherence/', 88 + ), 89 + pht('Messages')), 85 90 $content, 86 91 phutil_tag( 87 92 'a',
+15 -2
src/applications/notification/controller/PhabricatorNotificationPanelController.php
··· 26 26 } 27 27 28 28 $content = hsprintf( 29 - '<div class="phabricator-notification-header">%s</div>'. 29 + '<div class="phabricator-notification-header">%s %s</div>'. 30 30 '%s'. 31 31 '<div class="phabricator-notification-view-all">%s</div>', 32 - pht('Notifications'), 32 + phutil_tag( 33 + 'a', 34 + array( 35 + 'href' => '/notification/', 36 + ), 37 + pht('Notifications')), 38 + javelin_tag( 39 + 'a', 40 + array( 41 + 'sigil' => 'workflow', 42 + 'href' => '/notification/clear/', 43 + 'class' => 'phabricator-notification-clear-all' 44 + ), 45 + pht('Clear All Notifications')), 33 46 $content, 34 47 phutil_tag( 35 48 'a',
+9
webroot/rsrc/css/application/base/notification-menu.css
··· 74 74 border-bottom: 1px solid #e9e9e9; 75 75 } 76 76 77 + .phabricator-notification-header a { 78 + color: {$darkgreytext}; 79 + } 80 + 81 + .phabricator-notification-header .phabricator-notification-clear-all { 82 + color: #18559D; 83 + float: right; 84 + } 85 + 77 86 .phabricator-notification-view-all { 78 87 text-align: center; 79 88 font-weight: bold;