Vend button is enabled if there is enough money av...
by jnesselr 5 years 4 months
Vend button is enabled if there is enough money available to vend
4aedc44d
Inverted the colors on the main window buttons
by jnesselr 5 years 4 months
Inverted the colors on the main window buttons

I originally made the buttons have the color border and the white
background when not pressed and then switched to one solid color
with white text when pressed. This diff inverts that.

If someone is colorblind then the enabled not-pressed button and
the disabled button would look basically the same. Plus this
honestly just looks better with the pressed action. In real life
you would think of a button being pushed down and this gives a
similar effect without the use of shadows.

I did modify the row/col buttons here but they don't match that
pattern. I did that for two reasons. One is that when it's a solid
background, it tends to be overpowering. Part of that I think is
that I used 1px black lines to separate the buttons so it all just
blends together and doesn't look good. The other aspect is that you
have a visual indication of the item you want to vend because you'll
see it in the machine. Eventually we'll need to check product stock
levels too and we might end up with the case that an item is visually
there in the machine but the button should be disabled. That may
prove confusing for people, but they'll probably just assume we
miscounted the items in the machine.
ee94db46
Add Item button should be disabled for "processing...
by jnesselr 5 years 4 months
Add Item button should be disabled for "processing" order status
79b67ca1
Vending existing processed order seems to work now
by jnesselr 5 years 4 months
22b472e1
Added "Update Order" endpoint
by jnesselr 5 years 4 months
Added "Update Order" endpoint

No idea of it works currently. I'll need to build out some test data
for it and then test it, so this may not work 100% but we'll see.
f41ba7fc
Removed a bunch of print statements
by jnesselr 5 years 4 months
a3e236ba
Getting started on the update order endpoint
by jnesselr 5 years 4 months
78a72259
Added Order Cancelled function to SiteLink
by jnesselr 5 years 4 months
Added Order Cancelled function to SiteLink

I had to fix the WiFi bridge too because the cancel endpoint doesn't
return a body so the JSON decoding fails. Now the bridge grabs the
content length from the response in the event we ever need that again.

If we need to grab more of these things from the API endpoint, we should
look into regex somehow.

Next up is the last existing endpoint which is the "update order" one.
Primarily this will be used to verify someone really can vend what they
want AND to update vended amounts after the vend itself has kicked off.
50e74f89
Refactored SiteLinkAck out of the SiteLink class
by jnesselr 5 years 4 months
Refactored SiteLinkAck out of the SiteLink class

The SiteLink will have "update order" added soon and that means
it needs some of the ACK stuff available outside the SiteLink class.
7741c2f3
Added "update credit by card" endpoint to SiteLink
by jnesselr 5 years 4 months
ac3dee17
Report a bug