mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 08:52:39 +01:00
Slightly better "Simple Dashboard"
Summary: Fix copy for installing dashboard, add a revision panel, and change the default name to make it easier to find. Ref T12174 Test Plan: Go to dashboards, click New, then Simple. Visit home and install my dashboard Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin Maniphest Tasks: T12174 Differential Revision: https://secure.phabricator.com/D17277
This commit is contained in:
parent
e8c5758192
commit
206b16d2bb
1 changed files with 18 additions and 5 deletions
|
@ -245,7 +245,7 @@ final class PhabricatorDashboardEditController
|
|||
|
||||
switch ($template) {
|
||||
case 'simple':
|
||||
$v_name = pht('New Simple Dashboard');
|
||||
$v_name = pht("%s's Dashboard", $viewer->getUsername());
|
||||
|
||||
$welcome_panel = $this->newPanel(
|
||||
$request,
|
||||
|
@ -260,8 +260,9 @@ final class PhabricatorDashboardEditController
|
|||
"rustic, authentic feel.\n\n".
|
||||
"You can drag, remove, add, and edit panels to customize the ".
|
||||
"rest of this dashboard to show the information you want.\n\n".
|
||||
"To install this dashboard on the home page, use the ".
|
||||
"**Install Dashboard** action link above."),
|
||||
"To install this dashboard on the home page, edit your personal ".
|
||||
"or global menu on the homepage and click Dashboard under ".
|
||||
"New Menu Item on the right."),
|
||||
));
|
||||
$panel_phids[] = $welcome_panel->getPHID();
|
||||
|
||||
|
@ -276,14 +277,25 @@ final class PhabricatorDashboardEditController
|
|||
));
|
||||
$panel_phids[] = $feed_panel->getPHID();
|
||||
|
||||
$revision_panel = $this->newPanel(
|
||||
$request,
|
||||
$viewer,
|
||||
'query',
|
||||
pht('Active Revisions'),
|
||||
array(
|
||||
'class' => 'DifferentialRevisionSearchEngine',
|
||||
'key' => 'active',
|
||||
));
|
||||
$panel_phids[] = $revision_panel->getPHID();
|
||||
|
||||
$task_panel = $this->newPanel(
|
||||
$request,
|
||||
$viewer,
|
||||
'query',
|
||||
pht('Open Tasks'),
|
||||
pht('Assigned Tasks'),
|
||||
array(
|
||||
'class' => 'ManiphestTaskSearchEngine',
|
||||
'key' => 'open',
|
||||
'key' => 'assigned',
|
||||
));
|
||||
$panel_phids[] = $task_panel->getPHID();
|
||||
|
||||
|
@ -302,6 +314,7 @@ final class PhabricatorDashboardEditController
|
|||
$layout = id(new PhabricatorDashboardLayoutConfig())
|
||||
->setLayoutMode($mode_2_and_1)
|
||||
->setPanelLocation(0, $welcome_panel->getPHID())
|
||||
->setPanelLocation(0, $revision_panel->getPHID())
|
||||
->setPanelLocation(0, $task_panel->getPHID())
|
||||
->setPanelLocation(0, $commit_panel->getPHID())
|
||||
->setPanelLocation(1, $feed_panel->getPHID());
|
||||
|
|
Loading…
Reference in a new issue