Ian Philips
39d5e56c50
Increment follower count as well
2022-08-24 10:22:39 -06:00
Ian Philips
8402ceb916
Add user to followers in place-bet and sell-shares
2022-08-24 08:59:40 -06:00
Ian Philips
f6b357cbc4
Decrement follow count on unfollow
2022-08-23 16:50:25 -06:00
Ian Philips
231af88f60
add decrement comment
2022-08-23 16:38:04 -06:00
Ian Philips
f0313dd12b
remove yarn script edit
2022-08-23 16:36:23 -06:00
Ian Philips
89644502a5
Allow to follow/unfollow markets, backfill as well
2022-08-23 16:29:19 -06:00
mantikoros
1c73d21925
weeklyMarketsEmails: send different markets to different users
2022-08-23 00:27:07 -05:00
Ian Philips
3bea983662
Be more explicit after unsubscribing from weekly trending
2022-08-22 16:56:28 -06:00
Ian Philips
6929076740
Be more specific about unsubscribe
2022-08-22 16:43:08 -06:00
Ian Philips
e1775681aa
Add weekly email sent flag, filter out manifold grouped markets
2022-08-22 16:36:39 -06:00
Sinclair Chen
ec4d0f6b4a
Fix notification for updated questions ( #782 )
...
* Fix update notification for question, description
* Don't notify on updated description
2022-08-22 15:26:54 -07:00
Ian Philips
b9a667b126
Add logs to weekly emails
2022-08-22 14:59:11 -06:00
Ian Philips
571d3e71b5
Only show most recent streak notif, relative econ imports, pubsub emulator
2022-08-22 06:31:30 -06:00
Austin Chen
88bf678ce3
Allow custom environments to override any economic aspect ( #787 )
...
* Extract monetary constants to a single file economy.ts
* Add missing import
* Allow environments to override any econ variable
* Update imports
* Update more imports
* Fix import
2022-08-21 22:37:26 -07:00
James Grugett
8b7cd20b6f
Loans2: Bets return you some capital every week ( #588 )
...
* Remove some old loan code
* Almost complete implementation of updateLoans cloud function
* Merge fixes
* Use invested instead of sale value, check if eligible, perform payouts
* Run monday 12am
* Implement loan income notification
* Fix imports
* Loan update fixes / debug
* Handle NaN and negative loan calcs
* Working loan notification
* Loan modal!
* Move loans calculation to /common
* Better layout
* Pay back loan on sell shares
* Pay back fraction of loan on redeem
* Sell bet loan: negate buy bet's loan
* Modal tweaks
* Compute and store nextLoanCached for all users
* lint
* Update loans with newest portfolio
* Filter loans to only unresolved contracts
* Tweak spacing
* Increase memory
2022-08-22 00:22:49 -05:00
mantikoros
97b38c156f
Revert "create contract: ante no longer user liquidity provision"
...
This reverts commit 56e9b5fa2f
.
2022-08-20 15:34:52 -05:00
mantikoros
c6dc852cd8
send creator guide on D1
2022-08-20 15:34:34 -05:00
mantikoros
ef127ea335
update welcome email
2022-08-20 15:34:34 -05:00
mantikoros
43bbc9ec24
send followup email on D2
2022-08-20 15:34:34 -05:00
Marshall Polaris
2439317408
Convert tags to groups on demand ( #784 )
...
* Fix stuff to not prematurely initialize Firebase when imported
* Add script to convert a tag to a group with the same contracts
2022-08-20 13:32:12 -07:00
James Grugett
09e8993cd4
Implement visibility option for new markets
2022-08-20 14:31:32 -05:00
James Grugett
2fef413d88
Don't show fantasy football in newest sort
2022-08-20 13:46:14 -05:00
Austin Chen
51c843d765
Use masonry on contract cards, sorted correctly ( #773 )
...
* Revert "Revert "Tile contract cards in masonry layout (#761 )""
This reverts commit 62728e52b7
.
* Sort the contracts in the correct masonry order
* Fix ordering on single columns
* Use react-masonry-css to accomplish masonry view
* Improve comment
* Remove gridClassName
Everything is spaced with m-4, too bad
2022-08-19 16:57:23 -07:00
mantikoros
0cbc0010c1
schedule emails from onCreateUser; send interesting markets on D1
2022-08-19 17:03:00 -05:00
Ian Philips
39c312cf9f
Explicitly pass utc timezone
2022-08-19 15:19:52 -06:00
Ian Philips
1196ec4375
Send 6 trending emails to all users monday 12pm PT
2022-08-19 15:01:53 -06:00
Ian Philips
634196d8f1
Slice the popular emails to the top 20
2022-08-19 14:45:04 -06:00
Ian Philips
36bfbe8f42
Change betting streak modal, tweak trending email query
2022-08-19 14:37:16 -06:00
Ian Philips
a0f62ba172
Markets emails ( #764 )
...
* Send out email template for 3 trending markets
* Rich text to plaintext descriptions, other ui changes
* Lint
* Filter for closed markets
* Change sign
* First order must be closeTime
* Send 6 emails, check flag twice
* Exclude contracts with trump and president in the name
* interesting markets email
* sendInterestingMarketsEmail
* Change subject line back
Co-authored-by: mantikoros <sgrugett@gmail.com>
2022-08-19 11:43:57 -06:00
Ian Philips
00c9fa61c3
betting streaks ( #777 )
...
* Parse notif, show betting streaks modal, schedule function
* Ignore streaks of 0
* Pass notifyFills the contract
* Turn 9am into a constant
* Lint
* Up streak reward, fix timing logic
* Change wording
2022-08-19 11:10:32 -06:00
Marshall Polaris
0972de9025
Make typing for comments more fancy ( #776 )
2022-08-19 01:06:40 -07:00
Marshall Polaris
06ced7042d
Fix a typo in my script
2022-08-18 12:49:01 -07:00
Marshall Polaris
c37997bcb7
Add comment type field to comments ( #772 )
2022-08-18 12:47:35 -07:00
mantikoros
d216b298ba
"create-contract.ts" => "create-market.ts"
2022-08-18 11:14:16 -05:00
mantikoros
56e9b5fa2f
create contract: ante no longer user liquidity provision
2022-08-18 11:14:16 -05:00
mantikoros
87561503c1
accept challenge: redeem shares
2022-08-18 10:39:48 -05:00
mantikoros
159723ed0c
market creation email
2022-08-17 17:36:52 -05:00
mantikoros
bf64f5b3a9
redirect /about; more content in welcome email
2022-08-17 11:21:29 -05:00
James Grugett
770a8d049c
Check limit prob with floating equals
2022-08-17 10:55:47 -05:00
Sinclair Chen
59565416b6
Api fixes ( #704 )
...
* Add min, max, isLogScale to numeric market API return
* Add lastUpdatedTime to market API
* Return a string description in market API
* Accept string descriptions in market POST api
* install prettier eslint config. fix import
* fix another import
2022-08-16 15:01:03 -07:00
James Grugett
814c4aa01d
Change limit prob validation to be only on Binary markets (not numeric)
2022-08-16 15:44:58 -05:00
mantikoros
c58ed8bd2c
personal followup email
2022-08-16 11:45:58 -05:00
mantikoros
c3eaf0351b
one week email changes
2022-08-16 11:44:01 -05:00
Marshall Polaris
59ca1f7640
Denormalize some contract comment fields ( #760 )
...
* Make `groupConsecutive` more capable
* Put denormalized `contractQuestion` and `contractSlug` on comments
* Update user profile UI to use new denormalized fields
* `/Austin` -> `/market`
2022-08-15 22:43:46 -07:00
Marshall Polaris
d00fe7bcd2
Backend robustness to email sending or analytics tracking failures ( #728 )
...
* Make `sendEmail` functions await email send success
* Make tracking and email sending not throw on failure
2022-08-15 22:13:38 -07:00
Marshall Polaris
186befd0ac
Bail out earlier if createmarket
is called with invalid group ID ( #745 )
...
* Bail out earlier if `createmarket` is called with invalid group ID
* Fix typing in `createmarket`
2022-08-15 22:12:43 -07:00
James Grugett
f2f77cb51e
Resolve market emails: fix negative amount bug with better invested calculation
2022-08-15 21:48:01 -05:00
mantikoros
5c49461449
new welcome email
2022-08-15 11:12:33 -05:00
James Grugett
4e1fae5b5f
Require a whole percentage for limitProb in back end
2022-08-14 20:51:10 -05:00
Sinclair Chen
facb19a347
fix dependency peer-dep warnings, mostly ( #752 )
2022-08-12 17:49:08 -07:00