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

Added Proposal Grace Period #4478

Merged
merged 18 commits into from
Sep 29, 2023
Merged

Added Proposal Grace Period #4478

merged 18 commits into from
Sep 29, 2023

Conversation

vrrayz
Copy link
Contributor

@vrrayz vrrayz commented Jul 16, 2023

According to this issue

  • Show grace period duration in time/ block
  • Show Exact Block Number at which proposal executes

Screenshot (629)

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

@vercel
Copy link

vercel bot commented Jul 16, 2023

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

Name Status Preview Updated (UTC)
dao ✅ Ready (Inspect) Visit Preview Sep 29, 2023 0:59am
pioneer-2 ✅ Ready (Inspect) Visit Preview Sep 29, 2023 0:59am
pioneer-2-storybook ✅ Ready (Inspect) Visit Preview Sep 29, 2023 0:59am

Copy link
Contributor

@chrlschwb chrlschwb left a comment

Choose a reason for hiding this comment

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

ok

@chrlschwb chrlschwb added community-dev issue suitable for community-dev pipeline jsg-code-review labels Jul 30, 2023
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.

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.

Comment on lines 86 to 94
if (exactExecutionBlock) {
return [
{
renderType: 'NumberOfBlocks',
label: 'Exact Execution Block',
value: exactExecutionBlock,
},
] as RenderNode[]
}
Copy link
Member

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.

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.

Last things:

Comment on lines 39 to 40
createdAt?: string
updates?: ProposalStatusUpdates[]
Copy link
Member

Choose a reason for hiding this comment

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

Please remove these 2:

Suggested change
createdAt?: string
updates?: ProposalStatusUpdates[]

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.

LGTM!

@ivanturlakov
Copy link

Tested on https://dao-21pwiyi8j-joystream.vercel.app/#/proposals/current
Mainnet

✅ Show grace period duration in time/ block(ex block not specified)
Screenshot 2023-10-02 at 13 13 51

✅ Show Exact Block Number at which proposal executes(ex block 4 307 120)
Screenshot 2023-10-02 at 13 04 13

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 qa-tested-ready-for-prod
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants