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

fix(ad-free): show minimal muted top-banner fallback #10942

Closed
wants to merge 3 commits into from

Conversation

caugner
Copy link
Contributor

@caugner caugner commented Apr 17, 2024

Summary

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

Show a minimal top-banner fallback copy instead if the Ad-Free Experience is enabled.

Note: We cannot currently hide the top-banner entirely, because this would cause a layout shift.


Screenshots

Before

image

After

image

How did you test this change?

Ran yarn && yarn dev locally with running rumba, logging in as a paying subscriber and enabling the Ad-Free Experience in the user settings.

@caugner caugner marked this pull request as ready for review April 17, 2024 17:48
@caugner caugner requested a review from a team as a code owner April 17, 2024 17:48
@caugner caugner marked this pull request as draft April 17, 2024 21:43
@caugner
Copy link
Contributor Author

caugner commented Apr 17, 2024

Unfortunately, the page jumps, because the SSR html contains the top-banner and we only hide it when we know that the user has the ad-free experience enabled.

This is a compromise. Hiding the top-banner entirely isn't currently
feasible, because it causes a layout shift upon load.
@caugner caugner force-pushed the MP-1059-hide-top-banner-if-ad-free branch from 163bed3 to 9aa165e Compare April 17, 2024 22:04
@caugner caugner changed the title fix(plus): hide top-banner fallback if ad-free fix(ad-free): show minimal muted top-banner fallback Apr 17, 2024
@github-actions github-actions bot added the idle label May 17, 2024
@caugner
Copy link
Contributor Author

caugner commented May 27, 2024

Closing for now, we will re-consider this after the ongoing rewrite work.

@caugner caugner closed this May 27, 2024
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.

None yet

1 participant