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: sidebar #1683

Merged
merged 70 commits into from
Oct 16, 2024
Merged

feat: sidebar #1683

merged 70 commits into from
Oct 16, 2024

Conversation

0xMasayoshi
Copy link
Contributor

@0xMasayoshi 0xMasayoshi commented Sep 12, 2024

PR-Codex overview

The focus of this PR is to refactor and optimize code structure.

Detailed summary

  • Refactored file structure in the trade and aptos directories
  • Updated UI components and icons
  • Improved Tailwind CSS configurations
  • Fixed import paths and dependencies
  • Enhanced page layouts and provider functions

The following files were skipped due to too many changes: apps/web/src/app/(non-evm)/aptos/pool/add/layout.tsx, apps/web/src/ui/swap/simple/use-is-swap-maintenance.ts, apps/web/src/app/(evm)/[chainId]/pool/v2/add/layout.tsx, apps/web/src/app/(evm)/[chainId]/pool/v3/add/layout.tsx, apps/web/src/ui/swap/twap/use-is-limit-maintenance.ts, apps/web/src/app/(evm)/[chainId]/pool/incentivize/layout.tsx, apps/web/src/app/(non-evm)/aptos/(common)/lib/common/use-user-handle.ts, apps/web/src/app/(non-evm)/aptos/pool/ui/pool/add/pool-add-currency-input.tsx, apps/web/src/app/(non-evm)/aptos/pool/lib/use-pools.ts, apps/web/src/app/(non-evm)/aptos/(common)/lib/common/get-sorted-tokens-by-query.ts, packages/ui/src/components/command.tsx, apps/web/src/app/(non-evm)/aptos/explore/providers.tsx, apps/web/src/app/(non-evm)/aptos/(positions)/providers.tsx, apps/web/src/app/(non-evm)/aptos/pool/lib/farm/use-farms.ts, apps/web/src/app/(non-evm)/aptos/(common)/config/tokenlists/index.ts, apps/web/src/app/(non-evm)/aptos/(common)/lib/common/use-token-balances.ts, apps/web/src/app/(non-evm)/aptos/(common)/lib/common/use-total-supply.ts, apps/web/src/app/(non-evm)/aptos/swap/lib/swap-get-route/index.ts, apps/web/src/app/(non-evm)/aptos/pool/lib/use-pools-reserves.ts, apps/web/src/ui/swap/cross-chain/use-is-cross-chain-swap-maintenance.ts, apps/web/src/ui/pool/PoolPageV2.tsx, apps/web/src/app/(evm)/bonds/layout.tsx, apps/web/src/app/(non-evm)/aptos/(common)/lib/common/use-sorted-token-list.ts, apps/web/src/app/(non-evm)/aptos/pool/lib/use-pool.ts, apps/web/src/app/(non-evm)/aptos/pool/lib/use-user-position-pools.ts, apps/web/src/app/(non-evm)/aptos/pool/lib/use-pools-extended.ts, apps/web/src/app/(non-evm)/aptos/(common)/lib/common/get-currency-price.ts, apps/web/src/app/(non-evm)/aptos/(common)/lib/common/use-network.ts, apps/web/src/app/(evm)/[chainId]/layout.tsx, apps/web/src/app/(non-evm)/aptos/pool/lib/use-tokens-from-pool.ts, apps/web/src/app/(non-evm)/aptos/(common)/lib/common/use-ledger-version.ts, apps/web/src/app/(non-evm)/aptos/swap/providers.tsx, apps/web/src/app/(evm)/[chainId]/(trade)/layout.tsx, apps/web/src/app/(non-evm)/aptos/(common)/lib/common/use-custom-tokens.ts, apps/web/src/app/(non-evm)/aptos/(common)/lib/edge/use-is-swap-maintenance.ts, apps/web/src/lib/wagmi/components/wagmi-header-components.tsx, packages/sushi/src/config/features/sushiswap-v3.ts, apps/web/src/app/(non-evm)/aptos/swap/ui/simple/simple-swap-token1-input.tsx, apps/web/src/app/(non-evm)/aptos/(common)/config/coins.ts, apps/web/src/app/(non-evm)/aptos/swap/lib/use-swap.ts, apps/web/src/lib/wagmi/components/user-portfolio/index.tsx, apps/web/src/app/(non-evm)/aptos/pool/ui/pool/add/pool-add-form/pool-add-form-select-tokens-widget.tsx, apps/web/src/app/(non-evm)/aptos/(common)/config/chains.ts, apps/web/src/config.ts, apps/web/src/app/(non-evm)/aptos/pool/ui/pools/filters/pool-filters-provider.tsx, apps/web/src/app/(non-evm)/aptos/(positions)/pool/page.tsx, apps/web/src/app/(non-evm)/aptos/(common)/ui/checker/connect.tsx, apps/web/src/app/(non-evm)/aptos/layout.tsx, apps/web/src/app/(non-evm)/aptos/pool/lib/use-pools-by-tokens.ts, apps/web/src/app/(non-evm)/aptos/(common)/ui/checker/amounts.tsx, apps/web/src/app/(non-evm)/aptos/pool/add/page.tsx, apps/web/src/app/(non-evm)/aptos/(common)/lib/common/use-token-with-cache.ts, apps/web/src/app/(non-evm)/aptos/pool/ui/pool/add/pool-add-deposit-button.tsx, apps/web/src/app/(non-evm)/aptos/(common)/components/CardCurrencyAmountItem.tsx, apps/web/src/app/(evm)/[chainId]/pool/v3/[address]/(landing)/layout.tsx, apps/web/src/app/(non-evm)/aptos/pool/ui/pools/tables/pools/cells/pool-name-cell.tsx, apps/web/src/app/(non-evm)/aptos/(common)/components/ManageV2LiquidityCard.tsx, apps/web/src/app/(non-evm)/aptos/(common)/ui/user-profile/connect-view/not-found-wallet-list.tsx, apps/web/src/app/(evm)/[chainId]/pool/v2/[address]/(landing)/layout.tsx, apps/web/src/app/(evm)/layout.tsx, packages/sushi/src/chain/index.ts, apps/web/src/app/(non-evm)/aptos/(common)/lib/common/use-stable-price.ts, apps/web/src/app/(non-evm)/aptos/(common)/lib/common/use-stable-prices.ts, apps/web/src/app/(non-evm)/aptos/swap/ui/simple/simple-swap-provider/simple-swap-provider.tsx, apps/web/src/app/(evm)/[chainId]/pool/v3/[address]/(manage)/[position]/page.tsx, apps/web/src/app/(non-evm)/aptos/(common)/ui/token-selector/token-selector-list-item.tsx, apps/web/src/app/(non-evm)/aptos/pool/ui/pools/tables/positions/cells/position-name-cell.tsx, apps/web/src/app/(non-evm)/aptos/(common)/lib/common/use-base-tokens.ts, apps/web/src/app/(non-evm)/aptos/pool/ui/pool/add/pool-add-provider/pool-add-provider.tsx, packages/sushi/src/chain/constants.ts, apps/web/src/ui/pool/PoolChartV2.tsx, apps/web/src/app/(non-evm)/aptos/swap/layout.tsx, apps/web/src/app/(non-evm)/aptos/swap/ui/simple/simple-swap-token0-input.tsx, apps/web/src/app/(non-evm)/aptos/swap/ui/simple/simple-swap-trade-button.tsx, apps/web/src/lib/wagmi/components/header-network-selector.tsx, apps/web/src/app/(non-evm)/aptos/(common)/components/RemoveSection/RemoveSectionUnstake.tsx, apps/web/src/app/(non-evm)/aptos/(common)/ui/token-selector/token-selector-import-row.tsx, apps/web/src/lib/wagmi/components/user-portfolio/PortfolioDefaultView.tsx, apps/web/src/app/(non-evm)/aptos/pool/layout.tsx, apps/web/src/app/(non-evm)/aptos/(common)/components/AddSection/AddSectionStakeWidget.tsx, apps/web/src/app/(evm)/[chainId]/pool/v3/[address]/smart/(overview)/page.tsx, apps/web/src/ui/pool/StatisticsChartV3.tsx, apps/web/src/ui/pool/Steer/SteerCarousel.tsx, apps/web/src/app/(non-evm)/aptos/swap/ui/simple/simple-swap-trade-stats.tsx, apps/web/src/ui/pool/columns.tsx, apps/web/src/app/(evm)/(trade)/dca/loading.tsx, apps/web/src/app/(evm)/(trade)/swap/loading.tsx, apps/web/src/app/(evm)/(trade)/limit/loading.tsx, apps/web/src/app/(non-evm)/aptos/swap/ui/swap-route.tsx, apps/web/src/app/(non-evm)/aptos/(common)/components/PoolSection/PoolComposition.tsx, apps/web/src/app/(non-evm)/aptos/pool/lib/use-top-pools.ts, apps/web/src/app/(non-evm)/aptos/pool/[address]/layout.tsx, apps/web/src/app/(non-evm)/aptos/(common)/components/RemoveSection/RemoveSectionWidget.tsx, apps/web/src/app/(evm)/(trade)/cross-chain-swap/loading.tsx, apps/web/src/app/(evm)/[chainId]/pool/layout.tsx, apps/web/src/app/(non-evm)/aptos/swap/page.tsx, apps/web/src/app/(non-evm)/aptos/swap/loading.tsx, packages/ui/src/icons/NetworkIcon.tsx, apps/web/src/app/(evm)/[chainId]/pool/v3/[address]/(manage)/create/page.tsx, apps/web/src/app/(non-evm)/aptos/(common)/components/AddSection/AddSectionStake.tsx, apps/web/src/app/(non-evm)/aptos/(common)/ui/user-profile/default-view.tsx, packages/ui/src/icons/network/circle/index.tsx, apps/web/src/app/(non-evm)/aptos/(common)/ui/currency/currency-input/currency-input.tsx, apps/web/src/ui/pool/MigrateTabContent.tsx, apps/web/src/app/(non-evm)/aptos/(common)/components/Pool/AddSectionReviewModel.tsx, apps/web/src/app/(non-evm)/aptos/pool/ui/pools/tables/positions/cells/position-tvl-cell.tsx, apps/web/src/app/(evm)/stake/layout.tsx, apps/web/src/app/(non-evm)/aptos/(common)/components/PoolSection/PoolPosition/PoolPosition.tsx, apps/web/src/app/(evm)/[chainId]/pool/v3/[address]/(manage)/positions/page.tsx, apps/web/src/app/(non-evm)/aptos/(common)/ui/token-selector/token-selector.tsx, apps/web/src/app/(non-evm)/aptos/(common)/components/PoolSection/PoolHeader.tsx, apps/web/src/ui/pool/RewardsSection.tsx, packages/ui/src/icons/network/naked/index.tsx, apps/web/src/app/(non-evm)/aptos/(common)/ui/user-profile/connect-view/connect-view.tsx, apps/web/src/app/(non-evm)/aptos/swap/ui/simple/simple-swap-trade-review-dialog.tsx, apps/web/src/app/(non-evm)/aptos/(common)/ui/user-profile/user-profile.tsx, apps/web/src/app/(non-evm)/aptos/explore/layout.tsx, apps/web/src/lib/wagmi/components/user-portfolio/PortfolioSettingsView.tsx, apps/web/src/app/(non-evm)/aptos/(common)/components/RemoveSection/RemoveSectionLegacy.tsx, apps/web/src/app/(non-evm)/aptos/(common)/components/PoolSection/PoolMyRewards.tsx, apps/web/src/ui/pool/PoolHeader.tsx, apps/web/src/app/(non-evm)/aptos/_common/header-elements.tsx, apps/web/src/ui/swap/swap-mode-buttons.tsx, apps/web/src/app/(evm)/[chainId]/pool/v3/[address]/smart/[vault]/page.tsx, apps/web/src/app/(evm)/[chainId]/pool/v3/[address]/smart/layout.tsx, apps/web/src/app/(evm)/[chainId]/pool/v3/[address]/(manage)/layout.tsx, apps/web/src/ui/explore/tvl-chart.tsx, packages/ui/src/icons/network/naked/AptosNaked.tsx, apps/web/src/ui/explore/volume-chart.tsx, packages/ui/src/icons/network/circle/AptosCircle.tsx, apps/web/src/app/(evm)/[chainId]/pool/v2/[address]/(manage)/layout.tsx, apps/web/src/ui/pool/ConcentratedPositionsTable/ConcentratedPositionsTable.tsx, apps/web/src/app/(evm)/[chainId]/pool/v2/[address]/migrate/layout.tsx, apps/web/src/app/(non-evm)/aptos/pool/[address]/page.tsx, apps/web/src/app/(evm)/[chainId]/header.tsx, apps/web/src/app/(non-evm)/aptos/(positions)/layout.tsx, apps/web/src/app/(evm)/[chainId]/explore/layout.tsx, apps/web/src/middleware.ts, apps/web/src/app/(non-evm)/aptos/header.tsx, apps/web/src/app/(evm)/[chainId]/(positions)/layout.tsx, packages/ui/src/components/network-selector.tsx, apps/web/src/ui/pool/PoolPageV3.tsx, apps/web/src/ui/sidebar/index.tsx, apps/web/src/ui/swap/simple/derivedstate-simple-swap-provider.tsx, apps/web/src/ui/swap/cross-chain/derivedstate-cross-chain-swap-provider.tsx, packages/ui/src/components/navigation.tsx

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

Copy link

vercel bot commented Sep 12, 2024

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

Name Status Preview Comments Updated (UTC)
token-list ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 16, 2024 10:06am
web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 16, 2024 10:06am
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
tokens ⬜️ Ignored (Inspect) Visit Preview Oct 16, 2024 10:06am

Copy link

changeset-bot bot commented Sep 12, 2024

⚠️ No Changeset found

Latest commit: 6c75e55

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.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

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

# Conflicts:
#	apps/web/src/app/(networks)/(evm)/[chainId]/pool/v3/[address]/smart/[vault]/page.tsx
Copy link
Collaborator

@LufyCZ LufyCZ left a comment

Choose a reason for hiding this comment

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

The PR is way too big to be reviewed well. Ideally, would save things like renaming aptos/(common) to aptos/_common for a separate PR.

@matthewlilley matthewlilley merged commit 1cda14a into master Oct 16, 2024
10 checks passed
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