-
Notifications
You must be signed in to change notification settings - Fork 4k
✨[story-ads] Introduce new yellow segment progress bar #34662
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Hey @gmajoulet, @newmuis! These files were changed: |
|
cc/ @jshamble |
|
This is cool! Sorry, I forget a lot of the ads context: are ads ever removed and the user progresses through the story? Put another way: is it certain that when navigating backwards, the user will still see all of the ads that they previously saw, in the same slots, in reverse order? |
|
If I understand your concern correctly Jon: this does not add a segment, but colors the current active one in yellow instead of white, so back navigation should not be impacted. |
|
@newmuis yep that is right, once an ad is place navigating backwards will show the same ad in the same position.
Right, this PR selects the segment based on the index from the page change event and creates a yellow div on top. I am open to other ideas if you all have them. We may try adding a new segment at some point but I think it will be much more complicated, and still needs UX to answer questions like what happens on no-fill? Also with our current placement algo we don't know positions in advance but this will likely change soon with the introduction of our new placement logic. |
|
@gmajoulet friendly ping :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you consider an alternative implementation where the progress bar class listens for AD_STATE updates and renders that extra segment itself? The code would be more contained
I thought it might be better to minimize the ad specific code in the extension, but I don't feel strongly. If you think its better I can look into moving it there. It may be more difficult to run various experiments i.e. control group should not contain stories where there is no |
|
Closing in favor of #34804 |
Auto progresses ad and bar shows 8 second animation. Will be ran as an experiment to determine UX improvements.
Partial #33969