Commit Graph

493 Commits

Author SHA1 Message Date
jahooma
4618b37c82 Correctly show all creator and tag markets 2022-01-15 17:56:16 -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
9209b3cb05 Fix nested <a> tag 2022-01-15 17:28:49 -06:00
mantikoros
a16d35974f fix displayed sale amount 2022-01-15 16:51:09 -06:00
jahooma
3f42991741 Show current payout in bet panel! Abolish estimated max payout. Show shares in tooltip 2022-01-15 15:28:19 -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
mantikoros
a0be5b6394 calculateMoneyRatio 2022-01-15 00:11:27 -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
d25fb916ba Merge branch 'main' of https://github.com/manticmarkets/mantic 2022-01-14 17:39:27 -06:00
mantikoros
3fa2926559 create page design; require minimum ante; lower phantom ante amount; createContract checks 2022-01-14 17:39:17 -06:00
Austin Chen
77e6ea5a6b Replace close time with year 2022-01-14 18:34:54 -05:00
jahooma
10e6255a53 Optimize css by inlining it in html 2022-01-14 17:05:12 -06:00
jahooma
1af03bc53d Improve card style flashing on load 2022-01-14 16:59:14 -06:00
Austin Chen
78b27ee964 Truncate activity feed descriptions to 400 chars 2022-01-14 17:28:19 -05: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
3e08349df6 Fix buttons going off the pay dialog 2022-01-13 21:15:44 -06:00
jahooma
aa77effcb6 Fix safari not breaking words on home page 2022-01-13 21:09:44 -06:00
jahooma
3ae456f730 Remove unnecessary margin from navbar 2022-01-13 17:15:32 -06:00
jahooma
974d41434e Try to fix flashing css grid #2 2022-01-13 17:08:12 -06:00
jahooma
ea342248de Try to fix css grid layout flash in prod 2022-01-13 17:02:13 -06:00
jahooma
6ae9e6354c Fix logo disappearing 2022-01-13 16:19:56 -06:00
jahooma
dcf07fe0a1 Load navbar more gracefully: don't show options until user loaded 2022-01-13 16:09:13 -06:00
jahooma
fc5fa000b9 Linkify user avatars in feed 2022-01-13 15:24:14 -06:00
jahooma
1683a3842b Link to user from feed mentions. Show name instead of username in card. 2022-01-13 15:16:47 -06:00
jahooma
07a7fc219b Axe landing page, show home feed 2022-01-13 14:54:31 -06:00
jahooma
2db69e4d15 Non-blue titles for bet / resolution panel 2022-01-13 12:58:49 -06:00
jahooma
2b618be3ac Increase padding on contract page 2022-01-13 12:58:49 -06:00
jahooma
dfcac2fb97 Hide ante bets in graph and feed 2022-01-13 11:01:23 -06:00
jahooma
4f8d689ad8 Remove duplicate about, from merge error? 2022-01-12 22:06:11 -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
jahooma
cc5312f52e Change is prod to true 2022-01-12 15:23:29 -06:00
Austin Chen
342cef8c1d Make "add funds" an outline button 2022-01-12 14:16:50 -05: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
d38f1300c3 Reduce visual weight of "add funds" button 2022-01-12 13:35:11 -05:00
Austin Chen
7c1d70313b Uncardify activity feed 2022-01-12 13:20:28 -05:00
Austin Chen
5c4235a247 Narrower padding for mobile 2022-01-12 12:57:35 -05:00
Austin Chen
2df96cc0b5 Replace '24h vol' with trending icon 2022-01-12 12:51:46 -05:00
Austin Chen
344ce69fee Move About page out of navbar 2022-01-12 02:18:14 -05:00
Austin Chen
edb3809f1c Standardize on max-w-4xl 2022-01-12 02:13:01 -05:00
Austin Chen
d121e59189 Only permit comments within an hour of betting 2022-01-12 01:47:56 -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
5947be6647 Darker timestamp on feed 2022-01-11 22:00:03 -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
jahooma
dc7460f209 Fix tweet button wrapping sometimes 2022-01-11 10:29:54 -06:00
jahooma
209089cc45 Update white bg logo to be white 2022-01-11 00:34:37 -06: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
6ef48af085 Hide add funds button if you are a first-time user (have 1000 balance) 2022-01-10 17:55:36 -06:00
mantikoros
df4ecb3fe2 move prettier config to top level 2022-01-10 17:44:42 -06:00
mantikoros
b97a65cf2c refactor data structures, calculations to common directory 2022-01-10 15:07:57 -06:00
jahooma
dd6edc3b7a Use sale amount for sold bets. Round one more item in the feed. 2022-01-10 11:38:44 -06:00
jahooma
188ab66029 Don't wrap text on Sign in to trade button 2022-01-10 11:02:43 -06:00
jahooma
d47e2f5d93 Decrease wide page width from 7xl to 6xl 2022-01-10 10:48:13 -06:00
jahooma
a04c978408 Keep page wide if showing resolve panel 2022-01-10 10:33:02 -06:00
jahooma
829c8a4b75 Disallow selling after close time! Enforce no trading after close on server. 2022-01-10 10:33:02 -06:00
mantikoros
01506fedeb about page 2022-01-10 01:12:14 -06:00
Austin Chen
a9b4570fff Cut creator name from OG card metadata
(It's already on the top)
2022-01-10 02:09:39 -05: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
179fa8c608 Stephen's feedback: change 🔥 => 24h vol in card 2022-01-09 17:59:37 -06:00
jahooma
7528ac0604 Filter out creators and tags with no 7 day volume and sort displayed contracts by 7 day volume. 2022-01-09 15:55:10 -06:00
jahooma
e655462a2f When sorting by creator or tag, use 7 day volume instead of pool size. 2022-01-09 15:32:04 -06: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
6b4417d8b8 Every 15 minutes, compute contract volume in last 24 hours and 7 days 2022-01-09 13:34:42 -06:00
jahooma
6d4554e9ef Don't show resolved markets in hot markets 2022-01-09 12:14:20 -06:00
jahooma
34b208f63d ...and gray-500 text for resolution panel 2022-01-08 23:12:53 -06:00
jahooma
519dda6473 Use gray-500 instead of gray-400 for text against gray bg. 2022-01-08 23:10:08 -06:00
jahooma
e4206d6277 Add an extra new line when you add to a market description 2022-01-08 23:09:19 -06:00
jahooma
1013192281 Show the floor of your balance 2022-01-08 12:14:20 -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
jahooma
44fa4f263b Encode referrer url param for stripe checkout 2022-01-07 18:51:16 -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
1b69a34270 allow updating contract description 2022-01-07 13:29:23 -06:00
jahooma
e3800de2ad Update resolution panel to gray bg 2022-01-06 22:00:23 -06: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
95472c5faf Tweak bet panel UI 2022-01-06 01:49:41 -08:00
Austin Chen
4659cab18c Only "Advanced" label should look clickable 2022-01-06 01:48:27 -08:00
Austin Chen
f218a74a0c Add probability slider to Create Market 2022-01-06 00:45:30 -08:00
jahooma
477878a09f Right align tweet button 2022-01-05 23:02:39 -06: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