hero-org / herocast

herocast is Farcaster’s leading open-source client. Our goal is to decentralize power on the internet, faster.
https://app.herocast.xyz
GNU Affero General Public License v3.0
63 stars 29 forks source link

Add list of recent unfollows to analytics #455

Closed hellno closed 1 month ago

hellno commented 2 months ago

Is your feature request related to a problem? Please describe. Analytics page (on /analytics url) currently shows follows, reactions and recent top casts. We want to add a new table that shows who and when someone recently unfollowed.

Describe the solution you'd like The supabase function create-analytics-data, powered by Deno, runs queries on the DB that stores the Farcaster activity data. Query example function: getCastsOverview, generates a list of recent casts. This is a different DB than the supabase DB which manages: user data, Farcaster account connections, channels, etc.

the flow is

two code places are relevant for this:

Additional context

image.

hellno commented 2 months ago

@dragmakex fyi

dragmakex commented 2 months ago

Thanks, will look into it :)

dragmakex commented 1 month ago

https://github.com/hero-org/herocast/pull/513