Marshall Polaris
9a950dc080
Mark scripts as modules to avoid global name collision ( #991 )
2022-10-03 14:21:21 -07:00
Austin Chen
7c34805eeb
Upload script to bulk-resolve markets from API
2022-10-03 12:52:48 -04:00
Ian Philips
370edec890
Remove unsubscribe options for market closure
2022-10-03 08:30:21 -06:00
Ian Philips
1caf75d3b5
Do not refund comment bounties
2022-10-03 07:49:26 -06:00
Ian Philips
051c2905e1
Allow user to opt out of all unnecessary notifications ( #974 )
...
* Allow user to opt out of all unnecessary notifications
* Unsubscribe from all response ux
* Only send one response
2022-10-03 07:41:39 -06:00
FRC
06571a3657
Flag incorrectly resolved markets, warn about unreliable creators ( #945 )
...
* Flag incorrectly resolved markets, warn about unreliable creators
* Address James' review nits
* Added a loading state and some copy-changes
* Fix missing refactor
* Fix vercel error
* Fix merging issues
2022-10-03 10:49:19 +01:00
FRC
1f8c72b4c9
Overview page on groups ( #961 )
...
* Frontpage on groups
wip
* Fix James's nits
2022-10-03 00:02:31 +01:00
Austin Chen
1fc2f15dae
Try extending /stats to 180 days
2022-09-30 18:46:54 -04:00
Ian Philips
a25acbe1db
Parse ian's email prefs on dev
2022-09-30 13:36:34 -06:00
Ian Philips
a90b765670
Bounty comments ( #944 )
...
* Adding, awarding, and sorting by bounties
* Add notification for bounty award as tip
* Fix merge
* Wording
* Allow adding in batches of m250
* import
* imports
* Style tabs
* Refund unused bounties
* Show curreantly available, reset open to 0
* Refactor
* Rerun check prs
* reset yarn.lock
* Revert "reset yarn.lock"
This reverts commit 4606984276
.
* undo yarn.lock changes
* Track comment bounties
2022-09-30 09:27:42 -06:00
Ian Philips
c16e5189f7
Don't send portfolio email to user less than 5 days old
2022-09-30 07:53:47 -06:00
Ian Philips
2625ab1549
Portfolio email ux
2022-09-29 18:13:33 -06:00
Ian Philips
ec1a9fab77
Show change in M$
2022-09-29 13:06:12 -04:00
Ian Philips
35aa6c0429
Test sample of users' portfolios
2022-09-29 12:32:47 -04:00
Ian Philips
cd7ddae133
Add profit of bets made within last week
2022-09-29 12:30:58 -04:00
James Grugett
eb762d9b9e
Make loading more sequential for updateMetrics to prevent firebase error.
2022-09-28 12:28:40 -04:00
James Grugett
a7abdbb1db
Add to dating group
2022-09-27 19:10:35 -04:00
James Grugett
13dad9a10c
Date doc: Remove photo as first-class feature
2022-09-27 19:03:14 -04:00
Austin Chen
14c008234a
Script: Add liquidity to all markets in a group
2022-09-27 18:55:30 -04:00
Austin Chen
b87e29d7c0
Rename script
2022-09-27 18:55:30 -04:00
James Grugett
b21daa1248
Date docs on Manifold ( #941 )
...
* Date docs
* Create date doc
* Create and show a date market as well
* Move url to date-docs
* Date doc individual page
* Add share button
* Edit date docs
* Layout
* Add comments for create-post
* Add comments and back nav
* Fix urls
* Tweaks
2022-09-27 17:30:07 -05:00
Ian Philips
d612192109
Send market close notifs for each close time
2022-09-26 18:13:15 -04:00
Ian Philips
3ed3b6fb42
Set email sent flag if skipped over
2022-09-26 18:05:50 -04:00
Ian Philips
f7bf42d2e0
Rename & correct spelling
2022-09-26 17:54:48 -04:00
Ian Philips
df316fc4da
Portfolio update emails ( #928 )
...
* Stats computing correctly
* Styles propagating - testing in prod now
* Formatting html
* Reset portfolio flag on mondays at 12am
* Add profit, styling
* More styling, less reports
* Cleanup
* Comments
* comment
* Try to send higher signal emails
* Send emails to proper email address
2022-09-26 17:49:06 -04:00
James Grugett
2ef025a151
Only set daily score on contracts that are at least day old
2022-09-26 17:43:27 -04:00
Ian Philips
cc3b44891b
Add user to market followers in create answer
2022-09-26 15:56:47 -04:00
Austin Chen
c1c3a360fd
Add CART contest to /tournaments
2022-09-25 13:08:34 -04:00
Austin Chen
ae4d49d960
Generate markets for the Criticism and Red Teaming contest
2022-09-25 11:29:59 -04:00
Marshall Polaris
96dc060a0a
Move react-masonry-css dependency to web package.json ( #930 )
2022-09-23 14:55:06 -07:00
FRC
5a10132e2b
Add a "Posts" tab to groups ( #926 )
...
* Add a "Posts" sidebar item to groups
* Fix James's nits
* Show "Add Post" button only to users
2022-09-23 15:11:50 -04:00
Ian Philips
91f89ccb3d
Add docs fo /close, allow to pass closeTime
2022-09-23 10:14:41 -04:00
Ian Philips
08202c3ede
Add close market endpoint
2022-09-23 10:02:40 -04:00
James Grugett
c6d034545a
Home: Prob change cards. Sort by daily score. ( #925 )
...
* Add dailyScore: product of unique bettors (3 days) and probChanges.day
* Increase memory and duration of scoreContracts
* Home: Smaller prob change card for groups. Use dailyScore for sort order (algolia)
* Add back hover
2022-09-22 16:57:48 -05:00
Pico2x
b875ac563d
Revert "Bring back tabs in groups ( #919 )"
...
This reverts commit b4a59cfb21
.
2022-09-21 19:14:05 -04:00
FRC
b4a59cfb21
Bring back tabs in groups ( #919 )
2022-09-21 18:27:49 -04:00
James Grugett
ea1579975c
Increase memory of update functions
2022-09-20 23:56:14 -05:00
Marshall Polaris
60c79141aa
Move comment-bet association code into comment creation trigger ( #899 )
...
* Move comment-bet association code into comment creation trigger
* Add index for new comments query
2022-09-20 15:25:58 -07:00
mantikoros
106dc232b8
send market guide onboarding email after 96 hrs
2022-09-20 16:03:17 -05:00
mantikoros
8920241c39
space out onboarding emails
2022-09-20 15:56:28 -05:00
mantikoros
ac952f1164
Revert "Don't send creator guide email & interesting markets on create user"
...
This reverts commit a4399aaee9
.
2022-09-20 15:49:46 -05:00
Ian Philips
6d7fbd69c7
Lint
2022-09-20 12:17:37 -04:00
Ian Philips
a4399aaee9
Don't send creator guide email & interesting markets on create user
2022-09-20 12:15:23 -04:00
Ian Philips
272ba921a0
Add memory to weekly email functions
2022-09-20 09:45:14 -04:00
Ian Philips
5ab86c8362
Check new weekly email notification preferences
2022-09-20 09:36:44 -04:00
Ian Philips
c6a60a6678
Streak & uniques bonus in transaction
2022-09-20 08:42:09 -04:00
James Grugett
c338dce3ce
Add daily activation rate. Remove top tenth actions. Cleanup
2022-09-20 00:10:05 -05:00
James Grugett
4dc3eada1f
Add more stats. Fix timezone. Group retention and new user retention
2022-09-19 18:41:24 -05:00
James Grugett
d0973de2b4
Use percent chart, save unrounded stats
2022-09-19 17:45:52 -05:00
James Grugett
b4244ea75d
Change stats date to be by Pacific time zone
2022-09-19 17:10:12 -05:00
James Grugett
935c550733
Revalidate static props on market resolve
2022-09-19 16:26:34 -05:00
James Grugett
de8e4df04c
Revalidate static props for new comments
2022-09-19 16:07:27 -05:00
James Grugett
1a82ce193d
Add node-fetch, add secret to function config
2022-09-19 15:25:16 -05:00
James Grugett
fb27fac524
Revalidate getStaticProps after each bet
2022-09-19 14:55:37 -05:00
James Grugett
6f5d69ec9c
Increase memory of updateMetrics function
2022-09-19 14:34:48 -05:00
mantikoros
55a68d4fec
email wording
2022-09-19 14:22:04 -05:00
mantikoros
24cf42284f
replace "predictor" => "trader"
2022-09-19 14:03:52 -05:00
James Grugett
b93af31d2f
Add D1 and W1 (new users) to stats
2022-09-19 01:28:18 -05:00
Marshall Polaris
58dcbaaf6e
Precalculate and store current positions for users who make comments ( #878 )
2022-09-18 15:57:50 -07:00
mantikoros
e37b805b49
disable liquidity bonus (for now)
2022-09-18 17:49:29 -05:00
James Grugett
65166f2fcb
Fix import
2022-09-18 01:10:34 -05:00
James Grugett
eb021f30f5
Fix loans (user without a portfolio throws error)
2022-09-18 01:05:55 -05:00
mantikoros
340b21c53e
halve referral bonus
2022-09-17 14:38:52 -05:00
Ian Philips
a2d912bb5a
Add more info to limit order notif
2022-09-16 09:02:58 -06:00
Ian Philips
c183315d52
Don't notify of updated close time when resolving market
2022-09-16 08:15:16 -06:00
Ian Philips
7628713c4b
Enrich contract resolved notification
2022-09-15 15:25:19 -06:00
Ian Philips
8c6a40bab7
Enrich limit order notification
2022-09-15 13:39:46 -06:00
Ian Philips
4c10c8499b
Take back unique bettor bonuses on N/A
2022-09-15 09:12:44 -06:00
Ian Philips
ada9fac343
Add logs to on-create-bet
2022-09-15 08:07:42 -06:00
Ian Philips
733d206517
Add txn types
2022-09-15 07:50:35 -06:00
Ian Philips
4a5c6a42f6
Store bonus txn data in data field
2022-09-15 07:45:11 -06:00
ingawei
ccf02bdba8
Inga/admin rules resolve ( #880 )
...
* Giving admin permission to resolve all markets that have closed after 7 days.
2022-09-14 22:28:40 -05:00
Ian Philips
3efd968058
Allow one-click unsubscribe, slight refactor
2022-09-14 17:17:32 -06:00
Ian Philips
050bd14e46
Update script
2022-09-14 10:29:48 -06:00
Ian Philips
7ba2eab65e
Rename user notification preferences
2022-09-14 10:26:08 -06:00
Ian Philips
d6b0a1edc0
Betting streak reset to 7am UTC and store streak data on notif
2022-09-14 07:27:20 -06:00
mantikoros
a2d61a1daa
Twitch integration ( #815 )
...
* twitch account linking; profile page twitch panel; twitch landing page
* fix import
* twitch logo
* save twitch credentials cloud function
* use user id instead of bot id, add manifold api endpoint
* properly add function to index
* Added support for new redirect Twitch auth.
* Added clean error handling in case of Twitch link fail.
* remove simulator
* Removed legacy non-redirect Twitch auth code. Added "add bot to channel" button in user profile and relevant data to user type.
* Removed unnecessary imports.
* Fixed line endings.
* Allow users to modify private user twitchInfo firestore object
* Local dev on savetwitchcredentials function
Co-authored-by: Phil <phil.bladen@gmail.com>
Co-authored-by: Marshall Polaris <marshall@pol.rs>
2022-09-14 01:52:31 -07:00
Marshall Polaris
7144e57c93
Denormalize user display fields onto bets ( #853 )
...
* Denormalize user display fields onto bets
* Make bet denormalization script fast enough to run it on prod
* Make `placeBet`/`sellShares` immediately post denormalized info
2022-09-14 01:33:59 -07:00
mantikoros
e7d8cfe7e0
House liquidity ( #876 )
...
* add house liquidity for unique bettors
* hide notifications from house liquidity
* up bonus liquidity to M$20
2022-09-14 00:26:47 -05:00
Ian Philips
34bad35cb8
Betting=>predicting
2022-09-13 16:19:52 -06:00
Ian Philips
c423326270
Send users emails when they hit 1 and 6 unique bettors
2022-09-13 16:12:53 -06:00
Ian Philips
4398fa9bda
Add new market from followed user email notification
2022-09-13 09:54:51 -06:00
Ian Philips
2c922cbae6
Send no-bet resolution emails to those without bets
2022-09-13 08:16:23 -06:00
Ian Philips
55b895146b
Find multiple choice resolution texts as well
2022-09-13 07:54:37 -06:00
Ian Philips
018eb8fbfc
Send notif to all users in reply chain as reply
2022-09-12 17:01:59 -06:00
Pico2x
a3da8a7c3c
Make update-metrics actually write cached group leaderboards
2022-09-12 22:01:37 +01:00
Pico2x
2a96ee98f4
Fix type error in update metrics pt.3
2022-09-12 21:49:15 +01:00
Ian Philips
e35c0b3b52
Only notify followers of new public markets
2022-09-12 14:36:54 -06:00
Pico2x
4456a771fd
fix type error in update-metrics pt.2
2022-09-12 21:25:45 +01:00
Pico2x
7d9908dbd0
Fix type error in update-metrics
2022-09-12 20:58:12 +01:00
FRC
ff81b859d1
"Fix "500 internal error" in large groups ( #872 )
...
* Fix "500 internal error" in large groups (#856 )
This reverts commit 28f0c6b1f8
.
* Ship without touching prod and with some logs.
2022-09-12 20:54:11 +01:00
Ian Philips
3cb36a36ec
Separate email and browser ids list
2022-09-12 11:00:24 -06:00
Ian Philips
5c6328ffc2
[WIP] Fully customizable notifications ( #860 )
...
* Notifications Settings page working
* Update import
* Linked notification settings to notification rules
* Add more subscribe types
* It's alive... It's alive, it's moving, it's alive, it's alive, it's alive, it's alive, IT'S ALIVE'
* UI Tweaks
* Clean up comments
* Direct & highlight sections for notif mgmt from emails
* Comment cleanup
* Comment cleanup, lint
* More comment cleanup
* Update email templates to predict
* Move private user out of getDestinationsForUser
* Fix resolution messages
* Remove magic
* Extract switch to switch-setting
* Change tab in url
* Show 0 as invested or payout
* All emails use unsubscribeUrl
2022-09-12 10:34:56 -06:00
FRC
28f0c6b1f8
Revert "Fix "500 internal error" in large groups ( #856 )" ( #871 )
...
This reverts commit a6ed8c9228
.
2022-09-12 17:26:46 +01:00
FRC
a6ed8c9228
Fix "500 internal error" in large groups ( #856 )
...
* Members to memberIds
* Moved to update-metrics
2022-09-12 16:44:24 +01:00
mantikoros
e17234ecce
typo
2022-09-10 17:43:52 -05:00
Austin Chen
e3e80a5fd0
Change user info using bulkWriter
2022-09-08 20:21:32 -07:00
mantikoros
28af2063c3
"bet" => "trade"
2022-09-07 14:45:04 -05:00
Ian Philips
7c44abdcd7
Comment out unused script functions
2022-09-06 09:27:50 -06:00
Ian Philips
2ee067c072
Remove member and contract ids from group doc
2022-09-06 08:14:13 -06:00