@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

authored by

Chad Little and committed by
chad
206b16d2 e8c57581

+18 -5
+18 -5
src/applications/dashboard/controller/PhabricatorDashboardEditController.php
··· 245 245 246 246 switch ($template) { 247 247 case 'simple': 248 - $v_name = pht('New Simple Dashboard'); 248 + $v_name = pht("%s's Dashboard", $viewer->getUsername()); 249 249 250 250 $welcome_panel = $this->newPanel( 251 251 $request, ··· 260 260 "rustic, authentic feel.\n\n". 261 261 "You can drag, remove, add, and edit panels to customize the ". 262 262 "rest of this dashboard to show the information you want.\n\n". 263 - "To install this dashboard on the home page, use the ". 264 - "**Install Dashboard** action link above."), 263 + "To install this dashboard on the home page, edit your personal ". 264 + "or global menu on the homepage and click Dashboard under ". 265 + "New Menu Item on the right."), 265 266 )); 266 267 $panel_phids[] = $welcome_panel->getPHID(); 267 268 ··· 276 277 )); 277 278 $panel_phids[] = $feed_panel->getPHID(); 278 279 280 + $revision_panel = $this->newPanel( 281 + $request, 282 + $viewer, 283 + 'query', 284 + pht('Active Revisions'), 285 + array( 286 + 'class' => 'DifferentialRevisionSearchEngine', 287 + 'key' => 'active', 288 + )); 289 + $panel_phids[] = $revision_panel->getPHID(); 290 + 279 291 $task_panel = $this->newPanel( 280 292 $request, 281 293 $viewer, 282 294 'query', 283 - pht('Open Tasks'), 295 + pht('Assigned Tasks'), 284 296 array( 285 297 'class' => 'ManiphestTaskSearchEngine', 286 - 'key' => 'open', 298 + 'key' => 'assigned', 287 299 )); 288 300 $panel_phids[] = $task_panel->getPHID(); 289 301 ··· 302 314 $layout = id(new PhabricatorDashboardLayoutConfig()) 303 315 ->setLayoutMode($mode_2_and_1) 304 316 ->setPanelLocation(0, $welcome_panel->getPHID()) 317 + ->setPanelLocation(0, $revision_panel->getPHID()) 305 318 ->setPanelLocation(0, $task_panel->getPHID()) 306 319 ->setPanelLocation(0, $commit_panel->getPHID()) 307 320 ->setPanelLocation(1, $feed_panel->getPHID());