First pass at new Workboard UI
Summary: Cleans up Workboards to match the mocks. No new functionality, just more consistent colors/spacing/common components.
Test Plan:
Visit a few workboards, drag and drop items. Mobile, Tablet, Desktop
{F1070733}
Reviewers: epriestley
Reviewed By: epriestley
Subscribers: Korvin
Differential Revision: https://secure.phabricator.com/D15115
This commit is contained in:
@@ -332,37 +332,32 @@ final class PhabricatorProjectBoardViewController
|
||||
),
|
||||
$project->getName());
|
||||
|
||||
$header = id(new PHUIHeaderView())
|
||||
->setHeader($header_link)
|
||||
->setUser($viewer)
|
||||
->setNoBackground(true)
|
||||
->addActionLink($sort_menu)
|
||||
->addActionLink($filter_menu)
|
||||
->addActionLink($manage_menu)
|
||||
->setPolicyObject($project);
|
||||
|
||||
$header_box = id(new PHUIBoxView())
|
||||
->appendChild($header)
|
||||
->addClass('project-board-header');
|
||||
|
||||
$board_box = id(new PHUIBoxView())
|
||||
->appendChild($board)
|
||||
->addClass('project-board-wrapper');
|
||||
|
||||
$nav = $this->getProfileMenu();
|
||||
|
||||
$crumbs = $this->buildApplicationCrumbs();
|
||||
$crumbs->addTextCrumb(pht('Workboard'));
|
||||
$crumbs->setBorder(true);
|
||||
|
||||
$crumbs->addAction($sort_menu);
|
||||
$crumbs->addAction($filter_menu);
|
||||
$crumbs->addAction($manage_menu);
|
||||
|
||||
return $this->newPage()
|
||||
->setTitle(pht('%s Board', $project->getName()))
|
||||
->setPageObjectPHIDs(array($project->getPHID()))
|
||||
->setShowFooter(false)
|
||||
->setNavigation($nav)
|
||||
->setCrumbs($crumbs)
|
||||
->addQuicksandConfig(
|
||||
array(
|
||||
'boardConfig' => $behavior_config,
|
||||
))
|
||||
->appendChild(
|
||||
array(
|
||||
$header_box,
|
||||
$board_box,
|
||||
));
|
||||
}
|
||||
@@ -443,10 +438,9 @@ final class PhabricatorProjectBoardViewController
|
||||
$sort_menu->addAction($item);
|
||||
}
|
||||
|
||||
$sort_button = id(new PHUIButtonView())
|
||||
->setText(pht('Sort: %s', $active_order))
|
||||
->setIcon($sort_icon)
|
||||
->setTag('a')
|
||||
$sort_button = id(new PHUIListItemView())
|
||||
->setName(pht('Sort: %s', $active_order))
|
||||
->setIcon('fa-sort-amount-asc')
|
||||
->setHref('#')
|
||||
->addSigil('boards-dropdown-menu')
|
||||
->setMetadata(
|
||||
@@ -462,9 +456,6 @@ final class PhabricatorProjectBoardViewController
|
||||
PhabricatorApplicationSearchEngine $engine,
|
||||
$query_key) {
|
||||
|
||||
$filter_icon = id(new PHUIIconView())
|
||||
->setIconFont('fa-search-plus bluegrey');
|
||||
|
||||
$named = array(
|
||||
'open' => pht('Open Tasks'),
|
||||
'all' => pht('All Tasks'),
|
||||
@@ -521,10 +512,9 @@ final class PhabricatorProjectBoardViewController
|
||||
$filter_menu->addAction($item);
|
||||
}
|
||||
|
||||
$filter_button = id(new PHUIButtonView())
|
||||
->setText(pht('Filter: %s', $active_filter))
|
||||
->setIcon($filter_icon)
|
||||
->setTag('a')
|
||||
$filter_button = id(new PHUIListItemView())
|
||||
->setName(pht('Filter: %s', $active_filter))
|
||||
->setIcon('fa-search')
|
||||
->setHref('#')
|
||||
->addSigil('boards-dropdown-menu')
|
||||
->setMetadata(
|
||||
@@ -547,9 +537,6 @@ final class PhabricatorProjectBoardViewController
|
||||
$project,
|
||||
PhabricatorPolicyCapability::CAN_EDIT);
|
||||
|
||||
$manage_icon = id(new PHUIIconView())
|
||||
->setIconFont('fa-cog bluegrey');
|
||||
|
||||
$manage_items = array();
|
||||
|
||||
$manage_items[] = id(new PhabricatorActionView())
|
||||
@@ -602,10 +589,9 @@ final class PhabricatorProjectBoardViewController
|
||||
$manage_menu->addAction($item);
|
||||
}
|
||||
|
||||
$manage_button = id(new PHUIButtonView())
|
||||
->setText(pht('Manage Board'))
|
||||
->setIcon($manage_icon)
|
||||
->setTag('a')
|
||||
$manage_button = id(new PHUIListItemView())
|
||||
->setName(pht('Manage Board'))
|
||||
->setIcon('fa-cog')
|
||||
->setHref('#')
|
||||
->addSigil('boards-dropdown-menu')
|
||||
->setMetadata(
|
||||
|
||||
Reference in New Issue
Block a user