<!-- start pr-codex -->
## PR-Codex overview
This PR updates `zksync-ethers` to version `5.9.0`, adds new assertions in `hooks.ts`, and introduces a fake provider for `zkSigner` initialization.
### Detailed summary
- Updated `zksync-ethers` to `5.9.0`
- Added assertions for `signer` and `walletAddress` in `hooks.ts`
- Introduced a fake provider for `zkSigner` initialization
> ✨ 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
The focus of this PR is to enhance the dashboard page by adding new product sections with updated styling and icons.
### Detailed summary
- Added `fontWeight` and `letterSpacing` styling to dashboard section titles
- Updated product sections with new names, labels, descriptions, and icons
- Included a new "Pay" product section for easy fiat onramps integration
- Improved the "Connect UI" section to "Sign in" with updated description
> ✨ 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
The focus of this PR is to update error handling messages and add loading overlays in the PayAnalytics components.
### Detailed summary
- Renamed `NoDataAvailable` function to `FailedToLoad` in `common.tsx`.
- Added `NoDataOverlay` function in `common.tsx`.
- Updated error handling and loading messages in `PayCustomersTable.tsx`.
- Updated error handling and loading messages in `PaymentHistory.tsx`.
- Updated error handling in `PaymentsSuccessRate.tsx`.
> The following files were skipped due to too many changes: `apps/dashboard/src/components/pay/PayAnalytics/components/PaymentsSuccessRate.tsx`, `apps/dashboard/src/components/pay/PayAnalytics/components/TotalVolumePieChart.tsx`, `apps/dashboard/src/components/pay/PayAnalytics/components/TotalPayVolume.tsx`, `apps/dashboard/src/components/pay/PayAnalytics/components/PayNewCustomers.tsx`, `apps/dashboard/src/components/pay/PayAnalytics/components/Payouts.tsx`
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
### TL;DR
This PR refactors the SponsorshipPolicies component to include an 'enabled' boolean field within the serverVerifier object, and updates the related logic to enable conditional rendering based on this field.
### What changed?
- Added 'enabled' field in the serverVerifier validation schema
- Updated initial state and form submission logic to handle the 'enabled' field
- Modified conditional rendering logic in the GatedSwitch component to use the 'enabled' field
### How to test?
1. Go to the SponsorshipPolicies component
2. Toggle the GatedSwitch to enable/disable the serverVerifier settings
3. Ensure the form behaves as expected based on the enabled state
### Why make this change?
This refactor aims to simplify the management and conditional rendering of the serverVerifier settings by introducing an 'enabled' field. This makes the logic more intuitive and easier to maintain.
---
### TL;DR
Refactored the `ApplyForOpCreditsModal` component to simplify its usage and improve code maintainability. Updated related components to match this change.
### What changed?
- Removed `Modal` and related sub-components from `ApplyForOpCreditsForm.tsx` and adjusted the structure to use `Flex`.
- Simplified `ApplyForOpCreditsModal` by removing unnecessary props and state management, and updated its contents to directly return the form and additional modals.
- Updated references and affected components to use the new simplified `ApplyForOpCreditsModal`.
- Refactored `CreditsItem` component to use `useModalContext` for handling modals.
- Updated navigation link in `OnboardingSteps` to point to the new location of the form.
- Modified `SettingsGasCreditsPage` to directly include the updated `ApplyForOpCreditsModal` and added a link to the accelerator program's blog post.
### How to test?
1. Navigate to the gas credits application section in the dashboard settings.
2. Verify that the form for applying to the Optimism Superchain App Accelerator is displayed correctly and functions as expected.
3. Test the new navigation flow to ensure all links and modals work correctly after the refactor.
### Why make this change?
This refactor aims to simplify the modal implementation for applying for gas credits, reduce code complexity, and improve maintainability by removing unnecessary state management and props from the `ApplyForOpCreditsModal` component.
---
<!-- start pr-codex -->
---
## PR-Codex overview
The focus of this PR is to update the UI content related to gas credits and sponsorship applications in the dashboard settings.
### Detailed summary
- Updated UI content for applying to the Optimism Superchain App Accelerator.
- Refactored ApplyForOpCreditsForm UI structure.
- Enhanced ApplyForOpCreditsModal functionality.
- Modified CreditsItem UI for applying to gas credits.
- Removed ApplyForOpCreditsModal from OnboardingSteps component.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
<!-- start pr-codex -->
## PR-Codex overview
This PR focuses on removing unused code related to payments, contracts, and webhooks in the dashboard app.
### Detailed summary
- Removed multiple GraphQL files, components, hooks, and pages related to payments, contracts, and webhooks
- Updated page IDs and routes
- Updated redirects for payments settings and contracts
- Updated usage interfaces and route configurations
- Updated dependencies and package.json
- Updated cache keys for payments and contracts
- Updated solutions pages and products, removed NFT-checkout references
> The following files were skipped due to too many changes: `apps/dashboard/src/pages/solutions/gaming.tsx`, `apps/dashboard/src/components/app-layouts/app.tsx`, `apps/dashboard/src/pages/dashboard/connect/pay.tsx`, `pnpm-lock.yaml`
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
<!-- start pr-codex -->
## PR-Codex overview
The focus of this PR is to add a file type validation feature to the IPFS upload dropzone component.
### Detailed summary
- Added `useToast` for error notifications.
- Implemented file type validation to restrict uploading of certain file types.
- Display error toast for restricted file types.
- Updated file handling logic in the dropzone component.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
## Problem solved
Community Programs updates
## Changes made
- [ ] Updated messaging for startup program
- [ ] Added myCreativeOwl to Ambassadors
- [ ] Added Alfredo to Ambassadors
- [ ] Removed Kien from Ambassadors
- [ ] Removed Yash from Ambassadors
## How to test
- [ ] Startup program messaging should read "Our startup program is designed to help you build, scale, and generate revenue."
- [ ] Manual tests:
1) Scroll down to the footer
2) Click on Startup Program
3) See messaging on hero section
- [ ] Ambassador program updates
1) Scroll down to the footer
2) Click on Ambassadors
3) Scroll down to "Meet the Ambassadors"
4) Verify Kien and yash have been removed.
5) Verify Alfredo and myCreativeOwls have been added.
## Contributor NFT
Paste in your wallet address below and we will airdrop you a special NFT when your pull request is merged.
```0xc457BD51c599695333b0AE5320e9822DBc86E0e0 ```
<!-- start pr-codex -->
---
## PR-Codex overview
This PR updates the startup program description and ambassador profiles in the community pages.
### Detailed summary
- Updated startup program description for clarity and coherence.
- Changed ambassador names, Twitter handles, and profile images for consistency.
> ✨ 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 removes the `onClick` event listener from a `FileInput` component in the dashboard app.
### Detailed summary
- Removed `onClick` event listener from `FileInput.tsx` component in the dashboard app.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
<!-- start pr-codex -->
## PR-Codex overview
The focus of this PR is to update TypeScript versions across multiple packages to `5.5.2` and adjust some configurations accordingly.
### Detailed summary
- Updated `typescript` to version `5.5.2` in multiple `package.json` files
- Adjusted `typescript.tsdk` setting in `vscode/settings.json`
- Modified function in `resolve-abi.ts` for explicit typing
> The following files were skipped due to too many changes: `packages/thirdweb/package.json`, `pnpm-lock.yaml`
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
This pull request focuses on refactoring the engine navigation and sidebar integration in the dashboard app.
### What changed?
- Refactored the `EngineNavigation` component to replace the tab-based navigation with a sidebar-based navigation using `SidebarNav` from `core-ui`.
- Removed the old `EngineSidebar` component as it is no longer needed.
- Adjusted the `BasisPointsInput` component to fix ESLint issues.
- Updated various files to improve consistency and address minor code quality issues.
### How to test?
1. Navigate to the engine section of the dashboard.
2. Verify that the new sidebar navigation works as expected.
3. Test the `BasisPointsInput` component to ensure it is functioning correctly.
4. Run the codebase through a linting tool to ensure no new linting issues have been introduced.
### Why make this change?
This refactor aims to enhance the user experience by providing a more intuitive navigation system and to improve the maintainability of the code.
---
<!-- start pr-codex -->
---
## PR-Codex overview
This PR enhances the sidebar navigation in the dashboard by adding `onClick` functionality to sidebar links and updating the engine navigation component.
### Detailed summary
- Added `onClick` functionality to sidebar links in the dashboard
- Updated the engine navigation component with new functionalities and optimizations
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
### TL;DR
- Refactored and cleaned up the open graph image generation functions across multiple API routes.
- Fixed import paths and removed unused functions and dependencies.
- Addressed various TS and ESLint warnings/errors.
- Simplified BasisPointsInput component logic.
### What changed?
- Renamed `apps/dashboard/src/pages/api/og/chain/[chainId].tsx` to `apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/opengraph-image.tsx`.
- Removed unused `getAbsoluteUrl` import from `layout.tsx` file.
- Updated OG image generation approach, including the removal of outdated utility functions.
- Streamlined import and usage of environment variables.
- Made changes to `BasisPointsInput` component to avoid unnecessary re-renders and to simplify effect dependencies.
- Fixed IPFS gateway URLs formatting.
- Fixed minor formatting issues.
### How to test?
1. Open the dashboard and navigate to different chain-specific pages. Verify that OG images for each chain load without issues.
2. Check the `BasisPointsInput` component functionality in relevant parts of the application.
3. Run the tests and linters to ensure no broken functionality or warnings/errors.
### Why make this change?
- To maintain clean and readable code by removing unused imports, functions, and redundant dependencies.
- Improve performance and maintainability by simplifying component logic and variable usage.
- Ensure consistent and correctly formatted OG images across the application.
- Fix TS and ESLint issues detected during development.
---
<!-- start pr-codex -->
---
## PR-Codex overview
The focus of this PR is to update IPFS gateway URLs and optimize image generation for OpenGraph images.
### Detailed summary
- Updated IPFS gateway URLs in multiple files
- Optimized image generation for OpenGraph images
- Removed unused imports and code
- Improved font loading for images
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
### TL;DR
The FileInput component has been updated to prevent event propagation when clicked, ensuring the click event does not trigger unintended parent component behavior, and to ensure the dropzone is always present -- fixing a bug with older versions of chrome and other chromium browsers.
### What changed?
- Added `onClick={(e) => e.stopPropagation()}` to the root stack holding the file input
- Moved the input element to the root stack and removed duplicated props `getRootProps` and `getInputProps`
---
<!-- start pr-codex -->
---
## PR-Codex overview
The focus of this PR is to refactor the `FileInput` component in the dashboard app for improved structure and functionality.
### Detailed summary
- Updated `FileInput` component structure for better readability
- Added `Stack` component for layout
- Enhanced event handling for better user experience
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
### TL;DR
This pull request removes several unused packages and files to improve codebase cleanliness and reduce clutter.
### What changed?
- Removed the `airtable` package from `package.json` and `pnpm-lock.yaml`.
- Deleted `airtable.ts`, `check-verification-status.ts`, `etherscan-fetch.ts`, `verify.ts` from the `api` folder.
- Applied minor formatting changes across various source files for better consistency.
### How to test?
1. Pull the branch.
2. Run `pnpm install` to ensure no missing dependencies.
3. Run the application with `pnpm dev` to confirm it starts correctly.
4. Verify that the deleted endpoints are no longer accessible.
### Why make this change?
The removed packages and files were no longer in use, contributing to unnecessary bloat in the codebase. This change improves maintainability and reduces potential confusion for future developers.
---
<!-- start pr-codex -->
---
## PR-Codex overview
This PR adds the `isProd` constant to dynamically switch between IPFS gateways based on the environment.
### Detailed summary
- Added `isProd` constant for dynamic IPFS gateway selection
- Updated IPFS gateway URL based on `isProd` constant in multiple files
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
### TL;DR
This pull request removes several obsolete API routes and the associated Airtable package from the dashboard app.
### What changed?
- Removed Airtable package from `package.json` and `pnpm-lock.yaml`
- Deleted several unused API routes (`airtable.ts`, `check-verification-status.ts`, `etherscan-fetch.ts`, `verify.ts`)
- Minor codebase cleanup for consistent styling and formatting
### How to test?
Ensure the dashboard app builds and runs without any issues. Verify that removed API routes are no longer accessible.
### Why make this change?
These API routes and the Airtable package are no longer needed for the functionality of the dashboard app, and their removal simplifies the codebase.
---
<!-- start pr-codex -->
---
## PR-Codex overview
The focus of this PR is to update dependencies, fix function parameters, and improve code consistency.
### Detailed summary
- Updated dependencies in `package.json`
- Fixed function parameter formatting in multiple files
- Improved code consistency by adjusting function calls and declarations
> ✨ 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 -->
<!-- start pr-codex -->
## PR-Codex overview
This PR renames 'Properties' to 'Attributes' in the dashboard UI components for consistency and clarity.
### Detailed summary
- Renamed 'Properties' to 'Attributes' in dashboard UI components for consistency.
- Updated labels and headings in multiple files to reflect the change.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
### TL;DR
Fixes an issue where NFT image updates were not being applied if there was no existing image.
### What changed?
- Modified the `mint-form.tsx` to only disable the submit button if the form is not dirty and the image URL has not changed.
### How to test?
1. Open the mint form for an NFT without an existing image.
2. Attempt to update the image.
3. Ensure the submit button is enabled and the image update is successful.
### Why make this change?
This change ensures that users can update the image for NFTs that do not have an existing image without unnecessary restrictions.
---
<!-- start pr-codex -->
---
## PR-Codex overview
This PR focuses on fixing NFT image updates when no existing image is present.
### Detailed summary
- Updated `mint-form.tsx` to disable submit button only when form is dirty and image URL is the same as existing NFT image.
> ✨ 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 -->