Skip to content

Refresh dependencies and fix protocol icon theming#22

Merged
easeev merged 1 commit intomainfrom
codex/theme-safe-icons-and-deps-refresh
Apr 10, 2026
Merged

Refresh dependencies and fix protocol icon theming#22
easeev merged 1 commit intomainfrom
codex/theme-safe-icons-and-deps-refresh

Conversation

@easeev
Copy link
Copy Markdown
Contributor

@easeev easeev commented Apr 10, 2026

Summary

  • add Megaeth protocol icon coverage
  • normalize theme-sensitive protocol icons to use currentColor
  • consolidate open Dependabot dependency bumps into one refresh
  • apply a picomatch override so the remaining nested advisory path is removed

Dependabot Coverage

This PR folds in the currently open Dependabot updates for:

  • axios

  • vite

  • undici

  • picomatch

Verification

  • npm ls picomatch undici
  • npm test
  • npm run build

Summary by CodeRabbit

  • New Features

    • Added Megaeth protocol icon support to the application.
  • Chores

    • Upgraded core dependencies and development tooling to newer versions.

- add Megaeth protocol icon coverage
- normalize Sonic, Celo, and Hyperliquid icons to use theme-safe fills
- upgrade direct frontend/build dependencies to latest compatible releases
- apply a picomatch override to absorb the open Dependabot transitive bump
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 10, 2026

📝 Walkthrough

Walkthrough

Project dependencies bumped to newer semver ranges, including React, Ant Design, Vite toolchain, and development utilities. Added support for a new Megaeth protocol icon in the ProtocolIcon component with corresponding test coverage.

Changes

Cohort / File(s) Summary
Dependency Updates
package.json
Upgraded runtime dependencies (@ant-design/icons, antd, axios, react, react-dom, sass, web-vitals) and dev dependencies (@vitejs/plugin-react, jsdom, vite, vite-plugin-svgr, vitest) to newer versions. Added picomatch override to ^4.0.4.
Megaeth Protocol Support
src/components/ProtocolIcon/ProtocolIcon.jsx, src/components/ProtocolIcon/ProtocolIcon.test.jsx
Imported megaeth.svg asset and registered it in the iconTypes mapping. Extended test parameterization to include Megaeth protocol name alongside existing protocols.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

Poem

🐰 A new protocol hops into view,
Megaeth joins the crew so true,
With icons mapped and tests in place,
Dependencies race at a faster pace! ⚡

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Title check ⚠️ Warning The title mentions 'Refresh dependencies' which aligns with the package.json updates and dependency version bumps. However, it also mentions 'fix protocol icon theming,' yet the actual changes show adding Megaeth protocol icon support and normalizing theme-sensitive icons. The title doesn't capture the main additions (Megaeth icon, theme-safe fills for Sonic/Celo/Hyperliquid) or the core objective of normalizing icons to use currentColor. Consider revising the title to 'Add Megaeth protocol icon and normalize theme-safe icon fills' or 'Refresh dependencies and add Megaeth protocol icon with theme normalization' to better reflect the actual changes and primary objectives.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/theme-safe-icons-and-deps-refresh

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@easeev easeev marked this pull request as ready for review April 10, 2026 05:27
Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@package.json`:
- Around line 29-34: Add an "engines" field to package.json declaring the Node
constraint required by Vite 8.0.8 (Node ^20.19.0 || >=22.12.0) so CI/builds fail
fast on unsupported Node versions, and ensure the "homepage" value is
intentional for your deployment target (change from "https://chainstats.org/" to
a GitHub Pages path if you intend gh-pages publishing). Modify the package.json
top-level keys (e.g., add engines: { "node": "..." } and update homepage if
needed) and run a quick local CI/build check to confirm compatibility.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 5bcdd359-3a7a-406d-b6f0-150fc01c6724

📥 Commits

Reviewing files that changed from the base of the PR and between 68f52f2 and eb5f1cb.

⛔ Files ignored due to path filters (5)
  • package-lock.json is excluded by !**/package-lock.json
  • src/components/ProtocolIcon/celo.svg is excluded by !**/*.svg
  • src/components/ProtocolIcon/hyperliquid.svg is excluded by !**/*.svg
  • src/components/ProtocolIcon/megaeth.svg is excluded by !**/*.svg
  • src/components/ProtocolIcon/sonic.svg is excluded by !**/*.svg
📒 Files selected for processing (3)
  • package.json
  • src/components/ProtocolIcon/ProtocolIcon.jsx
  • src/components/ProtocolIcon/ProtocolIcon.test.jsx

@easeev easeev merged commit 516c900 into main Apr 10, 2026
5 checks passed
@easeev easeev deleted the codex/theme-safe-icons-and-deps-refresh branch April 10, 2026 05:34
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.

1 participant