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

Global Search Scope: Replace "Current Application" by application name

Summary:
Be less mysterious about the application we are currently in by replacing "Current Application" with for example "In Differential Only" when we're on a page which belongs to Differential.

Not every user may be aware or understand Phorge's "application" concept, and/or the installation may offer a very limited set of applications only.

There is no good obvious reason why to continue obfuscating what's the current application.

Closes T16167

Test Plan: Go to URIs belonging to applications which have searchable document types, such as http://phorge.localhost/calendar/ or http://phorge.localhost/D1, select the Search Scope dropdown in the upper right corner, see "In $application_name Only" instead of "Current Application"

Reviewers: O1 Blessed Committers, valerio.bozzolan

Reviewed By: O1 Blessed Committers, valerio.bozzolan

Subscribers: tobiaswiese, valerio.bozzolan, Matthew, Cigaryno

Maniphest Tasks: T16167

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

+5 -3
+3 -2
src/docs/user/userguide/search.diviner
··· 34 34 will find matching tasks, commits, wiki documents, users, etc. You can use the 35 35 dropdown to the left of the search box to select a different search scope. 36 36 37 - If you choose the **Current Application** scope, Phorge will search for 37 + If you choose the **In Application Only** scope (instead of "Application", 38 + Phorge displays the actual name of the application), Phorge will search for 38 39 open items in the current application. For example, if you're in Maniphest 39 40 and run a search, you'll get matching tasks. If you're in Phriction and run a 40 41 search, you'll get matching wiki documents. 41 42 42 43 Some pages (like the 404 page) don't belong to an application, or belong to an 43 44 application which doesn't have any searchable items. In these cases, 44 - the **Current Application** scope is not available for selection. 45 + the **In Application Only** scope is not available for selection. 45 46 46 47 To quickly **jump to an object** like a task, enter the object's ID in the 47 48 global search box and search for it. For example, you can enter `T123` or
+2 -1
src/view/page/menu/PhabricatorMainMenuSearchView.php
··· 135 135 136 136 if ($application && $application->getApplicationSearchDocumentTypes()) { 137 137 $application_icon = $application->getIcon(); 138 + $application_name = $application->getName(); 138 139 if (!$application_icon) { 139 140 $application_icon = self::DEFAULT_APPLICATION_ICON; 140 141 } 141 142 $items[] = array( 142 143 'icon' => $application_icon, 143 - 'name' => pht('Current Application'), 144 + 'name' => pht('In %s Only', $application_name), 144 145 'value' => PhabricatorSearchController::SCOPE_CURRENT_APPLICATION, 145 146 ); 146 147 }