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

feat: Update icon #234

Merged
merged 28 commits into from May 13, 2024
Merged

feat: Update icon #234

merged 28 commits into from May 13, 2024

Conversation

dianafulga
Copy link
Contributor

@dianafulga dianafulga commented Apr 18, 2024

Closes #79

@github-actions github-actions bot added area: content Improvements or additions to extension content script area: background Improvements or additions to extension background script area: popup Improvements or additions to extension popup labels Apr 18, 2024
@dianafulga dianafulga changed the title Update icon feat: Update icon Apr 18, 2024
@raducristianpopa
Copy link
Member

raducristianpopa commented Apr 18, 2024

Extension builds preview

Name Link
Latest commit a830e57
Latest job logs Run #9033559294
BadgeDownload
BadgeDownload

Base automatically changed from ia--monetization-flow to main April 19, 2024 08:50
src/background/services/background.ts Outdated Show resolved Hide resolved
src/popup/pages/Home.tsx Outdated Show resolved Hide resolved
src/popup/pages/Home.tsx Outdated Show resolved Hide resolved
src/popup/pages/Home.tsx Outdated Show resolved Hide resolved
src/popup/lib/utils.ts Outdated Show resolved Hide resolved
src/popup/components/PayWebsiteForm.tsx Outdated Show resolved Hide resolved
src/popup/components/PayWebsiteForm.tsx Outdated Show resolved Hide resolved
src/popup/components/ConnectWalletForm.tsx Outdated Show resolved Hide resolved
src/popup/components/ConnectWalletForm.tsx Outdated Show resolved Hide resolved
src/background/services/tabEvents.ts Show resolved Hide resolved
src/background/services/tabEvents.ts Show resolved Hide resolved
src/background/services/tabEvents.ts Outdated Show resolved Hide resolved
src/background/services/monetization.ts Outdated Show resolved Hide resolved
@dianafulga dianafulga requested a review from mkurapov May 9, 2024 14:08
src/background/services/storage.ts Outdated Show resolved Hide resolved
src/background/services/background.ts Outdated Show resolved Hide resolved
Comment on lines 326 to 329
if (walletAddress) {
startMonetization({ requestId, walletAddress })
isTabMonetized({ value: true })
}
Copy link
Member

Choose a reason for hiding this comment

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

We should bulk send (for start, resumse, stop) all the link tags that are in the page. This way we can avoid sending multiple events. With the current approach we send two START_MONETIZATION and two TAB_MONETIZED when a new link tag is added.

@github-actions github-actions bot removed the area: popup Improvements or additions to extension popup label May 10, 2024
Copy link

@mkurapov mkurapov left a comment

Choose a reason for hiding this comment

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

minor updates

src/background/services/tabEvents.ts Outdated Show resolved Hide resolved
src/content/services/contentScript.ts Outdated Show resolved Hide resolved
src/content/services/monetizationTagManager.ts Outdated Show resolved Hide resolved
@dianafulga dianafulga requested a review from mkurapov May 10, 2024 14:15
@mkurapov
Copy link

mkurapov commented May 10, 2024

after pnpm dev chrome:

Screenshot 2024-05-10 at 17 30 58

is this an existing issue?

Working now (maybe just outdated pnpm or something else on my end)

Copy link

@mkurapov mkurapov left a comment

Choose a reason for hiding this comment

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

The icon change is working for me correctly, approving.

One comment I have is regarding @raducristianpopa 's comment: #234 (comment)

it seems like the start/stop/resume events are still being fired once per tag, maybe this can be made into a separate issue?

@dianafulga dianafulga merged commit a5364ef into main May 13, 2024
7 checks passed
@dianafulga dianafulga deleted the df--update-icon branch May 13, 2024 11:16
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.

Display WM icon differently if website is/isn't monetized
4 participants