Page MenuHomePhabricator

Dashboards - add remove functionality
ClosedPublic

Authored by btrahan on May 16 2014, 9:22 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Oct 28, 3:12 AM
Unknown Object (File)
Mon, Oct 28, 3:12 AM
Unknown Object (File)
Mon, Oct 28, 3:07 AM
Unknown Object (File)
Mon, Oct 28, 3:07 AM
Unknown Object (File)
Oct 26 2024, 4:26 AM
Unknown Object (File)
Oct 20 2024, 6:41 AM
Unknown Object (File)
Oct 16 2024, 10:15 AM
Unknown Object (File)
Sep 23 2024, 4:05 AM
Subscribers

Details

Summary

To get there, upgrade "headerless" to "headerMode". Add a new removepanel controller. Fixes T5084.

Test Plan

removed some panels to much success

Diff Detail

Repository
rP Phabricator
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

btrahan retitled this revision from to Dashboards - add remove functionality.
btrahan updated this object.
btrahan edited the test plan for this revision. (Show Details)
btrahan added reviewers: epriestley, chad.

This is HEADER_MODE_EDIT

Screen_Shot_2014-05-16_at_2.19.39_PM.png (1×2 px, 501 KB)

Yay hover state

Screen_Shot_2014-05-16_at_2.19.42_PM.png (1×2 px, 519 KB)

Clicked it

Screen_Shot_2014-05-16_at_2.19.45_PM.png (1×2 px, 481 KB)

Great success

Screen_Shot_2014-05-16_at_2.19.50_PM.png (1×2 px, 457 KB)

Works but should re-factor.

src/applications/dashboard/engine/PhabricatorDashboardPanelRenderingEngine.php
109

On second thought, I should do the opposite and put all this rendering code in here

epriestley edited edge metadata.

Cool, this looks good.

(One thing that might happens soon is letting PanelType add some icons to the header in "normal" mode, but we can address that in a variety of ways without changes here, and I think this is probably a cleaner architecture overall.)

src/applications/dashboard/engine/PhabricatorDashboardPanelRenderingEngine.php
88

(Unused, I think, per other comment.)

112

this miiiight be testing code

src/applications/dashboard/paneltype/PhabricatorDashboardPanelType.php
5–14

Are these ever used?

This revision is now accepted and ready to land.May 17 2014, 12:13 AM
btrahan edited edge metadata.
  • remove test code
  • remove un-used getter / setter
  • re-direct back to "arrange" view on panel edit if you cancel or submit the edit for super fast workfly happy action times
btrahan updated this revision to Diff 21863.

Closed by commit rPd9058d7f3ff7 (authored by @btrahan).