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

Indicate unclaimed rewards #5121

Merged
merged 13 commits into from
Jun 29, 2023
Merged

Conversation

eniolam1000752
Copy link
Contributor

@eniolam1000752 eniolam1000752 commented Jun 27, 2023

What was the problem?

This PR resolves #5064

How was it solved?

  • Implement required UI
  • integrated dry run on stake form
  • Extend unit tests

How was it tested?

  • Add, Edit or remove a stake from/to a validator
  • Navigate to the staking queue modal
  • Click on the Contine button
  • Staked validators with rewards should be visible

@eniolam1000752 eniolam1000752 self-assigned this Jun 27, 2023
@eniolam1000752 eniolam1000752 marked this pull request as draft June 27, 2023 15:54
@eniolam1000752 eniolam1000752 marked this pull request as ready for review June 27, 2023 18:13
@ManuGowda ManuGowda removed the request for review from ikem-legend June 27, 2023 18:23
@ManuGowda ManuGowda changed the title Inicate unclaimed rewards Indicate unclaimed rewards Jun 27, 2023
@ManuGowda
Copy link
Contributor

Screenshot 2023-06-28 at 9 19 49 AM

@eniolam1000752 can't we display each element in 1 row? otherwise it can be difficult to view the changes.

serviceUrl: mainChainNetwork.serviceUrl,
})
);
setIsLoading(true);
Copy link
Contributor

@oskarleonard oskarleonard Jun 29, 2023

Choose a reason for hiding this comment

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

Do we need to call setIsLoading(true) twice in this function? See line 176 as well

@@ -231,9 +284,9 @@ const StakeForm = ({ t, stakes, account, isStakingTxPending, nextStep, history,
/>
Copy link
Contributor

Choose a reason for hiding this comment

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

Not related to this line:

Maybe we should rename the buttonTitle label to
buttonTitle={showEmptyState ? t('Continue to validator list') : t('Continue')}
Since that seems to be where it is navigating.

I dont know in which scenario we show this component when showEmptyState. Do you know how to test that flow?

</div>
{/* <div className={styles.txFeeContainer}>
Copy link
Contributor

@oskarleonard oskarleonard Jun 29, 2023

Choose a reason for hiding this comment

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

Comment

Copy link
Contributor

Choose a reason for hiding this comment

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

It was a dead code.. i checked the UI the transaction fees are showned.

@eniolam1000752 eniolam1000752 merged commit ad31e00 into release/3.0.0 Jun 29, 2023
2 checks passed
@eniolam1000752 eniolam1000752 deleted the 5064-inicate-unclaimed-rewards branch June 29, 2023 14:48
@ManuGowda ManuGowda restored the 5064-inicate-unclaimed-rewards branch November 17, 2023 17:35
@ManuGowda ManuGowda deleted the 5064-inicate-unclaimed-rewards branch November 28, 2023 14:24
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