James Grugett
c32442ab41
Fix trades sort by newest
2022-02-21 12:42:51 -06:00
James Grugett
207a12df55
Listen to followed folds. Follow button retreives from local storage.
2022-02-20 23:12:35 -06:00
James Grugett
62b1966b21
Don't flash sign in to trade button until known to be logged out
2022-02-20 22:37:53 -06:00
James Grugett
793742b499
Trades page: Wait for all bets / contract data to load with loading indicator
2022-02-20 22:26:22 -06:00
James Grugett
561a7e2c75
Allow editing the close time
2022-02-20 22:04:00 -06:00
James Grugett
7c18f4b96b
Make feed auto-update again.
2022-02-20 21:06:10 -06:00
James Grugett
20a3966820
Filter out answers with 0 dollars
2022-02-20 17:19:45 -06:00
James Grugett
f5ab60b2df
You can sell your ante on a new answer. Minimum is M$ 1 instead of M$ 10
2022-02-20 17:02:00 -06:00
James Grugett
8580698c15
Split answers panel into 5 files
2022-02-20 16:25:58 -06:00
James Grugett
fd846254a0
Implement resolving to multiple answers, weighted by probability
2022-02-20 01:26:33 -06:00
mantikoros
42f88766b3
api: remove userId from bets
2022-02-19 22:51:51 -06:00
mantikoros
096a9e773a
refactor /home logic to useActiveContracts
2022-02-19 18:02:40 -06:00
mantikoros
60f72fa6ab
FastFoldFollowing: check if followedFoldIds is defined
2022-02-19 17:26:49 -06:00
mantikoros
2c572dd89a
FastFoldFollowing: check if user defined
2022-02-19 17:23:03 -06:00
mantikoros
13727bb19f
Fast fold following ( #51 )
...
* fast follow folds
* FastFoldFollowing component on homepage
2022-02-19 17:17:36 -06:00
James Grugett
0641db1f2d
Show sign in button instead of submit answer if logged out.
2022-02-19 11:42:27 -06:00
James Grugett
2a5172cb48
Switch to sending only recent bets and comments from static props
2022-02-18 12:43:13 -06:00
Austin Chen
963c578a73
Link to /home to create new markets
2022-02-17 18:32:15 -08:00
Austin Chen
3dd7b12e71
Iconify contract details; show relative closing time
2022-02-17 18:24:10 -08:00
Austin Chen
675f0a1599
Show BetRow on the bottom of long feeds
2022-02-17 17:56:03 -08:00
Austin Chen
a17342e55c
New, pretty user page ( #48 )
...
* Show bio, banner, and social links on user page
* Minor tweaks
* Allow edits to their user page
* Fix build; add a white ring around users
* From userpage, link to /profile (which is always editable now)
* Update userpage SEO
* Clean up Profile menu
* Fixes according to Stephen's code review
2022-02-17 17:16:58 -08:00
James Grugett
20ec09b7c6
Remove filter out of binary contracts
2022-02-17 18:39:06 -06:00
James Grugett
0a3b14883c
Update SEO for non-binary markets
2022-02-17 18:34:17 -06:00
mantikoros
8e33c2b639
for sales, show change in implied probability
2022-02-17 18:24:10 -06:00
James Grugett
c48913d91e
Sort bets/comments on client. Somehow server order is getting flipped?
2022-02-17 18:18:43 -06:00
Austin Chen
8f40350a75
API: Rename to LiteMarket/FullMarket; include creator avatar url
2022-02-17 16:04:05 -08:00
James Grugett
24e646640a
Resolution panel spacing
2022-02-17 17:47:23 -06:00
James Grugett
96ea325136
Sort initial bets
2022-02-17 17:39:18 -06:00
James Grugett
3667e81c6f
Only setFocused false when click outside.
2022-02-17 17:30:05 -06:00
James Grugett
b2501d8145
Free response ( #47 )
...
* Answer datatype and MULTI outcome type for Contract
* Create free answer contract
* Automatically sort Tailwind classes with Prettier (#45 )
* Add Prettier Tailwind plugin
* Autoformat Tailwind classes with Prettier
* Allow for non-binary contracts in contract page and related components
* logo with white inside, transparent bg
* Create answer
* Some UI for showing answers
* Answer bet panel
* Convert rest of calcuate file to generic multi contracts
* Working betting with ante'd NONE answer
* Numbered answers. Layout & calculation tweaks
* Can bet. More layout tweaks!
* Resolve answer UI
* Resolve multi market
* Resolved market UI
* Fix feed and cards for multi contracts
* Sell bets. Various fixes
* Tweaks for trades page
* Always dev mode
* Create answer bet has isAnte: true
* Fix card showing 0% for multi contracts
* Fix grouped bets feed for multi outcomes
* None option converted to none of the above label at bottom of list. Button to resolve none.
* Tweaks to no answers yet, resolve button layout
* Show ante bets on new answers in the feed
* Update placeholder text for description
* Consolidate firestore rules for subcollections
* Remove Contract and Bet type params. Use string type for outcomes.
* Increase char limit to 10k for answers. Preserve line breaks.
* Don't show resolve options after answer chosen
* Fix type error in script
* Remove NONE resolution option
* Change outcomeType to include 'MULTI' and 'FREE_RESPONSE'
* Show bet probability change and payout when creating answer
* User info change: also change answers
* Append answers to contract field 'answers'
* sort trades by resolved
* Don't include trailing !:,.; in links
* Stop flooring inputs into formatMoney
* Revert "Stop flooring inputs into formatMoney"
This reverts commit 2f7ab18429
.
* Consistently floor user.balance
* Expand create panel on focus
From Richard Hanania's feedback
* welcome email: include link to manifold
* Fix home page in dev on branches that are not free-response
* Close emails (#50 )
* script init for stephen dev
* market close emails
* order of operations
* template email
* sendMarketCloseEmail: handle unsubscribe
* remove debugging
* marketCloseEmails: every hour
* sendMarketCloseEmails: check undefined
* marketCloseEmails: "every hour" => "every 1 hours"
* Set up a read API using Vercel serverless functions (#49 )
* Set up read API using Vercel serverless functions
Featuring:
/api/v0/markets
/api/v0/market/[contractId]
/api/v0/slug/[contractSlug]
* Include tags in API
* Tweaks. Remove filter for only binary contract
* Fix bet probability change for NO bets
* Put back isProd calculation
Co-authored-by: Austin Chen <akrolsmir@gmail.com>
Co-authored-by: mantikoros <sgrugett@gmail.com>
Co-authored-by: mantikoros <95266179+mantikoros@users.noreply.github.com>
2022-02-17 17:00:19 -06:00
mantikoros
d3fdd4cd1f
bets list: comment out expectation
2022-02-17 16:49:00 -06:00
mantikoros
3609255342
sort trades by value
2022-02-17 16:44:33 -06:00
Austin Chen
51aa8df010
Set up a read API using Vercel serverless functions ( #49 )
...
* Set up read API using Vercel serverless functions
Featuring:
/api/v0/markets
/api/v0/market/[contractId]
/api/v0/slug/[contractSlug]
* Include tags in API
2022-02-17 12:56:24 -08:00
James Grugett
d6f15deff4
Fix home page in dev on branches that are not free-response
2022-02-17 01:02:48 -06:00
Austin Chen
a12a8bcd6a
Expand create panel on focus
...
From Richard Hanania's feedback
2022-02-16 19:37:54 -08:00
Austin Chen
515676f885
Consistently floor user.balance
2022-02-16 19:19:11 -08:00
Austin Chen
87a33933e4
Revert "Stop flooring inputs into formatMoney"
...
This reverts commit 2f7ab18429
.
2022-02-16 19:14:12 -08:00
Austin Chen
2f7ab18429
Stop flooring inputs into formatMoney
2022-02-16 18:48:59 -08:00
Austin Chen
a2e4893be8
Don't include trailing !:,.; in links
2022-02-16 10:32:44 -08:00
mantikoros
95242d94ac
sort trades by resolved
2022-02-16 00:08:16 -06:00
James Grugett
4917d4084b
Break words in questions
2022-02-14 20:27:43 -06:00
Austin Chen
95fbfb7db0
Tweak padding
2022-02-14 15:39:59 -08:00
Austin Chen
86b4b1a907
Use badges in Your Trades
2022-02-14 15:29:29 -08:00
mantikoros
443acdbcf8
beautify trades page
2022-02-14 16:00:46 -06:00
Austin Chen
97bf1049b5
Show gray probabilities for closed markets
2022-02-14 13:34:05 -08:00
mantikoros
a8abd4ecbb
trades page: show pnl
2022-02-14 13:00:20 -06:00
James Grugett
cef9eebbdf
Add lowercase tags when editing tags
2022-02-13 22:41:00 -06:00
Austin Chen
0e640bf53b
Show the current % instead of "MKT" in Your Trades
2022-02-13 18:20:46 -08:00
Austin Chen
e4f1fbde3f
Link to each question from Admin page
2022-02-13 16:09:30 -08:00
Austin Chen
5c3370ded8
Clean up Resolve Market panel
2022-02-13 15:41:08 -08:00
Austin Chen
7338bdd47a
Automatically sort Tailwind classes with Prettier ( #45 )
...
* Add Prettier Tailwind plugin
* Autoformat Tailwind classes with Prettier
2022-02-11 10:40:22 -08:00
James Grugett
dc0c9cf1d4
Filter undefined contracts
2022-02-10 17:06:27 -06:00
James Grugett
4150479aa3
Break words and linkify fold about text
2022-02-10 14:57:41 -06:00
James Grugett
00fbe711e5
Only show leaderboard scores that round up to M$ 1 or more
2022-02-10 14:51:14 -06:00
James Grugett
9b50d67313
Render graph with bets from static props immediately
2022-02-10 14:36:19 -06:00
Austin Chen
bcc011c1fd
Allow admins to edit questions
2022-02-09 10:58:33 -08:00
James Grugett
b0a1da62d2
Add sort options for /trades. Can sort by
...
profit or newest!
2022-02-08 23:28:20 -06:00
James Grugett
e66564cd1f
Add current prob to trades items
2022-02-08 22:52:09 -06:00
James Grugett
6214b6e425
Truncate leaderboard name
2022-02-08 22:45:02 -06:00
James Grugett
096ac8f512
Put profile underneath bet popup
2022-02-08 00:57:34 -06:00
James Grugett
2d7c895964
Shrink about headers to h2
2022-02-08 00:21:47 -06:00
James Grugett
192b54f986
Darker text on gray resolve buttons.
2022-02-07 23:52:03 -06:00
James Grugett
041bfe5ac0
Fix latestTime graph calculation
2022-02-07 23:43:35 -06:00
James Grugett
19baf86963
Sort fold & tag markets by 24-hour-vol
2022-02-07 23:03:55 -06:00
James Grugett
1cf7b42597
Better handle graphs of resolved markets that had an earlier close time.
2022-02-07 22:48:36 -06:00
James Grugett
546005139b
Fix recent activity label on mobile
2022-02-07 22:06:58 -06:00
James Grugett
2b5a0b1111
Require at least 2 follows to show a community (or show it if you are the curator)
2022-02-07 20:56:25 -06:00
James Grugett
faa49b750e
Always show follow a community prompt
2022-02-06 20:03:42 -06:00
Austin Chen
ab6cfd2564
Show all recent activity if user has no folds
2022-02-06 16:03:36 -08:00
James Grugett
25e498ab3c
Create market includes tags input.
2022-02-06 17:14:07 -06:00
James Grugett
63b7f64683
Listen for folds in contract page
2022-02-06 16:55:14 -06:00
Austin Chen
5aebd7eb41
Use font-weight: 600 for bold text
2022-02-06 01:23:45 -08:00
Austin Chen
516656f194
Clean up About page
2022-02-06 00:35:58 -08:00
Austin Chen
99a5612c8d
Display avatar in contract details
2022-02-05 23:02:52 -08:00
Austin Chen
359bfbf614
Show your own avatar for your feed trades
2022-02-05 22:22:13 -08:00
Austin Chen
0223ecdac2
Use Avatar in leaderboard
...
Removes the extra ring
2022-02-05 22:13:13 -08:00
Austin Chen
4c3119c9ec
Display all avatars as a circle
2022-02-05 22:12:23 -08:00
Austin Chen
d2f5742231
Export all users to a CSV with name and email
2022-02-05 21:34:36 -08:00
mantikoros
dc2fada751
create: handle null
2022-02-05 19:10:26 -06:00
mantikoros
fae28fed7c
create: don't replace undefined antes
2022-02-05 19:02:13 -06:00
James Grugett
1c8c2a4126
Fix home error after new contracts
2022-02-05 15:56:42 -06:00
mantikoros
3baffd4a35
bet row: auto-close dialog after a trade is submitted
2022-02-05 12:26:11 -06:00
James Grugett
d0a56cd1af
Merge branch 'send-all-data'
2022-02-04 20:22:43 -06:00
James Grugett
31fbd6b900
Send all comments and bets to home page, so feed loads immediately
2022-02-04 20:09:34 -06:00
mantikoros
f7b981c55c
"winnings" => "trader profits"
2022-02-04 17:42:08 -06:00
mantikoros
d439a2e1c0
create page: fix ante resetting
2022-02-04 17:40:03 -06:00
mantikoros
1ab7a4162c
fix market close date time
2022-02-04 17:38:40 -06:00
James Grugett
637a76cf34
Cache first step of generating feed: folds you follow and contracts you bet on.
2022-02-04 17:24:54 -06:00
James Grugett
247f5e9275
Add oldest sort
2022-02-04 16:04:30 -06:00
Austin Chen
0959ec7679
Show avatar on contract cards
2022-02-04 10:30:56 -08:00
Austin Chen
a46c311a99
Clean up titles on /home
2022-02-04 10:30:13 -08:00
mantikoros
b4a68bf436
redirect signed out users on /profile and /trades to homepage
2022-02-03 21:19:42 -06:00
James Grugett
6914e5d706
Fix merge error
2022-02-03 21:11:59 -06:00
mantikoros
03f36cf954
User profile ( #44 )
...
* add id, userId to comment
* change user info cloud function and script; move cleanUsername to common
* change user info script
* fix rules
* add fund button: useLocation hook
* profile page
* merge
* profile stuff
* avatar uploading to storage bucket
* changeUserInfo: use transaction
* Styles for profile page
* Edit mode for profile, and more styles
Co-authored-by: James Grugett <jahooma@gmail.com>
2022-02-03 21:04:56 -06:00
James Grugett
6a542e4530
Switch Folds menu option to Communities
2022-02-03 19:55:00 -06:00
James Grugett
ca89fd158d
Make home communities look better on mobile. Add Covid & AI.
2022-02-03 19:00:17 -06:00
James Grugett
00f632ec47
Remove tw-elements for now
2022-02-03 18:10:19 -06:00
James Grugett
c36ce3e521
Change home tags to communities
2022-02-03 17:40:37 -06:00
James Grugett
e5f553fa1a
Merge branch 'main' into custom-feed
2022-02-03 17:33:12 -06:00
James Grugett
d170e31f54
Switch from onSnapshot to our listenForValues, which doesn't set with partial cached values
2022-02-03 17:30:40 -06:00
James Grugett
587e1e5d61
Add loading spinner while feed loads
2022-02-03 17:12:09 -06:00
James Grugett
8e06e4351e
Add tw-elements UI library
2022-02-03 17:11:38 -06:00
mantikoros
55aa2db553
resolution panel creator fee
2022-02-03 17:07:30 -06:00
mantikoros
4294481b5b
change fee structure
2022-02-03 16:59:59 -06:00
James Grugett
3cf4cb7a77
Show custom feed of contracts from folds your follow or have bet on.
2022-02-03 16:54:08 -06:00
James Grugett
6c9f566d3d
Add hashtag in tags of fold card
2022-02-03 14:13:51 -06:00
Austin Chen
426d41ba44
Surface a list of tags on /home
2022-02-03 11:00:49 -08:00
Austin Chen
193b9ae6bf
Restyle /folds page
2022-02-03 10:47:26 -08:00
Austin Chen
6d6e127f7b
Change Follow button to black
2022-02-03 01:49:53 -08:00
Austin Chen
65ff3ebdac
"24 hour" => "24h" to save space
2022-02-03 01:48:44 -08:00
Austin Chen
e7433c2eec
Save comment and description on ctrl+enter
2022-02-03 01:12:37 -08:00
Austin Chen
d0766fa7c3
Use the latest bet time for a feed group
2022-02-03 00:56:49 -08:00
James Grugett
a90e9b7083
Reorder fold page queries to be more in parallel
2022-02-03 00:19:59 -06:00
James Grugett
fdbaa5270b
Show hot markets in fold feed
2022-02-02 23:58:27 -06:00
James Grugett
00ac581736
Show your performance in fold
2022-02-02 23:34:35 -06:00
James Grugett
32ce410092
Show Market tags if no communities.
2022-02-02 15:29:26 -06:00
James Grugett
95268844aa
Add text to fold "about" explaining how markets are included.
2022-02-02 14:20:04 -06:00
mantikoros
6ad40cf75d
bottom nav bar: change last item to your trades
2022-02-02 12:56:02 -06:00
James Grugett
f80ef1cd34
Add hot markets to home feed
2022-02-02 00:40:46 -06:00
mantikoros
375ce69b7d
yarn devdev
2022-02-01 21:23:06 -06:00
James Grugett
0eac8d9c5c
Yarn workspaces ( #42 )
...
* Try yarn workspaces
* Add versions to sub package.json files
2022-02-01 15:25:51 -06:00
James Grugett
0a091831de
Restyle tags
2022-02-01 15:03:06 -06:00
James Grugett
d6b855f0de
Improve create fold button with icon and 'New' label
2022-02-01 14:10:40 -06:00
James Grugett
b95f258763
Add package.json to common directory, and lodash dependency
2022-02-01 12:59:51 -06:00
James Grugett
7e15c2870b
Sort folds by followers in fold tag list
2022-02-01 12:47:31 -06:00
James Grugett
7c50b55331
Match lowercase tags for folds
2022-02-01 12:29:14 -06:00
James Grugett
96c1410f01
Rename Fold => Community in UI
2022-02-01 12:12:55 -06:00
James Grugett
565ded1063
Add folds links in market, hide tags behind Show tags toggle.
2022-02-01 12:06:42 -06:00
James Grugett
4e1174a4dc
Option to disallow market creation from fold
2022-01-31 22:10:02 -06:00
James Grugett
5b5e6c78d6
Use expanding text area for description on make-predictions
2022-01-31 21:33:43 -06:00
James Grugett
3bbe6062e9
Change description input to use textarea
2022-01-31 21:31:49 -06:00
James Grugett
bc208df597
Add tags input for make-predictions
2022-01-31 21:13:37 -06:00
James Grugett
6525ffc6c3
Add ante and close date to make predictions
2022-01-31 20:58:41 -06:00
James Grugett
08eac5b0ef
Add my calendly to about
2022-01-31 20:44:49 -06:00
James Grugett
2e1fdd7d7a
Add border bottom back on fold page
2022-01-31 19:29:59 -06:00
Austin Chen
64fc0c74ff
Replace bottom border with shadow
2022-01-31 17:07:12 -08:00
Austin Chen
6234b12f89
Bring up numeric keyboards on mobile
2022-01-31 17:05:01 -08:00
Austin Chen
7549cf6a89
Show a bottom navbar on mobile devices
2022-01-31 17:02:17 -08:00
mantikoros
d49656cb77
create: market close includes time
2022-01-30 23:20:27 -06:00
James Grugett
ff4bb3330a
Change back to isProd = true
2022-01-30 22:29:16 -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
6427e1bd06
Save tags unique and case-insensitive. Don't clear added tags on updating description.
2022-01-30 21:25:52 -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
James Grugett
855256816e
Include tags in contract search
2022-01-30 15:30:49 -06:00
jahooma
ac9af1acd6
Don't load onSnapshot from cache in hook listen for contract (could help 404 errors?)
2022-01-29 23:05:32 -06:00
jahooma
967ac1b08d
Negative margin prevented clicking on top half of bet row button
2022-01-29 21:21:57 -06:00
jahooma
9fa457dec8
Hide bet row when trading not allowed
2022-01-29 21:08:06 -06:00
jahooma
482654d06b
Update folds SEO to include curator.
2022-01-28 13:45:32 -06:00