Skip to content

Conversation

@SorinC6
Copy link
Contributor

@SorinC6 SorinC6 commented Dec 17, 2025

task:


Note

Introduces the new staking dashboard (context, UI, dialogs) with rewards summary, delegated pool card (undelegate/update), epoch progress, pool list, and an empty-wallet banner; updates routes, i18n, and dependencies.

  • Staking Revamp (UI/Logic):
    • New StakingRoot layout combining RewardsSummaryCard, StakePoolDelegated, EpochProgress, PoolList, and LegacyDialogs.
    • Added empty-wallet banner WalletEmptyBanner (testnet faucet link or buy/sell flow).
    • New delegated pool components: DelegatedStakePoolCard, UndelegateButton (opens Tx review), and wiring via StakePoolDelegated.
    • New epoch progress: EpochProgress, EpochProgressWrapper, EpochProgressCard.
    • RewardsSummaryCard/RewardHistoryGraph: open reward history dialog, improved loading/error handling; totals rendering; y-axis masking tweak.
  • Staking Context:
    • Expanded StakingState (wallet, delegation, flags); improved graph data lifecycle (waits for reward history, resets on wallet change); unit-of-account helper; utilities.
  • Routing:
    • Ensures staking revamp routes within StakingSubpages under ROUTES.STAKING_REVAMP.ROOT.
  • Pool List:
    • Renders legacy CardanoStakingPage with pool transition support.
  • UX/Styling:
    • Decreased top banners height; change inner content overflow to scroll; safer avatar loading in WalletDelegationBanner.
  • i18n:
    • New/updated staking-related strings (delegated pool, epoch progress, empty wallet copy) and en-US entries.
  • Deps:
    • Bump @yoroi/api to 6.0.0 with updated peer deps in lockfile.

Written by Cursor Bugbot for commit 0476e01. This will update automatically on new commits. Configure here.

@SorinC6 SorinC6 changed the base branch from develop to chore/YW-172/staking-revamp-layout December 17, 2025 12:52
@SorinC6 SorinC6 marked this pull request as draft December 17, 2025 12:52
@Nebyt Nebyt added this to the 5.20.0 milestone Dec 17, 2025
@SorinC6 SorinC6 marked this pull request as ready for review December 17, 2025 16:16
@SorinC6 SorinC6 requested review from Nebyt and loxator December 17, 2025 16:17
Base automatically changed from chore/YW-172/staking-revamp-layout to develop December 17, 2025 16:32
});
}
: undefined
}
Copy link

Choose a reason for hiding this comment

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

Bug: Duplicate dialog opening logic in withdrawRewards handler

The withdrawRewards prop has redundant ternary branches where both isParticipatingToGovernance === false and isParticipatingToGovernance === true && isStakeRegistered === true open the same GovernanceParticipateDialog. This duplicated logic suggests the conditional may not be implementing the intended business rules correctly, as the same action is performed regardless of governance participation status when stake is registered.

Fix in Cursor Fix in Web

@Nebyt Nebyt merged commit 5a4f717 into develop Dec 18, 2025
31 of 33 checks passed
@Nebyt Nebyt deleted the chore/YW-174/staking-revamp branch December 18, 2025 14:17
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.

3 participants