Page MenuHomePhabricator

Create dashboard panels inline on dashboards
ClosedPublic

Authored by epriestley on Jun 12 2014, 11:56 AM.
Tags
None
Referenced Files
F14380339: D9501.id22765.diff
Sat, Dec 21, 3:46 AM
Unknown Object (File)
Tue, Dec 17, 9:07 AM
Unknown Object (File)
Sat, Dec 14, 4:11 PM
Unknown Object (File)
Wed, Dec 11, 8:33 PM
Unknown Object (File)
Wed, Dec 11, 8:32 AM
Unknown Object (File)
Sat, Dec 7, 6:12 PM
Unknown Object (File)
Wed, Dec 4, 6:22 AM
Unknown Object (File)
Tue, Dec 3, 8:41 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
Branch
dash3
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 1031
Build 1031: [Placeholder Plan] Wait for 30 Seconds

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
118–119

Maybe Create Panel for consistency?

127

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

src/applications/dashboard/engine/PhabricatorDashboardRenderingEngine.php
118–119

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).