@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 various NUX states

Summary: Adds basic NUX UI to Countdown, Paste, Phurl, Ponder, Slowvote, Macro, and Pholio.

Test Plan: Review each with ?nux=true. Click on Create Button.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

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

+141 -3
+2
src/applications/countdown/application/PhabricatorCountdownApplication.php
··· 48 48 => 'PhabricatorCountdownCommentController', 49 49 'edit/(?:(?P<id>[1-9]\d*)/)?' 50 50 => 'PhabricatorCountdownEditController', 51 + 'create/' 52 + => 'PhabricatorCountdownEditController', 51 53 'delete/(?P<id>[1-9]\d*)/' 52 54 => 'PhabricatorCountdownDeleteController', 53 55 ),
+1 -1
src/applications/countdown/controller/PhabricatorCountdownController.php
··· 13 13 $crumbs->addAction( 14 14 id(new PHUIListItemView()) 15 15 ->setName(pht('Create Countdown')) 16 - ->setHref($this->getApplicationURI('edit/')) 16 + ->setHref($this->getApplicationURI('create/')) 17 17 ->setIcon('fa-plus-square')); 18 18 19 19 return $crumbs;
+20
src/applications/countdown/query/PhabricatorCountdownSearchEngine.php
··· 145 145 return $result; 146 146 } 147 147 148 + protected function getNewUserBody() { 149 + $create_button = id(new PHUIButtonView()) 150 + ->setTag('a') 151 + ->setText(pht('Create a Countdown')) 152 + ->setHref('/countdown/create/') 153 + ->setColor(PHUIButtonView::GREEN); 154 + 155 + $icon = $this->getApplication()->getFontIcon(); 156 + $app_name = $this->getApplication()->getName(); 157 + $view = id(new PHUIBigInfoView()) 158 + ->setIcon($icon) 159 + ->setTitle(pht('Welcome to %s', $app_name)) 160 + ->setDescription( 161 + pht('Keep track of upcoming launch dates with '. 162 + 'embeddable counters.')) 163 + ->addAction($create_button); 164 + 165 + return $view; 166 + } 167 + 148 168 }
+19
src/applications/macro/query/PhabricatorMacroSearchEngine.php
··· 189 189 return $result; 190 190 } 191 191 192 + protected function getNewUserBody() { 193 + $create_button = id(new PHUIButtonView()) 194 + ->setTag('a') 195 + ->setText(pht('Create a Macro')) 196 + ->setHref('/macro/create/') 197 + ->setColor(PHUIButtonView::GREEN); 198 + 199 + $icon = $this->getApplication()->getFontIcon(); 200 + $app_name = $this->getApplication()->getName(); 201 + $view = id(new PHUIBigInfoView()) 202 + ->setIcon($icon) 203 + ->setTitle(pht('Welcome to %s', $app_name)) 204 + ->setDescription( 205 + pht('Create easy to remember shortcuts to images and memes.')) 206 + ->addAction($create_button); 207 + 208 + return $view; 209 + } 210 + 192 211 }
+19
src/applications/paste/query/PhabricatorPasteSearchEngine.php
··· 202 202 203 203 return $result; 204 204 } 205 + 206 + protected function getNewUserBody() { 207 + $create_button = id(new PHUIButtonView()) 208 + ->setTag('a') 209 + ->setText(pht('Create a Paste')) 210 + ->setHref('/paste/create/') 211 + ->setColor(PHUIButtonView::GREEN); 212 + 213 + $icon = $this->getApplication()->getFontIcon(); 214 + $app_name = $this->getApplication()->getName(); 215 + $view = id(new PHUIBigInfoView()) 216 + ->setIcon($icon) 217 + ->setTitle(pht('Welcome to %s', $app_name)) 218 + ->setDescription( 219 + pht('Store, share, and embed snippets of code.')) 220 + ->addAction($create_button); 221 + 222 + return $view; 223 + } 205 224 }
+2 -1
src/applications/pholio/application/PhabricatorPholioApplication.php
··· 44 44 '/pholio/' => array( 45 45 '(?:query/(?P<queryKey>[^/]+)/)?' => 'PholioMockListController', 46 46 'new/' => 'PholioMockEditController', 47 + 'create/' => 'PholioMockEditController', 47 48 'edit/(?P<id>\d+)/' => 'PholioMockEditController', 48 49 'archive/(?P<id>\d+)/' => 'PholioMockArchiveController', 49 50 'comment/(?P<id>\d+)/' => 'PholioMockCommentController', ··· 64 65 $item = id(new PHUIListItemView()) 65 66 ->setName(pht('Pholio Mock')) 66 67 ->setIcon('fa-picture-o') 67 - ->setHref($this->getBaseURI().'new/'); 68 + ->setHref($this->getBaseURI().'create/'); 68 69 $items[] = $item; 69 70 70 71 return $items;
+1 -1
src/applications/pholio/controller/PholioController.php
··· 13 13 $crumbs->addAction( 14 14 id(new PHUIListItemView()) 15 15 ->setName(pht('Create Mock')) 16 - ->setHref($this->getApplicationURI('new/')) 16 + ->setHref($this->getApplicationURI('create/')) 17 17 ->setIcon('fa-plus-square')); 18 18 19 19 return $crumbs;
+20
src/applications/pholio/query/PholioMockSearchEngine.php
··· 130 130 return $result; 131 131 } 132 132 133 + protected function getNewUserBody() { 134 + $create_button = id(new PHUIButtonView()) 135 + ->setTag('a') 136 + ->setText(pht('Create a Mock')) 137 + ->setHref('/pholio/create/') 138 + ->setColor(PHUIButtonView::GREEN); 139 + 140 + $icon = $this->getApplication()->getFontIcon(); 141 + $app_name = $this->getApplication()->getName(); 142 + $view = id(new PHUIBigInfoView()) 143 + ->setIcon($icon) 144 + ->setTitle(pht('Welcome to %s', $app_name)) 145 + ->setDescription( 146 + pht('Upload sets of images for review with revision history and '. 147 + 'inline comments.')) 148 + ->addAction($create_button); 149 + 150 + return $view; 151 + } 152 + 133 153 }
+19
src/applications/phurl/query/PhabricatorPhurlURLSearchEngine.php
··· 91 91 92 92 return $result; 93 93 } 94 + 95 + protected function getNewUserBody() { 96 + $create_button = id(new PHUIButtonView()) 97 + ->setTag('a') 98 + ->setText(pht('Shorten a URL')) 99 + ->setHref('/phurl/url/create/') 100 + ->setColor(PHUIButtonView::GREEN); 101 + 102 + $icon = $this->getApplication()->getFontIcon(); 103 + $app_name = $this->getApplication()->getName(); 104 + $view = id(new PHUIBigInfoView()) 105 + ->setIcon($icon) 106 + ->setTitle(pht('Welcome to %s', $app_name)) 107 + ->setDescription( 108 + pht('Create reusable, memorable, shorter URLs for easy accessibility.')) 109 + ->addAction($create_button); 110 + 111 + return $view; 112 + } 94 113 }
+19
src/applications/ponder/query/PonderQuestionSearchEngine.php
··· 180 180 return $result; 181 181 } 182 182 183 + protected function getNewUserBody() { 184 + $create_button = id(new PHUIButtonView()) 185 + ->setTag('a') 186 + ->setText(pht('Ask a Question')) 187 + ->setHref('/ponder/question/create/') 188 + ->setColor(PHUIButtonView::GREEN); 189 + 190 + $icon = $this->getApplication()->getFontIcon(); 191 + $app_name = $this->getApplication()->getName(); 192 + $view = id(new PHUIBigInfoView()) 193 + ->setIcon($icon) 194 + ->setTitle(pht('Welcome to %s', $app_name)) 195 + ->setDescription( 196 + pht('A simple questions and answers application for your teams.')) 197 + ->addAction($create_button); 198 + 199 + return $view; 200 + } 201 + 183 202 }
+19
src/applications/slowvote/query/PhabricatorSlowvoteSearchEngine.php
··· 163 163 return $result; 164 164 } 165 165 166 + protected function getNewUserBody() { 167 + $create_button = id(new PHUIButtonView()) 168 + ->setTag('a') 169 + ->setText(pht('Create a Poll')) 170 + ->setHref('/vote/create/') 171 + ->setColor(PHUIButtonView::GREEN); 172 + 173 + $icon = $this->getApplication()->getFontIcon(); 174 + $app_name = $this->getApplication()->getName(); 175 + $view = id(new PHUIBigInfoView()) 176 + ->setIcon($icon) 177 + ->setTitle(pht('Welcome to %s', $app_name)) 178 + ->setDescription( 179 + pht('Poll other users to help facilitate decision making.')) 180 + ->addAction($create_button); 181 + 182 + return $view; 183 + } 184 + 166 185 }