From 206b16d2bbe8758736d45b6d5b58a8462b4e7f7b Mon Sep 17 00:00:00 2001 From: Chad Little Date: Tue, 31 Jan 2017 22:36:14 +0000 Subject: [PATCH] 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 --- .../PhabricatorDashboardEditController.php | 23 +++++++++++++++---- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/src/applications/dashboard/controller/PhabricatorDashboardEditController.php b/src/applications/dashboard/controller/PhabricatorDashboardEditController.php index a167c91188..09ab373950 100644 --- a/src/applications/dashboard/controller/PhabricatorDashboardEditController.php +++ b/src/applications/dashboard/controller/PhabricatorDashboardEditController.php @@ -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()); -- 2.51.2