@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 a basic first feed story on /home/

Summary: Ref T11132. Adds a text panel to feed if no stories are present and the user is an admin. Seems ok-ish for 15 minutes. Happy to take content suggestions.

Test Plan: Make a new install, see panel. Log in as new user, don't see panel.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

Maniphest Tasks: T11132

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

+30 -1
+1 -1
src/applications/config/controller/PhabricatorConfigWelcomeController.php
··· 317 317 $pholio_all_uri)); 318 318 319 319 320 - $diffusion_uri = PhabricatorEnv::getURI('/diffusion/'); 320 + $diffusion_uri = PhabricatorEnv::getURI('/diffusion/edit/'); 321 321 $diffusion_create_uri = PhabricatorEnv::getURI('/diffusion/create/'); 322 322 $diffusion_all_uri = PhabricatorEnv::getURI('/diffusion/query/all/'); 323 323
+29
src/applications/home/controller/PhabricatorHomeMainController.php
··· 202 202 $pager->setPageSize(40); 203 203 $results = $engine->executeQuery($query, $pager); 204 204 $view = $engine->renderResults($results, $saved); 205 + // Low tech NUX. 206 + if (!$results && ($viewer->getIsAdmin() == 1)) { 207 + $instance = PhabricatorEnv::getEnvConfig('cluster.instance'); 208 + if (!$instance) { 209 + $content = pht(<<<EOT 210 + Welcome to Phabricator, here are some links to get you started: 211 + - [[ /config/ | Configure Phabricator ]] 212 + - [[ /config/welcome/ | Quick Start Guide ]] 213 + - [[ /diffusion/ | Create a Repository ]] 214 + - [[ /people/invite/send/ | Invite People ]] 215 + - [[ https://twitter.com/phabricator/ | Follow us on Twitter ]] 216 + EOT 217 + ); 218 + } else { 219 + $content = pht(<<<EOT 220 + Welcome to Phabricator, here are some links to get you started: 221 + - [[ /config/welcome/ | Quick Start Guide ]] 222 + - [[ /diffusion/ | Create a Repository ]] 223 + - [[ https://twitter.com/phabricator/ | Follow us on Twitter ]] 224 + EOT 225 + ); 226 + } 227 + $welcome = new PHUIRemarkupView($viewer, $content); 228 + 229 + $list = new PHUIObjectItemListView(); 230 + $view = new PhabricatorApplicationSearchResultView(); 231 + $view->setObjectList($list); 232 + $view->setNoDataString($welcome); 233 + } 205 234 206 235 $title = pht('Recent Activity'); 207 236 $href = '/feed/';