-
Notifications
You must be signed in to change notification settings - Fork 2
Work Items: Edit/Delete comments in timeline #192
Copy link
Copy link
Closed
Description
Problem
Comments in the Work Item timeline (/work-items/ page) cannot be edited or deleted. The timeline uses CommentCard.vue which has no edit/delete UI — unlike the Issues page which uses IssueComment.vue with full edit/delete support.
Scope
1. Issue & PR comments (IssueComment type)
- Add edit/delete buttons to
CommentCard.vue(or replace withIssueComment.vuepattern) - Reuse existing
PATCH /api/issues/commentsandDELETE /api/issues/commentsendpoints - Respect
viewerCanUpdate/viewerCanDeletefrom GraphQL (needs to be added to work item detail query)
2. PR review comments
- New endpoint:
PATCH /api/pull-requests/review-comments(GitHub GraphQLupdatePullRequestReviewComment) - New endpoint:
DELETE /api/pull-requests/review-comments(GitHub GraphQLdeletePullRequestReviewComment) - Add edit/delete UI to
ReviewCommentThread.vue
3. PR/Issue body (initial comment)
- Reuse existing
PATCH /api/issues/bodyendpoint - Add edit button to the initial timeline entry
Notes
- Issues page will be removed — Work Items is the single view going forward
useIssueDetailcomposable already hassaveComment,removeComment,saveBody— wire these into the work item timeline
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels