Commit Graph

587 Commits

Author SHA1 Message Date
mantikoros
5082c8b3f2 rules change 2022-01-18 21:50:50 -06:00
mantikoros
4528615863
Private user (#32)
* PrivateUser

* createUser: create private user; detect multiple signups

* include user properties in private user

* script: create private users

* unsubscribing from market resolution emails

* track total deposits
2022-01-18 21:36:46 -06:00
jahooma
21949abbe1 Shorter graph on mobile 2022-01-18 17:10:21 -06:00
jahooma
ee64c4e923 Bring back cards having different heights in a row 2022-01-18 16:55:39 -06: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
jahooma
142feaffff Don't show unlisted contracts in closing soon 2022-01-18 13:17:56 -06:00
jahooma
e6dbcbc4fd Prevent header jump on mobile 2022-01-18 13:16:35 -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
mantikoros
e6d467764d Don’t show negative values in feed for sales 2022-01-17 21:38:40 -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
746a97c1df Don't hide children of datetime tooltip 2022-01-17 18:08:50 -06:00
jahooma
ead441ce9f Hide time tooltip on mobile as fix 2022-01-17 18:01:09 -06:00
jahooma
b86720e943 Fix feed not centered 2022-01-17 17:51:41 -06:00
jahooma
4d975ff512 Add closing soon section to home 2022-01-17 16:54:00 -06:00
jahooma
56c7e2597d Schedule cloud function to update user metrics: totalPnL, creatorVolume 2022-01-17 15:39:34 -06:00
Austin Chen
673c432bb9 Expose Firestore analytics on /analytics 2022-01-17 13:34:28 -05:00
mantikoros
8331e7afc5 migration script now re-simulates individual markets specified in command line 2022-01-16 15:53:40 -06:00
Austin Chen
d32147b536 Show DateTime tooltips whereever we show dates 2022-01-16 04:16:15 -05:00
Austin Chen
8d474ef031 Switch to outlined icon 2022-01-16 02:14:21 -05:00
Austin Chen
6e92e3fba1 DX: Cloud Functions tooling 2022-01-16 01:59:05 -05:00
Austin Chen
7d7286b1c1
Denormalize the avatar URL on contract creation (#29) 2022-01-16 01:03:59 -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
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
mantikoros
3805adff58 calculateMoneyRatio: use share value amount 2022-01-14 11:35:32 -06:00
mantikoros
520fd5d48e Merge branch 'main' of https://github.com/manticmarkets/mantic 2022-01-14 11:11:09 -06:00
mantikoros
6d536c4e16 change fee structure (paid only on winnings); calculateMoneyRatio 2022-01-14 11:11:01 -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