-
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
Added Proposal Grace Period #4478
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
ok
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.
That's the correct data but the current proposal statistics components are not good enough to show these information in a helpful way.
Also we should not show both gracing period and execution block at the same time. AFAIK when exactExecutionBlock
is set the gracing period doesn't matter. So please show only the exactExecutionBlock
when it's set and only the gracing period otherwise.
packages/ui/src/proposals/components/ProposalDetails/ProposalDetails.tsx
Outdated
Show resolved
Hide resolved
if (exactExecutionBlock) { | ||
return [ | ||
{ | ||
renderType: 'NumberOfBlocks', | ||
label: 'Exact Execution Block', | ||
value: exactExecutionBlock, | ||
}, | ||
] as RenderNode[] | ||
} |
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.
Here exactExecutionBlock
is not actually a number of blocks but a block height so NumberOfBlocks
is not the right component. Instead it should show something like the BlockTime component.
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.
Last things:
createdAt?: string | ||
updates?: ProposalStatusUpdates[] |
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.
Please remove these 2:
createdAt?: string | |
updates?: ProposalStatusUpdates[] |
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.
LGTM!
Tested on https://dao-21pwiyi8j-joystream.vercel.app/#/proposals/current ✅ Show grace period duration in time/ block(ex block not specified) ✅ Show Exact Block Number at which proposal executes(ex block 4 307 120) |
According to this issue
The second task Show Exact Block Number at which proposal executes
I thought i could achieve that with
proposal.exactExecutionBlock
but its always undefined for the proposals i've checked out so far