manifold/web/hooks
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
..
use-admin.ts Merge Manifold for Teams infra into main codebase (#61) 2022-03-08 18:43:30 -08:00
use-algo-feed.ts [In progress] Server-side feed computation (#106) 2022-05-01 11:36:54 -05:00
use-answers.ts Free response (#47) 2022-02-17 17:00:19 -06:00
use-bets.ts Algo feed (#77) 2022-04-09 18:10:58 -05:00
use-charity-txns.ts Send M$ to Charity & txns (#81) 2022-04-29 19:35:56 -04:00
use-comments.ts Get static props of just data for feed: active contracts, their bets & comments. 2022-01-14 18:16:32 -06:00
use-contract.ts Add useStateCheckEquality, and use for user & contract hooks 2022-04-06 13:56:08 -05:00
use-contracts.ts [In progress] Server-side feed computation (#106) 2022-05-01 11:36:54 -05:00
use-focus.ts Cfmm (#64) 2022-03-15 17:27:51 -05:00
use-fold.ts Optimize use fold hooks to trigger fewer re-renders 2022-04-06 13:56:08 -05:00
use-has-created-contract-today.ts Default has created one to prevent flash 2022-04-28 19:39:55 -06:00
use-is-visible.ts Track seen contracts in feed. Order feed by seen time priority. 2022-03-17 02:29:19 -05:00
use-measure-size.ts Embed market: dynamically adjust graph height 2022-03-24 12:03:17 -05:00
use-preserve-scroll.ts Preserve scroll on back 2022-01-14 18:43:00 -06:00
use-propz.ts Merge Manifold for Teams infra into main codebase (#61) 2022-03-08 18:43:30 -08:00
use-seen-contracts.ts Track clicks from feed 2022-04-19 00:16:08 -05:00
use-sort-and-query-params.tsx Fix not being able to go back on markets pages / communities 2022-03-23 00:34:04 -05:00
use-state-check-equality.ts Add useStateCheckEquality, and use for user & contract hooks 2022-04-06 13:56:08 -05:00
use-time-since-first-render.ts Track latency of feed and portfolio page. 2022-04-21 01:00:08 -05:00
use-user-bets.ts Also get new contracts for feed with 0 volume. 2022-04-20 16:59:34 -05:00
use-user.ts Add useStateCheckEquality, and use for user & contract hooks 2022-04-06 13:56:08 -05:00
use-users.ts Fix crash when there aren't any bets 2022-03-21 15:19:42 -07:00
use-window-size.ts Shorter graph on mobile 2022-01-18 17:10:21 -06:00