From cb9f557041d825df7a1c0a1e8575e1c9ba394e4f Mon Sep 17 00:00:00 2001 From: dev-agent Date: Tue, 26 May 2026 07:53:08 +0000 Subject: [PATCH 1/2] [#1249] Verify wallet-connect for /airdrop, migrate to getAirdropConfig Wallet-connect infrastructure verified: WagmiProvider + RainbowKit wraps entire app, ConnectWallet in NavBar, Base chain (8453) with MetaMask/Coinbase/Rainbow/WalletConnect-v2/Farcaster connectors. All airdrop components already use useAccount/useSignMessage. Migrate /airdrop page from module-level AIRDROP_CONFIG to getAirdropConfig() for v5 test-mode compatibility. Closes #1249 Co-Authored-By: Claude Opus 4.7 (1M context) --- src/app/airdrop/page.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/airdrop/page.tsx b/src/app/airdrop/page.tsx index 73911ebd..2db516d6 100644 --- a/src/app/airdrop/page.tsx +++ b/src/app/airdrop/page.tsx @@ -4,7 +4,7 @@ import { UserPoints } from "../../components/airdrop/UserPoints"; import { ClaimPanel } from "../../components/airdrop/ClaimPanel"; import { Leaderboard } from "../../components/airdrop/Leaderboard"; import { WeeklySnapshots } from "../../components/airdrop/WeeklySnapshots"; -import { AIRDROP_CONFIG } from "../../../lib/airdrop/config"; +import { getAirdropConfig } from "../../../lib/airdrop/config"; export const metadata: Metadata = { title: "PLOT Big or Nothing Airdrop | PlotLink", @@ -12,7 +12,7 @@ export const metadata: Metadata = { }; export default function AirdropPage() { - const campaignEnded = new Date() > AIRDROP_CONFIG.CAMPAIGN_END; + const campaignEnded = new Date() > getAirdropConfig().CAMPAIGN_END; return (
From 608b7cc2e49d578d8fae0175d7247aa9caaf92e9 Mon Sep 17 00:00:00 2001 From: dev-agent Date: Tue, 26 May 2026 07:56:01 +0000 Subject: [PATCH 2/2] [#1249] Add disconnect button to NavBar + Coinbase Wallet connector MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ConnectWallet connected state now shows a dismiss (✕) button next to the address for disconnect access on any page including /airdrop. Added coinbaseWallet to RainbowKit wallet list to satisfy the #1249 test matrix (MetaMask, Coinbase Wallet, Rainbow, WalletConnect). Co-Authored-By: Claude Opus 4.7 (1M context) --- lib/wagmi.ts | 2 ++ src/components/ConnectWallet.tsx | 45 +++++++++++++++++++------------- 2 files changed, 29 insertions(+), 18 deletions(-) diff --git a/lib/wagmi.ts b/lib/wagmi.ts index f7c29a7a..d24debf9 100644 --- a/lib/wagmi.ts +++ b/lib/wagmi.ts @@ -6,6 +6,7 @@ import { connectorsForWallets } from "@rainbow-me/rainbowkit"; import type { Wallet } from "@rainbow-me/rainbowkit"; import { metaMaskWallet, + coinbaseWallet, baseAccount, trustWallet, rainbowWallet, @@ -34,6 +35,7 @@ const walletConnectors = connectorsForWallets( wallets: [ farcasterWallet, metaMaskWallet, + coinbaseWallet, baseAccount, trustWallet, rainbowWallet, diff --git a/src/components/ConnectWallet.tsx b/src/components/ConnectWallet.tsx index 05afd21d..df9552c4 100644 --- a/src/components/ConnectWallet.tsx +++ b/src/components/ConnectWallet.tsx @@ -44,25 +44,34 @@ export function ConnectWallet({ onNavigate, compact }: ConnectWalletProps = {}) ); } - // Full mode: pill with PFP + @username or truncated address + // Full mode: pill with PFP + truncated address + disconnect return ( - - {profile?.pfpUrl && ( - // eslint-disable-next-line @next/next/no-img-element - - )} - {displayAddr} - +
+ + {profile?.pfpUrl && ( + // eslint-disable-next-line @next/next/no-img-element + + )} + {displayAddr} + + +
); }