Set points on a challenge #363
Description
Restore the ability to set points on a challenge in Direct. This is basically what we used to do for DR points, but we won't call them DR points...
We can probably reuse the old DR points fields if that makes it easier.
On a given challenge, the user will be able to set the usual normal monetary prizes and/or a single points value. So, the can set just $, just points, or $ plus points.
The challenge API should return these points and we'll update community-app to display the points on the listings and details pages (this last part is already done assuming we reuse the DR points field).
We'll potentially need to show/hide this feature per community (topgear vs public vs blockchain vs etc). Let's discuss this part...
UPDATE:
-
Add the points field to the prizes section below the monetary prizes:
-
Only show the ability to set points IF a group has been set on the challenge. Eventually we will set a flag on the group to indicate if points are supported, but for now we can assume if a group is set then points are supported.
-
Calculate fees the same way we do now. So, if $ prizes are empty then the fee is zero. We will iterate on this later.