about summary refs log tree commit diff
path: root/src/view/com/posts/Feed.tsx
Commit message (Collapse)AuthorAgeFilesLines
* Disambiguate feed component naming (#7040)dan2024-12-101-598/+0
| | | | | * Rename posts/Feed* -> posts/PostFeed* * Rename notifications/Feed* -> notifications/NotificationFeed*
* Prefetch adjacent Home pages (#6904)dan2024-12-031-2/+2
|
* Remove indirection, insert between slices (#6645)dan2024-11-221-110/+43
|
* [Android] Lower Feed maxRenderPerBatch (#6624)dan2024-11-221-2/+2
|
* Split FeedSlice into FlatList rows (#6507)dan2024-11-191-27/+116
|
* [Statsig] Remove client downsampling (#6153)Hailey2024-11-151-2/+2
|
* Remove Segment (#5518)Hailey2024-09-271-6/+1
|
* Allow profile header to overscroll (#5457)Samuel Newman2024-09-251-3/+6
| | | | | | | | | * add allowoverscroll prop * ensure spinner is visible * more generic prop for `<List>` * rename to allowHeaderOverScroll
* Adjust render properties for `Feed` `List` (#5080)Hailey2024-09-031-1/+3
|
* [Experiment] Suggest profiles in profile (#5030)dan2024-08-301-14/+29
| | | | | | | | | | | | | | | * Rename variable to disambiguate with parent scope * More variables where they are used * Inline variables * Add suggestions in profile * Gate it * rm space * Remove header suggestions under gate
* Profile screen performance tweak - Adjust initial num to render based on ↵Hailey2024-08-291-2/+3
| | | | header height (#5005)
* Improve styles (#4916)Minseo Lee2024-08-111-3/+1
| | | | Co-authored-by: Hailey <me@haileyok.com>
* Cleanup flags (#4891)dan2024-08-081-2/+1
| | | | | * Remove launched gates * Remove disabled gates
* Keep interstitial fresh on refresh (#4888)dan2024-08-081-3/+5
|
* [Video] Visibility detection view (#4741)Hailey2024-08-071-0/+1
| | | | Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com>
* Show replies in context of their threads (#4871)dan2024-08-051-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Don't reconstruct threads from separate posts * Remove post-level dedupe for now * Change repost dedupe condition to look just at length * Delete unused isThread * Delete another isThread field It is now meaningless because there's nothing special about author threads. * Narrow down slice item shape so it does not need reply * Consolidate slice validation criteria in one place * Show replies in context * Make fallback marker work * Remove misleading and now-unused property It was called rootUri but it was actually the leaf URI. Regardless, it's not used anymore. * Add by-thread dedupe to non-author feeds * Add post-level dedupe * Always count from the start This is easier to think about. * Only tuner state need to be untouched on dry run * Account for threads in reply filtering * Remove repost deduping This is already being taken care of by item-level deduping. It's also now wrong and removing too much (since it wasn't filtering for reposts directly). * Calculate rootUri correctly * Apply Following settings to all lists * Don't dedupe intentional reposts by thread * Show reply parent when ambiguous * Explicitly remove orphaned replies from following/lists * Fix thread dedupe to work across pages * Mark grandparent-blocked as orphaned * Guard tuner state change by dryRun * Remove dead code * Don't dedupe feedgen threads * Revert "Apply Following settings to all lists" This reverts commit aff86be6d37b60cc5d0ac38f22c31a4808342cf4. Let's not do this yet and have a bit more discussion. This is a chunky change already. * Reason belongs to a slice, not item * Logically feedContext belongs to the slice * Update comment to reflect latest behavior
* [D1X] Use user action and viewing history to inform suggested follows (#4727)Eric Bailey2024-07-041-26/+1
| | | | | | | | | | | | | * Use user action and viewing history to inform suggested follows * Remove dynamic spreads * Track more info about seen posts * Add ranking --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Feed interstitial tweaks (#4733)dan2024-07-041-2/+2
| | | | | * Swap interstitial positions * Fix color
* Fix feed feedback (#4730)dan2024-07-041-0/+8
|
* New user progress guides (#4716)Paul Frazee2024-07-041-9/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add the animated checkmark svg * Add progress guide list and task components * Add ProgressGuide Toast component * Implement progress-guide controller * Add 7 follows to the progress guide * Wire up action captures * Wire up progress-guide persistence * Trigger progress guide on account creation * Clear the progress guide from storage on complete * Add progress guide interstitial, put behind gate * Fix: read progress guide state from prefs * Some defensive type checks * Create separate toast for completion * List tweaks * Only show on Discover * Spacing and progress tweaks * Completely hide when complete * Capture the progress guide in local state, and only render toasts while guide is active * Fix: ensure persisted hydrates into local state * Gate --------- Co-authored-by: Eric Bailey <git@esb.lol> Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* [D1X] Integrate interstitials (#4698)Eric Bailey2024-07-031-31/+192
| | | | | | | | | | | | | | | * Use discriminated union * Integrate interstitials * Add gates and handling for variants * Only show interstitials for logged in accounts since flags are based on user ID * Nit --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Fix missing top borders (#4346)dan2024-06-041-9/+1
|
* Change many border widths from `1` to `hairlineWidth` (#4294)Hailey2024-05-311-6/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * feed items * update some more * moar * profile card * composer and notifications * settings screen * remove border from first item in feeds * remove border from first item in feeds * more removal of top border * fix flatlist rendering * oops * scroll to top fab * a.border * centeredview/list * placeholder * web sidebar * search posts * feeds list * user lists * list header * account list width 1 * hide top border feedgens * same for lists * fix tab bar web desktop * wait... * show the border on desktop web * fix lists * fix lists * round
* [Statsig] Sample noisy events (#4288)dan2024-05-301-2/+2
| | | | | | | * Sample state:background and state:foreground * Sample feed events * Add DEV protection against forgetting to add events to the list
* Add shutdown message to for you feed (#3776)Paul Frazee2024-05-111-2/+11
|
* Movable following feed (#3593)Eric Bailey2024-05-111-2/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Handle home algo with backwards compat * Remove todo, fix pwi view * Simplify filter logic * Handle edge case * Handle home algo in FeedSourceCard * Fix handling of pinned feed if home algo is disabled * Handle home algo on ProfileFeed screen * Rename * Fix pinned feeds key * Improve perf of pinned feeds with primary algo * Update statsig API * Revert unneeded changes * Support following feed as well * Better formatting * Clarify primary algo usage * Better comment * Handle saved feed screen edge case * Restore Feeds sparkle, fix line height * Move gate call down * Filter out primary algo from feeds page * Filter dupe from Feeds screen * Simplify logic * Missing following handling * Hide primary feed setting outside exp * Revert testing change * Migrate usePinnedFeedInfos * Migrate FeedSourceCard * Migrate Feeds screen * Migrate SavedFeeds screen * Handle timeline in feed infos * Finish migrating ProfileFeed, FeedSourceCard * Migrate ProfileList * Finalize mutation hooks * Allow unsaving lists * Handle following feed on Feeds screen * Handle following on SavedFeeds * Get rid of deprecated interface usages * Handle no pinned feeds * Handle no feeds on Feeds screen * Reuse component on SavedFeeds screen * Handle no following feed * Remove primary algo references * Migrate to new plural APIs * Remove unused event * Prevent duplicate keys * Make handling much more clear * Dedupe useHeaderOffset * Filter unknown feed types at source * Use just following * Immprove key handling * Resume from last tab * Bump sdk * Revert Gemfile * Additional protection in FeedSourceCard * Fix ProfileList save/unsave handling * Translate * Translate * Match existing handling post-signup * Ensure onboarding results in correct selected feeds * Some testing tweaks on create/onboarding * Revert primary algo consderations * Remove comment * Handle default feed setting * Rm unnecessary type cast * Remove premature gate check * Remove nullable check in onPageSelecting, assume the pager checks bounds * Use null for default selected feed * Rm unrelated change * Remove the concept of __key__ I don't think this concept is consistent. It's introduced on FeedSourceInfo which is used both by pinned feeds and by useFeedSourceInfoQuery. Pinned feeds use the pinning ID there. But there is no pinning ID for useFeedSourceInfoQuery. So this means this field is sometimes one thing and sometimes some other thing. That is a decent sign that it shouldn't be on that type at all. It's not used anywhere except the desktop feed enumeration. It seems reasonable to assume there that we wouldn't want to show the same feed URL twice. (And if it does occur in the array twice, IMO we should solve that at the API level and dedupe it on read or next write.) So I think we should just use the URL in that place. (I used the descriptor, which is equivalent.) * Dedupe pinned feeds by URL on read * Filter timeline out of mergefeed sources * Put FeedDescriptor into FeedSourceInfo * Group saved info with feed for pins This removes a loop within a loop within a loop. * Fix Feeds link on native --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Implement FeedFeedback API (#3498)Paul Frazee2024-05-071-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 <dan.abramov@gmail.com>
* [Experiment] Turn off interval polling for Discover (#3431)dan2024-04-081-18/+22
| | | | | * Include feed URL in feed events * [Experiment] Turn off polling interval for Discover
* [Statsig] Track feed refresh (#3283)dan2024-03-191-2/+6
|
* [Statsig] Track posting, end reached (#3206)dan2024-03-141-1/+15
| | | | | * Track post create * Track feed endReached
* Adjust FlatList performance in main feeds (#3134)Hailey2024-03-061-0/+4
| | | | | | | | | * adjust flatlist perf settings * calculate initial num to render based on screen height * adjust window size * don't react to screen height changes
* Clean up some sentry logs (#2630)Eric Bailey2024-01-251-3/+3
| | | | | | | * Change prop name for sentry ingestion * Fix test * Add default object
* Add a new home feed-api wrapper and give a header indicating the fallback ↵Paul Frazee2024-01-151-0/+8
| | | | | | | | | behavior (#2534) * Add a new home feed-api wrapper and give a header indicating the fallback behavior * Sneak in a quick fix: use the correct text color in the delete modal * Use imported constant
* Reduce polling (#2465)Paul Frazee2024-01-101-5/+9
| | | | | | | | | | | | | * Move profile and preference polling to polls-on-foreground * Refetch prefs on feeds screen refresh since polling no longer occurs * Reduce notifications polling by 50% if there's already an unread * Disable feed polling if we know we have content * Disable the hard refresh after 1 hour in case it's the cause of the random feed refresh bug * Fix types
* Internationalize more strings (#2440)Stanislas Signoud2024-01-091-2/+7
| | | Co-authored-by: Ansh <anshnanda10@gmail.com>
* Fix: dont incorrectly mark a feed empty based only on the first page (#2298)Paul Frazee2023-12-241-1/+4
|
* Consolidate List props a bit (#2216)dan2023-12-211-14/+3
|
* Traffic reduction and tuned caching strats (#2215)Paul Frazee2023-12-151-4/+22
| | | | | | | | | | | | | * Update the feed to only check latest on focus after 30s, but to do a full reset on focus after 1 hour to avoid very stale data * Remove the isFeedPublic query * Fix: avoid double next-page fetches * Reduce some poll intervals to reduce server load * Guard against double-fires of fetchNextPage * Reduce polling on blurred screens
* Make scroll handling contextual (#2200)dan2023-12-131-13/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add an intermediate List component * Fix type * Add onScrolledDownChange * Port pager to use onScrolledDownChange * Fix on mobile * Don't pass down onScroll (replacement TBD) * Remove resetMainScroll * Replace onMainScroll with MainScrollProvider * Hook ScrollProvider to pager * Fix the remaining special case * Optimize a bit * Enforce that onScroll cannot be passed * Keep value updated even if no handler * Also memo it
* Feed bugfixes (#2204)Paul Frazee2023-12-131-2/+1
| | | | | * Dont show both an error and empty message in the feed * Add a sanity check when attempting to fill the first 30
* Fix scroll on native (#2170)dan2023-12-111-2/+2
|
* Fix scroll on profile lists/feeds (#2168)dan2023-12-111-2/+2
|
* Poll for new posts on app foreground (#2152)Paul Frazee2023-12-081-5/+17
|
* Use new filter for Posts tab on profile (#2150)Eric Bailey2023-12-081-1/+1
| | | | | | | * Use new filter for Posts tab on profile * Update deps * Remove log
* Grab-bag of post-feed improvements (#2140)Paul Frazee2023-12-071-1/+8
| | | | | | | * Sanity check against cases where empty pages may occur * Use the mergefeed as an emergency fallback to an empty feed * Check for new posts on focus
* Hoist moderation, attempt to fill feed up to 30 (#2134)Eric Bailey2023-12-071-22/+8
| | | | | | | | | | | * Move moderatePost up to feed query * Attemt to fill page up to 30 * Add the 'ensure full page' behavior to notifs --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Check Analytics (#2106)Ansh2023-12-061-1/+1
| | | | | | | | | | | * fix sign in event tracking * add missing analytics events * add more missing analytics * fix like and unrepost event tracking * reset onEndReachedThreshold
* Surface raw server error if exists (#2096)Eric Bailey2023-12-051-1/+1
| | | | | | | | | | | * Surface raw server error if exists * Update copy * Update translation files --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Update feeds on post created (#2085)Paul Frazee2023-12-041-0/+25
|
* Add back ignore-filters-for behaviors (#2086)Paul Frazee2023-12-041-0/+4
|