Page MenuHomePhabricator

Create dashboard panels inline on dashboards
ClosedPublic

Authored by epriestley on Jun 12 2014, 11:56 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 29, 3:57 AM
Unknown Object (File)
Fri, Apr 26, 6:40 PM
Unknown Object (File)
Fri, Apr 26, 6:06 PM
Unknown Object (File)
Fri, Apr 26, 5:55 PM
Unknown Object (File)
Fri, Apr 26, 1:49 PM
Unknown Object (File)
Thu, Apr 25, 9:57 PM
Unknown Object (File)
Thu, Apr 25, 3:13 AM
Unknown Object (File)
Wed, Apr 24, 7:03 AM
Subscribers

Details

Summary

Fixes T5308.

  • Allows you to create a panel directly on a dashboard.
  • Also, include existing panels with a select instead of a text field. This won't scale as well but should be fine for now, and is way easier to use.
Test Plan

See comment.

Diff Detail

Repository
rP Phabricator
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

epriestley retitled this revision from to Create dashboard panels inline on dashboards.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.
  • Remove defunct "panel create" controller (now part of "panel edit").

"Add Panel" is now two buttons, to create or select a panel:

Screen_Shot_2014-06-12_at_4.54.42_AM.png (910×968 px, 113 KB)

Selecting a panel gives you a select, instead of a textarea / "type a widget id". This should be fine until installs have many hundreds of panels:

Screen_Shot_2014-06-12_at_4.54.51_AM.png (910×968 px, 112 KB)

Creating a panel gives you an inline dialog:

Screen_Shot_2014-06-12_at_4.54.57_AM.png (910×968 px, 126 KB)

Then you make the actual panel:

Screen_Shot_2014-06-12_at_4.55.07_AM.png (910×968 px, 121 KB)

After the workflow completes, it is added to the dashboard.

src/applications/dashboard/engine/PhabricatorDashboardRenderingEngine.php
116–117

Maybe Create Panel for consistency?

125

Maybe no icons for either of these buttons? Not sure it adds anything.

src/applications/dashboard/engine/PhabricatorDashboardRenderingEngine.php
116–117

Yeah, the wording is a little odd here. I was trying to capture "Create Panel (And Add It Here)", but that's probably clear enough from context. I'll clean it up.

  • Phrase button as "Create Panel".
  • Remove icons.
chad edited edge metadata.
This revision is now accepted and ready to land.Jun 12 2014, 6:42 PM
epriestley updated this revision to Diff 22770.

Closed by commit rP6f4ebcb8d913 (authored by @epriestley).