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

Validators list page validator card #4419

Merged
merged 28 commits into from
Dec 19, 2023

Conversation

eshark9312
Copy link
Contributor

@eshark9312 eshark9312 commented Jun 9, 2023

This PR is blocked by #4404
Add Validator Card component

> Design
> Story

@vercel
Copy link

vercel bot commented Jun 9, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
dao ✅ Ready (Inspect) Visit Preview Dec 18, 2023 4:48pm
pioneer-2 ✅ Ready (Inspect) Visit Preview Dec 18, 2023 4:48pm
pioneer-2-storybook ✅ Ready (Inspect) Visit Preview Dec 18, 2023 4:48pm

@thesan
Copy link
Member

thesan commented Sep 15, 2023

@chrlschwb this PR is not ready for review it includes a lot of changes from #4404 because git isn't able to differentiate identify them in the "squash and merge" commit (so they show as conflicts). @eshark9312 IMO you should git rebase --onto dev validators-list-filter-search validators-list-page-validatorCard but after you make sure that your local dev is at the latest version from Joystream/pioneer.

@eshark9312
Copy link
Contributor Author

@dmtrjsg
I added uptime widget but it is limited in 120 eras.

@thesan
Copy link
Member

thesan commented Dec 7, 2023

@eshark9312 eshark9312:update-validators-list-columns was merged into this branch here has a result this PR now depends on #4643.

#4643 is almost ready, so as soon as it gets merged into dev please merge dev into this PR. It will make the review a lot easier.

Comment on lines 64 to 71
justify-items: start;
justify-items: start;
align-items: center;
width: 100%;
height: ${Sizes.accountHeight};
padding: 16px;
margin: -1px;
margin: -1px;
Copy link
Member

Choose a reason for hiding this comment

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

These look like merge issues

Object.defineProperties(data, {
unwrap: { value: () => data },
isSome: { value: Object.keys(data).length > 0 },
get: { value: (key: AccountId32) => data[encodeAddress(key.toString())] },
Copy link
Member

Choose a reason for hiding this comment

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

Good idea but just to make this a bit more general:

Suggested change
get: { value: (key: AccountId32) => data[encodeAddress(key.toString())] },
get: {
value: (key: unknow) => {
switch (key) {
case 'object':
if (key.toRawType?.() === 'AccountId') {
return data[encodeAddress(key.toString())]
}
default:
return data[key.toString()]
}
}
}

Copy link
Member

@thesan thesan 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! The graph looks good, I think we should go with chart.js instead of nivo for the financial dashboard too.

FYI all the nominate buttons will be changed into links to the the Polkadot app to nominate validators. But this should be done in a follow up PR. Also I don't remember what the copy should be.

@thesan thesan merged commit 4b9a450 into Joystream:dev Dec 19, 2023
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community-dev issue suitable for community-dev pipeline scope:validators
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants