Skip to content

Fix interstitials to not interrupt feed slices#6645

Merged
gaearon merged 1 commit into
mainfrom
fix-interstitials
Nov 22, 2024
Merged

Fix interstitials to not interrupt feed slices#6645
gaearon merged 1 commit into
mainfrom
fix-interstitials

Conversation

@gaearon
Copy link
Copy Markdown
Contributor

@gaearon gaearon commented Nov 22, 2024

I regressed on this in #6507. We never want to put an interstitial in between two items of the same slice. To fix this, I'm moving the logic to where we enumerate over the slices. While we're at it, I'm also ripping out a bit of abstraction that hasn't proven out to be useful and was making my mistake harder to spot. (Plus removing the experiment we didn't ship.)

Test Plan

Reset onboarding state, observe the progress bar on Discover:

Screenshot 2024-11-22 at 20 13 05

Discover still shows suggestions:

Screenshot 2024-11-22 at 20 05 01

They change after Discover invalidation.

Profiles still show suggestions:

Screenshot 2024-11-22 at 20 12 57

@arcalinea arcalinea temporarily deployed to fix-interstitials - social-app PR #6645 November 22, 2024 20:18 — with Render Destroyed
@github-actions
Copy link
Copy Markdown
Contributor

Old size New size Diff
8.06 MB 8.05 MB -4.78 KB (-0.06%)

Copy link
Copy Markdown
Member

@estrattonbailey estrattonbailey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@gaearon gaearon merged commit fee2f5d into main Nov 22, 2024
@gaearon gaearon deleted the fix-interstitials branch November 22, 2024 22:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants