Skip to content

fix: auto icons override default icons - #1616

Merged
aklinker1 merged 9 commits into
wxt-dev:mainfrom
omerfardemir:fix/icon-override
Feb 22, 2026
Merged

aklinker1 merged 9 commits into
wxt-dev:mainfrom
omerfardemir:fix/icon-override

Conversation

@omerfardemir

Copy link
Copy Markdown
Contributor

just removed return statement in line 35.

return wxt.logger.warn(

Manual Testing

  1. have default icons in the public folder public/icon/*
  2. install auto icons
  3. add a icon to <src>/assets/icon.png
  4. run npm run dev

This PR closes #1592

@omerfardemir
omerfardemir requested a review from Timeraa as a code owner April 25, 2025 23:29
@netlify

netlify Bot commented Apr 25, 2025 •

Copy link
Copy Markdown

✅ Deploy Preview for creative-fairy-df92c4 ready!

Name Link
🔨 Latest commit cc304b5
🔍 Latest deploy log https://app.netlify.com/projects/creative-fairy-df92c4/deploys/699b6cc32fe6050008d18cac
😎 Deploy Preview https://deploy-preview-1616--creative-fairy-df92c4.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@Timeraa

Timeraa commented May 29, 2025

Copy link
Copy Markdown
Member

Could you add a test for this?

@omerfardemir
omerfardemir requested a review from aklinker1 as a code owner May 31, 2025 21:42
@omerfardemir

Copy link
Copy Markdown
Contributor Author

I added tests and here is output:

✓ src/__test__/index.test.ts (9 tests) 23ms
   ✓ auto-icons module > options handling > should use default options when not provided 5ms
   ✓ auto-icons module > options handling > should merge custom options with defaults 1ms
   ✓ auto-icons module > error handling > should warn when disabled 4ms
   ✓ auto-icons module > error handling > should warn when base icon not found 1ms
   ✓ auto-icons module > manifest generation > should update manifest with icons 2ms
   ✓ auto-icons module > manifest generation > should warn when overwriting existing icons in manifest 1ms
   ✓ auto-icons module > icon generation > should generate icons with correct sizes 2ms
   ✓ auto-icons module > icon generation > should apply grayscale in development mode but not in production 1ms
   ✓ auto-icons module > public paths > should add icon paths to public paths 1ms

 Test Files  1 passed (1)
      Tests  9 passed (9)
   Start at  00:40:30
   Duration  630ms (transform 35ms, setup 0ms, collect 84ms, tests 23ms, environment 0ms, prepare 185ms)

@Timeraa

Timeraa commented Jun 1, 2025 •

Copy link
Copy Markdown
Member

Thank you, did I not add any tests to that module when I made it? Oopsies haha.

Looks all fine from me so @aklinker1 can merge when he approves of it

@aklinker1 aklinker1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm alive! Been busy with some other life stuff. Should be back on GitHub and discord soon.

@Timeraa

Timeraa commented Jun 1, 2025

Copy link
Copy Markdown
Member

I'm alive! Been busy with some other life stuff. Should be back on GitHub and discord soon.

No worries everyone gets through things like that in life sometimes! I'm currently going through a lot of it as well

@Timeraa
Timeraa force-pushed the fix/icon-override branch from 2dabfec to 946f2f4 Compare July 30, 2025 22:08
@codecov

codecov Bot commented Jul 30, 2025 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 76.31%. Comparing base (68fa36e) to head (cc304b5).
⚠️ Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1616      +/-   ##
==========================================
+ Coverage   76.08%   76.31%   +0.23%     
==========================================
  Files         113      114       +1     
  Lines        3048     3065      +17     
  Branches      682      693      +11     
==========================================
+ Hits         2319     2339      +20     
+ Misses        643      641       -2     
+ Partials       86       85       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@pkg-pr-new

pkg-pr-new Bot commented Jul 30, 2025 •

Copy link
Copy Markdown

Open in StackBlitz

@wxt-dev/analytics

npm i https://pkg.pr.new/@wxt-dev/analytics@1616

@wxt-dev/auto-icons

npm i https://pkg.pr.new/@wxt-dev/auto-icons@1616

@wxt-dev/browser

npm i https://pkg.pr.new/@wxt-dev/browser@1616

@wxt-dev/i18n

npm i https://pkg.pr.new/@wxt-dev/i18n@1616

@wxt-dev/is-background

npm i https://pkg.pr.new/@wxt-dev/is-background@1616

@wxt-dev/module-react

npm i https://pkg.pr.new/@wxt-dev/module-react@1616

@wxt-dev/module-solid

npm i https://pkg.pr.new/@wxt-dev/module-solid@1616

@wxt-dev/module-svelte

npm i https://pkg.pr.new/@wxt-dev/module-svelte@1616

@wxt-dev/module-vue

npm i https://pkg.pr.new/@wxt-dev/module-vue@1616

@wxt-dev/runner

npm i https://pkg.pr.new/@wxt-dev/runner@1616

@wxt-dev/storage

npm i https://pkg.pr.new/@wxt-dev/storage@1616

@wxt-dev/unocss

npm i https://pkg.pr.new/@wxt-dev/unocss@1616

@wxt-dev/webextension-polyfill

npm i https://pkg.pr.new/@wxt-dev/webextension-polyfill@1616

wxt

npm i https://pkg.pr.new/wxt@1616

commit: cc304b5

@Timeraa
Timeraa requested a review from aklinker1 July 30, 2025 23:21
@PatrykKuniczak

Copy link
Copy Markdown
Collaborator

@omerfardemir Let's resolve conflicts and CI failed checks

@aklinker1 aklinker1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Huh, testing a WXT module kinda sucks, doesn't it? I should address that at some point.

@aklinker1

Copy link
Copy Markdown
Member

I'll handle the conflicts and check failures, my fault for not responding for forever.

@aklinker1
aklinker1 enabled auto-merge (squash) February 22, 2026 15:14
@PatrykKuniczak

Copy link
Copy Markdown
Collaborator

@aklinker1 You need to rebase, merge isn't enough here.

@aklinker1

Copy link
Copy Markdown
Member

You need to rebase, merge isn't enough here.

Seems like it resolved conficts just fine 🧐

@aklinker1

aklinker1 commented Feb 22, 2026 •

Copy link
Copy Markdown
Member

Tests are just failing on windows, because we started using pathExists instead of exists... Weird linux tests were passing 🤔

@aklinker1
aklinker1 merged commit 01d1606 into wxt-dev:main Feb 22, 2026
15 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for helping make WXT better!

aklinker1 added a commit that referenced this pull request Feb 22, 2026
@PatrykKuniczak

Copy link
Copy Markdown
Collaborator

Tests are just failing on windows, because we started using pathExists instead of exists... Weird linux tests were passing 🤔

That's because of this conflict on rebase, there's only exists instead of pathExists

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Auto icons doesnt override default icons

4 participants