CarmineOptions / konoha

A toolkit for DAO-like governance on Starknet
Apache License 2.0
23 stars 33 forks source link

ODHack: Extend Proposal Component to Support Discussions #77

Open tensojka opened 1 month ago

tensojka commented 1 month ago

Description

Extend the current React frontend to support viewing and adding comments to proposals. This involves fetching comment data from IPFS, displaying it, and allowing users to add new comments. The new comments will be submitted to IPFS via a backend service, and the resulting IPFS hash will be used to update the proposal on the blockchain.

Expected skill level: Junior Frontend Developer

Tasks

Frontend

  1. Fetch Comments from IPFS:

    • Modify the Proposal component to fetch IPFS file hashes from the contract.
    • Download comment content from IPFS.
    • Display comments along with the submitter's address or Starknet.ID and their governance token balance.
  2. Add Comments to Proposals:

    • Add a form to the Proposal component for submitting new comments.
    • On form submission, call the backend with the comment text.
    • Receive the IPFS file hash from the backend.
    • Prompt the user to confirm the transaction in their wallet to update the proposal with the new comment hash.

Pointers

Frontend Code

Definition of Done

The frontend is fully static and ready to be deployed, is formatted according to VSCode Typescript Format command

See CONTRIBUTING.md for information on claiming the task and how to work.

kateberryd commented 1 month ago

@tensojka Please I would love to work on this

tensojka commented 1 month ago

@kateberryd You have been assigned, I would advise you join the Telegram group for quicker communication.

kateberryd commented 1 month ago

Thank you @tensojka Please what's the telegram handle

tensojka commented 1 month ago

Thank you @tensojka Please what's the telegram handle

https://github.com/CarmineOptions/konoha/blob/master/CONTRIBUTING.md @kateberryd

tensojka commented 1 month ago

@kateberryd Could you provide an estimated delivery timeline?

kateberryd commented 1 month ago

I’m considering a time frame of five working days @tensojka