thenewboston-developers/thenewboston-Frontend

Manual Contributions

Closed this issue · 0 comments

This task is to update the frontend to support the recent backend changes to allow for manual contributions: thenewboston-developers/thenewboston-Backend#194

As background, we are updating our system to allow non-developers to make contributions as well. This includes designers, marketers, etc... To enable this we will allow certain users to submit "manual contributions". You can enable this in the Django admin users model.

Screen Shot 2024-05-19 at 12 01 40 PM

Once enabled, those users are able to create manual (aka non-GitHub) contributions. For example a designer might create a manual contribution with the description "I created 4 new Figma designs today". Our system will then assess that contribution and determine a value for it, similar to how it assesses GitHub PRs.

Screen Shot 2024-05-10 at 9 31 56 PM

Note that the above UI is not entirely accurate. We will not show GitHub related data for manual contributions. Due to these changes, we need to update our frontend to support it. Right now it is breaking.

Screen Shot 2024-05-19 at 11 59 02 AM

We also need to implement the "Create New" button logic which will pop open a modal with a description field. Here is the payload we use to create new contributions.

Screen Shot 2024-05-19 at 12 08 24 PM

Note: We also need to update this endpoint on the backend to not accept a core ID. Instead it will default to TNB. Once the following frontend changes have been made we will merge the frontend and backend in together:

  • update frontend to support new backend changes
  • create new "My Contributions" page on frontend to show the authenticated users contributions
  • create modal to allow users (who have manual contributor permissions) to create manual contributions