dominictarr / feedopensource

Iteratively Fund Open Source Projects With Bitcoin
feedopensource.com
MIT License
142 stars 16 forks source link

Feature: iteration status badge #2

Closed dominictarr closed 10 years ago

dominictarr commented 10 years ago

The status of an iteration is displayed via a png, just like a travis ci badge. http://about.travis-ci.org/docs/user/status-images/

this provides a very simple way to add a third party semi-dynamic element into another site. It's a technique already used by a number of github services.

In the context of feedopensource a iteration status would probably show:

probably this can be implemented as a progress bar that goes through two stages - first it shows the funding building up, and then when work on that iteration begins, it shows the proportion of tasks that are complete (a task is considered complete when the issue has been closed)

A badge would be added to the page like this:

[iteration badge](https;//feedopensource.com/iteration/{user}/{repo}/{wallet_id}.png#{target})

(edit: changed url pattern)

If feedopensource looked at the referer header, then it would know what github issue it was a part of and display information about just that issues! Otherwise, feedopensource would read all the issues and (or use github api) to read find the new Iteration issue, and then parse it to find out which tasks are a part of that iteration.

The project maintainer creates a bitcoin wallet ({wallet}) for that iteration, and a target amount ({target} of bitcoins that they think they'll need to start working on / complete that iteration)

Because github aleady has back links for when an issue is refered to, you'll be able to see whether an issue is part of an iteration!

dominictarr commented 10 years ago

The issue badge should also be a link that takes you to a page showing project history and giving you information needed to fund.

dominictarr commented 10 years ago

This isn't perfect yet - like, a empty badge is hard to read (if it hasn't had any funding yet, look as #20 (if that has started it's too late)

But, this does show the basic information that needs to be shown, including progress on the iteration's tasks.

So, I'm gonna close this, and maybe we can make improvements next iteration.