refactor: break down monolithic page component into reusable modules#54
Closed
Veenoway wants to merge 82 commits intoAbstract-Foundation:mainfrom
Closed
refactor: break down monolithic page component into reusable modules#54Veenoway wants to merge 82 commits intoAbstract-Foundation:mainfrom
Veenoway wants to merge 82 commits intoAbstract-Foundation:mainfrom
Conversation
* wip: smart-contract-accounts-viem * working deploy for local node and abs testnet * smart-contract-accounts-viem working interact script * viem-smart-contracts remove contract address * update smart-contract-accounts-viem readme --------- Co-authored-by: jarrodwatts <jarrod@cubelabs.xyz>
* wip * working deploy script with transaction * cleanup script * make work on local node too * Add sub-READMEs * Working mint from frontend * Add factory to readme --------- Co-authored-by: jarrodwatts <jarrod@thirdweb.com>
* contract-deployment example - hardhat * add ethers script for contract deployment cleints * add viem * Add readme * update readme --------- Co-authored-by: jarrodwatts <jarrod@thirdweb.com>
* Add agw-rainbowkit example * Update licenses sections * rename agw-rainbowkit to agw-rainbowkit-nextjs * Add agw-nextjs example * Add agw-typescript example * add new examples to readme * check agw-nextjs * setup agw-rainbowkit example with beta versions * fix agw-typescript and update to beta version * git commit -m agw-ts remove unnecessary log
* working deployment scripts * Add verify to abstract script * connect and bridge mint scripts * Cleanup scripts --------- Co-authored-by: jarrodwatts <jarrod@thirdweb.com>
* add gitignore * add connectkit example
…on#42) * Improve local storage session keys for development * useLoginWithAbstract * remove disconnect from wagmi
…ndation#48) Reordered AccountCreated event call to ensure the AccountCreated event emits the correct accountAddress.
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
@Veenoway is attempting to deploy a commit to the Abstract Foundation Team on Vercel. A member of the Team first needs to authorize it. |
f3dc773 to
9612f8a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refactoring
Breaks down the large
page.tsxcomponent into smaller, focused, and reusable components while preserving exact visual styling and functionality.Changes:
BackgroundEffectscomponent for visual effectsHeadercomponent for logo sectionConnectedWalletcomponent for wallet UIResourcesSectioncomponent for footer cardsLoadingSpinnercomponent for loading stateuseContracthook for contract logicStructure:
src/
├── components/
│ ├── icons/
│ │ └── Icons.tsx
│ ├── provider/
│ │ └── NextAbstractWalletProvider.tsx
│ ├── ui/
│ │ ├── BackgroundEffect.tsx
│ │ ├── Button.tsx
│ │ └── LoadingSpinner.tsx
│ ├── wallet/
│ │ ├── ConnectWallet.tsx
│ │ ├── WalletInfo.tsx
│ │ ├── WalletActions.tsx
│ │ └── TransactionResult.tsx
│ ├── Header.tsx
│ ├── ResourceCard.tsx
│ └── ResourcesSection.tsx
├── hooks/
│ └── useContract.ts
└── app/
└── page.tsx (simplified)
Benefits:
No visual changes - purely structural improvements.
PR-Codex overview
This PR focuses on updating dependencies, particularly the
nextversion across multiple packages, and introduces new components and features in theagw-connectkit-nextjsmodule.Detailed summary
nextversion in multiplepackage.jsonfiles.LoadingSpinner,BackgroundEffects,TransactionResult,WalletInfo,ResourceCard,Button, andConnectedWallet.NextAbstractWalletProviderimport path.Homecomponent structure for better organization.