-
Notifications
You must be signed in to change notification settings - Fork 30
feat: Integrate Sign-In Gate Portal into Sticky Bottom Banner #14408
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
Merged
juabara
merged 20 commits into
main
from
jm/feat-prevent-banner-and-sign-in-gate-together
Sep 18, 2025
Merged
feat: Integrate Sign-In Gate Portal into Sticky Bottom Banner #14408
juabara
merged 20 commits into
main
from
jm/feat-prevent-banner-and-sign-in-gate-together
Sep 18, 2025
+735
−515
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Removed unused sign-in gate logic and integrated new Sign-In Gate Portal component. - Updated StickyBottomBanner to include host prop for Sign-In Gate functionality. - Enhanced message picking logic to prioritize Sign-In Gate over other banners. - Added tests for Sign-In Gate Portal to ensure correct behavior under various conditions. - Updated Reader Revenue Banner logic to remove dependency on sign-in gate visibility. - Created Storybook stories for various scenarios including mock implementations for better testing. - Added host prop to multiple layouts to support Sign-In Gate rendering.
…message handling in Storybook
…r controls rendering
…tomBanner, and SignInGatePortal components
…eat-prevent-banner-and-sign-in-gate-together
tomrf1
reviewed
Sep 1, 2025
tomrf1
reviewed
Sep 1, 2025
dotcom-rendering/src/components/StickyBottomBanner.importable.tsx
Outdated
Show resolved
Hide resolved
tomrf1
reviewed
Sep 11, 2025
dotcom-rendering/src/components/StickyBottomBanner.importable.tsx
Outdated
Show resolved
Hide resolved
tomrf1
reviewed
Sep 11, 2025
dotcom-rendering/src/components/StickyBottomBanner.importable.tsx
Outdated
Show resolved
Hide resolved
…eat-prevent-banner-and-sign-in-gate-together
tomrf1
reviewed
Sep 15, 2025
dotcom-rendering/src/components/StickyBottomBanner.importable.tsx
Outdated
Show resolved
Hide resolved
tomrf1
reviewed
Sep 15, 2025
tomrf1
reviewed
Sep 15, 2025
juabara
commented
Sep 16, 2025
tomrf1
reviewed
Sep 17, 2025
tomrf1
approved these changes
Sep 18, 2025
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.
great 🎉
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this change?
Centralise sign-in gate rendering inside the StickyBottomBanner message picker so banners and the sign‑in gate cannot display at the same time.
Main changes
useSignInGateSelector
and renders gates into#sign-in-gate
.signInGateWillShow
dependency from reader revenue canShow logic.signInGateWillShow
logic from banner flow.Island
in the portal to defer activation until visible.host
prop to layouts that require it so StickyBottomBanner can pass host through.Why?
Testing & validation
Notes for reviewers
withSignInGateSlot
helper; that helper now only injects the#sign-in-gate
placeholder so StickyBottomBanner owns gate rendering.