Skip to content

Add Fuse governance migration prompt on Savings/Stake with explicit modal wizard#641

Draft
Copilot wants to merge 7 commits into
masterfrom
copilot/detect-fuse-governance-stake
Draft

Add Fuse governance migration prompt on Savings/Stake with explicit modal wizard#641
Copilot wants to merge 7 commits into
masterfrom
copilot/detect-fuse-governance-stake

Conversation

Copy link
Copy Markdown

Copilot AI commented May 26, 2026

Users with non-zero Fuse governance stake had no in-product migration cue on /savings or /stakes, making migration easy to miss. This PR adds a non-blocking popover entrypoint and an explicit-click modal wizard, then hides the prompt once Fuse governance stake reaches zero.

  • Fuse governance stake detection

    • Added useFuseGovernanceStake hook to compute connected-wallet Fuse governance exposure from existing stake data (GOODDAO protocol filter).
    • Exposes stakeAmount, hasStake, and refetch for UI state and post-migration verification.
  • Popover CTA entrypoint

    • Added shared FuseGovernanceMigrationPrompt component.
    • Shows inline prompt only when wallet is connected and hasStake === true.
    • CTA is explicit (Migrate); modal is not auto-opened.
  • Migration modal wizard

    • Implemented step flow: summary -> bridge/check -> success.
    • Bridge step routes to /microbridge; user returns and triggers status check.
    • On detected hasStake === false, transitions to success and suppresses the popover for that session.
  • Surface integration

    • Mounted the shared prompt in both:
      • src/pages/gd/Savings/index.tsx
      • src/pages/gd/Stake/index.tsx
    • Kept existing SavingsModal and StakeDeposit flows intact.
// Shared prompt added to both entry surfaces
<PageLayout title="Savings" faqType="savings">
  <FuseGovernanceMigrationPrompt />
  <gooddollar-savings-widget ref={widgetRef} />
</PageLayout>
Original prompt

Please work on
#640

Product UX

  1. Detect Fuse governance stake for connected address.
  2. If stake > 0: show Popover (short message + "Migrate" button).
  3. Button opens Modal with step wizard — do NOT auto-open modal on page load.
  4. After success (Fuse stake 0): hide popover.

Created from VS Code.

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented May 26, 2026

Deploying goodprotocolui with  Cloudflare Pages  Cloudflare Pages

Latest commit: 2b6ab25
Status: ✅  Deploy successful!
Preview URL: https://f83d9e36.goodprotocolui.pages.dev
Branch Preview URL: https://copilot-detect-fuse-governan.goodprotocolui.pages.dev

View logs

Copilot AI changed the title [WIP] Add Fuse governance stake detection feature Add Fuse governance migration prompt on Savings/Stake with explicit modal wizard May 26, 2026
Copilot AI requested a review from blueogin May 26, 2026 12:58
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.

Feat: Fuse -> Celo staking migration: popover + modal on Savings and Stake

2 participants