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

Add RFP flag to proposals list #3118

Merged
merged 3 commits into from Jan 28, 2021

Conversation

guilhermemntt
Copy link
Contributor

This PR closes #3108 through the following resolutions:

  • Addition of RFP and Proposed for RFP flags in the respective list items.
    image
  • In a proposal marked with the Proposed for RFP flag, a Politeia link to the respective RFP has been added.
    image
  • Some changes in rejected items:
    • All rejected list items now have a red left border.
    • The tiny circle indicates if the proposal had no quorum (gray), was declined (red), or would be approved (green).
    • Message below the vote bar indicates the rejection reason and obeys the order of precedence:
      1 - Quorum Not Met;
      2 - Declined;
      3 - Request Not Chosen (Proposed for RFP, only).
      image

@@ -69,7 +85,11 @@ const ProposalsListItem = ({
) : (
<div className={styles.voteResult}>
{quorumPass ? (
voteResult
linkto && !approved && voteResult !== "declined" ? (
<T id="proposals.rfpRejected" m="Request not chosen" />
Copy link
Member

Choose a reason for hiding this comment

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

This is a proposal, not a request, so a better string is probably "Proposal not chosen"

<div className={styles.proposedToRfp}>
<T
id="proposal.overview.proposedToRfp.label"
m="Proposed for {linkto}"
Copy link
Member

Choose a reason for hiding this comment

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

I'd suggest using the long name here as well as the ID, eg:

Proposed for The Decred Citadel: The Grand Capital (f84ed1f)

@guilhermemntt
Copy link
Contributor Author

Thanks for the correction and suggestion @jholdstock. I've adopted them.

Copy link
Member

@vctt94 vctt94 left a comment

Choose a reason for hiding this comment

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

Nice job on this PR!

I think it is much more informative this way

@alexlyp alexlyp merged commit 9aca951 into decred:master Jan 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

rejected proposals tab showing approved proposals
4 participants