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

chore: ui package import refactor #1502

Merged
merged 32 commits into from
Jun 26, 2024
Merged

chore: ui package import refactor #1502

merged 32 commits into from
Jun 26, 2024

Conversation

LufyCZ
Copy link
Collaborator

@LufyCZ LufyCZ commented Jun 15, 2024

PR-Codex overview

This PR updates various imports and reorganizes icon components. It also adds new imports from @sushiswap/ui and adjusts module resolutions.

Detailed summary

  • Updated imports and reorganized icon components
  • Added new imports from @sushiswap/ui
  • Adjusted module resolutions for better bundling efficiency

The following files were skipped due to too many changes: packages/ui/src/components/icons/GasIcon.tsx, apps/aptos/ui/common/currency/currency-input/currency-input-balance-panel.tsx, apps/academy/pages/products/sushixswap.tsx, apps/evm/src/ui/pool/DistributionDataTable.tsx, packages/ui/src/components/icons/CheckIcon.tsx, packages/ui/src/components/icons/FrameIcon.tsx, packages/ui/src/components/icons/GradientCircleIcon.tsx, packages/ui/src/components/icons/OnsenIcon.tsx, packages/ui/src/components/icons/RabbyIcon.tsx, packages/ui/src/components/icons/SquidIcon.tsx, packages/ui/src/components/icons/SushiIcon.tsx, packages/ui/src/components/icons/CarbonIcon.tsx, packages/ui/src/components/icons/WalletIcon.tsx, apps/academy/common/components/product/ProductTechnicalDoc.tsx, apps/blog/components/article/ArticleFooter.tsx, packages/ui/src/components/icons/HistoryIcon.tsx, packages/ui/src/components/icons/NotepadIcon.tsx, packages/ui/src/components/icons/RainbowIcon.tsx, packages/ui/src/components/icons/ShuffleIcon.tsx, apps/academy/common/components/PreviewBanner.tsx, packages/ui/src/components/icons/BentoboxIcon.tsx, packages/ui/src/components/icons/CalendarIcon.tsx, packages/ui/src/components/icons/MetamaskIcon.tsx, apps/blog/components/card/card.tsx, packages/ui/src/components/icons/DangerousIcon.tsx, apps/storybook/stories/list.stories.tsx, packages/ui/src/components/icons/EtherscanIcon.tsx, apps/academy/common/components/Card/Card.tsx, apps/evm/src/ui/analytics/tvl-chart.tsx, packages/ui/src/components/icons/FailedMarkIcon.tsx, apps/evm/src/app/pool/hero.tsx, packages/ui/src/components/icons/ClassicPoolIcon.tsx, packages/ui/src/components/icons/TrustWalletIcon.tsx, packages/ui/src/components/toast/ToastInfo.tsx, apps/blog/components/PreviewBanner.tsx, packages/ui/src/components/icons/ArrowFlatLinesUp.tsx, packages/ui/src/components/icons/SushiWithTextIcon.tsx, packages/ui/src/components/icons/WalletConnectIcon.tsx, apps/academy/common/components/AdditionalArticles.tsx, apps/aptos/ui/common/toast.tsx, packages/ui/src/components/icons/CoinbaseWalletIcon.tsx, apps/aptos/app/pool/hero.tsx, apps/evm/src/ui/analytics/volume-chart.tsx, apps/evm/src/ui/pool/PoolChartGraph.tsx, apps/academy/common/components/DifficultyCard.tsx, apps/blog/tsconfig.json, apps/evm/src/ui/swap/cross-chain/cross-chain-swap-token0-input.tsx, apps/evm/src/ui/swap/cross-chain/cross-chain-swap-token1-input.tsx, apps/academy/common/components/ViewAllButton.tsx, apps/evm/src/app/bonds/hero.tsx, packages/ui/src/components/settings/CarbonOffset.tsx, packages/ui/src/components/icons/ConcentratedCurveIcon.tsx, packages/ui/src/components/icons/WaterIcon.tsx, packages/ui/src/components/icons/CircleIcon.tsx, apps/evm/src/ui/stake/BoostVotingPowerModal.tsx, packages/ui/src/components/icons/network/naked/CoreNaked.tsx, packages/ui/src/components/icons/network/naked/BaseNaked.tsx, packages/ui/src/components/icons/network/naked/BobaNaked.tsx, packages/ui/src/components/icons/network/naked/BttcNaked.tsx, packages/ui/src/components/icons/network/naked/CeloNaked.tsx, packages/ui/src/components/icons/network/naked/FuseNaked.tsx, packages/ui/src/components/icons/network/naked/HaqqNaked.tsx, packages/ui/src/components/icons/network/naked/HecoNaked.tsx, packages/ui/src/components/icons/network/naked/KavaNaked.tsx, packages/ui/src/components/icons/network/naked/OkexNaked.tsx, packages/ui/src/components/icons/network/naked/PalmNaked.tsx, apps/evm/src/ui/pool/SelectNetworkWidget.tsx, packages/ui/src/components/icons/network/naked/BlastNaked.tsx, packages/ui/src/components/icons/network/naked/LineaNaked.tsx, packages/ui/src/components/icons/network/naked/MetisNaked.tsx, packages/ui/src/components/icons/network/naked/SkaleNaked.tsx, packages/ui/src/components/icons/network/naked/TelosNaked.tsx, packages/ui/src/components/icons/network/circle/CoreCircle.tsx, packages/ui/src/components/icons/network/circle/HaqqCircle.tsx, apps/academy/common/components/SearchInput.tsx, packages/ui/src/components/icons/network/circle/BaseCircle.tsx, packages/ui/src/components/icons/network/circle/BobaCircle.tsx, packages/ui/src/components/icons/network/circle/CeloCircle.tsx, packages/ui/src/components/icons/network/circle/FuseCircle.tsx, packages/ui/src/components/icons/network/circle/HecoCircle.tsx, packages/ui/src/components/icons/network/circle/KavaCircle.tsx, packages/ui/src/components/icons/network/circle/OkexCircle.tsx, packages/ui/src/components/icons/network/circle/PalmCircle.tsx, packages/ui/src/components/icons/network/naked/FantomNaked.tsx, packages/ui/src/components/icons/network/naked/GnosisNaked.tsx, packages/ui/src/components/icons/network/naked/ScrollNaked.tsx, packages/sushi/src/router/liquidity-providers/UniswapV2Base.ts, packages/ui/src/components/icons/network/circle/LineaCircle.tsx, packages/ui/src/components/icons/network/circle/MetisCircle.tsx, packages/ui/src/components/icons/network/circle/SkaleCircle.tsx, packages/ui/src/components/icons/network/circle/TelosCircle.tsx, packages/ui/src/components/icons/network/naked/BinanceNaked.tsx, packages/ui/src/components/icons/network/naked/BobaBNBNaked.tsx, packages/ui/src/components/icons/network/naked/HarmonyNaked.tsx, packages/ui/src/components/icons/network/naked/PolygonNaked.tsx, packages/ui/src/components/icons/CircleWithText.tsx, packages/ui/src/components/icons/network/circle/FantomCircle.tsx, packages/ui/src/components/icons/network/circle/GnosisCircle.tsx, packages/ui/src/components/icons/network/circle/ScrollCircle.tsx, packages/ui/src/components/icons/network/naked/ArbitrumNaked.tsx, packages/ui/src/components/icons/network/naked/BobaAvaxNaked.tsx, packages/ui/src/components/icons/network/naked/EthereumNaked.tsx, packages/ui/src/components/icons/network/naked/FilecoinNaked.tsx, packages/ui/src/components/icons/network/naked/MoonbeamNaked.tsx, packages/ui/src/components/icons/network/naked/OptimismNaked.tsx, packages/ui/src/components/icons/network/circle/BinanceCircle.tsx, packages/ui/src/components/icons/network/circle/BobaBNBCircle.tsx, packages/ui/src/components/icons/network/circle/HarmonyCircle.tsx, packages/ui/src/components/icons/network/circle/PolygonCircle.tsx, packages/ui/src/components/icons/network/naked/AvalancheNaked.tsx, packages/ui/src/components/icons/network/naked/MoonriverNaked.tsx, packages/ui/src/components/icons/network/naked/PolygonZKNaked.tsx, packages/ui/src/components/icons/network/naked/ZetaChainNaked.tsx, packages/ui/src/components/icons/network/circle/ArbitrumCircle.tsx, packages/ui/src/components/icons/network/circle/BobaAvaxCircle.tsx, packages/ui/src/components/icons/network/circle/EthereumCircle.tsx, packages/ui/src/components/icons/network/circle/FilecoinCircle.tsx, packages/ui/src/components/icons/network/circle/MoonbeamCircle.tsx, packages/ui/src/components/icons/network/circle/OptimismCircle.tsx, packages/ui/src/components/icons/network/circle/AvalancheCircle.tsx, packages/ui/src/components/icons/network/circle/MoonriverCircle.tsx, packages/ui/src/components/icons/network/circle/PolygonZKCircle.tsx, packages/ui/src/components/icons/network/circle/ZetaChainCircle.tsx, packages/ui/src/components/icons/network/naked/ThunderCoreNaked.tsx, apps/academy/pages/index.tsx, apps/academy/common/components/article/ArticleLinks.tsx, packages/ui/src/components/icons/network/naked/ArbitrumNovaNaked.tsx, apps/blog/pages/archive.tsx, packages/ui/src/components/icons/network/circle/ThunderCoreCircle.tsx, apps/storybook/stories/chip.stories.tsx, packages/ui/src/components/icons/network/circle/ArbitrumNovaCircle.tsx, apps/evm/src/ui/pool/RewardsV3NameCell.tsx, apps/blog/components/Hero.tsx, apps/academy/common/components/article/ArticleHeader.tsx, apps/evm/src/ui/swap/cross-chain-banner.tsx, apps/aptos/ui/common/checker/amounts.tsx, packages/ui/src/components/icons/network/circle/AptosCircle.tsx, apps/evm/src/ui/pool/SelectPoolTypeWidget.tsx, apps/evm/src/ui/analytics/furo-token-table.tsx, apps/evm/src/ui/stake/BarChartGraph.tsx, apps/evm/src/app/pool/incentivize/page.tsx, packages/ui/src/components/icons/CheckMarkIcon.tsx, apps/evm/src/app/internal/tokens/page.tsx, apps/evm/src/ui/pool/TableFiltersPoolType.tsx, apps/storybook/stories/iconbutton.stories.tsx, apps/evm/src/lib/wagmi/components/web3-input/Currency/BalancePanel.tsx, apps/evm/src/ui/bonds/bonds-positions-table/bonds-positions-table-columns.tsx, apps/evm/src/ui/bonds/bonds-market-page-header/bonds-market-page-header.tsx, apps/academy/pages/articles/[slug].tsx, apps/evm/src/ui/bonds/bonds-table/bonds-table-filters/table-filters-networks.tsx, packages/ui/src/components/icons/network/circle/BlastCircle.tsx, packages/ui/src/components/icons/network/naked/RootstockNaked.tsx, packages/ui/src/components/icons/network/circle/RootstockCircle.tsx, apps/evm/src/ui/pool/TableFiltersNetwork.tsx, packages/ui/src/components/icons/network/circle/BttcCircle.tsx, packages/sushi/src/format/percent.ts, apps/evm/src/ui/bonds/bonds-positions-table/bonds-positions-table-filters/table-positions-filters-networks.tsx, apps/academy/common/components/product/ProductHero.tsx, apps/evm/src/ui/swap/simple/simple-swap-bridge-banner.tsx, apps/evm/src/ui/pool/PoolNameCell.tsx, apps/evm/src/ui/bonds/bonds-table/bonds-table-filters/table-filters-auction-type.tsx, apps/blog/pages/index.tsx, apps/evm/src/ui/swap/cross-chain/cross-chain-swap-trade-review-route.tsx, apps/aptos/ui/common/user-profile/user-profile.tsx, apps/evm/src/lib/wagmi/components/token-security-view.tsx, apps/aptos/ui/pool/pool/add/pool-add-form/pool-add-form-select-tokens-widget.tsx, apps/evm/src/app/tokenlist-request/page.tsx, apps/evm/src/app/internal/tokens/components/TokenTable.tsx, apps/evm/src/ui/analytics/global-stats-charts.tsx, apps/academy/common/components/Hero.tsx, apps/tron/src/app/header.tsx, apps/evm/src/app/(landing)/components/Search.tsx, apps/evm/src/app/claims/components/RevokeItem.tsx, packages/ui/src/components/network-selector.tsx, apps/academy/pages/article-sitemap.xml/index.tsx, apps/evm/src/lib/wagmi/components/header-network-selector.tsx, apps/evm/src/ui/swap/cross-chain/cross-chain-swap-token-not-found-dialog.tsx, apps/evm/src/app/claims/components/ClaimItem.tsx, apps/evm/src/app/(landing)/components/NeedHelp.tsx, apps/aptos/components/AddSection/AddSectionWidget.tsx, packages/ui/src/components/dialog.tsx, apps/blog/pages/article-sitemap.xml/index.tsx, apps/evm/src/lib/wagmi/components/user-profile/Notification.tsx, apps/academy/pages/articles/index.tsx, packages/ui/src/components/icons/NetworkIcon.tsx, apps/academy/pages/about.tsx, apps/evm/src/ui/bonds/bonds-table/bonds-table-columns.tsx, packages/ui/package.json, packages/ui/src/components/global-footer.tsx, apps/evm/src/ui/swap/cross-chain/cross-chain-swap-confirmation-dialog.tsx, apps/evm/src/ui/pool/PositionCard.tsx, apps/blog/pages/_app.tsx, apps/academy/pages/_app.tsx, apps/evm/next.config.mjs, packages/ui/src/components/icons/network/naked/index.tsx, apps/storybook/stories/button.stories.tsx, apps/academy/common/productsData.tsx, packages/ui/src/components/icons/network/circle/index.tsx, config/nextjs/index.js, apps/evm/src/ui/pool/ConcentratedPositionsTable/Tables/Smart/columns/index.tsx, apps/evm/src/lib/wagmi/components/user-profile/ConnectView.tsx, apps/evm/src/lib/wagmi/components/connect-button.tsx, apps/blog/package.json, apps/evm/src/ui/pool/PoolNameCellV3.tsx, apps/academy/package.json, apps/evm/src/ui/pool/SmartPoolsTable.tsx, apps/evm/src/ui/pool/columns.tsx, packages/sushi/src/format/number.ts, packages/sushi/src/format/price.ts, pnpm-lock.yaml, apps/evm/analyze/nodejs.html

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Copy link

vercel bot commented Jun 15, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
academy ❌ Failed (Inspect) Jun 26, 2024 11:45am
blog ❌ Failed (Inspect) Jun 26, 2024 11:45am
evm ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 26, 2024 11:45am
token-list ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 26, 2024 11:45am
tron ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 26, 2024 11:45am
2 Ignored Deployments
Name Status Preview Comments Updated (UTC)
aptos ⬜️ Ignored (Inspect) Visit Preview Jun 26, 2024 11:45am
tokens ⬜️ Ignored (Inspect) Visit Preview Jun 26, 2024 11:45am

Copy link

changeset-bot bot commented Jun 15, 2024

⚠️ No Changeset found

Latest commit: f97af46

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

💥 An error occurred when fetching the changed packages and changesets in this PR
Some errors occurred when validating the changesets config:
The package or glob expression "@sushiswap/wagmi" is specified in the `ignore` option but it is not found in the project. You may have misspelled the package name or provided an invalid glob expression. Note that glob expressions must be defined according to https://www.npmjs.com/package/micromatch.
The package or glob expression "academy" is specified in the `ignore` option but it is not found in the project. You may have misspelled the package name or provided an invalid glob expression. Note that glob expressions must be defined according to https://www.npmjs.com/package/micromatch.
The package or glob expression "blog" is specified in the `ignore` option but it is not found in the project. You may have misspelled the package name or provided an invalid glob expression. Note that glob expressions must be defined according to https://www.npmjs.com/package/micromatch.
The package "aptos" depends on the ignored package "@sushiswap/react-query", but "aptos" is not being ignored. Please add "aptos" to the `ignore` option.
The package "tron" depends on the ignored package "@sushiswap/react-query", but "tron" is not being ignored. Please add "tron" to the `ignore` option.
The package "aptos" depends on the ignored package "@sushiswap/ui", but "aptos" is not being ignored. Please add "aptos" to the `ignore` option.
The package "tron" depends on the ignored package "@sushiswap/ui", but "tron" is not being ignored. Please add "tron" to the `ignore` option.

@LufyCZ LufyCZ force-pushed the ui-package-refactor branch from 1e35a03 to bee8d13 Compare June 15, 2024 17:07
Copy link

socket-security bot commented Jun 15, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/[email protected] None 0 10.2 kB jdalton

View full report↗︎

@LufyCZ LufyCZ force-pushed the ui-package-refactor branch from d4db7d2 to 6686be6 Compare June 15, 2024 17:21
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.

3 participants