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
F14078092: D8890.diff
Fri, Nov 22, 2:05 AM
Unknown Object (File)
Mon, Nov 18, 12:09 AM
Unknown Object (File)
Thu, Nov 14, 12:00 PM
Unknown Object (File)
Sun, Nov 10, 11:51 AM
Unknown Object (File)
Fri, Nov 1, 5:33 AM
Unknown Object (File)
Fri, Oct 25, 2:25 AM
Unknown Object (File)
Thu, Oct 24, 9:08 PM
Unknown Object (File)
Oct 20 2024, 5:59 AM
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).