Page MenuHomePhabricator

Update all existing ProfileMenuItems for the more-structured API
ClosedPublic

Authored by epriestley on Sun, Mar 31, 7:12 PM.

Details

Summary

Depends on D20357. Ref T13275. Now that there's a stronger layer between "stuff in the database" and "stuff on the screen", these subclasses all need to emit intermediate objects instead of raw, HTML-producing view objects.

This update is mostly mechanical.

Test Plan
  • Viewed Home, Favorites, Portals, User Profiles, Project Profiles.
  • Clicked each item on each menu/profile type.
  • Added every (I think?) type of item to a menu and clicked them all.
  • Grepped for obsolete symbols (newNavigationMenuItems, willBuildNavigationItems).

Diff Detail

Repository
rP Phabricator
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

epriestley created this revision.Sun, Mar 31, 7:12 PM
epriestley requested review of this revision.Sun, Mar 31, 7:13 PM
epriestley updated this revision to Diff 48577.Sun, Mar 31, 7:16 PM
  • Minor API completeness / correctness fixes.
  • Support image icons, used by "Project" menu items.

This also includes some changes aimed at T12871, which improve rendering of dashboards that aren't accessible. Instead of just failing into a confusing broken/empty state, we now show "Restricted" vs "Invalid" vs "Archived" more clearly.

amckinley accepted this revision.Mon, Apr 1, 10:11 PM
This revision is now accepted and ready to land.Mon, Apr 1, 10:11 PM
This revision was automatically updated to reflect the committed changes.