Skip to content

Commit c1a4b10

Browse files
author
epriestley
committedMay 24, 2014
Order projects near the top of results
Summary: Reorder main search typehaead as Jump, Apps, Prjoects, Users, Symbols instead of having projects at the bottom. Ref T5176. Test Plan: {F159689} Reviewers: btrahan, chad Reviewed By: chad Subscribers: epriestley Maniphest Tasks: T5176 Differential Revision: https://secure.phabricator.com/D9283
1 parent 0771559 commit c1a4b10

File tree

3 files changed

+17
-15
lines changed

3 files changed

+17
-15
lines changed
 

‎resources/celerity/map.php

+13-13
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
'names' =>
99
array(
1010
'core.pkg.css' => '0d0b7e0c',
11-
'core.pkg.js' => 'e01fd8e2',
11+
'core.pkg.js' => '7db41c19',
1212
'darkconsole.pkg.js' => 'ca8671ce',
1313
'differential.pkg.css' => 'fbf57382',
1414
'differential.pkg.js' => 'f4c86691',
@@ -470,7 +470,7 @@
470470
'rsrc/js/core/behavior-refresh-csrf.js' => '7814b593',
471471
'rsrc/js/core/behavior-remarkup-preview.js' => 'f7379f45',
472472
'rsrc/js/core/behavior-reveal-content.js' => '8f24abfc',
473-
'rsrc/js/core/behavior-search-typeahead.js' => 'd8469741',
473+
'rsrc/js/core/behavior-search-typeahead.js' => '86549ee3',
474474
'rsrc/js/core/behavior-select-on-click.js' => '0e34ca02',
475475
'rsrc/js/core/behavior-toggle-class.js' => 'a82a7769',
476476
'rsrc/js/core/behavior-tokenizer.js' => 'b3a4b884',
@@ -609,7 +609,7 @@
609609
'javelin-behavior-phabricator-oncopy' => 'c3e218fe',
610610
'javelin-behavior-phabricator-remarkup-assist' => 'c021950a',
611611
'javelin-behavior-phabricator-reveal-content' => '8f24abfc',
612-
'javelin-behavior-phabricator-search-typeahead' => 'd8469741',
612+
'javelin-behavior-phabricator-search-typeahead' => '86549ee3',
613613
'javelin-behavior-phabricator-show-all-transactions' => '7c273581',
614614
'javelin-behavior-phabricator-tooltips' => '48db4145',
615615
'javelin-behavior-phabricator-transaction-comment-form' => '9084a36f',
@@ -1455,6 +1455,16 @@
14551455
1 => 'javelin-dom',
14561456
2 => 'javelin-reactor-dom',
14571457
),
1458+
'86549ee3' =>
1459+
array(
1460+
0 => 'javelin-behavior',
1461+
1 => 'javelin-typeahead-ondemand-source',
1462+
2 => 'javelin-typeahead',
1463+
3 => 'javelin-dom',
1464+
4 => 'javelin-uri',
1465+
5 => 'javelin-util',
1466+
6 => 'javelin-stratcom',
1467+
),
14581468
'889c96f3' =>
14591469
array(
14601470
0 => 'javelin-behavior',
@@ -1855,16 +1865,6 @@
18551865
3 => 'javelin-dom',
18561866
4 => 'phabricator-keyboard-shortcut',
18571867
),
1858-
'd8469741' =>
1859-
array(
1860-
0 => 'javelin-behavior',
1861-
1 => 'javelin-typeahead-ondemand-source',
1862-
2 => 'javelin-typeahead',
1863-
3 => 'javelin-dom',
1864-
4 => 'javelin-uri',
1865-
5 => 'javelin-util',
1866-
6 => 'javelin-stratcom',
1867-
),
18681868
'd8e135db' =>
18691869
array(
18701870
0 => 'javelin-behavior',

‎src/applications/typeahead/controller/PhabricatorTypeaheadCommonDatasourceController.php

+1
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,7 @@ public function processRequest() {
289289
->setURI('/project/view/'.$proj->getID().'/')
290290
->setPHID($proj->getPHID())
291291
->setIcon($proj->getIcon().' bluegrey')
292+
->setPriorityType('proj')
292293
->setClosed($closed);
293294

294295
$proj_result->setImageURI($proj->getProfileImageURI());

‎webroot/rsrc/js/core/behavior-search-typeahead.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,9 @@ JX.behavior('phabricator-search-typeahead', function(config) {
5353
var type_priority = {
5454
'jump' : 1,
5555
'apps' : 2,
56-
'user' : 3,
57-
'symb' : 4
56+
'proj' : 3,
57+
'user' : 4,
58+
'symb' : 5
5859
};
5960

6061
var tokens = this.tokenize(value);

0 commit comments

Comments
 (0)
Failed to load comments.