manifold/common
James Grugett 06b7e49e98
[In progress] Server-side feed computation (#106)
* Store view counts & last viewed time

* Schedule updating user recommendations. Compute using tf-idf.

* Update contract's lastBetTime and lastCommentTime on new bets and comments.

* Remove contract's lastUpdatedTime

* Remove folds activity feed

* Implement getFeed cloud function

* Hook up client to use getFeed

* Script to cache viewCounts and lastViewTime

* Batched wait all userRecommendations

* Cache view script runs on all users

* Update user feed each hour and get feed from cache doc.

* Delete view cache script

* Update feed script

* Tweak feed algorithm

* Compute recommendation scores from updateUserFeed

* Disable lastViewedScore factor

* Update lastCommentTime script

* Comment out console.log

* Fix timeout issue by calling new cloud functions with part of the work.

* Listen for contract updates to feed.

* Handle new user: use default feed of top markets this week

* Track lastUpdatedTime

* Tweak logic of calling cloud functions in batches

* Tweak cloud function batching
2022-05-01 11:36:54 -05:00
..
envs Merge Manifold for Teams infra into main codebase (#61) 2022-03-08 18:43:30 -08:00
util Add weekly activiation rate 2022-04-19 01:47:58 -05:00
.gitignore Add package.json to common directory, and lodash dependency 2022-02-01 12:59:51 -06:00
add-liquidity.ts user-added liquidity provision panel (#90) 2022-04-21 12:58:12 -05:00
answer.ts Improve Free response UI (#78) 2022-04-18 18:02:40 -05:00
antes.ts daily free markets' liquidity provided by @ManifoldMarkets 2022-04-29 15:58:01 -04:00
bet.ts Cfmm (#64) 2022-03-15 17:27:51 -05:00
calculate-cpmm.ts return liquidity pool after resolution according to true pool weight 2022-04-30 12:24:33 -04:00
calculate-dpm.ts Fix free response mkt payout to default to last probabilities if resolutions not specified 2022-03-18 14:59:06 -05:00
calculate-fixed-payouts.ts Cfmm (#64) 2022-03-15 17:27:51 -05:00
calculate.ts Fix explore on dev 2022-04-21 12:43:57 -05:00
charity.ts Rename QURI back 2022-05-01 08:30:55 -04:00
comment.ts Free comments (#88) 2022-04-21 11:09:06 -06:00
contract.ts [In progress] Server-side feed computation (#106) 2022-05-01 11:36:54 -05:00
fees.ts lower fees 2022-03-18 00:39:21 -05:00
fold.ts Match lowercase tags for folds 2022-02-01 12:29:14 -06:00
liquidity-provision.ts Cfmm (#64) 2022-03-15 17:27:51 -05:00
new-bet.ts Cfmm (#64) 2022-03-15 17:27:51 -05:00
new-contract.ts [In progress] Server-side feed computation (#106) 2022-05-01 11:36:54 -05:00
package.json Yarn workspaces (#42) 2022-02-01 15:25:51 -06:00
payouts-dpm.ts getDpmMktPayouts: log creator fee 2022-03-15 21:53:37 -05:00
payouts-fixed.ts return liquidity pool after resolution according to true pool weight 2022-04-30 12:24:33 -04:00
payouts.ts Cfmm (#64) 2022-03-15 17:27:51 -05:00
recommended-contracts.ts [In progress] Server-side feed computation (#106) 2022-05-01 11:36:54 -05:00
scoring.ts Cfmm (#64) 2022-03-15 17:27:51 -05:00
sell-bet.ts Fix sell to pay back loans 2022-03-31 00:54:42 -05:00
tracking.ts Track latency of feed and portfolio page. 2022-04-21 01:00:08 -05:00
txn.ts Send M$ to Charity & txns (#81) 2022-04-29 19:35:56 -04:00
user.ts Send email to market creator on new answer 2022-02-23 00:05:04 -06:00
yarn.lock Add package.json to common directory, and lodash dependency 2022-02-01 12:59:51 -06:00