Skip to content

Conversation

@AnastasiiaBalenko
Copy link
Contributor

@AnastasiiaBalenko AnastasiiaBalenko commented Nov 19, 2025

What does this change?

Ticket link

This PR adds customEvents dispatching to the next components:

  • SignInGate,
  • GutterAsk,
  • LiveBlogEpic,
  • AppsEpic,
  • ReaderRevenueEpic,
  • BrazeEpic
  • StickyBottomBanner

Why?

From a discussion from commercial dev where different components / team tech aren’t aware of each other’s activity. I.e., when the pop-up sign in gate displays and is hidden.

Aim of this PR: fire the events on marketing components' activities for other teams (e.g., comm dev) to receive.

Screenshots

Gutter event
gutter-ask
SignInGate events
Screenshot 2025-11-19 at 16 17 19
Screenshot 2025-11-19 at 16 17 35
Banner events
Screenshot 2025-11-19 at 16 30 38
Screenshot 2025-11-19 at 16 31 17
Epic event
Screenshot 2025-11-19 at 16 33 29

@AnastasiiaBalenko AnastasiiaBalenko added the maintenance Departmental tracking: maintenance work, not a fix or a feature label Nov 19, 2025
@AnastasiiaBalenko AnastasiiaBalenko force-pushed the ab-marketing-components-events branch from 72533ee to 4f12ac7 Compare November 19, 2025 16:48
@github-actions
Copy link

github-actions bot commented Nov 19, 2025

@github-actions
Copy link

github-actions bot commented Nov 19, 2025

@AnastasiiaBalenko AnastasiiaBalenko marked this pull request as ready for review November 19, 2025 17:00
@AnastasiiaBalenko AnastasiiaBalenko requested a review from a team as a code owner November 19, 2025 17:00
@github-actions
Copy link

Hello 👋! When you're ready to run Chromatic, please apply the run_chromatic label to this PR.

You will need to reapply the label each time you want to run Chromatic.

Click here to see the Chromatic project.

@AnastasiiaBalenko AnastasiiaBalenko added the run_chromatic Runs chromatic when label is applied label Nov 19, 2025
@github-actions github-actions bot removed the run_chromatic Runs chromatic when label is applied label Nov 19, 2025
if (impressionSeen && !reportedImpressionSeen) {
void getAcquisitionsClient().epicSeen();
setReportedImpressionSeen(true);
document.dispatchEvent(
Copy link
Member

Choose a reason for hiding this comment

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

this file is specific to the mobile apps and so I think we can consider it out of scope for now.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed

Copy link
Member

@tomrf1 tomrf1 left a comment

Choose a reason for hiding this comment

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

👍
we tested in CODE by checking each of the affected components still loads

@AnastasiiaBalenko AnastasiiaBalenko added the run_chromatic Runs chromatic when label is applied label Nov 24, 2025
@github-actions github-actions bot removed the run_chromatic Runs chromatic when label is applied label Nov 24, 2025
@AnastasiiaBalenko AnastasiiaBalenko merged commit 10ff756 into main Nov 24, 2025
32 checks passed
@AnastasiiaBalenko AnastasiiaBalenko deleted the ab-marketing-components-events branch November 24, 2025 10:23
@gu-prout
Copy link

gu-prout bot commented Nov 24, 2025

Seen on PROD (merged by @AnastasiiaBalenko 6 minutes and 56 seconds ago) Please check your changes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dotcom-rendering maintenance Departmental tracking: maintenance work, not a fix or a feature Seen-on-PROD

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants