Page MenuHomePhabricator

Replace ProfileMenu bugs with different bugs
ClosedPublic

Authored by epriestley on Jan 31 2017, 7:08 PM.
Tags
None
Referenced Files
F13281796: D17273.diff
Sun, Jun 2, 11:13 AM
F13243308: D17273.diff
Thu, May 23, 3:43 AM
F13223150: D17273.diff
Sun, May 19, 4:20 AM
F13200436: D17273.id41555.diff
Tue, May 14, 12:05 AM
F13200435: D17273.id.diff
Tue, May 14, 12:05 AM
F13200434: D17273.id41556.diff
Tue, May 14, 12:05 AM
F13200403: D17273.diff
Mon, May 13, 11:52 PM
F13183764: D17273.diff
Fri, May 10, 12:12 PM
Subscribers
None

Details

Summary

Ref T12174. This fixes more bugs than it creates, I think:

  • Dashboards now show the whole menu.
  • Project and home items now show selected state correctly.
  • The "choose global vs personal" thing is now part of MenuEngine, and the same code builds it for Home and Favorites.
  • Home now handles defaults correctly, I think.

Maybe regression/bad/still buggy?:

  • Mobile home is now whatever the default thing was, not the menu?
  • Title for dashboard content or other items that render their own content is incorrectly always "Configure Menu" (this was preexisting).
Test Plan
  • Created, edited, reordered, disabled, deleted and pinned personal and global items on home, favorites, and projects.
  • Also checked User profiles.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Will this support Global / Personal for projects to? That would have "Global" be things applied to all projects, and "Personal" being just that project. However these only seem useful if we can pass in projectPHID to alter what the Global link does...

I dont know we'll do that, just spitballing....

This revision is now accepted and ready to land.Jan 31 2017, 7:18 PM
src/applications/project/engine/PhabricatorProjectProfileMenuEngine.php
10–12

It keeps projects as-is because of this, which turns off the "personal/custom" option.

Overall, this probably moves us slightly closer to a per-project vs all-projects mode but doesn't get us there, the "custom/personal" mode is still fairly specific to being a personal-per-viewer mode.

This revision was automatically updated to reflect the committed changes.

I'm going to deploy this now and we can see how bad I am at testing.