Page MenuHomePhabricator

Load global and custom profile menu items in a single query
ClosedPublic

Authored by epriestley on Jan 17 2017, 8:49 PM.
Tags
None
Referenced Files
F14494213: D17213.id41405.diff
Fri, Jan 3, 4:51 AM
Unknown Object (File)
Tue, Dec 17, 8:01 AM
Unknown Object (File)
Fri, Dec 13, 5:58 PM
Unknown Object (File)
Dec 3 2024, 5:37 PM
Unknown Object (File)
Nov 28 2024, 12:35 AM
Unknown Object (File)
Nov 19 2024, 8:24 PM
Unknown Object (File)
Nov 16 2024, 7:20 AM
Unknown Object (File)
Nov 12 2024, 3:51 PM
Subscribers
None

Details

Summary

Ref T5867. Use a single query to load both personal and global items, then reorder them and add a divider if both groups have some stuff.

Test Plan

Viewed menu, edited personal and global items, viewed/edited existing project menus.

Diff Detail

Repository
rP Phabricator
Branch
menu1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 15293
Build 20125: Run Core Tests
Build 20124: arc lint + arc unit

Event Timeline

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

The builtin stuff made this a bit more involved than I imagined, yeah.

This revision was automatically updated to reflect the committed changes.

Also, any clue where this came from?

Screen Shot 2017-01-17 at 1.04.32 PM.png (164×148 px, 10 KB)

Hmm I didn't see it in my testing but probably still me. Will look soon (getting MacBook fixed)

Also, why is the label in the user menu the Real Name, but log out still says "Log out <username>"?

I haven't built the final version yet. This diff was getting long in the tooth. I think I commented above? I have more plans for UI.

I think I need to convert PhabricatorActionView to a proper AphrontTagView, and migrate setMetadata globally to be able to fully customize the UI there. Brings us closer to PHUIListItemView as well.