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

Add owner to task boards, tidy UI

Summary: Displays task owner, hides grip texture.

Test Plan: Visit a board in my sandbox, grab and move things.

Reviewers: epriestley, btrahan

Reviewed By: epriestley

CC: Korvin, epriestley, aran

Differential Revision: https://secure.phabricator.com/D8246

+48 -19
+2 -2
resources/celerity/map.php
··· 145 145 'rsrc/css/phui/phui-text.css' => '23e9b4b7', 146 146 'rsrc/css/phui/phui-timeline-view.css' => 'd3ccba00', 147 147 'rsrc/css/phui/phui-workboard-view.css' => 'bf70dd2e', 148 - 'rsrc/css/phui/phui-workpanel-view.css' => '6f8527f6', 148 + 'rsrc/css/phui/phui-workpanel-view.css' => '97b69459', 149 149 'rsrc/css/sprite-actions.css' => '4557baf8', 150 150 'rsrc/css/sprite-apps-large.css' => '0a453d4b', 151 151 'rsrc/css/sprite-apps-xlarge.css' => 'db66c878', ··· 757 757 'phui-text-css' => '23e9b4b7', 758 758 'phui-timeline-view-css' => 'd3ccba00', 759 759 'phui-workboard-view-css' => 'bf70dd2e', 760 - 'phui-workpanel-view-css' => '6f8527f6', 760 + 'phui-workpanel-view-css' => '97b69459', 761 761 'policy-css' => '957ea14c', 762 762 'policy-edit-css' => '05cca26a', 763 763 'ponder-comment-table-css' => '6cdccea7',
+28 -17
src/applications/project/controller/PhabricatorProjectBoardController.php
··· 4 4 extends PhabricatorProjectController { 5 5 6 6 private $id; 7 + private $handles; 7 8 8 9 public function shouldAllowPublic() { 9 10 return true; ··· 89 90 'boardID' => $board_id, 90 91 'moveURI' => $this->getApplicationURI('move/'.$project->getID().'/'), 91 92 )); 93 + 94 + $this->handles = ManiphestTaskListView::loadTaskHandles($viewer, $tasks); 92 95 93 96 foreach ($columns as $column) { 94 97 $panel = id(new PHUIWorkpanelView()) ··· 181 184 private function renderTaskCard(ManiphestTask $task) { 182 185 $request = $this->getRequest(); 183 186 $viewer = $request->getUser(); 187 + $handles = $this->handles; 184 188 185 189 $color_map = ManiphestTaskPriority::getColorMap(); 186 190 $bar_color = idx($color_map, $task->getPriority(), 'grey'); ··· 191 195 $task, 192 196 PhabricatorPolicyCapability::CAN_EDIT); 193 197 194 - return id(new PHUIObjectItemView()) 195 - ->setObjectName('T'.$task->getID()) 196 - ->setHeader($task->getTitle()) 197 - ->setGrippable($can_edit) 198 - ->setHref('/T'.$task->getID()) 199 - ->addSigil('project-card') 200 - ->setMetadata( 201 - array( 202 - 'objectPHID' => $task->getPHID(), 203 - )) 204 - ->addAction( 205 - id(new PHUIListItemView()) 206 - ->setName(pht('Edit')) 207 - ->setIcon('edit') 208 - ->setHref('/maniphest/task/edit/'.$task->getID().'/') 209 - ->setWorkflow(true)) 210 - ->setBarColor($bar_color); 198 + $card = id(new PHUIObjectItemView()) 199 + ->setObjectName('T'.$task->getID()) 200 + ->setHeader($task->getTitle()) 201 + ->setGrippable($can_edit) 202 + ->setHref('/T'.$task->getID()) 203 + ->addSigil('project-card') 204 + ->setMetadata( 205 + array( 206 + 'objectPHID' => $task->getPHID(), 207 + )) 208 + ->addAction( 209 + id(new PHUIListItemView()) 210 + ->setName(pht('Edit')) 211 + ->setIcon('edit') 212 + ->setHref('/maniphest/task/edit/'.$task->getID().'/') 213 + ->setWorkflow(true)) 214 + ->setBarColor($bar_color); 215 + 216 + if ($task->getOwnerPHID()) { 217 + $owner = $handles[$task->getOwnerPHID()]; 218 + $card->addAttribute($owner->renderLink()); 219 + } 220 + 221 + return $card; 211 222 } 212 223 213 224 }
+18
webroot/rsrc/css/phui/phui-workpanel-view.css
··· 79 79 .project-column-empty.drag-target-list { 80 80 background: rgba(255,255,255,.7); 81 81 } 82 + 83 + /* - Workpanel Cards ----------------------------------------------------------- 84 + 85 + Slight display changes for how cards work in tight spaces 86 + 87 + */ 88 + 89 + .phui-workpanel-view .phui-object-item-grippable .phui-object-item-frame { 90 + padding-left: 0; 91 + } 92 + 93 + .phui-workpanel-view .phui-object-item-grip { 94 + display: none; 95 + } 96 + 97 + .phui-workpanel-view .phui-object-item-attribute a { 98 + color: {$bluetext}; 99 + }