← Tasks
Tasks: Comments
We want to let users add comments to tasks. E.g. For progress updates, questions, feedback etc.
This will likely require a refactor of update comments into a more general Thread database table.
UX / UI
Going for simple. Comments will be appended below the task, any project viewer will be able to comment. A comment author will be able to edit/delete their comment.
Out of scope:
- Notifications
- Closing comments
- Subscribing/unsubscribing to tasks
- Admin editing/deletion of comments posted by others
We will handle notifications later as part of a wider approach.
Todos
At a high level:
- Add thread db / backend code - a thread is a set of comments ordered by insertion date. A task has an associated thread.
- Add thread frontend
NB. After much consideration, I’ve decided to implement separate comment tables for task comments and update comments. This means more duplicate code, but is a) more flexible going forward and b) dramatically simplifies the code by reducing branching.
Detailed breakdown:
-
Backend: Add thread migration (create tables and update task to have a thread) -
Backend: TaskComments context -
Backend: Add seed data -
Backend: Load thread on task/show page -
Frontend: Add comment count to task/index rows - Frontend: Display comments on task/show
- Frontend: Edit / delete existing comment
- Frontend: Add new comment
Comments now live! 🚀