NEAR-DevHub / neardevhub-bos

DevHub Portal Product UI (Hosted BOS) – Includes other instances (e.g. Infrastructure, Events)
https://neardevhub.org
MIT License
24 stars 23 forks source link

Proposal form #633

Closed elliotBraem closed 7 months ago

elliotBraem commented 10 months ago

User story

As someone who has a proposal

I need a proposal form

So that I can register and edit my proposal, and submit it for review

Overview

This is the front end and backend story for implementing the "Proposal" page. Note the acceptance criteria about tests, and that test driven development is encouraged, with the full End-To-End coverage that includes posting transactions to the smart contnract.

1) Implement Layout:

Image

2) Implement Components

Image

3) Backend (contract):

  1. To add a proposal, user calls a function on devhub.near contract
  2. devhub.near records the proposal internally and assigns the ID (just a sequential number: 1, 2, ...)
  3. devhub.near contract will make a cross-contract call to social.near to publish the Social Post on behalf of devhub.near account
  4. devhub.near contract needs to also capture the reference to the Social Feed post, which is referenced by the block height at the time of publication - this is now possible through https://github.com/NearSocial/social-db/pull/16
  5. notifications on proposals can refer to the social feed post rather than the proposal itself, so that we can get functionality for likes, comment and repost notifications out of the box. Other types of notifications such as moderator changes on progress timeline can also be connected to the social feed post.

Acceptance Criteria

PolyProgrammist commented 9 months ago

Contract side ticket is here: https://github.com/NEAR-DevHub/neardevhub-contract/issues/89