Skip to content
This repository was archived by the owner on May 6, 2026. It is now read-only.

chore(fallback): add deprecation banner for non-full-support chains#129

Closed
remiroyc wants to merge 1 commit into
mainfrom
deprecation-banner
Closed

chore(fallback): add deprecation banner for non-full-support chains#129
remiroyc wants to merge 1 commit into
mainfrom
deprecation-banner

Conversation

@remiroyc

Copy link
Copy Markdown
Collaborator

Summary

  • Adds a dismissible amber banner (below the existing pink "emergencies" banner) warning that the fallback app will stop supporting chains that aren't migrating to the main Morpho app
  • Banner text includes the chain name and the cutoff date, driven by a CHAIN_DEPRECATION_DATES map in apps/fallback/src/lib/constants.ts (currently populated with 16 non-full-support chains at May 7, 2026 — adjust the date when the notice period begins)
  • Dismissal is keyed per-chain via useKeyedState with persist: true, and the banner derives its chain from selectedChainSlug (passed from page.tsx) so it works without a connected wallet

Test plan

  • Load the fallback app, switch to a deprecated chain (e.g. BSC) — banner appears with chain name + date
  • Dismiss, switch to another deprecated chain — banner re-appears
  • Return to the previously dismissed chain — banner stays hidden
  • Switch to a main-app-supported chain (Ethereum, Base, …) — no banner

Chains that won't be migrated to the main Morpho app are scheduled for
removal from the fallback app. They now display a dismissible amber
banner with the cutoff date, driven by a `CHAIN_DEPRECATION_DATES` map
in constants. Dismissal is keyed/persisted per chain.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@vercel

vercel Bot commented Apr 23, 2026

Copy link
Copy Markdown

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

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
lite-app Skipped Skipped Apr 23, 2026 2:01pm

Request Review

@remiroyc remiroyc self-assigned this Apr 23, 2026
@remiroyc remiroyc requested review from alexbensimon and haydenshively and removed request for haydenshively April 23, 2026 14:03
@remiroyc remiroyc closed this Apr 28, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants