Skip to content
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

enhance(ad-free): hide top-banner completely #11412

Merged
merged 5 commits into from
Jul 4, 2024

Conversation

caugner
Copy link
Contributor

@caugner caugner commented Jul 3, 2024

Summary

(MP-1059)

Problem

We’re showing the “Get real-time assistance with your coding queries. Try AI Help now!” top-banner fallback, even if paying subscribers have enabled the Ad-Free Experience.

Solution

Hide the top-banner fallback if the Ad-Free Experience is enabled.


Screenshots

Before

image

After

image

How did you test this change?

Ran yarn dev locally with local Rumba and changed the "Ad-free Experience" setting.

@caugner caugner requested a review from a team as a code owner July 3, 2024 13:13
client/src/utils.ts Outdated Show resolved Hide resolved
That shouldn't have been there.
Copy link
Contributor

@fiji-flo fiji-flo left a comment

Choose a reason for hiding this comment

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

For me the advantage is that we don't need the change in user-context and have this bit of information only once in the system. Not having it taking effect instant avoids the layout shift (I'd rather then have the banner blank in that case).

Less changes, less code, sameish user experience.

But if you strongly feel about this I'll approve.
Just please first get it out on stage.

client/src/user-context.tsx Outdated Show resolved Hide resolved
@caugner caugner changed the title fix(placement): hide top-banner fallback for ad-free users enhance(ad-free): hide top-banner completely Jul 4, 2024
@caugner caugner merged commit 83d5075 into main Jul 4, 2024
15 checks passed
@caugner caugner deleted the MP-1059-hide-top-banner-fallback-for-ad-free-users branch July 4, 2024 14:53
ferdnyc pushed a commit to ferdnyc/yari that referenced this pull request Jul 13, 2024
When paying MDN Plus subscribers enable the "Ad-free experience", we now
hide the top banner completely, rather than showing it with a fallback message.

The top banner is hidden immediately, avoiding a layout shift.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants