Page MenuHomePhabricator

Add Success/Fail states to PHUIObjectList
ClosedPublic

Authored by chad on Apr 29 2014, 4:16 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Dec 22, 10:25 PM
Unknown Object (File)
Fri, Dec 13, 3:24 AM
Unknown Object (File)
Thu, Dec 12, 12:47 AM
Unknown Object (File)
Sat, Dec 7, 4:25 AM
Unknown Object (File)
Fri, Dec 6, 4:10 AM
Unknown Object (File)
Nov 27 2024, 9:30 PM
Unknown Object (File)
Nov 26 2024, 5:24 PM
Unknown Object (File)
Nov 23 2024, 10:53 PM
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
Branch
success-objects
Lint
Lint Warnings
SeverityLocationCodeMessage
Warningwebroot/rsrc/css/phui/phui-object-item-list-view.css:623TXT3Line Too Long
Unit
Tests Passed
Build Status
Buildable 115
Build 115: [Placeholder Plan] Wait for 30 Seconds

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.