cbroms / pith

The client and server for the Pith discussion project.
https://pith.is
Apache License 2.0
4 stars 1 forks source link

Beams #45

Open slz4025 opened 3 years ago

slz4025 commented 3 years ago

Is a type of unit. Add two new fields: beam (boolean), purpose (str).

Beams are treated the same as unit in the store. However, they are rendered specially, maybe with a special color, and the purpose should be displayed.

When creating a unit, can choose whether it is a beam. Thus, modify add_unit from add_unit(board_id, text) to add_unit(board_id, text, beam=False, beam_purpose=None).

slz4025 commented 3 years ago

Created backend part. Need to connect with frontend and test.