Page MenuHomePhabricator

Create an empty state for dashboards
ClosedPublic

Authored by lpriestley on May 27 2014, 10:15 PM.
Tags
None
Referenced Files
F13080930: D9312.diff
Wed, Apr 24, 11:29 AM
Unknown Object (File)
Sun, Apr 7, 11:00 PM
Unknown Object (File)
Fri, Apr 5, 7:22 PM
Unknown Object (File)
Fri, Apr 5, 7:22 PM
Unknown Object (File)
Fri, Apr 5, 7:22 PM
Unknown Object (File)
Fri, Apr 5, 6:50 PM
Unknown Object (File)
Fri, Apr 5, 6:15 PM
Unknown Object (File)
Mar 17 2024, 11:45 PM
Subscribers

Details

Summary

Fixes T5177. Not sure if checking for panelPHIDs is right, but seemed like a better choice than adding a new property on dashboard.

Test Plan

Create dashboard with no panels. Go to view dashboard. "view" page should have a placeholder that directs user to Manage Dashboard

Diff Detail

Repository
rP Phabricator
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

lpriestley retitled this revision from to Create an empty state for dashboards.
lpriestley updated this object.
lpriestley edited the test plan for this revision. (Show Details)
lpriestley added a reviewer: epriestley.
epriestley edited edge metadata.

Two teeny tiny nitpicks.

src/applications/dashboard/controller/PhabricatorDashboardViewController.php
57–77

This is verrrry nitpicky, but technically these should be:

$this->getApplicationURI("x/y/");

...not:

$this->getApplicationURI()."x/y/";

There's not much practical difference, but the method does some path normalization and passing the path as an argument is generally more consistent.

75

This call to render() should be unnecessary.

(Long ago a lot of things needed to have render() called, so old code still has calls, but in modern code it is usually called implicitly by the rendering pipeline.)

This revision now requires changes to proceed.May 27 2014, 10:19 PM
lpriestley edited edge metadata.

addressing code review

epriestley edited edge metadata.
This revision is now accepted and ready to land.May 27 2014, 10:34 PM
epriestley updated this revision to Diff 22093.

Closed by commit rP92ccadaa42d2 (authored by @lpriestley, committed by @epriestley).