Add Fuse governance migration prompt on Savings/Stake with explicit modal wizard#641
Draft
Copilot wants to merge 7 commits into
Draft
Add Fuse governance migration prompt on Savings/Stake with explicit modal wizard#641Copilot wants to merge 7 commits into
Copilot wants to merge 7 commits into
Conversation
Deploying goodprotocolui with
|
| Latest commit: |
2b6ab25
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://f83d9e36.goodprotocolui.pages.dev |
| Branch Preview URL: | https://copilot-detect-fuse-governan.goodprotocolui.pages.dev |
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
…on and improved UI components
… multiple languages
…taking logic for Fuse governance
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Users with non-zero Fuse governance stake had no in-product migration cue on
/savingsor/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
useFuseGovernanceStakehook to compute connected-wallet Fuse governance exposure from existing stake data (GOODDAOprotocol filter).stakeAmount,hasStake, andrefetchfor UI state and post-migration verification.Popover CTA entrypoint
FuseGovernanceMigrationPromptcomponent.hasStake === true.Migrate); modal is not auto-opened.Migration modal wizard
summary -> bridge/check -> success./microbridge; user returns and triggers status check.hasStake === false, transitions to success and suppresses the popover for that session.Surface integration
src/pages/gd/Savings/index.tsxsrc/pages/gd/Stake/index.tsxSavingsModalandStakeDepositflows intact.Original prompt
Created from VS Code.