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

Add more NUX states

Summary: Adds basic NUX to Dashboards, Herald, Repositories, Maniphest. Note Herald and Dashboard Panels don't fine the nux for some reason, assume they will when modernized?

Test Plan: Read text, click buttons.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

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

+138 -3
+2 -2
resources/celerity/map.php
··· 123 123 'rsrc/css/phui/phui-action-list.css' => 'c5eba19d', 124 124 'rsrc/css/phui/phui-action-panel.css' => '91c7b835', 125 125 'rsrc/css/phui/phui-badge.css' => 'f25c3476', 126 - 'rsrc/css/phui/phui-big-info-view.css' => '86cf0dd3', 126 + 'rsrc/css/phui/phui-big-info-view.css' => 'bd903741', 127 127 'rsrc/css/phui/phui-box.css' => 'a5bb366d', 128 128 'rsrc/css/phui/phui-button.css' => '16020a60', 129 129 'rsrc/css/phui/phui-crumbs-view.css' => '414406b5', ··· 792 792 'phriction-document-css' => 'd1861e06', 793 793 'phui-action-panel-css' => '91c7b835', 794 794 'phui-badge-view-css' => 'f25c3476', 795 - 'phui-big-info-view-css' => '86cf0dd3', 795 + 'phui-big-info-view-css' => 'bd903741', 796 796 'phui-box-css' => 'a5bb366d', 797 797 'phui-button-css' => '16020a60', 798 798 'phui-calendar-css' => 'ccabe893',
+19
src/applications/dashboard/controller/PhabricatorDashboardPanelListController.php
··· 48 48 return $crumbs; 49 49 } 50 50 51 + protected function getNewUserBody() { 52 + $create_button = id(new PHUIButtonView()) 53 + ->setTag('a') 54 + ->setText(pht('Create a Panel')) 55 + ->setHref('/dashboard/panel/create/') 56 + ->setColor(PHUIButtonView::GREEN); 57 + 58 + $icon = $this->getApplication()->getFontIcon(); 59 + $app_name = $this->getApplication()->getName(); 60 + $view = id(new PHUIBigInfoView()) 61 + ->setIcon($icon) 62 + ->setTitle(pht('Welcome to %s', $app_name)) 63 + ->setDescription( 64 + pht('Build individual panels to display on your homepage dashboard.')) 65 + ->addAction($create_button); 66 + 67 + return $view; 68 + } 69 + 51 70 }
+20
src/applications/dashboard/query/PhabricatorDashboardSearchEngine.php
··· 174 174 return $result; 175 175 } 176 176 177 + protected function getNewUserBody() { 178 + $create_button = id(new PHUIButtonView()) 179 + ->setTag('a') 180 + ->setText(pht('Create a Dashboard')) 181 + ->setHref('/dashboard/create/') 182 + ->setColor(PHUIButtonView::GREEN); 183 + 184 + $icon = $this->getApplication()->getFontIcon(); 185 + $app_name = $this->getApplication()->getName(); 186 + $view = id(new PHUIBigInfoView()) 187 + ->setIcon($icon) 188 + ->setTitle(pht('Welcome to %s', $app_name)) 189 + ->setDescription( 190 + pht('Customize your homepage with different panels and '. 191 + 'search queries.')) 192 + ->addAction($create_button); 193 + 194 + return $view; 195 + } 196 + 177 197 }
+1
src/applications/herald/application/PhabricatorHeraldApplication.php
··· 51 51 '/herald/' => array( 52 52 '(?:query/(?P<queryKey>[^/]+)/)?' => 'HeraldRuleListController', 53 53 'new/' => 'HeraldNewController', 54 + 'create/' => 'HeraldNewController', 54 55 'edit/(?:(?P<id>[1-9]\d*)/)?' => 'HeraldRuleController', 55 56 'disable/(?P<id>[1-9]\d*)/(?P<action>\w+)/' 56 57 => 'HeraldDisableController',
+1 -1
src/applications/herald/controller/HeraldController.php
··· 12 12 $crumbs->addAction( 13 13 id(new PHUIListItemView()) 14 14 ->setName(pht('Create Herald Rule')) 15 - ->setHref($this->getApplicationURI('new/')) 15 + ->setHref($this->getApplicationURI('create/')) 16 16 ->setIcon('fa-plus-square')); 17 17 18 18 return $crumbs;
+20
src/applications/herald/query/HeraldRuleSearchEngine.php
··· 211 211 212 212 } 213 213 214 + protected function getNewUserBody() { 215 + $create_button = id(new PHUIButtonView()) 216 + ->setTag('a') 217 + ->setText(pht('Create Herald Rule')) 218 + ->setHref('/herald/create/') 219 + ->setColor(PHUIButtonView::GREEN); 220 + 221 + $icon = $this->getApplication()->getFontIcon(); 222 + $app_name = $this->getApplication()->getName(); 223 + $view = id(new PHUIBigInfoView()) 224 + ->setIcon($icon) 225 + ->setTitle(pht('Welcome to %s', $app_name)) 226 + ->setDescription( 227 + pht('A flexible rules engine that can notify and act on '. 228 + 'other actions such as tasks, diffs, and commits.')) 229 + ->addAction($create_button); 230 + 231 + return $view; 232 + } 233 + 214 234 }
+20
src/applications/maniphest/query/ManiphestTaskSearchEngine.php
··· 385 385 $saved->setParameter('projectPHIDs', $project_phids); 386 386 } 387 387 388 + protected function getNewUserBody() { 389 + $create_button = id(new PHUIButtonView()) 390 + ->setTag('a') 391 + ->setText(pht('Create a Task')) 392 + ->setHref('/maniphest/task/edit/') 393 + ->setColor(PHUIButtonView::GREEN); 394 + 395 + $icon = $this->getApplication()->getFontIcon(); 396 + $app_name = $this->getApplication()->getName(); 397 + $view = id(new PHUIBigInfoView()) 398 + ->setIcon($icon) 399 + ->setTitle(pht('Welcome to %s', $app_name)) 400 + ->setDescription( 401 + pht('Use Maniphest to track bugs, features, todos, or anything else '. 402 + 'you need to get done. Tasks assigned to you will appear here.')) 403 + ->addAction($create_button); 404 + 405 + return $view; 406 + } 407 + 388 408 }
+20
src/applications/project/query/PhabricatorProjectSearchEngine.php
··· 202 202 203 203 } 204 204 205 + protected function getNewUserBody() { 206 + $create_button = id(new PHUIButtonView()) 207 + ->setTag('a') 208 + ->setText(pht('Create a Project')) 209 + ->setHref('/project/create/') 210 + ->setColor(PHUIButtonView::GREEN); 211 + 212 + $icon = $this->getApplication()->getFontIcon(); 213 + $app_name = $this->getApplication()->getName(); 214 + $view = id(new PHUIBigInfoView()) 215 + ->setIcon($icon) 216 + ->setTitle(pht('Welcome to %s', $app_name)) 217 + ->setDescription( 218 + pht('Projects are flexible storage containers used as '. 219 + 'tags, teams, projects, or anything you need to group.')) 220 + ->addAction($create_button); 221 + 222 + return $view; 223 + } 224 + 205 225 }
+27
src/applications/repository/query/PhabricatorRepositorySearchEngine.php
··· 233 233 $saved->setParameter('projectPHIDs', $project_phids); 234 234 } 235 235 236 + protected function getNewUserBody() { 237 + 238 + $import_button = id(new PHUIButtonView()) 239 + ->setTag('a') 240 + ->setText(pht('Import Repository')) 241 + ->setHref('/diffusion/import/') 242 + ->setColor(PHUIButtonView::GREEN); 243 + 244 + $create_button = id(new PHUIButtonView()) 245 + ->setTag('a') 246 + ->setText(pht('Create Repository')) 247 + ->setHref('/diffusion/create/') 248 + ->setColor(PHUIButtonView::GREEN); 249 + 250 + $icon = $this->getApplication()->getFontIcon(); 251 + $app_name = $this->getApplication()->getName(); 252 + $view = id(new PHUIBigInfoView()) 253 + ->setIcon($icon) 254 + ->setTitle(pht('Welcome to %s', $app_name)) 255 + ->setDescription( 256 + pht('Import, create, or just browse repositories in Diffusion.')) 257 + ->addAction($import_button) 258 + ->addAction($create_button); 259 + 260 + return $view; 261 + } 262 + 236 263 }
+8
webroot/rsrc/css/phui/phui-big-info-view.css
··· 27 27 .phui-big-info-actions { 28 28 padding: 24px 0 0; 29 29 } 30 + 31 + .phui-big-info-button { 32 + display: inline-block; 33 + } 34 + 35 + .phui-big-info-button + .phui-big-info-button { 36 + margin-left: 12px; 37 + }