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

Show a user's unstaked tokens on the validators page #590

Merged
merged 3 commits into from
Feb 22, 2024

Conversation

jessepinho
Copy link
Contributor

@jessepinho jessepinho commented Feb 21, 2024

image

This is the first step of reorganizing the Validators page to focus on tokens. See the tracking issue #463 for what's coming next.

This PR just displays the user's penumbra balances for any account that holds penumbra. In the upcoming PRs, I'll add delegation and unbonding tokens to each account, but I wanted to keep these PRs bite-sized.

Closes #586

Comment on lines +28 to +32
<Card>
<CardHeader>
<CardTitle>Active validators</CardTitle>
</CardHeader>
<CardContent>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Only changes to this file are adding the <Card /> wrapper around the table.

@jessepinho jessepinho changed the title WIP: Show a user's unstaked tokens on the validators page Show a user's unstaked tokens on the validators page Feb 21, 2024
@jessepinho jessepinho marked this pull request as ready for review February 21, 2024 23:11
Copy link
Collaborator

@grod220 grod220 left a comment

Choose a reason for hiding this comment

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

Code looks good to me. But growing the page down with each additional piece of content in this tracking issue feels like it will get noisy fast.

Think our tab component is a good candidate for doing sub-routing on this page:

Screenshot 2024-02-22 at 2 24 26 PM

These tabs should match url routes like:

/staking/unstaked
/staking/staked
/staking/unbonding
/staking/validators

@hdevalence
Copy link
Member

We should keep each category of staked funds on the same view, not split them across tabs. If we need to split up we should be splitting up by account, rather than interleaving, like I suggested in Discord.

@jessepinho jessepinho merged commit 8c2150b into main Feb 22, 2024
7 checks passed
@jessepinho jessepinho deleted the jessepinho/web-586-show-unstaked-tokens branch February 22, 2024 17:06
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.

Show a user's unstaked tokens on the validators page
3 participants