manifold/web/lib/firebase
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
..
answers.ts Free response (#47) 2022-02-17 17:00:19 -06:00
api-call.ts Send M$ to Charity & txns (#81) 2022-04-29 19:35:56 -04:00
bets.ts Create bet count and market count charts in our analytics 2022-03-02 17:52:41 -08:00
comments.ts Free comments (#88) 2022-04-21 11:09:06 -06:00
contracts.ts [In progress] Server-side feed computation (#106) 2022-05-01 11:36:54 -05:00
folds.ts Optimize use fold hooks to trigger fewer re-renders 2022-04-06 13:56:08 -05:00
init.ts Support local firestore emulation (#91) 2022-04-25 09:46:35 -06:00
storage.ts User profile (#44) 2022-02-03 21:04:56 -06:00
tracking.ts Track latency of feed and portfolio page. 2022-04-21 01:00:08 -05:00
txns.ts Send M$ to Charity & txns (#81) 2022-04-29 19:35:56 -04:00
users.ts [In progress] Server-side feed computation (#106) 2022-05-01 11:36:54 -05:00
utils.ts 🏦 Per-market loans! (#57) 2022-03-01 21:31:48 -06:00