Commit Graph

90 Commits

Author SHA1 Message Date
Austin Chen
95472c5faf Tweak bet panel UI 2022-01-06 01:49:41 -08:00
jahooma
75e9d419ee Fix payout calculation for correct bet in bet panel. 2022-01-05 17:03:30 -06:00
mantikoros
0b8ad76b0f global warming: warm up all cloud functions on client 2022-01-05 12:30:16 -06:00
jahooma
5eaf50612d Advanced metrics for bet panel 2022-01-05 12:23:44 -06:00
jahooma
527a8a8b09 White panels, medium shadows 2021-12-30 13:52:05 -05:00
mantikoros
f48ae0170b
Sell bets (#12)
* sell bet

* dev mode

* single-pot no-refund payoff; bet selling

* Increase default fetch size 25 -> 99

* Fix about page numbering

* Don't flash no markets when loading on tag page.

* Change Title to use body font

* Make a bunch of predictions at once (#9)

* Set up a page to make bulk predictions

* Integrate preview into the same card

* List created predictions

* Make changes per James's comments

* Increase the starting balance (#11)

* Remove references to paying for our Mantic Dollars

* Update simulator to use new calculations

* Change simulator random to be evenly random again

* Sell bet UI

* Migrate contracts and bets script

* Add comment to script

* bets => trades; exclude sold bets

* change sale formula

* Change current value to uncapped sell value.

* Disable sell button while selling

* Update some 'bet' to 'trade'

Co-authored-by: Austin Chen <akrolsmir@gmail.com>
Co-authored-by: jahooma <jahooma@gmail.com>
2021-12-24 15:06:01 -06:00
jahooma
5be7ce5f8f Standardize spacing across pages. 2021-12-18 17:42:06 -06:00
Austin Chen
d8dfd103b9 Minor spacing fix 2021-12-18 15:24:58 -08:00
Austin Chen
f6c45a29c2 Prompt for sign in from bet panel 2021-12-17 23:09:11 -08:00
mantikoros
756f31b1b7 rename contract properties 2021-12-17 16:15:09 -06:00
mantikoros
985621982b bets wording 2021-12-16 15:35:19 -06:00
jahooma
81d3c09e60 Make Yes/No buttons flex. Estimated winnings => Max payout (estimated) 2021-12-15 22:55:03 -06:00
mantikoros
be90a585a8 bet panel: small things 2021-12-15 17:55:46 -06:00
jahooma
e8f94f48e2 Update bet UI with market summary and computed columns 2021-12-15 16:58:38 -06:00
mantikoros
3ee03ffcba bet panel: error handling 2021-12-15 12:44:51 -06:00
Austin Chen
4bf739e06d Tweak bet page UI 2021-12-15 01:07:18 -08:00
jahooma
fda5013bf8 Simple bets list 2021-12-15 01:41:56 -06:00
jahooma
504053dde9 Right align bet input amount. Fix panel layout 2021-12-14 18:38:11 -06:00
jahooma
c3bfe6b058 Show balance in bet panel 2021-12-14 18:24:49 -06:00
jahooma
c0ec7ff3f1 Show error when bet exceeds balance. Don't allow bet number to get into exponential notation. 2021-12-14 18:09:05 -06:00
Austin Chen
b6c5ad730a Add a loading spinner on submission 2021-12-14 01:07:11 -08:00
jahooma
8d7f512248 More layout / style tweaks 2021-12-13 22:54:51 -06:00
jahooma
7e08a68799 Clear bet input on submit 2021-12-13 18:00:10 -06:00
Austin Chen
ad6049350d Visually clean up bet panel 2021-12-13 10:37:20 -08:00
jahooma
45640feb81 Add large percent chance indicator. Use primary color instead of green. Round current probability. 2021-12-12 16:51:44 -06:00
jahooma
7ef00d085f Fix tailwind theme to not override previous font families. 2021-12-12 16:37:59 -06:00
jahooma
b216236503 Graph bets by afterProb. 2021-12-12 16:14:52 -06:00
jahooma
29e13497bf Add volume calculation. Remove new bet button that was unnecessary. 2021-12-10 22:09:32 -06:00
jahooma
e253b3beca Make bet panel calculate bet info and display it. 2021-12-10 21:51:35 -06:00
Austin Chen
8867d841cb
Austin's opinions on theming (#6)
* Run prettier

* Fix package-lock

* Use an off-white background, darker text

* Use indigo for headings instead of green

* Add box shadows to all cards

* Remove unused component

* Extract out a title component

* Fix typo
2021-12-10 19:35:21 -08:00
Austin Chen
fb9a690707 Run prettier 2021-12-10 17:20:52 -08:00
mantikoros
0ce4b339d3 Merge branch 'functions' 2021-12-10 18:07:06 -06:00
mantikoros
d95bef8ab3 placeBet 2021-12-10 18:06:17 -06:00
jahooma
19e8406480 Change color scheme to be primary green (secondary purple, accent yellow). 2021-12-10 17:43:22 -06:00
jahooma
165f2ef3b5 Switch to light theme! 2021-12-10 16:56:26 -06:00
jahooma
e18e7548d5 Better layout on mobile for contract page 2021-12-10 12:52:11 -06:00
jahooma
77ce27f45f Submit bets to firestore 2021-12-10 11:14:05 -06:00
jahooma
f602561323 Tweak bet input to let you clear 0. 2021-12-10 10:04:59 -06:00
jahooma
ae8f7b76f5 Change from inputing shares to a points amount. Show average price and estimated winnings. 2021-12-10 09:51:48 -06:00
James Grugett
48a249eaa9
Contract page (#5)
* Add Firestore package and config

* Upload basic Firebase Auth code

* Basic ability to sign in and view profile

* Move html head content to Next's _document

* Apply dark theme to all DaisyUI components

* Add contract page

* Smaller width bet input

* Add some buttons

* Add Row, Col, and Spacer components

* Implement skeleton ContractPage

* Apply dark theme to all DaisyUI components

* Fix hooks lints (#3)

* Add background to bet panel

* Changes based on review comments

Co-authored-by: Austin Chen <akrolsmir@gmail.com>
2021-12-10 08:56:17 -06:00