mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-29 17:00:59 +01:00
Soft-launch project boards
Summary: Ref T1344. I don't think we'll need to destroy any data moving forward, and would like to get more feedback about what changes users want. Test Plan: Looked at a project and clicked onto its board. Reviewers: chad, btrahan Reviewed By: chad CC: aran Maniphest Tasks: T1344 Differential Revision: https://secure.phabricator.com/D8191
This commit is contained in:
parent
1ac28a7127
commit
a3acf5fc4b
2 changed files with 25 additions and 6 deletions
|
@ -19,6 +19,7 @@ final class PhabricatorProjectBoardController
|
||||||
|
|
||||||
$project = id(new PhabricatorProjectQuery())
|
$project = id(new PhabricatorProjectQuery())
|
||||||
->setViewer($viewer)
|
->setViewer($viewer)
|
||||||
|
->needImages(true)
|
||||||
->withIDs(array($this->id))
|
->withIDs(array($this->id))
|
||||||
->executeOne();
|
->executeOne();
|
||||||
if (!$project) {
|
if (!$project) {
|
||||||
|
@ -133,19 +134,32 @@ final class PhabricatorProjectBoardController
|
||||||
->setUser($viewer)
|
->setUser($viewer)
|
||||||
->addAction(
|
->addAction(
|
||||||
id(new PhabricatorActionView())
|
id(new PhabricatorActionView())
|
||||||
->setName(pht('Add Column/Milestone/Sprint'))
|
->setName(pht('Add Column'))
|
||||||
->setHref($this->getApplicationURI('board/'.$this->id.'/edit/'))
|
->setHref($this->getApplicationURI('board/'.$this->id.'/edit/'))
|
||||||
->setIcon('create')
|
->setIcon('create')
|
||||||
->setDisabled(!$can_edit)
|
->setDisabled(!$can_edit)
|
||||||
->setWorkflow(!$can_edit));
|
->setWorkflow(!$can_edit));
|
||||||
|
|
||||||
$plist = id(new PHUIPropertyListView());
|
$plist = id(new PHUIPropertyListView());
|
||||||
|
|
||||||
// TODO: Need this to get actions to render.
|
// TODO: Need this to get actions to render.
|
||||||
$plist->addProperty(pht('Ignore'), pht('This Property'));
|
$plist->addProperty(
|
||||||
|
pht('Project Boards'),
|
||||||
|
phutil_tag(
|
||||||
|
'em',
|
||||||
|
array(),
|
||||||
|
pht(
|
||||||
|
'This feature is beta, but should mostly work.')));
|
||||||
$plist->setActionList($actions);
|
$plist->setActionList($actions);
|
||||||
|
|
||||||
$header = id(new PHUIObjectBoxView())
|
$header = id(new PHUIHeaderView())
|
||||||
->setHeaderText($project->getName())
|
->setHeader($project->getName())
|
||||||
|
->setUser($viewer)
|
||||||
|
->setImage($project->getProfileImageURI())
|
||||||
|
->setPolicyObject($project);
|
||||||
|
|
||||||
|
$box = id(new PHUIObjectBoxView())
|
||||||
|
->setHeader($header)
|
||||||
->addPropertyList($plist);
|
->addPropertyList($plist);
|
||||||
|
|
||||||
$board_box = id(new PHUIBoxView())
|
$board_box = id(new PHUIBoxView())
|
||||||
|
@ -155,7 +169,7 @@ final class PhabricatorProjectBoardController
|
||||||
return $this->buildApplicationPage(
|
return $this->buildApplicationPage(
|
||||||
array(
|
array(
|
||||||
$crumbs,
|
$crumbs,
|
||||||
$header,
|
$box,
|
||||||
$board_box,
|
$board_box,
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
|
|
|
@ -226,13 +226,18 @@ final class PhabricatorProjectProfileController
|
||||||
}
|
}
|
||||||
$view->addAction($action);
|
$view->addAction($action);
|
||||||
|
|
||||||
|
|
||||||
$view->addAction(
|
$view->addAction(
|
||||||
id(new PhabricatorActionView())
|
id(new PhabricatorActionView())
|
||||||
->setName(pht('View History'))
|
->setName(pht('View History'))
|
||||||
->setHref($this->getApplicationURI("history/{$id}/"))
|
->setHref($this->getApplicationURI("history/{$id}/"))
|
||||||
->setIcon('transcript'));
|
->setIcon('transcript'));
|
||||||
|
|
||||||
|
$view->addAction(
|
||||||
|
id(new PhabricatorActionView())
|
||||||
|
->setName(pht('View Board (Beta)'))
|
||||||
|
->setHref($this->getApplicationURI("board/{$id}/"))
|
||||||
|
->setIcon('project'));
|
||||||
|
|
||||||
return $view;
|
return $view;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue