Use new api/lottery/latest to check if todays lottery has already been
archived. If yes we disable button and show dialog explaining how to
reset to next weeks lottery.
- GET /history/search
- GET /purchases
- /purchases
- /purchases/summary
- /purchases/:date
- PUT /lottery/winner/:id (not currently used)
- GET /lotteries
- POST /lottery/messages/winner/:id
- requestWineController validates wine object and returns helpfull
error repsonse if anything is missing.
- requestWine uses new endpoint and calls api from within itself.
- Linting.
Hides elements so we always show filled filled rows. The wine compoennt
does not load images before they are in the viewport, so it should not
decrease performance.
- .small: minimal height for content.
- .pulse-button: animate a pulsating effect, used for getting user
attention.
- .warning: new orange warning button styling, used for update buttons.
Separate function for getting all history including the winners object.
Both have sort parameter that is used within the mongo query instead of
doing it in javascript.
Hides elements so we always show filled filled rows. The wine compoennt
does not load images before they are in the viewport, so it should not
decrease performance.
Draw winner page has:
- Better user feedback
- Knows how many wines are left
- Separat button for starting sms prize distribution.
- Edit, update and delete wine by id.
RegisterWinePage:
- Import wine by url.
- Edit, update and delete wine by id.
Removed all other features than adding raffles bought, money received
and mapping of wines and winners.
Also now does api calls from within the component, not external api.js.
Better validation and use of toast plugin for user feedback.
The ui for adding a new user is much more friendly and enables adding
using only keyboard.
Leveraging the new api design supporting CRUD we can update & delete
attendees individually.