Skip to content

Commit e8bb24f

Browse files
committed
Policy, Status in PHUIHeaderView
Summary: The adds the ability to set 'properties' such as state, privacy, due date to the header of objects. Test Plan: Implemented in Paste, Pholio. Tested various states. Reviewers: epriestley, btrahan Reviewed By: epriestley CC: Korvin, aran Differential Revision: https://secure.phabricator.com/D7016
1 parent 01eedd6 commit e8bb24f

File tree

114 files changed

+497
-324
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

114 files changed

+497
-324
lines changed

resources/sprite/manifest/status.json

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,16 @@
151151
"rule" : ".status-minus-white",
152152
"hash" : "c5a3771452dda603fbaee87371044f5a"
153153
},
154+
"status-oh-closed" : {
155+
"name" : "status-oh-closed",
156+
"rule" : ".status-oh-closed",
157+
"hash" : "cbc6a0959ebad3e88cc3ac67743a7f3a"
158+
},
159+
"status-oh-open" : {
160+
"name" : "status-oh-open",
161+
"rule" : ".status-oh-open",
162+
"hash" : "e86f83bc40e77664c91c834b27816576"
163+
},
154164
"status-open-blue" : {
155165
"name" : "status-open-blue",
156166
"rule" : ".status-open-blue",
@@ -176,6 +186,41 @@
176186
"rule" : ".status-open-white",
177187
"hash" : "169dc0e8f36444ea30163181f9c88dc2"
178188
},
189+
"status-policy-admin" : {
190+
"name" : "status-policy-admin",
191+
"rule" : ".status-policy-admin",
192+
"hash" : "1df35b15bd20880a5d20c0a2da446472"
193+
},
194+
"status-policy-all" : {
195+
"name" : "status-policy-all",
196+
"rule" : ".status-policy-all",
197+
"hash" : "ef0c0594968b04ed90ca8dc629a39e54"
198+
},
199+
"status-policy-custom" : {
200+
"name" : "status-policy-custom",
201+
"rule" : ".status-policy-custom",
202+
"hash" : "a432adf61806705c54ad7e110e063829"
203+
},
204+
"status-policy-noone" : {
205+
"name" : "status-policy-noone",
206+
"rule" : ".status-policy-noone",
207+
"hash" : "23b4a85b15930c46fa409e95d26be2c4"
208+
},
209+
"status-policy-project" : {
210+
"name" : "status-policy-project",
211+
"rule" : ".status-policy-project",
212+
"hash" : "bbc9e90f3353a357c5a39e703825504e"
213+
},
214+
"status-policy-public" : {
215+
"name" : "status-policy-public",
216+
"rule" : ".status-policy-public",
217+
"hash" : "4e6e9763dbb87dca73847e64ef0b87e6"
218+
},
219+
"status-policy-unknown" : {
220+
"name" : "status-policy-unknown",
221+
"rule" : ".status-policy-unknown",
222+
"hash" : "f32c8a68221f735e443cb8b18b41ee0e"
223+
},
179224
"status-question-blue" : {
180225
"name" : "status-question-blue",
181226
"rule" : ".status-question-blue",
291 Bytes
Loading
231 Bytes
Loading
296 Bytes
Loading
340 Bytes
Loading
266 Bytes
Loading
327 Bytes
Loading
193 Bytes
Loading
323 Bytes
Loading
308 Bytes
Loading
8.92 KB
Loading
8.92 KB
Loading
706 Bytes
Loading
540 Bytes
Loading
346 Bytes
Loading
8.92 KB
Loading
8.92 KB
Loading
8.92 KB
Loading
497 Bytes
Loading

scripts/celerity_mapper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
'phabricator-notification-css',
9797
'phabricator-notification-menu-css',
9898
'lightbox-attachment-css',
99-
'phabricator-header-view-css',
99+
'phui-header-view-css',
100100
'phabricator-filetree-view-css',
101101
'phabricator-nav-view-css',
102102
'phabricator-side-menu-view-css',

src/__celerity_resource_map__.php

Lines changed: 64 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -702,15 +702,15 @@
702702
),
703703
'/rsrc/image/sprite-status-X2.png' =>
704704
array(
705-
'hash' => '3c57299b04fc21bee8a20d2d019bf6b6',
706-
'uri' => '/res/3c57299b/rsrc/image/sprite-status-X2.png',
705+
'hash' => 'b26f204c1b5ff01e3facbf78ccdc358b',
706+
'uri' => '/res/b26f204c/rsrc/image/sprite-status-X2.png',
707707
'disk' => '/rsrc/image/sprite-status-X2.png',
708708
'type' => 'png',
709709
),
710710
'/rsrc/image/sprite-status.png' =>
711711
array(
712-
'hash' => 'b76029c6bac69fd5bd9ab82d254f2ef1',
713-
'uri' => '/res/b76029c6/rsrc/image/sprite-status.png',
712+
'hash' => 'c1f9c28f3ab24a0f2d758331bb0f8a09',
713+
'uri' => '/res/c1f9c28f/rsrc/image/sprite-status.png',
714714
'disk' => '/rsrc/image/sprite-status.png',
715715
'type' => 'png',
716716
),
@@ -1149,7 +1149,7 @@
11491149
),
11501150
'diviner-shared-css' =>
11511151
array(
1152-
'uri' => '/res/ef49b30b/rsrc/css/diviner/diviner-shared.css',
1152+
'uri' => '/res/cba9c99e/rsrc/css/diviner/diviner-shared.css',
11531153
'type' => 'css',
11541154
'requires' =>
11551155
array(
@@ -3014,7 +3014,7 @@
30143014
),
30153015
'phabricator-action-list-view-css' =>
30163016
array(
3017-
'uri' => '/res/5478ce6c/rsrc/css/layout/phabricator-action-list-view.css',
3017+
'uri' => '/res/c6219563/rsrc/css/layout/phabricator-action-list-view.css',
30183018
'type' => 'css',
30193019
'requires' =>
30203020
array(
@@ -3080,7 +3080,7 @@
30803080
),
30813081
'phabricator-crumbs-view-css' =>
30823082
array(
3083-
'uri' => '/res/ff818db7/rsrc/css/layout/phabricator-crumbs-view.css',
3083+
'uri' => '/res/4d722e16/rsrc/css/layout/phabricator-crumbs-view.css',
30843084
'type' => 'css',
30853085
'requires' =>
30863086
array(
@@ -3180,15 +3180,6 @@
31803180
),
31813181
'disk' => '/rsrc/css/application/flag/flag.css',
31823182
),
3183-
'phabricator-header-view-css' =>
3184-
array(
3185-
'uri' => '/res/8b2bcc29/rsrc/css/layout/phabricator-header-view.css',
3186-
'type' => 'css',
3187-
'requires' =>
3188-
array(
3189-
),
3190-
'disk' => '/rsrc/css/layout/phabricator-header-view.css',
3191-
),
31923183
'phabricator-hovercard' =>
31933184
array(
31943185
'uri' => '/res/7fb94260/rsrc/js/core/Hovercard.js',
@@ -3376,7 +3367,7 @@
33763367
),
33773368
'phabricator-property-list-view-css' =>
33783369
array(
3379-
'uri' => '/res/fdcbf4ab/rsrc/css/layout/phabricator-property-list-view.css',
3370+
'uri' => '/res/3a0ffc53/rsrc/css/layout/phabricator-property-list-view.css',
33803371
'type' => 'css',
33813372
'requires' =>
33823373
array(
@@ -3747,7 +3738,7 @@
37473738
),
37483739
'phui-document-view-css' =>
37493740
array(
3750-
'uri' => '/res/c95d4bdf/rsrc/css/phui/phui-document.css',
3741+
'uri' => '/res/7928af2d/rsrc/css/phui/phui-document.css',
37513742
'type' => 'css',
37523743
'requires' =>
37533744
array(
@@ -3781,9 +3772,18 @@
37813772
),
37823773
'disk' => '/rsrc/css/phui/phui-form-view.css',
37833774
),
3775+
'phui-header-view-css' =>
3776+
array(
3777+
'uri' => '/res/7ce53631/rsrc/css/phui/phui-header-view.css',
3778+
'type' => 'css',
3779+
'requires' =>
3780+
array(
3781+
),
3782+
'disk' => '/rsrc/css/phui/phui-header-view.css',
3783+
),
37843784
'phui-icon-view-css' =>
37853785
array(
3786-
'uri' => '/res/f78f4c64/rsrc/css/phui/phui-icon.css',
3786+
'uri' => '/res/28fb5ae5/rsrc/css/phui/phui-icon.css',
37873787
'type' => 'css',
37883788
'requires' =>
37893789
array(
@@ -4134,7 +4134,7 @@
41344134
),
41354135
'sprite-status-css' =>
41364136
array(
4137-
'uri' => '/res/72b39c66/rsrc/css/sprite-status.css',
4137+
'uri' => '/res/d61bb845/rsrc/css/sprite-status.css',
41384138
'type' => 'css',
41394139
'requires' =>
41404140
array(
@@ -4171,7 +4171,7 @@
41714171
), array(
41724172
'packages' =>
41734173
array(
4174-
'606d1ed1' =>
4174+
'2c60f04c' =>
41754175
array(
41764176
'name' => 'core.pkg.css',
41774177
'symbols' =>
@@ -4203,7 +4203,7 @@
42034203
24 => 'phabricator-notification-css',
42044204
25 => 'phabricator-notification-menu-css',
42054205
26 => 'lightbox-attachment-css',
4206-
27 => 'phabricator-header-view-css',
4206+
27 => 'phui-header-view-css',
42074207
28 => 'phabricator-filetree-view-css',
42084208
29 => 'phabricator-nav-view-css',
42094209
30 => 'phabricator-side-menu-view-css',
@@ -4218,7 +4218,7 @@
42184218
39 => 'phabricator-property-list-view-css',
42194219
40 => 'phabricator-tag-view-css',
42204220
),
4221-
'uri' => '/res/pkg/606d1ed1/core.pkg.css',
4221+
'uri' => '/res/pkg/2c60f04c/core.pkg.css',
42224222
'type' => 'css',
42234223
),
42244224
'8977e356' =>
@@ -4409,15 +4409,15 @@
44094409
),
44104410
'reverse' =>
44114411
array(
4412-
'aphront-dialog-view-css' => '606d1ed1',
4413-
'aphront-error-view-css' => '606d1ed1',
4414-
'aphront-list-filter-view-css' => '606d1ed1',
4415-
'aphront-pager-view-css' => '606d1ed1',
4416-
'aphront-panel-view-css' => '606d1ed1',
4417-
'aphront-table-view-css' => '606d1ed1',
4418-
'aphront-tokenizer-control-css' => '606d1ed1',
4419-
'aphront-tooltip-css' => '606d1ed1',
4420-
'aphront-typeahead-control-css' => '606d1ed1',
4412+
'aphront-dialog-view-css' => '2c60f04c',
4413+
'aphront-error-view-css' => '2c60f04c',
4414+
'aphront-list-filter-view-css' => '2c60f04c',
4415+
'aphront-pager-view-css' => '2c60f04c',
4416+
'aphront-panel-view-css' => '2c60f04c',
4417+
'aphront-table-view-css' => '2c60f04c',
4418+
'aphront-tokenizer-control-css' => '2c60f04c',
4419+
'aphront-tooltip-css' => '2c60f04c',
4420+
'aphront-typeahead-control-css' => '2c60f04c',
44214421
'differential-changeset-view-css' => '44bfe40c',
44224422
'differential-core-view-css' => '44bfe40c',
44234423
'differential-inline-comment-editor' => '5e9e5c4e',
@@ -4431,7 +4431,7 @@
44314431
'differential-table-of-contents-css' => '44bfe40c',
44324432
'diffusion-commit-view-css' => 'c8ce2d88',
44334433
'diffusion-icons-css' => 'c8ce2d88',
4434-
'global-drag-and-drop-css' => '606d1ed1',
4434+
'global-drag-and-drop-css' => '2c60f04c',
44354435
'inline-comment-summary-css' => '44bfe40c',
44364436
'javelin-aphlict' => '8977e356',
44374437
'javelin-behavior' => 'f32597c9',
@@ -4504,55 +4504,55 @@
45044504
'javelin-util' => 'f32597c9',
45054505
'javelin-vector' => 'f32597c9',
45064506
'javelin-workflow' => 'f32597c9',
4507-
'lightbox-attachment-css' => '606d1ed1',
4507+
'lightbox-attachment-css' => '2c60f04c',
45084508
'maniphest-task-summary-css' => '36d5d071',
45094509
'maniphest-transaction-detail-css' => '36d5d071',
4510-
'phabricator-action-list-view-css' => '606d1ed1',
4511-
'phabricator-application-launch-view-css' => '606d1ed1',
4510+
'phabricator-action-list-view-css' => '2c60f04c',
4511+
'phabricator-application-launch-view-css' => '2c60f04c',
45124512
'phabricator-busy' => '8977e356',
45134513
'phabricator-content-source-view-css' => '44bfe40c',
4514-
'phabricator-core-css' => '606d1ed1',
4515-
'phabricator-crumbs-view-css' => '606d1ed1',
4514+
'phabricator-core-css' => '2c60f04c',
4515+
'phabricator-crumbs-view-css' => '2c60f04c',
45164516
'phabricator-drag-and-drop-file-upload' => '5e9e5c4e',
45174517
'phabricator-dropdown-menu' => '8977e356',
45184518
'phabricator-file-upload' => '8977e356',
4519-
'phabricator-filetree-view-css' => '606d1ed1',
4520-
'phabricator-flag-css' => '606d1ed1',
4521-
'phabricator-header-view-css' => '606d1ed1',
4519+
'phabricator-filetree-view-css' => '2c60f04c',
4520+
'phabricator-flag-css' => '2c60f04c',
45224521
'phabricator-hovercard' => '8977e356',
4523-
'phabricator-jump-nav' => '606d1ed1',
4522+
'phabricator-jump-nav' => '2c60f04c',
45244523
'phabricator-keyboard-shortcut' => '8977e356',
45254524
'phabricator-keyboard-shortcut-manager' => '8977e356',
4526-
'phabricator-main-menu-view' => '606d1ed1',
4525+
'phabricator-main-menu-view' => '2c60f04c',
45274526
'phabricator-menu-item' => '8977e356',
4528-
'phabricator-nav-view-css' => '606d1ed1',
4527+
'phabricator-nav-view-css' => '2c60f04c',
45294528
'phabricator-notification' => '8977e356',
4530-
'phabricator-notification-css' => '606d1ed1',
4531-
'phabricator-notification-menu-css' => '606d1ed1',
4529+
'phabricator-notification-css' => '2c60f04c',
4530+
'phabricator-notification-menu-css' => '2c60f04c',
45324531
'phabricator-object-selector-css' => '44bfe40c',
45334532
'phabricator-phtize' => '8977e356',
45344533
'phabricator-prefab' => '8977e356',
45354534
'phabricator-project-tag-css' => '36d5d071',
4536-
'phabricator-property-list-view-css' => '606d1ed1',
4537-
'phabricator-remarkup-css' => '606d1ed1',
4535+
'phabricator-property-list-view-css' => '2c60f04c',
4536+
'phabricator-remarkup-css' => '2c60f04c',
45384537
'phabricator-shaped-request' => '5e9e5c4e',
4539-
'phabricator-side-menu-view-css' => '606d1ed1',
4540-
'phabricator-standard-page-view' => '606d1ed1',
4541-
'phabricator-tag-view-css' => '606d1ed1',
4538+
'phabricator-side-menu-view-css' => '2c60f04c',
4539+
'phabricator-standard-page-view' => '2c60f04c',
4540+
'phabricator-tag-view-css' => '2c60f04c',
45424541
'phabricator-textareautils' => '8977e356',
45434542
'phabricator-tooltip' => '8977e356',
4544-
'phabricator-transaction-view-css' => '606d1ed1',
4545-
'phabricator-zindex-css' => '606d1ed1',
4546-
'phui-button-css' => '606d1ed1',
4547-
'phui-form-css' => '606d1ed1',
4548-
'phui-form-view-css' => '606d1ed1',
4549-
'phui-icon-view-css' => '606d1ed1',
4550-
'phui-object-item-list-view-css' => '606d1ed1',
4551-
'phui-spacing-css' => '606d1ed1',
4552-
'sprite-apps-large-css' => '606d1ed1',
4553-
'sprite-gradient-css' => '606d1ed1',
4554-
'sprite-icons-css' => '606d1ed1',
4555-
'sprite-menu-css' => '606d1ed1',
4556-
'syntax-highlighting-css' => '606d1ed1',
4543+
'phabricator-transaction-view-css' => '2c60f04c',
4544+
'phabricator-zindex-css' => '2c60f04c',
4545+
'phui-button-css' => '2c60f04c',
4546+
'phui-form-css' => '2c60f04c',
4547+
'phui-form-view-css' => '2c60f04c',
4548+
'phui-header-view-css' => '2c60f04c',
4549+
'phui-icon-view-css' => '2c60f04c',
4550+
'phui-object-item-list-view-css' => '2c60f04c',
4551+
'phui-spacing-css' => '2c60f04c',
4552+
'sprite-apps-large-css' => '2c60f04c',
4553+
'sprite-gradient-css' => '2c60f04c',
4554+
'sprite-icons-css' => '2c60f04c',
4555+
'sprite-menu-css' => '2c60f04c',
4556+
'syntax-highlighting-css' => '2c60f04c',
45574557
),
45584558
));

src/__phutil_library_map__.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -754,6 +754,7 @@
754754
'PHUIFormLayoutView' => 'view/form/PHUIFormLayoutView.php',
755755
'PHUIFormMultiSubmitControl' => 'view/form/control/PHUIFormMultiSubmitControl.php',
756756
'PHUIFormPageView' => 'view/form/PHUIFormPageView.php',
757+
'PHUIHeaderView' => 'view/phui/PHUIHeaderView.php',
757758
'PHUIIconExample' => 'applications/uiexample/examples/PHUIIconExample.php',
758759
'PHUIIconView' => 'view/phui/PHUIIconView.php',
759760
'PHUIListExample' => 'applications/uiexample/examples/PHUIListExample.php',
@@ -1229,7 +1230,6 @@
12291230
'PhabricatorHandleQuery' => 'applications/phid/query/PhabricatorHandleQuery.php',
12301231
'PhabricatorHash' => 'infrastructure/util/PhabricatorHash.php',
12311232
'PhabricatorHashTestCase' => 'infrastructure/util/__tests__/PhabricatorHashTestCase.php',
1232-
'PhabricatorHeaderView' => 'view/layout/PhabricatorHeaderView.php',
12331233
'PhabricatorHelpController' => 'applications/help/controller/PhabricatorHelpController.php',
12341234
'PhabricatorHelpKeyboardShortcutController' => 'applications/help/controller/PhabricatorHelpKeyboardShortcutController.php',
12351235
'PhabricatorHovercardExample' => 'applications/uiexample/examples/PhabricatorHovercardExample.php',
@@ -2839,6 +2839,7 @@
28392839
'PHUIFormLayoutView' => 'AphrontView',
28402840
'PHUIFormMultiSubmitControl' => 'AphrontFormControl',
28412841
'PHUIFormPageView' => 'AphrontView',
2842+
'PHUIHeaderView' => 'AphrontView',
28422843
'PHUIIconExample' => 'PhabricatorUIExample',
28432844
'PHUIIconView' => 'AphrontTagView',
28442845
'PHUIListExample' => 'PhabricatorUIExample',
@@ -3363,7 +3364,6 @@
33633364
'PhabricatorGlobalUploadTargetView' => 'AphrontView',
33643365
'PhabricatorHandleQuery' => 'PhabricatorCursorPagedPolicyAwareQuery',
33653366
'PhabricatorHashTestCase' => 'PhabricatorTestCase',
3366-
'PhabricatorHeaderView' => 'AphrontView',
33673367
'PhabricatorHelpController' => 'PhabricatorController',
33683368
'PhabricatorHelpKeyboardShortcutController' => 'PhabricatorHelpController',
33693369
'PhabricatorHovercardExample' => 'PhabricatorUIExample',

src/applications/calendar/controller/PhabricatorCalendarViewStatusController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function processRequest() {
3030

3131
$nav->appendChild(
3232
array(
33-
id(new PhabricatorHeaderView())->setHeader($page_title),
33+
id(new PHUIHeaderView())->setHeader($page_title),
3434
$status_list,
3535
));
3636

src/applications/conduit/controller/PhabricatorConduitAPIController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -385,10 +385,10 @@ private function buildHumanReadableResponse(
385385
$result_panel->setHeader('Method Result');
386386
$result_panel->appendChild($result_table);
387387

388-
$param_head = id(new PhabricatorHeaderView())
388+
$param_head = id(new PHUIHeaderView())
389389
->setHeader(pht('Method Parameters'));
390390

391-
$result_head = id(new PhabricatorHeaderView())
391+
$result_head = id(new PHUIHeaderView())
392392
->setHeader(pht('Method Result'));
393393

394394
$method_uri = $this->getApplicationURI('method/'.$method.'/');

src/applications/config/controller/PhabricatorConfigGroupController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function processRequest() {
2121

2222
$title = pht('%s Configuration', $options->getName());
2323

24-
$header = id(new PhabricatorHeaderView())
24+
$header = id(new PHUIHeaderView())
2525
->setHeader($title);
2626

2727
$list = $this->buildOptionList($options->getOptions());

src/applications/config/controller/PhabricatorConfigIssueListController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public function processRequest() {
1717
$list = $this->buildIssueList($issues);
1818
$list->setNoDataString(pht("There are no open setup issues."));
1919

20-
$header = id(new PhabricatorHeaderView())
20+
$header = id(new PHUIHeaderView())
2121
->setHeader(pht('Open Phabricator Setup Issues'));
2222

2323
$nav->appendChild(

0 commit comments

Comments
 (0)