jahooma
9bf257ef64
Embed markets below landing page. Listen for market changes
2021-12-16 22:44:48 -06:00
jahooma
1c4a834696
Bring back collapse animation by moving padding from card.
2021-12-16 22:27:22 -06:00
jahooma
e82b66959b
Switch back to useEffect instead of useLayoutEffect, because nextjs complained.
2021-12-16 22:17:33 -06:00
jahooma
7fd3cc185f
Remove headlessui and heroicons from package.json
2021-12-16 22:12:33 -06:00
jahooma
2c9f8e00bf
Fix nextjs console error by not loading from localstorage immedately. Use layout effect instead.
2021-12-16 22:09:38 -06:00
jahooma
96791e11a5
Stop flash of landing page when signed in and loading '/'
2021-12-16 21:37:38 -06:00
Austin Chen
ef091f4359
Add a temporary link to explore all markets from homepage
2021-12-16 18:36:41 -08:00
jahooma
7464d1e54f
Align description buttons right. Switch to 12 hour format time
2021-12-16 16:17:43 -06:00
jahooma
325619aa01
Edit => Add to description. Autofocus the textarea.
2021-12-16 16:07:37 -06:00
jahooma
ad2f080c6e
Improve layout of bets card
2021-12-16 15:51:47 -06:00
mantikoros
985621982b
bets wording
2021-12-16 15:35:19 -06:00
jahooma
06f1657a4c
Stop link click propogation
2021-12-16 15:28:58 -06:00
mantikoros
4503a5e04a
display active contracts first
2021-12-16 15:22:24 -06:00
mantikoros
01bb4e4156
fix UserPage access issues
2021-12-16 15:22:24 -06:00
jahooma
21d0eca49f
Collapsable bets, with bet table collapsed by default
2021-12-16 15:22:00 -06:00
jahooma
9289ad1f37
Remove All bets section from contract page
2021-12-16 13:51:35 -06:00
mantikoros
4be9c3d80c
SEO component
2021-12-16 12:40:23 -06:00
mantikoros
99637d913d
add meta tags to contract
2021-12-16 12:21:16 -06:00
Austin Chen
070b5e55c1
Spacing & wording tweak
2021-12-16 02:50:32 -08:00
Austin Chen
a8733723be
Editable descriptions
2021-12-16 02:46:41 -08:00
Austin Chen
085e6d868f
Switch header links to underline
2021-12-16 01:53:19 -08:00
Austin Chen
5e980a7863
Fix ContractOverview layout
2021-12-16 01:39:16 -08:00
Austin Chen
6b5bf3cb35
Line up BetSection with graph
2021-12-16 01:32:52 -08:00
Austin Chen
c64289af86
Make descriptions optional
2021-12-16 01:26:35 -08:00
Austin Chen
aab735cd8b
Fix UserPage alignment
2021-12-16 01:09:36 -08:00
Austin Chen
ec516ee41f
Move bet payouts to the top right of the card
2021-12-16 01:03:41 -08:00
jahooma
eaa9651c82
Fix create market redirect
2021-12-16 01:00:35 -06:00
jahooma
8abbc34652
Improve graph for resolved bets
2021-12-16 00:44:04 -06:00
mantikoros
00f5fbcf93
contract: static props, useContractWithPreload
2021-12-16 00:36:51 -06:00
jahooma
5d2e81f982
Simplify card
2021-12-16 00:11:14 -06:00
mantikoros
2a08f70a9f
contractid: reenable stuff
2021-12-15 23:56:12 -06:00
jahooma
4fd3f03fd3
Prevent flash of 404 on user profile page.
2021-12-15 23:56:03 -06:00
mantikoros
24dabe09fa
upgrade nextjs version
2021-12-15 23:49:38 -06:00
jahooma
5565bc5455
Make list of contract's bets be a card. Underline contract question as a link.
2021-12-15 23:10:31 -06:00
jahooma
81d3c09e60
Make Yes/No buttons flex. Estimated winnings => Max payout (estimated)
2021-12-15 22:55:03 -06:00
mantikoros
318e22b97d
test
2021-12-15 22:52:07 -06:00
jahooma
36591539d3
Sort bets reverse-chronologically.
2021-12-15 22:40:48 -06:00
jahooma
ea1e66bda1
Add bets section to contract page.
2021-12-15 22:30:24 -06:00
mantikoros
9bd0ad7211
test
2021-12-15 22:20:39 -06:00
mantikoros
c5286dfa87
test
2021-12-15 22:12:27 -06:00
mantikoros
09ad6a3fe0
test
2021-12-15 22:10:14 -06:00
jahooma
b9fb1d0f31
Fix build and redirect logged out users from '/create' to '/'
2021-12-15 21:58:28 -06:00
jahooma
f2d19360aa
Improve chart's time axis to be over at least 8 hours, and extend up to now.
2021-12-15 21:48:09 -06:00
mantikoros
3691ef81ed
test ssr
2021-12-15 21:45:31 -06:00
mantikoros
5206121579
ContractPage: static paths blocking
2021-12-15 21:42:05 -06:00
mantikoros
fe0d666c2b
test ssg
2021-12-15 21:24:11 -06:00
mantikoros
7b4e35699d
fix build issue
2021-12-15 21:20:39 -06:00
mantikoros
d59666e7e3
add meta tags to contract
2021-12-15 21:14:04 -06:00
jahooma
fe9def453b
Show total of active bets and their current value. Arrange unresolved markets first.
2021-12-15 21:04:44 -06:00
Austin Chen
09dba6ef1e
Fix: Don't show "Resolved" on unresolved markets
2021-12-15 18:51:41 -08:00
Austin Chen
02d836adda
Search and filter from UserPage
2021-12-15 18:50:03 -08:00
Austin Chen
79c0685b30
Move market creation to /create
2021-12-15 18:35:54 -08:00
jahooma
83b4cc38b3
Show just payout column for resolved markets, tweak calculation and resolved labels.
2021-12-15 20:28:40 -06:00
Austin Chen
743616449f
Prefix username URLs with @
2021-12-15 18:26:38 -08:00
Austin Chen
87010c1924
Extract shared UserPage code
2021-12-15 18:16:08 -08:00
Austin Chen
64dde4f482
Link to UserPage with @username
2021-12-15 18:16:00 -08:00
Austin Chen
9df78a4963
Support user profiles on /[username]
...
Currently all bets are also shown
2021-12-15 17:34:36 -08:00
Austin Chen
8e119a6338
Replace /contract/[id]
with /[username]/[id]
2021-12-15 16:52:19 -08:00
mantikoros
4b96015793
yes or no: up contrast
2021-12-15 18:02:15 -06:00
mantikoros
f0fbabbfb2
res panel: capitalize outcoms
2021-12-15 18:02:04 -06:00
mantikoros
be90a585a8
bet panel: small things
2021-12-15 17:55:46 -06:00
mantikoros
18abe96fbe
header: open about in new tab
2021-12-15 17:29:16 -06:00
jahooma
f32933f668
Bet calculation / UI updates
2021-12-15 17:27:02 -06:00
jahooma
e8f94f48e2
Update bet UI with market summary and computed columns
2021-12-15 16:58:38 -06:00
mantikoros
e281233924
contract now has dpmWeights
2021-12-15 16:44:22 -06:00
mantikoros
4b123d47ee
change starting balance to 100
2021-12-15 16:27:57 -06:00
mantikoros
e3f4a99263
header: hide markets for nonsigned in users
2021-12-15 12:55:00 -06:00
mantikoros
663821d0a0
contract overview: remove delete button for nonzero volume resolved contracts
2021-12-15 12:52:43 -06:00
mantikoros
f0e0796b99
resolution panel: show errors, disable when submitting, rename confirm button
2021-12-15 12:44:51 -06:00
mantikoros
3ee03ffcba
bet panel: error handling
2021-12-15 12:44:51 -06:00
jahooma
a07d29b881
Switch to compact table of bets
2021-12-15 12:41:18 -06:00
Austin Chen
5d1ab7d5f6
Replace ConvertKit email with sign in button
2021-12-15 01:30:00 -08:00
Austin Chen
5f7052a58e
Tweak resolution panel UI
2021-12-15 01:11:27 -08:00
Austin Chen
4bf739e06d
Tweak bet page UI
2021-12-15 01:07:18 -08:00
Austin Chen
5bad8b2787
Hide resolved markets by default
2021-12-14 23:44:51 -08:00
Austin Chen
f5a8f9de1b
Always lowercase titles
2021-12-14 23:44:51 -08:00
Austin Chen
c00c649fbe
Replace "Cancel" with "N/A", for better visual spacing
2021-12-14 23:44:51 -08:00
Austin Chen
b14b433417
Set all markets to be the logged-in homepage
2021-12-14 23:44:50 -08:00
jahooma
fda5013bf8
Simple bets list
2021-12-15 01:41:56 -06:00
mantikoros
104257001b
simulator: random bet in proportion to prob, delete vue simulator
2021-12-15 01:06:21 -06:00
jahooma
344b06124f
useUser: Listen for changes to logged in user
2021-12-14 18:45:13 -06:00
jahooma
504053dde9
Right align bet input amount. Fix panel layout
2021-12-14 18:38:11 -06:00
jahooma
0c880bb0cb
Add bet panel for creator of market. Can disable later if we decide to
2021-12-14 18:29:58 -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
jahooma
6e61b38a9b
Remove resolved panel, move info into contract overview.
2021-12-14 12:51:30 -06:00
mantikoros
72f77c668f
ContractCard: color resolution text
2021-12-14 11:43:51 -06:00
mantikoros
9cbfbc5275
contract overview: hide percent chance if market is resolved
2021-12-14 11:37:31 -06:00
mantikoros
b85d9035b0
lower new user starting balance to M$1000
2021-12-14 11:36:23 -06:00
mantikoros
11cc6ba622
format user balance
2021-12-14 11:35:11 -06:00
Austin Chen
7b55eeff88
Move shared logic into contracts-list
2021-12-14 02:27:22 -08:00
Austin Chen
dc90c4fa74
Extract shared logic into ContractDetails
2021-12-14 02:23:32 -08:00
Austin Chen
e2e168737a
Move delete button to resolved contracts
2021-12-14 01:42:46 -08:00
Austin Chen
b6c5ad730a
Add a loading spinner on submission
2021-12-14 01:07:11 -08:00
Austin Chen
1da3cc7725
Link to All Markets from header
2021-12-14 01:03:16 -08:00
Austin Chen
fe6531cf78
Add a search bar and sort dropdown
2021-12-14 00:57:27 -08:00
Austin Chen
eb8cb69545
Slightly nicer percentage range
2021-12-14 00:35:56 -08:00
Austin Chen
c900c1798b
Use ContractsGrid for your markets
2021-12-14 00:35:20 -08:00
Austin Chen
f42e3c23da
Split markets into Open and Resolved
2021-12-13 23:59:04 -08:00
Austin Chen
d4bb419478
Prettier everything
...
(Hopefully for the last time)
2021-12-13 23:30:09 -08:00
Austin Chen
6995802272
Configure Husky to automatically run Prettier before git commits
...
https://prettier.io/docs/en/precommit.html#option-2-pretty-quickhttpsgithubcomazzpretty-quick
2021-12-13 23:24:22 -08:00
jahooma
1562565f9a
Try to fix build maximum fraction digits out of range error
2021-12-14 01:09:46 -06:00
jahooma
5c7a8e52c9
Fix type errors
2021-12-14 01:05:33 -06:00
mantikoros
f2748db21d
resolve markets
2021-12-14 01:02:54 -06:00
jahooma
325206f27b
Fix graph's overlapping ticks on mobile
2021-12-14 00:56:36 -06:00
jahooma
43941cd212
Simple market resolved panel
2021-12-14 00:12:25 -06:00
jahooma
15691c0a38
Query for user bets. Template page to show them.
2021-12-13 23:40:38 -06:00
jahooma
8d7f512248
More layout / style tweaks
2021-12-13 22:54:51 -06:00
jahooma
122e571179
Tweaks to create contract page.
2021-12-13 22:32:33 -06:00
jahooma
7b0c011d39
Improve styles of account page
2021-12-13 19:31:56 -06:00
mantikoros
14cf1e6a8b
ContractCard: declutter, fix deletion
2021-12-13 19:24:13 -06:00
Austin Chen
bae969058a
Add a page which lists all markets
...
TODO: Add in functionality
2021-12-13 17:09:58 -08:00
mantikoros
5ffe266cf7
contract creation: use slug, calculate seed amounts from given probability
2021-12-13 19:07:36 -06:00
jahooma
571c1307fa
Factor out confirmation modal component.
2021-12-13 18:47:43 -06:00
jahooma
cd6ed7dc55
Add confirmation dialog when resolving market!
2021-12-13 18:28:37 -06:00
jahooma
0d56ad603e
Add UI for resolution panel!
2021-12-13 18:00:10 -06:00
jahooma
7e08a68799
Clear bet input on submit
2021-12-13 18:00:10 -06:00
mantikoros
c6b860c0c8
replace meta tags
2021-12-13 16:32:09 -06:00
jahooma
8850e418eb
Remove static export of site
2021-12-13 15:44:04 -06:00
Austin Chen
ad6049350d
Visually clean up bet panel
2021-12-13 10:37:20 -08:00
Austin Chen
62da8ee3a9
Darken the yes/no bg color
2021-12-13 10:37:20 -08:00
Austin Chen
e9c183a493
Allow users to sign in from /account
...
SQ
2021-12-13 10:37:16 -08:00
Austin Chen
cecccbe94d
Add a drop shadow on the Account card
2021-12-13 10:32:54 -08:00
mantikoros
53907d2d52
user.balanceUsd => user.balance
2021-12-13 11:58:47 -06:00
jahooma
9f59f4b3c4
Render the actual contract created time
2021-12-13 01:01:09 -06:00
jahooma
1303da7441
Graph time of bets
2021-12-13 00:55:35 -06:00
mantikoros
15aec6df55
homepage: tagline
2021-12-13 00:23:48 -06:00
jahooma
fe9a4f941b
Fix logo dimensions
2021-12-12 23:42:45 -06:00
jahooma
60c86a57aa
Webp background image. Add white-background logo for future.
2021-12-12 23:36:02 -06:00
jahooma
8c3bc43064
Remove gradient from logo, use our primary color
2021-12-12 23:13:30 -06:00
jahooma
fbb0bd4aa8
Improve landing page, especially on mobile!
2021-12-12 22:36:15 -06:00
jahooma
1048f866d1
Layout tweaks for simulator
2021-12-12 22:13:27 -06:00
jahooma
54571b29de
Update simulator to nivo chart. Remove chart.js
2021-12-12 19:50:17 -06:00
jahooma
d32d929735
Add a better charting library!
2021-12-12 19:10:35 -06:00
mantikoros
b673c87f36
header: change about page link
2021-12-12 17:41:17 -06:00
mantikoros
cfd2f22254
simulator: quadratic price function, random bets, change table cols
2021-12-12 17:06:46 -06: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
07d8680217
Upgrade to Tailwind CSS 3.0!!
2021-12-12 14:09:41 -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
52addd2eb3
show content only with ?demo
2021-12-10 18:19:50 -06:00
jahooma
3a5b59abc3
Turn off nextjs img lint rule
2021-12-10 18:18:43 -06:00
jahooma
0ea4736c37
Replacing Image components with img
2021-12-10 18:16:58 -06:00
mantikoros
0ce4b339d3
Merge branch 'functions'
2021-12-10 18:07:06 -06:00
jahooma
b067bc8ada
Layout tweaks
2021-12-10 18:06:51 -06:00
mantikoros
d95bef8ab3
placeBet
2021-12-10 18:06:17 -06:00