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

refactor(content): simplify MonetizationLinkManager #538

Open
wants to merge 41 commits into
base: main
Choose a base branch
from

Conversation

sidvishnoi
Copy link
Member

@sidvishnoi sidvishnoi commented Aug 23, 2024

Context

Closes #455

Changes proposed in this pull request

  • Rename MonetizationTagManager to MonetizationLinkManager (as we want to handle only links in this service)
  • Simplify and reorganize MonetizationLinkManager
  • TypeScript improvements (check more things)

@github-actions github-actions bot added the area: content Improvements or additions to extension content script label Aug 23, 2024
Copy link

github-actions bot commented Aug 23, 2024

Extension builds preview

Name Link
Latest commit 7ba33cc
Latest job logs Run #10848861748
BadgeDownload
BadgeDownload

@github-actions github-actions bot added the area: background Improvements or additions to extension background script label Aug 26, 2024
Copy link
Member

@raducristianpopa raducristianpopa left a comment

Choose a reason for hiding this comment

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

Only code review for now - will have to test the extension as well.

src/content/services/monetizationLinkManager.ts Outdated Show resolved Hide resolved
src/content/services/monetizationLinkManager.ts Outdated Show resolved Hide resolved
src/content/services/monetizationLinkManager.ts Outdated Show resolved Hide resolved
src/content/services/monetizationLinkManager.ts Outdated Show resolved Hide resolved
src/content/services/frameManager.ts Outdated Show resolved Hide resolved
src/content/polyfill.ts Outdated Show resolved Hide resolved
@sidvishnoi sidvishnoi marked this pull request as ready for review September 6, 2024 11:06
Copy link
Member

@raducristianpopa raducristianpopa left a comment

Choose a reason for hiding this comment

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

It looks like the Monetization event is not sent to links inside iframes nor we send the START_MONETIZATION message to background from an iframe?

load event is sent on the other hand - the link is being validated.

Copy link
Member

@raducristianpopa raducristianpopa left a comment

Choose a reason for hiding this comment

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

Before merging this, let's get some feedback from other persons as well to check if this is working as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: background Improvements or additions to extension background script area: content Improvements or additions to extension content script
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Monetization tag manager refactoring
2 participants