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

Hide the new Phriction "Publish" operation behind the "Prototype" toggle

Summary: Ref T13077. This is currently a little too confusing to go out into the world, mostly because there's no way to edit documents without auto-publishing them. Keep it out of the spotlight for this release.

Test Plan: Viewed Phriction, saw publish operation marked as a prototype.

Reviewers: amckinley

Maniphest Tasks: T13077

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

+11 -7
+11 -7
src/applications/phriction/controller/PhrictionDocumentController.php
··· 432 432 433 433 $publish_uri = "/phriction/publish/{$id}/{$content_id}/"; 434 434 435 - $curtain->addAction( 436 - id(new PhabricatorActionView()) 437 - ->setName($publish_name) 438 - ->setIcon('fa-upload') 439 - ->setDisabled(!$can_publish) 440 - ->setWorkflow(true) 441 - ->setHref($publish_uri)); 435 + if (PhabricatorEnv::getEnvConfig('phabricator.show-prototypes')) { 436 + $publish_name = pht('Publish (Prototype!)'); 437 + 438 + $curtain->addAction( 439 + id(new PhabricatorActionView()) 440 + ->setName($publish_name) 441 + ->setIcon('fa-upload') 442 + ->setDisabled(!$can_publish) 443 + ->setWorkflow(true) 444 + ->setHref($publish_uri)); 445 + } 442 446 443 447 if ($document->getStatus() == PhrictionDocumentStatus::STATUS_EXISTS) { 444 448 $curtain->addAction(