IndivisibleSomerville / its-our-call

2 stars 1 forks source link

Add pass/defeat states to the Bow Graph #53

Closed andrewtremblay closed 6 years ago

andrewtremblay commented 6 years ago

should close (#50)

To test an edge case not displayed here, use the query param values: http://localhost:3000/issues/1?desiredOutcome=nay&requiresThreeFifth=true&percentYea=50&percentNay=40&percentUncommitted=10

desiredOutcome : yea / nay (default nay) requiresThreeFifth : determines whether the goal vote ration is 50% or 60% (default 50%) percentYea / percentNay / percentUncommitted : must add up to 100 :default 55 : 40 : 5 adjustForTiebreaker: changes actual goal number to goal post +1 to pass/defeat (goal post does not change) (default true).

preview images
screen shot 2018-04-26 at 2 20 55 am
screen shot 2018-04-26 at 2 18 46 am screen shot 2018-04-26 at 2 17 36 am
screen shot 2018-04-26 at 2 20 06 am
andrewtremblay commented 6 years ago

@ethanbb Sorry for the fast merge, feel free to review the PR regardless!