mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-19 05:12:41 +01:00
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
This commit is contained in:
parent
675be8efc5
commit
5fecd55d6e
7 changed files with 132 additions and 0 deletions
|
@ -178,4 +178,16 @@ final class PhabricatorCommitSearchEngine
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected function getNewUserBody() {
|
||||||
|
|
||||||
|
$view = id(new PHUIBigInfoView())
|
||||||
|
->setIcon('fa-check-circle-o')
|
||||||
|
->setTitle(pht('Welcome to Audit'))
|
||||||
|
->setDescription(
|
||||||
|
pht('Post-commit code review and auditing. Audits you are assigned '.
|
||||||
|
'to will appear here.'));
|
||||||
|
|
||||||
|
return $view;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -334,4 +334,24 @@ final class DifferentialRevisionSearchEngine
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected function getNewUserBody() {
|
||||||
|
$create_button = id(new PHUIButtonView())
|
||||||
|
->setTag('a')
|
||||||
|
->setText(pht('Create a Diff'))
|
||||||
|
->setHref('/differential/diff/create/')
|
||||||
|
->setColor(PHUIButtonView::GREEN);
|
||||||
|
|
||||||
|
$icon = $this->getApplication()->getFontIcon();
|
||||||
|
$app_name = $this->getApplication()->getName();
|
||||||
|
$view = id(new PHUIBigInfoView())
|
||||||
|
->setIcon($icon)
|
||||||
|
->setTitle(pht('Welcome to %s', $app_name))
|
||||||
|
->setDescription(
|
||||||
|
pht('Pre-commit code review. Revisions that are waiting on your input '.
|
||||||
|
'will appear here.'))
|
||||||
|
->addAction($create_button);
|
||||||
|
|
||||||
|
return $view;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -178,4 +178,23 @@ final class PhabricatorFileSearchEngine
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected function getNewUserBody() {
|
||||||
|
$create_button = id(new PHUIButtonView())
|
||||||
|
->setTag('a')
|
||||||
|
->setText(pht('Upload a File'))
|
||||||
|
->setHref('/file/upload/')
|
||||||
|
->setColor(PHUIButtonView::GREEN);
|
||||||
|
|
||||||
|
$icon = $this->getApplication()->getFontIcon();
|
||||||
|
$app_name = $this->getApplication()->getName();
|
||||||
|
$view = id(new PHUIBigInfoView())
|
||||||
|
->setIcon($icon)
|
||||||
|
->setTitle(pht('Welcome to %s', $app_name))
|
||||||
|
->setDescription(
|
||||||
|
pht('Just a place for files.'))
|
||||||
|
->addAction($create_button);
|
||||||
|
|
||||||
|
return $view;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -216,4 +216,24 @@ final class LegalpadDocumentSearchEngine
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected function getNewUserBody() {
|
||||||
|
$create_button = id(new PHUIButtonView())
|
||||||
|
->setTag('a')
|
||||||
|
->setText(pht('Create a Document'))
|
||||||
|
->setHref('/legalpad/create/')
|
||||||
|
->setColor(PHUIButtonView::GREEN);
|
||||||
|
|
||||||
|
$icon = $this->getApplication()->getFontIcon();
|
||||||
|
$app_name = $this->getApplication()->getName();
|
||||||
|
$view = id(new PHUIBigInfoView())
|
||||||
|
->setIcon($icon)
|
||||||
|
->setTitle(pht('Welcome to %s', $app_name))
|
||||||
|
->setDescription(
|
||||||
|
pht('Create documents and track signatures. Can also be re-used in '.
|
||||||
|
'other areas of Phabricator, like CLAs.'))
|
||||||
|
->addAction($create_button);
|
||||||
|
|
||||||
|
return $view;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -146,4 +146,25 @@ final class PhabricatorOwnersPackageSearchEngine
|
||||||
return $result;
|
return $result;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected function getNewUserBody() {
|
||||||
|
$create_button = id(new PHUIButtonView())
|
||||||
|
->setTag('a')
|
||||||
|
->setText(pht('Create a Package'))
|
||||||
|
->setHref('/owners/edit/')
|
||||||
|
->setColor(PHUIButtonView::GREEN);
|
||||||
|
|
||||||
|
$icon = $this->getApplication()->getFontIcon();
|
||||||
|
$app_name = $this->getApplication()->getName();
|
||||||
|
$view = id(new PHUIBigInfoView())
|
||||||
|
->setIcon($icon)
|
||||||
|
->setTitle(pht('Welcome to %s', $app_name))
|
||||||
|
->setDescription(
|
||||||
|
pht('Group sections of a codebase into packages for re-use in other '.
|
||||||
|
'areas of Phabricator, like Herald rules.'))
|
||||||
|
->addAction($create_button);
|
||||||
|
|
||||||
|
return $view;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -111,4 +111,24 @@ final class PassphraseCredentialSearchEngine
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected function getNewUserBody() {
|
||||||
|
$create_button = id(new PHUIButtonView())
|
||||||
|
->setTag('a')
|
||||||
|
->setText(pht('Create a Credential'))
|
||||||
|
->setHref('/passphrase/create/')
|
||||||
|
->setColor(PHUIButtonView::GREEN);
|
||||||
|
|
||||||
|
$icon = $this->getApplication()->getFontIcon();
|
||||||
|
$app_name = $this->getApplication()->getName();
|
||||||
|
$view = id(new PHUIBigInfoView())
|
||||||
|
->setIcon($icon)
|
||||||
|
->setTitle(pht('Welcome to %s', $app_name))
|
||||||
|
->setDescription(
|
||||||
|
pht('Credential management for re-use in other areas of Phabricator '.
|
||||||
|
'or general storage of shared secrets.'))
|
||||||
|
->addAction($create_button);
|
||||||
|
|
||||||
|
return $view;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -98,4 +98,24 @@ final class PhabricatorSpacesNamespaceSearchEngine
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected function getNewUserBody() {
|
||||||
|
$create_button = id(new PHUIButtonView())
|
||||||
|
->setTag('a')
|
||||||
|
->setText(pht('Create a Space'))
|
||||||
|
->setHref('/spaces/create/')
|
||||||
|
->setColor(PHUIButtonView::GREEN);
|
||||||
|
|
||||||
|
$icon = $this->getApplication()->getFontIcon();
|
||||||
|
$app_name = $this->getApplication()->getName();
|
||||||
|
$view = id(new PHUIBigInfoView())
|
||||||
|
->setIcon($icon)
|
||||||
|
->setTitle(pht('Welcome to %s', $app_name))
|
||||||
|
->setDescription(
|
||||||
|
pht('Policy namespaces to segment object visibility throughout your '.
|
||||||
|
'instance.'))
|
||||||
|
->addAction($create_button);
|
||||||
|
|
||||||
|
return $view;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue