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

Soft-launch project boards

Summary: Ref T1344. I don't think we'll need to destroy any data moving forward, and would like to get more feedback about what changes users want.

Test Plan: Looked at a project and clicked onto its board.

Reviewers: chad, btrahan

Reviewed By: chad

CC: aran

Maniphest Tasks: T1344

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

+25 -6
+19 -5
src/applications/project/controller/PhabricatorProjectBoardController.php
··· 19 19 20 20 $project = id(new PhabricatorProjectQuery()) 21 21 ->setViewer($viewer) 22 + ->needImages(true) 22 23 ->withIDs(array($this->id)) 23 24 ->executeOne(); 24 25 if (!$project) { ··· 133 134 ->setUser($viewer) 134 135 ->addAction( 135 136 id(new PhabricatorActionView()) 136 - ->setName(pht('Add Column/Milestone/Sprint')) 137 + ->setName(pht('Add Column')) 137 138 ->setHref($this->getApplicationURI('board/'.$this->id.'/edit/')) 138 139 ->setIcon('create') 139 140 ->setDisabled(!$can_edit) 140 141 ->setWorkflow(!$can_edit)); 141 142 142 143 $plist = id(new PHUIPropertyListView()); 144 + 143 145 // TODO: Need this to get actions to render. 144 - $plist->addProperty(pht('Ignore'), pht('This Property')); 146 + $plist->addProperty( 147 + pht('Project Boards'), 148 + phutil_tag( 149 + 'em', 150 + array(), 151 + pht( 152 + 'This feature is beta, but should mostly work.'))); 145 153 $plist->setActionList($actions); 146 154 147 - $header = id(new PHUIObjectBoxView()) 148 - ->setHeaderText($project->getName()) 155 + $header = id(new PHUIHeaderView()) 156 + ->setHeader($project->getName()) 157 + ->setUser($viewer) 158 + ->setImage($project->getProfileImageURI()) 159 + ->setPolicyObject($project); 160 + 161 + $box = id(new PHUIObjectBoxView()) 162 + ->setHeader($header) 149 163 ->addPropertyList($plist); 150 164 151 165 $board_box = id(new PHUIBoxView()) ··· 155 169 return $this->buildApplicationPage( 156 170 array( 157 171 $crumbs, 158 - $header, 172 + $box, 159 173 $board_box, 160 174 ), 161 175 array(
+6 -1
src/applications/project/controller/PhabricatorProjectProfileController.php
··· 226 226 } 227 227 $view->addAction($action); 228 228 229 - 230 229 $view->addAction( 231 230 id(new PhabricatorActionView()) 232 231 ->setName(pht('View History')) 233 232 ->setHref($this->getApplicationURI("history/{$id}/")) 234 233 ->setIcon('transcript')); 234 + 235 + $view->addAction( 236 + id(new PhabricatorActionView()) 237 + ->setName(pht('View Board (Beta)')) 238 + ->setHref($this->getApplicationURI("board/{$id}/")) 239 + ->setIcon('project')); 235 240 236 241 return $view; 237 242 }