DXgovernance / DAVI

DAVI - Decentralised Autonomous Voting Interface
https://project-davi.dev
GNU Affero General Public License v3.0
9 stars 15 forks source link

Get all discussions for guild and display in cards #176

Closed rossneilson closed 2 years ago

rossneilson commented 2 years ago

Blocked by #175

Design for discussion cards: Screenshot 2022-08-02 at 16 18 27

We can call getPosts() by specifying the context as the guild address. In future we will do more filtering to only get the high level discussions then fetch more data but for now we can do just this.

https://orbis-web-teal.vercel.app/developers/api-documentation/getPosts

We can set the body to a json object that includes the title then the body.

This should be infinitely scrolling for now and we will put a limit on it eventually.

We also want to poll this for new data, for now lets set that to 10 seconds and change it later.

Reactions and replies will be 0 for now and fetched later

rossneilson commented 2 years ago

We have a new feature that I believe lets us get only our discussion posts and not all the replies to that discussion.

Image

https://orbis.club/developers/api-documentation/getPosts

dcrescimbeni commented 2 years ago

The margins for the proposal cards are 24px all around, but the margins for the discussion cards are 24px on the sides and 20px top/bottom. Should we unify margin sizes, or was it intentional?

Also, do the discussion card interactions on hover are the same as the proposal cards? Meaning: highlight border and content.

rossneilson commented 2 years ago

Will need to check with @pimato on margins but the discussion cards are meant to be more compact.

And I believe hover activity is supposed to be the same, at least it makes sense like that