Fixes#5537
<!-- start pr-codex -->
---
## PR-Codex overview
This PR focuses on improving wallet connection handling in the `thirdweb` project, specifically when switching signer accounts and simplifying connection logic for smart wallets.
### Detailed summary
- Updated `biome.json` to add `"noUselessElse": "off"`.
- Modified wallet connection logic in `packages/thirdweb/src/wallets/manager/index.ts` for better handling of active wallets.
- Added tests for connection management in `packages/thirdweb/src/wallets/manager/connection-manager.test.ts`.
- Removed environment variable logging across multiple API routes.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
## Changes Summary
### Huge changes
* Delete all `/dashboard/**` pages and make the `/team` the default
* Rename all the links `/dashboard/**` to the new equivalent + Setup redirects
### New pages Added in team and account layouts
* `/account/contracts`
* `/team/<team-slug>/~/contracts`
* `/account/devices`
* new team overview page
* `/team/<team-slug>/~/usage/storage`
### Pages Moved
* Engine pages moved from project to team
* Ecosystem pages moved from project to team
* Team's projects page moved to /projects ( `/team/<team-slug>/~/projects` )
### Links to these pages removed for now (page not deleted) in new dashboard because they are not yet ready
* `/account/wallets`, `/account/settings`
### Minor changes
* Add the `AutoConnect` component directly where we render `ThirdwebProvider` so it is always triggered and not only when certain components are rendered, and remove AutoConnect at component level
* Move `/chain/validate` to app router inside (dashboard) layout
* Remove unnecessary breadcrumb on /explore base page
* Various UI adjustments / improvements
* Add billing alerts on top of all team, project, account pages
### Fixes
* Fix theme switcher not working sometimes in app router
* Engine pages crashing in team dashboard
* Revert color changes done in a recent a PR, fix colors in project header, app footer done.
* Fix Team avatar not resolving IPFS
* Fix various react warnings
* Fix missing Overview tab on the ecosystem page
### Improvements
* Reduced redirects on in-app-wallets and connect analytics page by making the landing page the default. For example: render analytics on `/connect/in-app-wallets` instead of landing on `/connect/in-app-wallets` and then redirecting to `/connect/in-app-wallets/analytics` and then rendering the page )
## Problem solved
Short description of the bug fixed or feature added
<!-- start pr-codex -->
---
## PR-Codex overview
This PR focuses on improving the user interface by adding space between certain text elements and enhancing readability across various components in the dashboard application.
### Detailed summary
- Added space after text in various components to improve readability.
- Updated text elements in `templates.tsx`, `index.tsx`, `TransactionModeScreen.tsx`, and others.
- Ensured consistent formatting in `HeroSection.tsx`, `PricingCard.tsx`, and various settings pages.
> The following files were skipped due to too many changes: `apps/dashboard/src/components/embedded-wallets/Configure/index.tsx`, `apps/dashboard/src/contract-ui/tabs/claim-conditions/components/snapshot-upload.tsx`, `apps/dashboard/src/contract-ui/tabs/overview/components/ContractChecklist.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatSteps.tsx`, `apps/dashboard/src/core-ui/batch-upload/upload-step.tsx`, `packages/thirdweb/package.json`, `apps/dashboard/src/pages/template/[id].tsx`
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
## Problem solved
Short description of the bug fixed or feature added
<!-- start pr-codex -->
---
## PR-Codex overview
The focus of this PR is to remove unnecessary error handling blocks in various catch statements.
### Detailed summary
- Removed error variable from catch blocks in multiple files.
- Simplified catch blocks to just `catch {}` where error handling was not required.
> The following files were skipped due to too many changes: `apps/dashboard/src/utils/fetchChain.ts`, `packages/thirdweb/src/react/web/ui/ConnectWallet/screens/Buy/main/useBuyTxStates.ts`, `packages/thirdweb/src/react/core/hooks/transaction/useSendTransaction.ts`, `packages/thirdweb/src/auth/verify-hash.ts`, `packages/thirdweb/src/contract/verification/constructor-params.ts`, `apps/wallet-ui/src/components/NftModal.tsx`, `apps/playground-web/src/components/in-app-wallet/connect-button.tsx`, `apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/(chainPage)/components/server/ChainOverviewSection.tsx`, `packages/thirdweb/src/extensions/erc721/lazyMinting/write/createDelayedRevealBatch.ts`, `packages/thirdweb/src/react/web/ui/ConnectWallet/screens/WalletConnectReceiverScreen.tsx`, `apps/dashboard/src/contract-ui/components/solidity-inputs/helpers.ts`, `packages/service-utils/src/core/api.ts`, `apps/playground-web/src/components/in-app-wallet/sponsored-tx.tsx`, `apps/playground-web/src/components/account-abstraction/sponsored-tx.tsx`, `apps/playground-web/src/app/connect/auth/page.tsx`, `apps/dashboard/src/components/contract-components/hooks.ts`, `packages/thirdweb/src/wallets/in-app/native/helpers/auth/middleware.ts`, `apps/dashboard/src/lib/sdk.ts`, `apps/playground-web/src/app/page.tsx`, `apps/dashboard/src/contexts/configured-chains.tsx`, `legacy_packages/unity-js-bridge/src/thirdweb-bridge.ts`, `packages/thirdweb/src/cli/commands/generate/generate.ts`
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
## Problem solved
Short description of the bug fixed or feature added
<!-- start pr-codex -->
---
## PR-Codex overview
The focus of this PR is to address linting issues related to the use of hooks at the top level in various components.
### Detailed summary
- Added `correctness` rule in `biome.json` for `useHookAtTopLevel`
- Added error handling and comments for `useQuery` in `useReadContract` functions
- Refactored `RNImage.tsx` to use `useMemo` for image handling
- Improved error handling in `ViewNFTs.tsx` for `fetchNFTs` function
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
## Problem solved
Short description of the bug fixed or feature added
## Changes made
- [ ] Public API changes: list the public API changes made if any
- [ ] Internal API changes: explain the internal logic changes
## How to test
- [ ] Automated tests: link to unit test file
- [ ] Manual tests: step by step instructions on how to test
## Contributor NFT
Paste in your wallet address below and we will airdrop you a special NFT when your pull request is merged.
```Address: ```
<!-- start pr-codex -->
---
## PR-Codex overview
This PR updates formatting scripts to use `biome` instead of `prettier`.
### Detailed summary
- Updated formatting scripts in multiple package.json files
- Replaced `prettier` with `biome` for code formatting
- Minor code formatting changes in various files
> The following files were skipped due to too many changes: `legacy_packages/sdk/src/evm/common/any-evm-utils/deployCreate2Factory.ts`, `apps/dashboard/src/contract-ui/tabs/overview/components/LatestEvents.tsx`, `apps/dashboard/src/pages/[chain_id]/[...paths].tsx`, `legacy_packages/sdk/src/evm/core/classes/contract-roles.ts`, `legacy_packages/sdk/src/core/schema/properties.ts`, `legacy_packages/wallets/src/evm/connectors/blocto/index.ts`, `legacy_packages/sdk/src/evm/common/any-evm-utils/getCreate2FactoryAddress.ts`, `legacy_packages/sdk/src/evm/core/classes/erc-20.ts`, `legacy_packages/react/src/payments/additional.d.ts`, `legacy_packages/sdk/src/evm/core/classes/internal/marketplace/marketplace-auction.ts`, `legacy_packages/react-core/src/evm/hooks/async/roles.ts`, `legacy_packages/react/src/wallet/ConnectWallet/screens/Buy/swap/pendingSwapTx.ts`, `legacy_packages/sdk/src/evm/core/classes/erc-721.ts`, `legacy_packages/sdk/src/evm/common/any-evm-utils/getCreate2FactoryDeploymentInfo.ts`, `legacy_packages/sdk/src/evm/common/claim-conditions/processClaimConditionInputs.ts`, `legacy_packages/sdk/src/evm/core/classes/erc-1155.ts`, `legacy_packages/sdk/src/evm/integrations/thirdweb-checkout.ts`, `legacy_packages/sdk/src/evm/core/classes/contract-royalty.ts`, `legacy_packages/wallets/src/evm/wallets/abstract.ts`, `legacy_packages/auth/src/next/router-pages/types/index.ts`, `apps/dashboard/src/contract-ui/tabs/events/components/events-feed.tsx`, `legacy_packages/wallets/src/evm/connectors/smart-wallet/lib/erc4337-provider.ts`, `legacy_packages/merkletree/src/merkletree/MerkleTree.ts`, `legacy_packages/sdk/src/evm/core/classes/internal/erc1155/erc-1155-standard.ts`, `legacy_packages/sdk/src/evm/core/classes/extension-manager.ts`, `legacy_packages/cli/src/core/types/sync-disk-cache.d.ts`, `legacy_packages/auth/src/next/router-app/routes/switch-account.ts`, `legacy_packages/sdk/src/evm/contracts/prebuilt-implementations/pack.ts`, `legacy_packages/auth/src/next/index.ts`, `legacy_packages/react/src/wallet/ConnectWallet/screens/Buy/PaymentSelection.tsx`, `legacy_packages/react/src/components/modalElements.tsx`, `legacy_packages/wallets/src/evm/connectors/gcp-kms/signer.ts`, `legacy_packages/auth/src/next/router-app/routes/login.ts`, `legacy_packages/auth/src/next/router-app/types/index.ts`, `legacy_packages/sdk/src/evm/core/classes/internal/contract-wrapper.ts`, `legacy_packages/sdk/src/evm/core/classes/marketplacev3-english-auction.ts`, `legacy_packages/wallets/src/evm/index.ts`, `legacy_packages/react/src/wallet/ConnectWallet/screens/SwapTransactionsScreen.tsx`, `legacy_packages/cli/src/generate/command.ts`, `legacy_packages/sdk/src/evm/core/classes/marketplacev3-direct-listings.ts`, `legacy_packages/wallets/src/evm/wallets/aws-kms.ts`, `legacy_packages/wallets/src/evm/connectors/wallet-connect/qrModalOptions.d.ts`, `apps/dashboard/src/pages/api/og/chain/[chainId].tsx`, `legacy_packages/react/src/wallet/wallets/embeddedWallet/ExportPrivateKey.tsx`, `apps/dashboard/src/pages/api/og/contract.tsx`, `legacy_packages/sdk/src/evm/common/modular/compatibleExtensions.ts`, `legacy_packages/crypto/src/utils/uint8array-extras.d.ts`, `apps/dashboard/src/pages/api/og/profile.tsx`, `apps/dashboard/src/pages/api/og/publishedContract.tsx`, `legacy_packages/react/src/wallet/wallets/magicEden/magicEdenWallet.tsx`, `apps/dashboard/src/graphql/generated.ts`
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
The PR primarily focuses on updating the versions of several npm dependencies, notably React, React-DOM, and Zod, ensuring compatibility with their latest major versions. Additionally, various code enhancements were made for better TypeScript type usage, specifically replacing manual type declarations with more precise React types. Unnecessary imports and redundant code blocks were removed to streamline the codebase.
### TL;DR
Updated package versions for React, React-DOM, and Zod, improved TypeScript type safety, and cleaned up the codebase.
### What changed?
- Updated React and React-DOM versions from specific sub-versions to any version within major version 18.
- Changed Zod versioning from specific sub-versions to any version within major version 3.
- Replaced manual React type declarations with standard React types for components and props.
- Removed unnecessary imports and redundant type definitions.
- Updated the `pnpm-lock.yaml` file accordingly.
### How to test?
1. Run `pnpm install` to update the dependencies to their latest versions.
2. Run the test suite to ensure all unit tests pass with the new versions.
3. Manually test the application to verify that no runtime issues occur due to these dependency upgrades.
4. Pay special attention to areas that heavily rely on React types and Zod schemas.
### Why make this change?
To ensure the codebase remains up-to-date with the latest versions of crucial libraries and to improve overall type safety and code quality.
---
<!-- start pr-codex -->
---
## PR-Codex overview
This PR updates package versions, switches linter settings, and refactors type imports in various files.
### Detailed summary
- Updated linter settings to disable `enabled` flag in `biome.json`
- Updated package versions in multiple `package.json` files
- Refactored type imports in various files to use `^18` version for `@types/react`
> The following files were skipped due to too many changes: `pnpm-lock.yaml`
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->