On /lottery frontend page the count of winners that is sent to frontend
over socketIO started one index higher than it should.
This was from updating how winners are saved in the backend. Our winners
array now no longer needs to be incremented with 1 from the backend.
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.