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

More NUX states

Summary: Ref T10032, adds "Basic" NUX to more applications.

Test Plan: Visit each with ?nux=true and click on the create link. T10032 is tracking which apps need general modernization to pick up these changes.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

Maniphest Tasks: T10032

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

+132
+12
src/applications/audit/query/PhabricatorCommitSearchEngine.php
··· 178 178 return $result; 179 179 } 180 180 181 + protected function getNewUserBody() { 182 + 183 + $view = id(new PHUIBigInfoView()) 184 + ->setIcon('fa-check-circle-o') 185 + ->setTitle(pht('Welcome to Audit')) 186 + ->setDescription( 187 + pht('Post-commit code review and auditing. Audits you are assigned '. 188 + 'to will appear here.')); 189 + 190 + return $view; 191 + } 192 + 181 193 }
+20
src/applications/differential/query/DifferentialRevisionSearchEngine.php
··· 334 334 return $result; 335 335 } 336 336 337 + protected function getNewUserBody() { 338 + $create_button = id(new PHUIButtonView()) 339 + ->setTag('a') 340 + ->setText(pht('Create a Diff')) 341 + ->setHref('/differential/diff/create/') 342 + ->setColor(PHUIButtonView::GREEN); 343 + 344 + $icon = $this->getApplication()->getFontIcon(); 345 + $app_name = $this->getApplication()->getName(); 346 + $view = id(new PHUIBigInfoView()) 347 + ->setIcon($icon) 348 + ->setTitle(pht('Welcome to %s', $app_name)) 349 + ->setDescription( 350 + pht('Pre-commit code review. Revisions that are waiting on your input '. 351 + 'will appear here.')) 352 + ->addAction($create_button); 353 + 354 + return $view; 355 + } 356 + 337 357 }
+19
src/applications/files/query/PhabricatorFileSearchEngine.php
··· 178 178 return $result; 179 179 } 180 180 181 + protected function getNewUserBody() { 182 + $create_button = id(new PHUIButtonView()) 183 + ->setTag('a') 184 + ->setText(pht('Upload a File')) 185 + ->setHref('/file/upload/') 186 + ->setColor(PHUIButtonView::GREEN); 187 + 188 + $icon = $this->getApplication()->getFontIcon(); 189 + $app_name = $this->getApplication()->getName(); 190 + $view = id(new PHUIBigInfoView()) 191 + ->setIcon($icon) 192 + ->setTitle(pht('Welcome to %s', $app_name)) 193 + ->setDescription( 194 + pht('Just a place for files.')) 195 + ->addAction($create_button); 196 + 197 + return $view; 198 + } 199 + 181 200 }
+20
src/applications/legalpad/query/LegalpadDocumentSearchEngine.php
··· 216 216 return $result; 217 217 } 218 218 219 + protected function getNewUserBody() { 220 + $create_button = id(new PHUIButtonView()) 221 + ->setTag('a') 222 + ->setText(pht('Create a Document')) 223 + ->setHref('/legalpad/create/') 224 + ->setColor(PHUIButtonView::GREEN); 225 + 226 + $icon = $this->getApplication()->getFontIcon(); 227 + $app_name = $this->getApplication()->getName(); 228 + $view = id(new PHUIBigInfoView()) 229 + ->setIcon($icon) 230 + ->setTitle(pht('Welcome to %s', $app_name)) 231 + ->setDescription( 232 + pht('Create documents and track signatures. Can also be re-used in '. 233 + 'other areas of Phabricator, like CLAs.')) 234 + ->addAction($create_button); 235 + 236 + return $view; 237 + } 238 + 219 239 }
+21
src/applications/owners/query/PhabricatorOwnersPackageSearchEngine.php
··· 146 146 return $result; 147 147 148 148 } 149 + 150 + protected function getNewUserBody() { 151 + $create_button = id(new PHUIButtonView()) 152 + ->setTag('a') 153 + ->setText(pht('Create a Package')) 154 + ->setHref('/owners/edit/') 155 + ->setColor(PHUIButtonView::GREEN); 156 + 157 + $icon = $this->getApplication()->getFontIcon(); 158 + $app_name = $this->getApplication()->getName(); 159 + $view = id(new PHUIBigInfoView()) 160 + ->setIcon($icon) 161 + ->setTitle(pht('Welcome to %s', $app_name)) 162 + ->setDescription( 163 + pht('Group sections of a codebase into packages for re-use in other '. 164 + 'areas of Phabricator, like Herald rules.')) 165 + ->addAction($create_button); 166 + 167 + return $view; 168 + } 169 + 149 170 }
+20
src/applications/passphrase/query/PassphraseCredentialSearchEngine.php
··· 111 111 return $result; 112 112 } 113 113 114 + protected function getNewUserBody() { 115 + $create_button = id(new PHUIButtonView()) 116 + ->setTag('a') 117 + ->setText(pht('Create a Credential')) 118 + ->setHref('/passphrase/create/') 119 + ->setColor(PHUIButtonView::GREEN); 120 + 121 + $icon = $this->getApplication()->getFontIcon(); 122 + $app_name = $this->getApplication()->getName(); 123 + $view = id(new PHUIBigInfoView()) 124 + ->setIcon($icon) 125 + ->setTitle(pht('Welcome to %s', $app_name)) 126 + ->setDescription( 127 + pht('Credential management for re-use in other areas of Phabricator '. 128 + 'or general storage of shared secrets.')) 129 + ->addAction($create_button); 130 + 131 + return $view; 132 + } 133 + 114 134 }
+20
src/applications/spaces/query/PhabricatorSpacesNamespaceSearchEngine.php
··· 98 98 return $result; 99 99 } 100 100 101 + protected function getNewUserBody() { 102 + $create_button = id(new PHUIButtonView()) 103 + ->setTag('a') 104 + ->setText(pht('Create a Space')) 105 + ->setHref('/spaces/create/') 106 + ->setColor(PHUIButtonView::GREEN); 107 + 108 + $icon = $this->getApplication()->getFontIcon(); 109 + $app_name = $this->getApplication()->getName(); 110 + $view = id(new PHUIBigInfoView()) 111 + ->setIcon($icon) 112 + ->setTitle(pht('Welcome to %s', $app_name)) 113 + ->setDescription( 114 + pht('Policy namespaces to segment object visibility throughout your '. 115 + 'instance.')) 116 + ->addAction($create_button); 117 + 118 + return $view; 119 + } 120 + 101 121 }