← 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.

show.png

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:

  1. Add thread db / backend code - a thread is a set of comments ordered by insertion date. A task has an associated thread.
  2. 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:

  1. Backend: Add thread migration (create tables and update task to have a thread)
  2. Backend: TaskComments context
  3. Backend: Add seed data
  4. Backend: Load thread on task/show page
  5. Frontend: Add comment count to task/index rows
  6. Frontend: Display comments on task/show
  7. Frontend: Edit / delete existing comment
  8. Frontend: Add new comment
T
tyro 1 year ago

Comments now live! 🚀

❤️ 1
tyro reacted with :heart
🎉 1
tyro reacted with :celebration
Status
Done
Assignee
T
tyro
Due Not set
Following
No one
Follow You're not tracking this item.