Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: [lw-10691]: add register as dRep banner and stake key raw info #1537

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

vetalcore
Copy link
Contributor

@vetalcore vetalcore commented Nov 13, 2024

add register as dRep banner and stake key raw info in staking center

Checklist

  • JIRA - LW-10691
  • Proper tests implemented
  • Screenshots added.

Proposed solution

  • If there are stake keys registered, but none of them have a voting delegation, show the Register as a DRep banner.
  • Anytime a stake key is delegated to a pool, but not delegated to a DRep (or registered as a DRep), add an info banner stick to the bottom of the pool delegation card (see designs), which has the button:
  • Add Stake key raw information to the pool card, this information is important to interact with the Gov Tool and explorers

Testing

Testing should be done for both multi and single delegation flows, popup and browser view modes.

Screenshots

Attach screenshots here if implementation involves some UI changes

@vetalcore vetalcore self-assigned this Nov 13, 2024
@vetalcore vetalcore requested a review from a team as a code owner November 13, 2024 11:59
@pczeglik-iohk
Copy link
Contributor

pczeglik-iohk commented Nov 13, 2024

Allure Report

allure-report-publisher generated test report!

processReports: ✅ test report for 89940042

passed failed skipped flaky total result
Total 32 0 4 0 36

@vetalcore vetalcore force-pushed the feat/lw-10691-show-register-as-drep-banner-staking-center branch 2 times, most recently from 855201c to 4d6b2b3 Compare November 13, 2024 13:25
@@ -7,9 +7,11 @@ type MapPortfolioToDisplayDataParams = {
cardanoCoin: Wallet.CoinId;
cardanoPrice?: number;
portfolio: CurrentPortfolioStakePool[];
poolIdToRewardAccountMap: Map<string | undefined, Wallet.Cardano.RewardAccountInfo>;
Copy link
Contributor

Choose a reason for hiding this comment

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

If a reward account is not delegated to a pool, it should not be part of this map:

- poolIdToRewardAccountMap: Map<string | undefined, Wallet.Cardano.RewardAccountInfo>
+ poolIdToRewardAccountMap: Map<string, Wallet.Cardano.RewardAccountInfo>

GOV_TOOLS_URL_MAINNET=https://gov.tools/
GOV_TOOLS_URL_PREPROD=
GOV_TOOLS_URL_PREVIEW=https://preview.gov.tools/
GOV_TOOLS_URL_SANCHONET=
Copy link
Contributor

Choose a reason for hiding this comment

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

We can use https://sanchogov.tools/ here.

Copy link
Contributor

@mirceahasegan mirceahasegan left a comment

Choose a reason for hiding this comment

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

Great work @vetalcore

@vetalcore vetalcore force-pushed the feat/lw-10691-show-register-as-drep-banner-staking-center branch from 6eb9f02 to 8994004 Compare November 15, 2024 09:37
Copy link

sonarcloud bot commented Nov 15, 2024

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