mantikoros
d49656cb77
create: market close includes time
2022-01-30 23:20:27 -06:00
James Grugett
00b7f3505f
Listen for contract updates in folds feed
2022-01-30 22:12:12 -06:00
James Grugett
9d2b99f237
Listen for updates of contracts on home
2022-01-30 22:03:20 -06:00
James Grugett
997f13d986
Make leaderboard not error on non-existant users
2022-01-30 21:25:52 -06:00
mantikoros
f06ca8305c
Resolve prob ( #41 )
...
* rename MKT to PROB; show resolved probability; move format utilities to common
* ProbabilitySelector
* resolve to PROB
* prob and mkt labels
2022-01-30 15:51:30 -06:00
jahooma
482654d06b
Update folds SEO to include curator.
2022-01-28 13:45:32 -06:00
jahooma
f04d66d5c8
Don't focus feed create unless there's no question yet
2022-01-28 13:23:44 -06:00
jahooma
f75dc0200d
Remove link create a market in placeholder
2022-01-28 12:54:15 -06:00
jahooma
53a6748c6d
Hide negative earners on leaderboard. Show empty message if none on leaderboard.
2022-01-28 12:43:35 -06:00
jahooma
764790c1e1
Add simple Fold page SEO
2022-01-28 12:34:13 -06:00
jahooma
d5742900b0
Remove border on ask question form. Add padding to fold title on mobile
2022-01-28 12:13:12 -06:00
James Grugett
649c6f4642
Make navbar render signed in or signed out by page ( #39 )
2022-01-27 17:06:31 -06:00
mantikoros
bd6c215cd3
use img instead of next js image for avatar, logo ( #38 )
2022-01-27 16:50:55 -06:00
jahooma
9b59ea9fbe
Bring back global leaderboards linked from profile menu
2022-01-27 16:43:45 -06:00
jahooma
f2c4d3e9c1
Change to white backgrounds for content. Remove page's margin, set individually.
2022-01-27 16:37:43 -06:00
jahooma
4ca1d33d65
Make tag page check lowercase tag field
2022-01-27 15:11:32 -06:00
mantikoros
f58126e630
create: remove default close date
2022-01-27 14:31:09 -06:00
mantikoros
9acb07aa14
home: remove hot, closing soon sections
2022-01-27 14:23:55 -06:00
jahooma
bb788d5201
Change placeholder in fold create question
2022-01-27 14:05:59 -06:00
mantikoros
d2e78eb5de
markets: make 24hr vol default sort
2022-01-27 12:48:47 -06:00
jahooma
9764a03189
Add create market to top of fold activity. Auto-adds the primary tag of the fold.
2022-01-27 12:45:35 -06:00
jahooma
61d2557c35
Launch folds in nav bar, update copy.
2022-01-27 01:10:28 -06:00
jahooma
769763d006
Tweaks
2022-01-27 00:38:42 -06:00
Austin Chen
c047365bb4
Include "Buy" tag inside buttons
2022-01-26 16:28:57 -06:00
jahooma
b1abfcda8b
Placeholder when no activity on folds page
2022-01-26 14:39:25 -06:00
jahooma
ef8157025f
Compute fold follower count from cloud function.
2022-01-26 14:27:16 -06:00
Austin Chen
e4377ee3a3
Allow betting directly from the activity feed ( #36 )
...
* Show a popup for betting on the Activity feed
* Replace the popup with a YES/NO selector
* Autofocus the bet amount
* Hide BetRow when not appropriate
* Make bet modal larger on desktop
* Default to YES if no bet choice has been made yet
2022-01-26 14:08:03 -06:00
jahooma
76841e53b1
Follow and unfollow folds
2022-01-26 14:03:32 -06:00
jahooma
c3f49c44a0
Cardify folds in fold list
2022-01-26 12:44:16 -06:00
jahooma
8e511e7cc9
Add about to top of fold page on mobile. Layout tweaks
2022-01-26 12:02:53 -06:00
jahooma
2ea05f8913
Folds query on lowercase tags. Adding to description updates tags & lowercaseTags fields.
2022-01-25 17:52:21 -06:00
jahooma
8b0091f30d
Split out create fold button. Show about description on /folds
2022-01-25 17:02:02 -06:00
jahooma
897eb0c27b
Handle 404 errors for non-existent fold subpages
2022-01-25 15:44:32 -06:00
James Grugett
8b9d0e5dba
New fold page UI with tabs ( #37 )
...
* Tabbed fold page
* Implement market, leaderboard tab views for fold. And edit dialog
* Add about field to Fold
2022-01-25 14:47:25 -06:00
jahooma
ed9285dbc1
Make folds page more understandable. Add additional tags on fold creation
2022-01-24 16:58:51 -06:00
jahooma
705d5cada7
Add lowercaseTags field to contracts. ante / closeTime non-optional in new contract code
2022-01-24 16:33:10 -06:00
Austin Chen
13590bf5d1
Surface user emails in /admin
2022-01-24 00:48:10 -06:00
jahooma
0e3e4b8192
Show unresolved markets first in fold
2022-01-23 23:55:48 -06:00
jahooma
bc3e43802b
Listen for new folds on /folds
2022-01-23 23:48:10 -06:00
jahooma
b059a44acc
Use fold hook
2022-01-23 00:51:19 -06:00
jahooma
6cc2e6692e
Fix DOM error for nested forms
2022-01-22 18:38:37 -06:00
mantikoros
fd03eb841f
home: remove incomplete loading of contract data
2022-01-22 18:36:35 -06:00
mantikoros
7c124c1390
home: handle undefined props
2022-01-22 18:32:50 -06:00
jahooma
cff2611582
Add back dynamically loading feed
2022-01-22 18:26:56 -06:00
mantikoros
80776186aa
/home for signed in users ( #35 )
2022-01-22 18:16:23 -06:00
jahooma
aa1022546d
Implement leaderboards for folds!
2022-01-22 17:59:50 -06:00
jahooma
bc1decdbfc
Initialize folds with one primary tag
2022-01-22 15:47:24 -06:00
jahooma
789df9a76d
Add some catches
2022-01-22 15:21:52 -06:00
jahooma
fe912921eb
Use nicer tag component for folds
2022-01-22 14:52:49 -06:00
jahooma
be82406c4d
Include older contracts in fold feed
2022-01-22 11:50:09 -06:00
jahooma
0617fedb17
Add /markets for fold
2022-01-22 11:39:35 -06:00
mantikoros
4698d119b4
activity, withoutAnteBets: check for undefined
2022-01-22 11:15:14 -06:00
jahooma
affa9a5ab6
Change default sort of all markets to most traded
2022-01-21 18:31:20 -06:00
jahooma
9733056ce7
Hide hot and closing soon markets on all markets
2022-01-21 18:30:27 -06:00
jahooma
d357f51883
Reorg homepage. No feed when not signed in, add back hot & closing soon for signed
2022-01-21 18:28:12 -06:00
James Grugett
60f68b178d
Folds ( #34 )
...
* Fold type, fold page, query for fold contracts
* Tsconfig: target esnext, nounused locals: false
* Store tags in field on contract. Script to update contract tags
* Show tags on fold page
* Load all fold comments server-side to serve better feed
* Fix the annoying firebase already initialized error!
* Add links to /edit and /leaderboards for fold
* Page with list of folds
* UI for creating a fold
* Create a fold
* Edit fold page
2022-01-21 17:21:46 -06:00
Austin Chen
5be6a75e4b
Create new markets directly from the feed ( #33 )
...
* Move hot & closing markets to All Markets
Soon to be named "Explore"
* Set up a question box on the homepage
* Show Leaderboards by default instead of Create
* Support full contract creation from homepage
* Force mt-0 on /markets
* Move description into info tooltip
* Add hint to ask a question
* Initialize close date to 1 week from today
* Add a promo section for logged-out users
* Add hashtags, remove mobile padding
* Rewrite promo copy
* Store hotContracts as static props
2022-01-21 12:33:58 -06:00
Austin Chen
9457ac9337
Show resolved markets on Admin page; show create & resolve times
2022-01-20 01:55:10 -05:00
mantikoros
4c0a994174
about: remove open beta disclaimer, barb about praying mantises
2022-01-19 16:13:56 -06:00
Austin Chen
b3282c4302
Improve SEO descriptions
2022-01-19 12:57:35 -05:00
jahooma
d3031e0f10
Admin contracts tabel: Add visibility column, filter out resolved
2022-01-18 16:29:49 -06:00
jahooma
aa164cd5f5
Add contracts table to admin page
2022-01-18 16:10:40 -06:00
mantikoros
908c8c03e6
Create user cloud function ( #31 )
...
* createUser cloud function; change User object
* initial commit
* listenForLogin: avoid race condition
* createUser: allow capital letters in username
* remove debugging
* leaderboard: empty url for undefined avatar image
2022-01-18 01:18:38 -06:00
James Grugett
6625983bb7
Leaderboards 🏅 ( #30 )
...
* Simple leaderboards
* Filter out SG from traders. Center leaderboard. Use Nextjs Image.
* Add leaderboards menu option
* Put leaderboards side-by-side on large screens
* Add medal emoji
2022-01-17 21:20:25 -06:00
jahooma
4d975ff512
Add closing soon section to home
2022-01-17 16:54:00 -06:00
Austin Chen
673c432bb9
Expose Firestore analytics on /analytics
2022-01-17 13:34:28 -05:00
Austin Chen
279437ba08
List users on admin page ( #28 )
...
* Admin page using gridjs
* Move hook into separate file
* Link to each user's Manifold and Firestore /user entry
* Gate admin access to Austin/James/Stephen
* Don't leak the existence of /admin
* Add a custom 404 page that directs to Discord.
* Fix broken window.location.href on NextJS server
2022-01-15 22:09:15 -05:00
Austin Chen
07709cdccb
Fix Calendly link
2022-01-15 21:05:26 -05:00
jahooma
c13b71b754
Center create market page. Tweak labels
2022-01-15 19:02:01 -06:00
mantikoros
615d5874b3
Merge branch 'main' of https://github.com/manticmarkets/mantic
2022-01-15 17:31:56 -06:00
mantikoros
43c67b2820
create page info tooltips; small bug fix: use balance instead of remainingBalance
2022-01-15 17:30:48 -06:00
jahooma
1aa88a917b
Fix missing key
2022-01-15 17:29:38 -06:00
jahooma
0069846335
Turn off hook for fetching hot contracts for now.
2022-01-15 12:43:39 -06:00
jahooma
f6079e68d0
Choose random hot contracts from top 16 every 5 minutes.
2022-01-15 00:44:33 -06:00
jahooma
e12e399679
Fix feed order moving around on load
2022-01-14 19:12:38 -06:00
jahooma
9d44c40415
Preserve scroll on back
2022-01-14 18:43:00 -06:00
jahooma
895eba4553
Get static props of just data for feed: active contracts, their bets & comments.
2022-01-14 18:16:32 -06:00
mantikoros
3fa2926559
create page design; require minimum ante; lower phantom ante amount; createContract checks
2022-01-14 17:39:17 -06:00
jahooma
c70ec1dad3
Remove 3 unnecessary DOM elements from card
2022-01-14 12:28:48 -06:00
jahooma
40c853e595
Reimplement hot markets with flex box, since I can't figure out how to make the css grid version not flash bad layout.
2022-01-14 00:55:35 -06:00
jahooma
07a7fc219b
Axe landing page, show home feed
2022-01-13 14:54:31 -06:00
jahooma
2b618be3ac
Increase padding on contract page
2022-01-13 12:58:49 -06:00
jahooma
de043de589
Add visibility field to contracts. Hot contracts & activity feed show only visibility 'public'.
2022-01-12 19:53:50 -06:00
jahooma
1fbde3646f
Bump up feed padding on mobile
2022-01-12 15:32:50 -06:00
jahooma
33f4965fa4
Change activity feed to white bg, no hover bg, smaller width, centered
2022-01-12 15:23:29 -06:00
mantikoros
9d5490cf9a
Switch to new dpm mechanism ( #26 )
...
* initial commit
* antes
* rename path, compute to contractPath, contractMetrics
* merge
* Include antes as bets; more calculations
* fees on estimated winnings
* mkt payout calculation
* contract: remove startPool, add phantomShares
* Merge branch 'main' into new-dpm
* dpm migration script
* my service account
2022-01-12 13:01:04 -06:00
Austin Chen
7c1d70313b
Uncardify activity feed
2022-01-12 13:20:28 -05:00
Austin Chen
edb3809f1c
Standardize on max-w-4xl
2022-01-12 02:13:01 -05:00
jahooma
8839ffc492
Require close date for new markets. Update description placeholder to say it's optional.
2022-01-11 23:40:41 -06:00
jahooma
ca38640b89
Tweak positioning of add funds button, no green initial probability
2022-01-11 23:29:50 -06:00
jahooma
2f88a5cdab
Remove Activity Feed from create page per Stephen
2022-01-11 21:59:44 -06:00
jahooma
19c0f83b85
Activity feed on home page! All markets navbar option.
2022-01-11 21:56:11 -06:00
jahooma
ebb1bc7359
Fix feed layout on mobile, adjust spacing, max width.
2022-01-11 14:57:53 -06:00
Austin Chen
5b431226d4
Show all recent activity on a central feed ( #24 )
...
* Tracks all market activity on a single page
* Support both global and per-contract feeds
* UI tweaks
* Include contract description in activity feed
* Show activity feed on Create page
2022-01-11 11:56:26 -05:00
James Grugett
bfd0af1c80
New logo: oragami crane ( #25 )
...
* new logo
* Switch out mantis for crane in logos
* White svg on dark background. Align correctly on landing page.
* Mobile navbar: hide your name, write out Manifold Markets
Co-authored-by: mantikoros <sgrugett@gmail.com>
2022-01-11 00:16:58 -06:00
jahooma
7fbecbc102
Extract bet amount input to component.
2022-01-10 21:41:42 -06:00
jahooma
a04c978408
Keep page wide if showing resolve panel
2022-01-10 10:33:02 -06:00
mantikoros
01506fedeb
about page
2022-01-10 01:12:14 -06:00
Austin Chen
feca042e47
Use the generated OpenGraph card in all markets ( #23 )
...
* Run OpenGraph server on dev port 3001
* Cut '%' since frontend already passes it
* Use the generated card in markets
* Rename to ogCardProps
* Don't show creator avatar url, for now
* Remove bad comment
2022-01-10 02:05:24 -05:00
Austin Chen
ed37d93868
Dynamically generate Opengraph images for each market ( #21 )
...
* Start customizing opengraph image
* Fix cover image size to 1200x630
* Design a text-based, dynamic preview card
* Load designed html into template.ts
Remove twemoji for now too
* Take in params to configure Manifold card
* Switch back to hardcoded png for default case
2022-01-10 00:50:31 -05:00
jahooma
cedd8df45c
Show hot market 24 hour volume instead of pool
2022-01-09 15:21:30 -06:00
jahooma
d1c6e5bc91
Change useContracts to return undefined instead of 'loading'. Serve static props on tag page
2022-01-09 14:51:20 -06:00
jahooma
16ab0e0c37
Query hot contracts from volume24Hours field.
2022-01-09 14:26:51 -06:00
jahooma
6d4554e9ef
Don't show resolved markets in hot markets
2022-01-09 12:14:20 -06:00
jahooma
519dda6473
Use gray-500 instead of gray-400 for text against gray bg.
2022-01-08 23:10:08 -06:00
mantikoros
abb5d53431
ensure bet amounts are positive
2022-01-08 11:51:42 -06:00
jahooma
6398f93ffe
Show just the hot markets on homepage.
2022-01-08 00:23:50 -06:00
James Grugett
af6387bbf3
Stripe ( #22 )
...
* basic working payments
* Select funds amount and prettier funds button / dialog
* Add funds page and nav menu option
* Format funds amount. Use ghost button for back.
* Add mantic dollars description
* Improve styles of add funds page
* about styling
* change faq => about
* change default font to Courier
* header sign out menu item; remove user card
* keep logo font
* fix header issue
* stripe webhook: handle repeat events
* Make add funds button a gradient
* add funds referer url
* Fix add funds page after merge
* Slight VisD tweaks
* Update add funds button position. Mantic => Manifold
* Remove Add funds menu option for now.
* Set up product ids and endpoint for stripe prod
* Swap back order in profile menu
Co-authored-by: mantikoros <sgrugett@gmail.com>
Co-authored-by: Austin Chen <akrolsmir@gmail.com>
2022-01-07 16:56:14 -06:00
Austin Chen
fccf52eb34
Use our new dynamic opengraph image
2022-01-07 12:19:17 -08:00
mantikoros
a7c42ee8ec
meta image tag
2022-01-06 21:54:11 -06:00
mantikoros
59034839a9
meta tag image
2022-01-06 21:41:29 -06:00
jahooma
bdb46fc7c1
Tweaks for create market page
2022-01-06 21:32:46 -06:00
James Grugett
85b5ee5cbc
Rename to Manifold Markets! ( #19 )
...
* Update logo and about page to manifold
* Change urls, titles / metatags, landing page
2022-01-06 12:48:30 -06:00
Austin Chen
f218a74a0c
Add probability slider to Create Market
2022-01-06 00:45:30 -08:00
mantikoros
95b28bd536
create page: disable form elements after submitting
2022-01-05 21:10:06 -06:00
Austin Chen
22894cb44e
Update Notion link
2022-01-05 15:51:56 -08: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
1bc323d575
Hot markets! 🔥
2022-01-05 00:33:01 -06:00
mantikoros
4386422f02
fix make-predictions
2022-01-05 00:07:36 -06:00
mantikoros
7c875f80da
subsidized markets; create contract cloud function
2022-01-04 23:51:34 -06:00
jahooma
57ee53e133
Create page: Change "Prediction" to "Question" and make it gray
2022-01-04 21:03:00 -06:00
jahooma
6d97b82aee
Use our own Tweet button instead of loading Twitter script
2022-01-04 16:34:07 -06:00
jahooma
73f1116b8f
Add Tweet button to share market
2022-01-04 14:57:48 -06:00
mantikoros
f0e045694a
update about page with more info about basic betting mechanics
2022-01-03 23:56:56 -06:00
jahooma
4d0646a200
Add payout if MKT. Current value uses MKT payout.
2022-01-03 23:44:58 -06:00
mantikoros
44f44272ff
create page: minor changes
2022-01-03 13:00:53 -06:00
jahooma
a331faa1a7
Create page: Chance => Initial probabilty, description out of advanced, advanced arrow clickable
2022-01-03 12:39:44 -06:00
Austin Chen
fb0e16d619
Add a closing date to Create Market ( #10 )
...
* Preview a slimmed-down version of /Create
* Rework dropdown to be on bottom
* Parse the close time as just before midnight
* Prevent invalid contracts from being created
* Prevent trading after contract has closed
2022-01-02 21:21:25 -08:00
James Grugett
bad7a2b543
Sort & query url params ( #17 )
...
* Sort query in progress
* Search and query url params!
2022-01-02 16:46:04 -06:00
mantikoros
cdf25ba659
contract page seo tags
2022-01-02 12:57:52 -06:00
jahooma
8c644da10d
Update contract title with resolution or percent chance
2022-01-01 22:52:55 -06:00
James Grugett
f78920c912
Organize markets by creator!! ( #14 )
2021-12-30 14:03:32 -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
856a2453a1
Remove references to paying for our Mantic Dollars
2021-12-21 14:02:24 -06:00
James Grugett
ff4550fe51
Increase the starting balance ( #11 )
2021-12-21 13:52:27 -06:00
Austin Chen
9d438dc356
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
2021-12-20 22:29:32 -08:00
jahooma
998b01cde7
Don't flash no markets when loading on tag page.
2021-12-20 18:06:24 -06:00
jahooma
05b8ce96b5
Fix about page numbering
2021-12-20 18:04:19 -06:00
jahooma
5cbbb55dba
Tweak spacing
2021-12-19 23:15:18 -06:00
jahooma
918229c6ef
Make navbar line up with content
2021-12-19 22:37:11 -06:00
jahooma
4b3b6436a0
Improve navbar styles. Create Page component with navbar and page structure.
2021-12-19 22:06:30 -06:00
jahooma
702c0af33e
Rename Header to NavBar. Split profile menu and mantic logo out.
2021-12-19 21:12:12 -06:00
mantikoros
f0acc11b83
about styling
2021-12-19 17:38:10 -06:00
jahooma
6efdf46bb3
Don't show "No markets found" when loading markets
2021-12-19 14:40:54 -06:00
Austin Chen
0a4e05ad32
Actually fix build error >.>
2021-12-19 01:24:37 -08:00
Austin Chen
a760940ae6
Support hashtags in the question
2021-12-19 01:08:12 -08:00
mantikoros
f1a96b5320
static loading of markets
2021-12-18 23:59:42 -06:00
jahooma
ab2011609f
Rename [slug] to [contractSlug]
2021-12-18 23:50:47 -06:00
jahooma
b87e751b2d
Improve spacing on landing-page, about faq.
2021-12-18 23:44:08 -06:00
Austin Chen
2a4ad3734b
Various spacing fixes
2021-12-18 17:23:34 -08:00
jahooma
5be7ce5f8f
Standardize spacing across pages.
2021-12-18 17:42:06 -06:00
Austin Chen
639d17cada
Render /about
page in React
2021-12-18 15:19:50 -08:00
Austin Chen
191742c88f
Fix build issue
2021-12-18 13:01:29 -08:00
Austin Chen
bc81091243
Implement #hashtag grouping of markets
2021-12-18 04:06:59 -08:00
Austin Chen
1851b20f42
Fix /bets page
2021-12-18 02:37:26 -08:00
Austin Chen
db122fb614
Supernit: Better line breaking on homepage
2021-12-17 22:49:24 -08:00
jahooma
55479ef4ab
Move hero and landing page to /landing-page. Add bouncing arrow.
2021-12-17 19:47:39 -06:00
jahooma
112a42406e
Add simple bets page
2021-12-17 17:40:20 -06:00
mantikoros
03a3df261c
contract slugs
2021-12-17 17:16:42 -06:00
Austin Chen
022caa4407
Revert to URLs without @
2021-12-17 10:55:18 -08:00
jahooma
cda5810589
Add features section to landing page. About header scrolls to features section.
2021-12-17 01:21:40 -06:00
jahooma
96f2b4abfc
Landing page gradients, larger sign in button
2021-12-16 23:14:31 -06:00
jahooma
9bf257ef64
Embed markets below landing page. Listen for market changes
2021-12-16 22:44:48 -06:00
jahooma
96791e11a5
Stop flash of landing page when signed in and loading '/'
2021-12-16 21:37:38 -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
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
jahooma
eaa9651c82
Fix create market redirect
2021-12-16 01:00:35 -06:00
mantikoros
00f5fbcf93
contract: static props, useContractWithPreload
2021-12-16 00:36:51 -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
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
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
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
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
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
Austin Chen
5bad8b2787
Hide resolved markets by default
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
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
6e61b38a9b
Remove resolved panel, move info into contract overview.
2021-12-14 12:51:30 -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
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
jahooma
5c7a8e52c9
Fix type errors
2021-12-14 01:05:33 -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
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
0d56ad603e
Add UI for resolution panel!
2021-12-13 18:00:10 -06:00
mantikoros
c6b860c0c8
replace meta tags
2021-12-13 16:32:09 -06: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
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
mantikoros
cfd2f22254
simulator: quadratic price function, random bets, change table cols
2021-12-12 17:06:46 -06:00
jahooma
b216236503
Graph bets by afterProb.
2021-12-12 16:14:52 -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
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
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
Austin Chen
290b7051bc
Minor cleanups
2021-12-10 10:07:38 -08:00
Austin Chen
c9229ca2b8
Allow users to create new contracts ( #4 )
...
* 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
* Allow users to create new contracts
* Add back listenForContract
* 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
* Sort contracts by creation time
* Link to market creation from header
* List your markets on account page
* Set fullscreen black background
* Correctly set seeds on new contracts
* Code cleanups
* Gratuitously cool font
* Add creator name, fix ordering
* Use Readex Pro as body font
* Fixes according to code review
Co-authored-by: jahooma <jahooma@gmail.com>
2021-12-10 09:54:16 -08: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
Austin Chen
70ea4b96bb
Use Readex Pro as body font
2021-12-10 03:11:05 -08:00
Austin Chen
405f754e02
Add creator name, fix ordering
2021-12-10 00:45:32 -08:00
Austin Chen
6f7f8b9401
Gratuitously cool font
2021-12-10 00:40:03 -08:00
Austin Chen
e03eb2f3fd
Code cleanups
2021-12-10 00:27:44 -08:00
Austin Chen
d945dc894b
Merge branch 'contract-page' into create-contract
2021-12-10 00:21:55 -08:00
Austin Chen
4f7d2c3d1b
Correctly set seeds on new contracts
2021-12-09 23:54:38 -08:00
Austin Chen
9bafc2b2e8
Set fullscreen black background
2021-12-09 23:52:44 -08:00