@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.

Added beta status for applications

Summary: Fixes T2338

Test Plan: bjhb

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin, chad

Maniphest Tasks: T2338

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

authored by

Lauri-Henrik Jalonen and committed by
epriestley
2a6060a7 2888d580

+63 -3
+2
conf/default.conf.php
··· 836 836 // eggs. 837 837 'phabricator.serious-business' => false, 838 838 839 + // Should Phabricator show beta applications on the homepage 840 + 'phabricator.show-beta-applications' => false, 839 841 840 842 // -- Files ----------------------------------------------------------------- // 841 843
+1 -1
src/__celerity_resource_map__.php
··· 2400 2400 ), 2401 2401 'phabricator-application-launch-view-css' => 2402 2402 array( 2403 - 'uri' => '/res/ed5d60cc/rsrc/css/application/base/phabricator-application-launch-view.css', 2403 + 'uri' => '/res/d6b6235b/rsrc/css/application/base/phabricator-application-launch-view.css', 2404 2404 'type' => 'css', 2405 2405 'requires' => 2406 2406 array(
+4
src/applications/base/PhabricatorApplication.php
··· 62 62 return true; 63 63 } 64 64 65 + public function isBeta() { 66 + return false; 67 + } 68 + 65 69 public function getPHID() { 66 70 return 'PHID-APPS-'.get_class($this); 67 71 }
+4
src/applications/calendar/application/PhabricatorApplicationCalendar.php
··· 28 28 return self::GROUP_COMMUNICATION; 29 29 } 30 30 31 + public function isBeta() { 32 + return true; 33 + } 34 + 31 35 public function getRoutes() { 32 36 return array( 33 37 '/calendar/' => array(
+6
src/applications/config/option/PhabricatorCoreConfigOptions.php
··· 50 50 ->addExample('America/Chicago', pht('US Central (CDT)')) 51 51 ->addExample('America/Boise', pht('US Mountain (MDT)')) 52 52 ->addExample('America/Los_Angeles', pht('US West (PDT)')), 53 + $this->newOption('phabricator.show-beta-applications', 'bool', false) 54 + ->setBoolOptions( 55 + array( 56 + pht('Visible'), 57 + pht('Invisible') 58 + ))->setDescription(pht('Show beta applications on the home page.')), 53 59 $this->newOption('phabricator.serious-business', 'bool', false) 54 60 ->setBoolOptions( 55 61 array(
+5
src/applications/directory/controller/PhabricatorDirectoryController.php
··· 22 22 $nav->setBaseURI(new PhutilURI('/')); 23 23 24 24 $applications = PhabricatorApplication::getAllInstalledApplications(); 25 + $show_beta = 26 + PhabricatorEnv::getEnvConfig('phabricator.show-beta-applications'); 25 27 26 28 foreach ($applications as $key => $application) { 29 + if (!$show_beta && $application->isBeta()) { 30 + unset($applications[$key]); 31 + } 27 32 if (!$application->shouldAppearInLaunchView()) { 28 33 // Remove hidden applications (usually internal stuff). 29 34 unset($applications[$key]);
+4
src/applications/drydock/application/PhabricatorApplicationDrydock.php
··· 26 26 return self::GROUP_UTILITIES; 27 27 } 28 28 29 + public function isBeta() { 30 + return true; 31 + } 32 + 29 33 public function getRoutes() { 30 34 return array( 31 35 '/drydock/' => array(
+4
src/applications/fact/application/PhabricatorApplicationFact.php
··· 18 18 return self::GROUP_UTILITIES; 19 19 } 20 20 21 + public function isBeta() { 22 + return true; 23 + } 24 + 21 25 public function getRoutes() { 22 26 return array( 23 27 '/fact/' => array(
+9
src/applications/meta/view/PhabricatorApplicationLaunchView.php
··· 37 37 ), 38 38 phutil_escape_html($application->getName())); 39 39 40 + if ($application->isBeta()) { 41 + $content[] = phutil_render_tag( 42 + 'span', 43 + array( 44 + 'class' => 'phabricator-application-beta', 45 + ), 46 + "\xCE\xB2"); 47 + } 48 + 40 49 if ($this->fullWidth) { 41 50 $content[] = phutil_render_tag( 42 51 'span',
+4
src/applications/phame/application/PhabricatorApplicationPhame.php
··· 26 26 return self::GROUP_COMMUNICATION; 27 27 } 28 28 29 + public function isBeta() { 30 + return true; 31 + } 32 + 29 33 public function getRoutes() { 30 34 return array( 31 35 '/phame/' => array(
+4
src/applications/pholio/application/PhabricatorApplicationPholio.php
··· 35 35 return self::GROUP_COMMUNICATION; 36 36 } 37 37 38 + public function isBeta() { 39 + return true; 40 + } 41 + 38 42 public function getRoutes() { 39 43 return array( 40 44 '/M(?P<id>[1-9]\d*)' => 'PholioMockViewController',
+4
src/applications/ponder/application/PhabricatorApplicationPonder.php
··· 35 35 return self::GROUP_COMMUNICATION; 36 36 } 37 37 38 + public function isBeta() { 39 + return true; 40 + } 41 + 38 42 public function getroutes() { 39 43 return array( 40 44 '/Q(?P<id>[1-9]\d*)' => 'PonderQuestionViewController',
+12 -2
webroot/rsrc/css/application/base/phabricator-application-launch-view.css
··· 90 90 margin-left: 52px; 91 91 } 92 92 93 + .phabricator-application-beta, 93 94 .phabricator-application-launch-attention { 94 95 position: absolute; 95 - right: 4px; 96 96 top: 4px; 97 - background: rgb(0, 122, 255); 98 97 border-radius: 10px; 99 98 color: white; 100 99 font-weight: bold; ··· 104 103 box-shadow: 0 0px 2px #000; 105 104 } 106 105 106 + .phabricator-application-launch-attention { 107 + right: 4px; 108 + background-color: rgb(0, 122, 255); 109 + } 110 + 111 + .phabricator-application-beta { 112 + left: 4px; 113 + background-color: #ff8f00; 114 + } 115 + 107 116 .application-tile-full .phabricator-application-launch-attention { 108 117 top: 16px; 109 118 right: 12px; 110 119 } 120 +