This is combination UI improvement and bug fix.
Right now, we have logic in
app/view_models/admin/edit_auction_view_model.rb that allows an admin to set an auction to
published only if
c2_approved_at is present. But this field will never be present for auctions for
purchase_card: :other because those auctions do not have a c2 proposal to be approved.
Pieces of this story:
Allow an admin to publish an auction on edit without requiring a value for
c2_approved_at when the auction is for a
other purchase card.
Add validations at the
ActiveRecord level that ensure auctions for the
default purchase card that do not have a
c2_approved_at timestamp cannot be published
UI improvement to dynamically allow
published if the
other purchase card option is selected in the form.
Assuming an auction does not have a value for
c2_approved_at, these are the following states available in the form (for a new auction or when editing):
This will require a little bit of jquery.
Does not decrease code climate grade Tests run on Travis-CI and do not break the build. New features do not degrade accessibility (use pa11y/HTML Code Sniffer). New functionality is adequately documented.
|Bryan Allred||079274733||$1,744.00||August 24, 2016 12:40:56 PM EDT|
|Vidya||964742063||$1,000.00||August 24, 2016 08:56:21 AM EDT|
|Mila Frerichs||313210696||$798.00||August 24, 2016 07:25:53 AM EDT|
|Evan Rose||07-944-1444||$1,850.00||August 23, 2016 11:54:55 AM EDT|
|Dan Malks||079977978||$475.00||August 23, 2016 11:14:31 AM EDT|
|SAASTREE LLC||080191524||$475.00 *||August 22, 2016 11:50:08 PM EDT|
|Summers, Dane||080194337||$1,500.00||August 22, 2016 07:13:02 PM EDT|
|Nathan Stitt||060956424||$1,800.00||August 22, 2016 03:34:33 PM EDT|
|Christian G. Warden||080033077||$2,249.00||August 22, 2016 02:16:59 PM EDT|
|Dan Croak||148361251||$690.00||August 22, 2016 01:02:35 PM EDT|
* - winning bid
Bidding for this auction closed on August 24, 2016 01:00:00 PM EDT.
August 22, 2016 01:00:00 PM EDT
August 24, 2016 01:00:00 PM EDT
August 31, 2016 01:00:00 PM EDT
Sealed bid (rules)
August 30, 2016 10:20:19 AM EDT
August 30, 2016 09:59:46 AM EDT