Skip to content

chore: banner#2922

Merged
foodaka merged 2 commits intomainfrom
feat/v4-banner
Mar 30, 2026
Merged

chore: banner#2922
foodaka merged 2 commits intomainfrom
feat/v4-banner

Conversation

@foodaka
Copy link
Copy Markdown
Collaborator

@foodaka foodaka commented Mar 30, 2026

General Changes

  • Fixes XYZ bug
  • Adds XYZ feature

Developer Notes

Add any notes here that may be helpful for reviewers.


Reviewer Checklist

Please ensure you, as the reviewer(s), have gone through this checklist to ensure that the code changes are ready to ship safely and to help mitigate any downstream issues that may occur.

  • End-to-end tests are passing without any errors
  • Code changes do not significantly increase the application bundle size
  • If there are new 3rd-party packages, they do not introduce potential security threats
  • If there are new environment variables being added, they have been added to the .env.example file as well as the pertinant .github/actions/* files
  • There are no CI changes, or they have been approved by the DevOps and Engineering team(s)

Copilot AI review requested due to automatic review settings March 30, 2026 12:01
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 30, 2026

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

Project Deployment Actions Updated (UTC)
interface Ready Ready Preview, Comment Mar 30, 2026 0:08am

Request Review

mgrabina
mgrabina previously approved these changes Mar 30, 2026
Copy link
Copy Markdown

@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

Here are some automated review suggestions for this pull request.

Reviewed commit: 76905c84dc

ℹ️ 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 "@codex address that feedback".

Comment on lines +15 to +16
notifyText: 'Aave V4 is now live on Ethereum mainnet.',
buttonText: 'Try it out here',
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Bump banner version when campaign content changes

Changing notifyText/buttonText without changing bannerVersion means users who previously dismissed the old waitlist banner will continue to have warningBarOpen_<chainId>=false and won’t see this new announcement. In TopBarNotify, the banner only reopens when storedBannerVersion !== currentCampaign.bannerVersion, so this copy update will be hidden for a large existing cohort unless the version key is incremented.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the main layout’s top notification banner copy to promote the Aave V4 launch, across all configured chain IDs.

Changes:

  • Replaces the existing banner notifyText and buttonText strings for multiple networks in MainLayout.
  • Keeps the existing banner action (URL) and versioning as-is.
Comments suppressed due to low confidence (1)

src/layouts/MainLayout.tsx:22

  • The banner dismissal logic is keyed by bannerVersion (stored in localStorage). Since the copy changed but bannerVersion remains aave-app-waitlist-v2, users who previously dismissed the old banner may never see this new message. Bump bannerVersion to a new value aligned with the V4 launch banner so it re-shows as intended.
    notifyText: 'Aave V4 is now live on Ethereum mainnet.',
    buttonText: 'Try it out here',
    buttonAction: {
      type: 'url' as const,
      value: 'https://aave.com/app',
      target: '_blank' as const,
    },
    bannerVersion: 'aave-app-waitlist-v2',

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +15 to +16
notifyText: 'Aave V4 is now live on Ethereum mainnet.',
buttonText: 'Try it out here',
Copy link

Copilot AI Mar 30, 2026

Choose a reason for hiding this comment

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

These are user-facing strings, but they’re plain string literals in a config object. Because TopBarNotify wraps notifyText/buttonText in <Trans>{…}</Trans> with dynamic children, Lingui won’t extract these messages for translation, so they will remain English-only. Please convert the banner copy to Lingui macros (e.g., t/Trans with literal children) and adjust TopBarNotify accordingly so extraction works.

Copilot uses AI. Check for mistakes.
Comment on lines +15 to +16
notifyText: 'Aave V4 is now live on Ethereum mainnet.',
buttonText: 'Try it out here',
Copy link

Copilot AI Mar 30, 2026

Choose a reason for hiding this comment

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

PR description appears to be the default template (“Fixes XYZ bug”, “Adds XYZ feature”, etc.) and doesn’t describe the actual change (banner copy update). Please update the PR description/checklist items to reflect the real intent and any relevant validation performed.

Copilot uses AI. Check for mistakes.
@github-actions
Copy link
Copy Markdown

@github-actions
Copy link
Copy Markdown

📦 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.15 MB (-7 B)
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!

@foodaka foodaka merged commit dee7ea2 into main Mar 30, 2026
27 checks passed
@foodaka foodaka deleted the feat/v4-banner branch March 30, 2026 13:49
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.

4 participants