Skip to content

Conversation

mgrabina
Copy link
Contributor

No description provided.

Copy link

vercel bot commented Sep 25, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
interface Ready Ready Preview Comment Sep 30, 2025 1:46pm

Copy link

Copy link

📦 Next.js Bundle Analysis for aave-ui

This analysis was generated by the Next.js Bundle Analysis action. 🤖

🎉 Global Bundle Size Decreased

Page Size (compressed)
global 1.38 MB (🟢 -48.92 KB)
Details

The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!

Sixteen Pages Changed Size

The following pages changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load
/ 60.96 KB (🟡 +1.37 KB) 1.44 MB
/404 2.79 KB (🟡 +327 B) 1.38 MB
/500 3.19 KB (🟡 +283 B) 1.38 MB
/bridge 23.8 KB (🟢 -9.64 KB) 1.4 MB
/dashboard 52.12 KB (🟡 +1.15 KB) 1.43 MB
/faucet 15.21 KB (🟡 +308 B) 1.39 MB
/governance 70.79 KB (🟢 -9.83 KB) 1.45 MB
/governance/ipfs-preview 100.69 KB (🟡 +1 KB) 1.48 MB
/governance/v3/proposal 112.83 KB (🟢 -9.92 KB) 1.49 MB
/history 24.04 KB (🟡 +311 B) 1.4 MB
/markets 36.28 KB (🟡 +2.65 KB) 1.41 MB
/reserve-overview 23.16 KB (🟡 +145 B) 1.4 MB
/safety-module 27.39 KB (🟢 -9.64 KB) 1.4 MB
/sgho 79.5 KB (🟡 +552 B) 1.45 MB
/staking 32.11 KB (🟡 +303 B) 1.41 MB
/v3-migration 35.88 KB (🟡 +687 B) 1.41 MB
Details

Only the gzipped size is provided here based on an expert tip.

First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

Next to the size is how much the size has increased or decreased compared with the base branch of this PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this.

@mgrabina mgrabina marked this pull request as ready for review September 30, 2025 13:33
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

export const generateCoWExplorerLink = (chainId: SupportedChainId, orderId?: string) => {
if (!orderId) {
return undefined;
}
const base = 'https://explorer.cow.fi';
switch (chainId) {
case SupportedChainId.MAINNET:
return `${base}/orders/${orderId}`;
case SupportedChainId.GNOSIS_CHAIN:
return `${base}/gc/orders/${orderId}`;
case SupportedChainId.BASE:
return `${base}/base/orders/${orderId}`;
case SupportedChainId.ARBITRUM_ONE:
return `${base}/arb1/orders/${orderId}`;
case SupportedChainId.SEPOLIA:
return `${base}/sepolia/orders/${orderId}`;
case SupportedChainId.AVALANCHE:
return `${base}/avax/orders/${orderId}`;
case SupportedChainId.POLYGON:
return `${base}/pol/orders/${orderId}`;
default:
throw new Error('Define explorer link for chainId: ' + chainId);

[P1] Handle BNB CoW explorer links

BNB was added to CoWProtocolSupportedNetworks, so success toasts and transaction history will now call generateCoWExplorerLink with a BNB chain id. The helper still lacks a SupportedChainId.BNB case and throws in the default branch, which will crash the UI whenever a user completes a CoW swap on BNB or clicks the toast/history link. Add the BNB explorer path instead of falling into the error case.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting

Copy link

Copy link

📦 Next.js Bundle Analysis for aave-ui

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

@mgrabina mgrabina merged commit 8a84e96 into main Oct 1, 2025
19 of 21 checks passed
@mgrabina mgrabina deleted the feat/cow-bnb branch October 1, 2025 14:40
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