-
Notifications
You must be signed in to change notification settings - Fork 70
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
Validators list page validator card #4419
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
2747466
to
b949609
Compare
@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 |
@dmtrjsg |
@eshark9312 #4643 is almost ready, so as soon as it gets merged into |
justify-items: start; | ||
justify-items: start; | ||
align-items: center; | ||
width: 100%; | ||
height: ${Sizes.accountHeight}; | ||
padding: 16px; | ||
margin: -1px; | ||
margin: -1px; |
There was a problem hiding this comment.
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())] }, |
There was a problem hiding this comment.
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:
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()] | |
} | |
} | |
} |
There was a problem hiding this 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.
This PR is blocked by #4404Add Validator Card component
> Design
> Story