Track: Let authors edit and delete their own issue comments
Linear lets you edit or delete your own comment from its overflow menu and resolve threads (https://linear.app/docs/comment-on-issues). In Track, app/api/track/issues/[id]/comments/route.ts only exposes GET and POST; deleteIssueComment in lib/track-data.ts is never called, and the comment body is also copied into the activity meta, so a typo or a leaked secret stays forever. commentCreateSchema (lib/track-schema.ts) also has no min length, so the API accepts empty comments even though the UI disables the button. First scope: PATCH and DELETE on /api/track/issues/[id]/comments/[commentId] restricted to the author, render the comment from track_issue_comments instead of activity meta, show an edited marker, and require body min(1). Priority: high. Effort: S. Compared with Linear.
Comments 0
No comments yet.
Sign in to comment