@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.

User Profile Projects box: Always show View All and number of projects

Summary:
Allow users to easily reach the list of all projects they are a member of, regardless of project status. Currently there is no way to realize that a user is a member of more projects than the active ones listed if the number of active projects is 5 or less, as no "View All" button was shown.

Also always show the number of active projects in brackets for UI consistency.

Also make the "View All" link directly jump to the results list by appending `#R`.

Closes T16259

Test Plan: Go to user profile, look at Projects box title, click "View All" button. Join or leave projects; archive projects the user is a member of.

Reviewers: O1 Blessed Committers, mainframe98

Reviewed By: O1 Blessed Committers, mainframe98

Subscribers: tobiaswiese, valerio.bozzolan, Matthew, Cigaryno

Maniphest Tasks: T16259

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

+11 -14
+11 -14
src/applications/people/controller/PhabricatorPeopleProfileViewController.php
··· 142 142 ->setViewer($viewer) 143 143 ->setProjects($render_phids); 144 144 145 - if (count($projects) > $limit) { 146 - $header_text = pht( 147 - 'Projects (%s)', 148 - phutil_count($projects)); 145 + $header_text = pht( 146 + 'Projects (%s)', 147 + phutil_count($projects)); 149 148 150 - $header = id(new PHUIHeaderView()) 151 - ->setHeader($header_text) 152 - ->addActionLink( 153 - id(new PHUIButtonView()) 154 - ->setTag('a') 155 - ->setIcon('fa-list-ul') 156 - ->setText(pht('View All')) 157 - ->setHref('/project/?member='.$user->getPHID())); 158 - 159 - } 149 + $header = id(new PHUIHeaderView()) 150 + ->setHeader($header_text) 151 + ->addActionLink( 152 + id(new PHUIButtonView()) 153 + ->setTag('a') 154 + ->setIcon('fa-list-ul') 155 + ->setText(pht('View All')) 156 + ->setHref('/project/?member='.$user->getPHID().'#R')); 160 157 161 158 } else { 162 159 $list = id(new PHUIInfoView())