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
F13405296: D8890.diff
Fri, Jul 5, 3:03 PM
F13385043: D8890.id21090.diff
Sun, Jun 30, 8:50 PM
F13384280: D8890.diff
Sun, Jun 30, 3:17 PM
F13384270: D8890.id21101.diff
Sun, Jun 30, 3:15 PM
F13361902: D8890.id21090.diff
Tue, Jun 25, 4:39 PM
F13350423: D8890.id21102.diff
Sun, Jun 23, 6:45 AM
F13326168: D8890.diff
Sat, Jun 15, 3:13 AM
F13277185: D8890.id21101.diff
May 31 2024, 8:48 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
Lint
Lint Skipped
Unit
Tests Skipped

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
73

We should label this cancel button "Close".

82–96

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

121–130

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).