Page MenuHomePhabricator

Add Success/Fail states to PHUIObjectList
ClosedPublic

Authored by chad on Apr 29 2014, 4:16 PM.
Tags
None
Referenced Files
F18836570: D8893.diff
Mon, Oct 27, 2:15 AM
F18785722: D8893.id21106.diff
Tue, Oct 14, 10:34 AM
F18772078: D8893.id.diff
Thu, Oct 9, 12:08 AM
F18733790: D8893.id.diff
Sep 30 2025, 10:41 PM
F18702599: D8893.id21107.diff
Sep 28 2025, 12:42 AM
F18651703: D8893.id21100.diff
Sep 21 2025, 5:06 AM
F18319291: D8893.id21106.diff
Aug 24 2025, 12:28 PM
F18313117: D8893.id21100.diff
Aug 24 2025, 6:39 AM
Subscribers

Details

Summary

A number of interfaces could use a more consice looking ObjectItemList for showing pass/fail/warn states.

  • Added a new "State" for PHUIObjectItemListView
  • Updated UIExamples
  • Implemented in Herald (next Harmormaster)
Test Plan

UIExamples / Herald, desktop and mobile

Diff Detail

Repository
rP Phabricator
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

chad retitled this revision from to Add Success/Fail states to PHUIObjectList.
chad updated this object.
chad edited the test plan for this revision. (Show Details)
chad added reviewers: epriestley, btrahan.
epriestley edited edge metadata.
This revision is now accepted and ready to land.Apr 29 2014, 5:12 PM
chad edited edge metadata.
  • remove white class
chad updated this revision to Diff 21107.

Closed by commit rPcafd2dd6cb4e (authored by @chad).

Harbormaster brought me here. =D

src/view/phui/PHUIObjectItemListView.php
66

if $states should always be an array, its worth typehinting array

setStates(array $states)

and then PHP will error if $states is some non-array value. This is also nice documentation. Note if $states should be null sometimes you could do

setStates(array $states = null)

...there's also assert_instances_of($states, 'classStatesShouldBe') if you really want to be hardcore here.

it's bool, as in show the list as a list of states, maybe a better setX name...

whoops, lol. I blame harbormaster.