Page MenuHomePhabricator

Policy Transactions - add a details view for custom policy
ClosedPublic

Authored by btrahan on Apr 29 2014, 2:37 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Dec 22, 10:25 PM
Unknown Object (File)
Sun, Dec 22, 10:25 PM
Unknown Object (File)
Thu, Dec 19, 4:28 PM
Unknown Object (File)
Sat, Dec 14, 10:30 AM
Unknown Object (File)
Thu, Dec 12, 3:24 PM
Unknown Object (File)
Thu, Dec 12, 2:03 PM
Unknown Object (File)
Sat, Dec 7, 5:07 PM
Unknown Object (File)
Sat, Dec 7, 4:46 PM
Subscribers

Details

Summary

'cuz those can be complicated. Fixes T4738. I needed to do a fair amount of heavy lifting to get the policy stuff rendering correctly. For now, I made this end point very one purpose and tried to make that clear.

Test Plan

looked at some custom policies. see screenshots.

Diff Detail

Repository
rP Phabricator
Branch
T4738
Lint
Lint Errors
SeverityLocationCodeMessage
Error/Users/btrahan/Dropbox/code/libphutil/src/future/http/HTTPSFuture.php:535PHL1Unknown Symbol
Unit
Tests Passed
Build Status
Buildable 111
Build 111: [Placeholder Plan] Wait for 30 Seconds

Event Timeline

btrahan retitled this revision from to Policy Transactions - add a details view for custom policy.
btrahan updated this object.
btrahan edited the test plan for this revision. (Show Details)
btrahan added reviewers: epriestley, chad.

Easy to use new icons?

src/applications/transactions/controller/PhabricatorApplicationTransactionValueController.php
115

yay icons. maybe fa-minus-circle for denied and fa-checked-circle for allow?

btrahan edited edge metadata.

easily switch out icons as suggested =D

haha, awesome. I meant how was the icon experience? Everything you'd want/easy to understand?

I think its good. Scratchin' my head I can come up with:

setIconFont felt like setIconName to me, but then I figured this "font" stuff was just some design terminology I'm not hip with yet. Plus its "Font Awesome" so that's got to mean something.

I had some trouble finding good icons - searching for words like "approve" that just aren't there (duh) - but now that I've looked through it I have a much better sense of what's there.

epriestley edited edge metadata.

Some minor inlines.

src/applications/transactions/controller/PhabricatorApplicationTransactionValueController.php
72

We should label this cancel button "Close".

81–95

Put this logic in the rules? e.g. $rule_object->getRequiredHandlePHIDsForSummary() or similar?

120–129

Move this into $rule_object too?

This revision is now accepted and ready to land.Apr 29 2014, 11:47 AM
btrahan edited edge metadata.

updates as asked. thanks!

btrahan updated this revision to Diff 21102.

Closed by commit rP94a2cfbe4475 (authored by @btrahan).