-
Notifications
You must be signed in to change notification settings - Fork 98
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
Jordan/1502 page proposal #1531
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #1531 +/- ##
===========================================
+ Coverage 96.41% 96.45% +0.04%
===========================================
Files 97 98 +1
Lines 1811 1833 +22
Branches 86 91 +5
===========================================
+ Hits 1746 1768 +22
Misses 55 55
Partials 10 10
|
return `Voting for this proposal is open` | ||
|
||
if (this.proposal.proposal_status === `Pending`) | ||
return `Deposits are open for this proposal` |
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.
Deposits are always open as long as the proposal is open (i.e you can also deposit when the proposal is Active
), in this case the proposal is Pending
because it hasn't met the minimum deposit
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.
why would a user deposit if a proposal has received enough to open voting?
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.
I also said that... But you can ask @sunnya97
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.
we'll see what sunny says, but i don't think we should block on this.
@@ -94,6 +94,12 @@ export default { | |||
tooltip: `The title of the proposal`, | |||
class: `proposal_title` | |||
}, | |||
{ | |||
title: `Submitted Block`, |
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.
sorting by proposal id is the same
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.
true, but i added a column for submit block instead. do you think showing ID as its own column would be better?
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.
we can discuss it later
<p> | ||
Status: Passed | ||
Proposal description… |
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.
Add the ...
only if the length is > 100
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.
smart! thanks @fedekunze
// }, | ||
|
||
{ | ||
path: `/governance/:proposalId`, |
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.
I'd change this to
path: `/governance/:proposalId`, | |
path: `/governance/proposals/:proposalId`, |
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.
how come?
Available Steak | ||
</h3> | ||
<h2> | ||
0.0000… |
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.
is this a description ? why does it have the ...
?
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.
this is how we show numbers in the balance header!
Yes | ||
</dt> | ||
<dd> | ||
500 / 0% |
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.
0 % ?
No | ||
</dt> | ||
<dd> | ||
25 / 0% |
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.
ditto
No with Veto | ||
</dt> | ||
<dd> | ||
10 / 0% |
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.
ditto
Abstain | ||
</dt> | ||
<dd> | ||
56 / 0% |
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.
ditto
Total Steak | ||
</h3> | ||
<h2> | ||
0.0000… |
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.
...
statusColor() { | ||
if (this.proposal.proposal_status === `Rejected`) return `red` | ||
else if (this.proposal.proposal_status === `Passed`) return `green` | ||
status() { |
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.
does this cover all the cases / is this true?
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.
tested ACK
Closes #1502
Description:
implemented page proposal component and included some nice upgrades to proposals index and a couple of other places.
❤️ Thank you!
CHANGELOG.md
with issue # and GitHub usernameFiles changed
in the github PR explorer