Giveth-dapp: Add templates for milestones to DApp

Created on 29 May 2018  Â·  12Comments  Â·  Source: Giveth/giveth-dapp

Description of the Task:

Add a button to the UI that would allow users chose a optional template. It should be a dropdown that adds profiled text to the description input field depending on the template chosen. The file that should be modified is src/components/views/EditMilestone.jsx. The possible position for the dropdown are marked in the screenshot below (not sure which one would work the best):

screen shot 2018-05-29 at 16 46 10

The description should be checked in the UI (you can add custom validators to src/lib/validators.js) before sent to feathers that it contains the appropriate template text.

Templates that should be supported are:

1. Reward DAO Template

  • Intro: (optional)
    _Intro text talking about what you’ve been working on and why._
  • Description:
    _Description what has been achieved_
  • Proof:
    _Bullet points with links_
  • Video:
    _Embedded video coming from https://fame.giveth.io/_
  • Reward:
    _Amount of points, their type and how much they are worth in ETH and when
    Format should be a list of <amount> <type> at <rate>/<type> which is <amount in ETH> ETH_

2. Regular Reward Template:

  • Intro: (optional)
    _Intro text talking about what you’ve been working on and why._
  • Description:
    _Description what has been achieved_
    _Optionally links to proof_
  • Video: (optional but required if description has no links)
    _Embedded video coming from https://fame.giveth.io/_
    _Intro text talking about what you’ve been working on and why._
  • Amount:
    _Amount in fiat_

3. Expenses Template:

  • Description:
    _Description why is this an expense_
  • The milestone must have expense items and they must have date smaller than today's date

4. Bounties Template:

  • Intro: (optional)
    _Intro text to about the bounty_

    • What:

      _What should be achieved_

  • Why:
    _Why is this a bounty, what is the benefit._
  • Deadline: (optional)
    _By when the bounty needs to be finished_
  • Link to Bounty: (optional)
    _Link to the bounty on for example status open bounties, or issue on github..._

Examples:

Some examples of milestones we already have (but do not necessarily comply with the templates)
1. Reward DAO

2. Regular Rewards

3. Expenses

4. Bounties

Original list of requirements made by @YalorMewn:

https://drive.google.com/open?id=1fzw32FGbH5kdYSgLovf2pUhBXGyRy9LE7Ce9CWam-9I

help wanted good first issue

Most helpful comment

@anshumanv i’ll take care of that installation.

All 12 comments

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


__This issue now has a funding of 0.35 ETH (200.47 USD @ $572.77/ETH) attached to it.__

@vojtechsimetka @GriffGreen Saw this one and thought it looked good for a potential bounty. Hope you guys are doing well 🙂

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


__Work has been started__.

These users each claimed they can complete the work by 8 months, 2 weeks ago.
Please review their action plans below:

1) anshumanv has started work.

No questions for now. Excited to work on this! :)

Learn more on the Gitcoin Issue Details page.

Thank you @vs77bb !

And thank you @anshumanv for taking this, let me know here, on slack or riot if you need any help.

@anshumanv Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!

  • [ ] warning (3 days)
  • [ ] escalation to mods (6 days)

Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days

Working on this already. @gitcoinbot

@anshumanv. :wave: thanks for the atMention, but you need to install @gitcoinbot on this repo for me to be able to respond. More details in the documentation.

:v:
@gitcoinbot

@anshumanv i’ll take care of that installation.

Hi @anshumanv @vojtechsimetka Thanks for commenting with Gitcoin Bot! We're working on some improvements we hope will make it more elegant.

@anshumanv Please do keep us posted with progress / a WIP PR as soon as possible 🙂

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


__Work for 0.35 ETH (152.47 USD @ $435.64/ETH) has been submitted by__:

  1. @anshumanv

@vs77bb please take a look at the submitted work:

  • PR by @anshumanv

@vs77bb can you please take care of the payout? :slightly_smiling_face:

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


__The funding of 0.35 ETH (164.7 USD @ $470.56/ETH) attached to this issue has been approved & issued to @anshumanv.__

Was this page helpful?
0 / 5 - 0 ratings

Related issues

MoeNick picture MoeNick  Â·  6Comments

GriffGreen picture GriffGreen  Â·  4Comments

krrisis picture krrisis  Â·  6Comments

danelsuga picture danelsuga  Â·  6Comments

GriffGreen picture GriffGreen  Â·  7Comments