Page MenuHomePhabricator

Modularize dashboard layout modes (one column, two columns, etc)
ClosedPublic

Authored by epriestley on Apr 12 2019, 3:43 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Dec 31, 10:20 PM
Unknown Object (File)
Thu, Dec 12, 10:48 PM
Unknown Object (File)
Nov 30 2024, 7:06 PM
Unknown Object (File)
Nov 28 2024, 1:44 PM
Unknown Object (File)
Nov 26 2024, 3:50 PM
Unknown Object (File)
Nov 26 2024, 6:22 AM
Unknown Object (File)
Nov 24 2024, 12:44 PM
Unknown Object (File)
Oct 19 2024, 6:22 PM
Subscribers
None

Details

Summary

Depends on D20405. Ref T13272. Currently, the PhabricatorDashboardLayoutConfig class uses a lot of switch() statements to define layout modes.

Although I'm not planning to add thousands of new layout modes, this (and upcoming changes) can be made substantially cleaner by using a standard modular approach.

(This doesn't fully remove PhabricatorDashboardLayoutConfig yet, but that will happen soon.)

Test Plan

Edited a dashboard, saw the same layout modes as before.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

amckinley added inline comments.
src/applications/dashboard/layoutconfig/PhabricatorDashboardOneThirdLayoutMode.php
14

What about the final 1%?

/s

This revision is now accepted and ready to land.Apr 12 2019, 7:38 PM
This revision was automatically updated to reflect the committed changes.