@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

People Profile Menu: Move "Badges" item lower in panel list

Summary:
The order of items in the main panel on a user profile page is currently (depending on which Phorge applications are installed): `Profile, Badges, Tasks, Revisions, Commits, Manage.`
This order does not reflect the common main interests of most users in my installation who try to find and do work, I'm afraid.
Thus change it to `Profile, Tasks, Revisions, Commits, Badges, Manage.`

Test Plan: Go to http://phorge.localhost/people/manage/1/ and look at the panel on the left. See that Badges is not listed second anymore but is listed last but one.

Reviewers: O1 Blessed Committers, valerio.bozzolan

Reviewed By: O1 Blessed Committers, valerio.bozzolan

Subscribers: tobiaswiese, valerio.bozzolan, Matthew, Cigaryno

Differential Revision: https://we.phorge.it/D25876

+9 -9
+9 -9
src/applications/people/engine/PhabricatorPeopleProfileMenuEngine.php
··· 35 35 ->setBuiltinKey(self::ITEM_PROFILE) 36 36 ->setMenuItemKey(PhabricatorPeopleDetailsProfileMenuItem::MENUITEMKEY); 37 37 38 - $have_badges = PhabricatorApplication::isClassInstalledForViewer( 39 - 'PhabricatorBadgesApplication', 40 - $viewer); 41 - if ($have_badges) { 42 - $items[] = $this->newItem() 43 - ->setBuiltinKey(self::ITEM_BADGES) 44 - ->setMenuItemKey(PhabricatorPeopleBadgesProfileMenuItem::MENUITEMKEY); 45 - } 46 - 47 38 $have_maniphest = PhabricatorApplication::isClassInstalledForViewer( 48 39 'PhabricatorManiphestApplication', 49 40 $viewer); ··· 70 61 $items[] = $this->newItem() 71 62 ->setBuiltinKey(self::ITEM_COMMITS) 72 63 ->setMenuItemKey(PhabricatorPeopleCommitsProfileMenuItem::MENUITEMKEY); 64 + } 65 + 66 + $have_badges = PhabricatorApplication::isClassInstalledForViewer( 67 + 'PhabricatorBadgesApplication', 68 + $viewer); 69 + if ($have_badges) { 70 + $items[] = $this->newItem() 71 + ->setBuiltinKey(self::ITEM_BADGES) 72 + ->setMenuItemKey(PhabricatorPeopleBadgesProfileMenuItem::MENUITEMKEY); 73 73 } 74 74 75 75 $items[] = $this->newItem()