From 4fad18b2fa3c12ffdf1d49afac5228f7df658bc2 Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Mon, 6 May 2024 19:08:33 -0700 Subject: Implement FeedFeedback API (#3498) * Implement onViewableItemsChanged on List.web.tsx * Introduce onItemSeen to List API * Add FeedFeedback tracker * Add clickthrough interaction tracking * Add engagement interaction tracking * Reduce duplicate sends, introduce a flushAndReset to be triggered on refreshes, and modify the api design a bit * Wire up SDK types and feedContext * Avoid needless function allocations * Fix schema usage * Add show more / show less buttons * Fix minor rendering issue on mobile menu * Wire up sendInteractions() * Fix logic error * Fix: it's item not uri * Update 'seen' to mean 3 seconds on-screen with some significant portion visible * Fix non-reactive debounce * Move methods out * Use a WeakSet for deduping * Reset timeout * 3 -> 2 seconds * Oopsie * Throttle instead * Fix divider * Remove explicit flush calls * Rm unused --------- Co-authored-by: dan --- src/view/screens/DebugMod.tsx | 1 + 1 file changed, 1 insertion(+) (limited to 'src/view/screens/DebugMod.tsx') diff --git a/src/view/screens/DebugMod.tsx b/src/view/screens/DebugMod.tsx index 442e33fd3..86c632194 100644 --- a/src/view/screens/DebugMod.tsx +++ b/src/view/screens/DebugMod.tsx @@ -804,6 +804,7 @@ function MockPostFeedItem({ record={post.record as AppBskyFeedPost.Record} moderation={moderation} reason={undefined} + feedContext={''} /> ) } -- cgit 1.4.1