Page MenuHomePhabricator

Allow menu items to render their own content; make Dashboard items render on-page
ClosedPublic

Authored by epriestley on Jan 26 2017, 8:53 PM.
Tags
None
Referenced Files
F19244420: D17255.diff
Mon, Dec 22, 12:59 AM
F18880880: D17255.id.diff
Nov 6 2025, 8:46 PM
F18873787: D17255.diff
Nov 5 2025, 11:26 AM
F18802065: D17255.diff
Oct 17 2025, 6:31 PM
F18791201: D17255.id.diff
Oct 16 2025, 5:27 AM
F18773868: D17255.id41507.diff
Oct 9 2025, 1:16 PM
F18762929: D17255.id.diff
Oct 6 2025, 9:35 PM
F18756530: D17255.diff
Oct 5 2025, 11:57 AM
Subscribers
None

Details

Summary

Ref T11957. When you click a dashboard item, it now sends you to /<app>/item/view/123/, which renders the proper crumbs, navigation, etc., with the dashboard as page content.

This works as you'd expect in Projects:

Screen Shot 2017-01-26 at 12.09.24 PM.png (1×1 px, 449 KB)

It's sliiiightly odd in Favorites since we nuke the nav menu, but seems basically fine?

Screen Shot 2017-01-26 at 12.13.50 PM.png (951×1 px, 127 KB)

Test Plan
  • Created a dashboard panel on a project.
  • Clicked it, saw it render.
  • Made it the default panel, viewed project default screen, saw dashboard.
  • Disabled every panel I could, still saw reasonable behavior (this is silly anyway).

Diff Detail

Repository
rP Phabricator
Branch
dash1
Lint
Lint Passed
SeverityLocationCodeMessage
Advicesrc/applications/search/engine/PhabricatorProfileMenuEngine.php:174XHP16TODO Comment
Unit
Tests Passed
Build Status
Buildable 15388
Build 20269: Run Core Tests
Build 20268: arc lint + arc unit

Event Timeline

This revision is now accepted and ready to land.Jan 26 2017, 8:55 PM

I'm only like 85% confident this actually works right but I couldn't break it and I tried a lot of stuff. Definitely could have missed some edge cases, though.

This revision was automatically updated to reflect the committed changes.