Skip to content

Sprint 7 M1: edit and delete channel messages and thread replies - #71

Merged
SumitGauswami merged 1 commit into
mainfrom
sprint7/m1-channel-edit-delete
Nov 22, 2026
Merged

SumitGauswami merged 1 commit into
mainfrom
sprint7/m1-channel-edit-delete

Conversation

@202401050

Copy link
Copy Markdown
Collaborator

What

Sprint 7 M1: edit or delete your own channel messages and thread replies.

  • Edit (pencil on hover): in-place edit box, Enter saves, Esc cancels, @mentions work. Shows "(edited)".
  • Delete (bin, with confirmation): the message stays in place as "Message deleted", so threads still make sense (replies and reply count are kept). The text is removed from the database, the Activity feed, Catch Me Up, the Copilot and Decision links.
  • Others' messages get 403, the project Owner included. Viewers can't edit, but can delete their own old messages.
  • Live for everyone via the new socket event message:updated (members only).

API: PATCH / DELETE /api/projects/:id/channels/:channelId/messages/:messageId (thread replies use the same URL).
No database migration needed: old messages read as "not edited, not deleted".

Tests

  • Backend: 1125 / 1125 passed (25 new in channelMessageRules + channelMessageEdits)
  • Frontend: 751 / 751 passed (23 new in channelMessages + ChatPanel.editDelete)
  • Lint: 0 errors
  • New e2e: e2e/tests/sprint7-channel-edit-delete.spec.js

Manual check (done locally, two accounts)

  • Pencil/bin only on my own messages
  • Edit shows "(edited)" live in the other window; Esc cancels; kept after reload
  • Edit adding @TEAMMATE sends one notification
  • Delete shows "Message deleted" in place; "1 reply" still opens the thread
  • Deleted reply stays as "Message deleted"; count unchanged
  • Activity shows "(message deleted)"
  • Everything kept after F5

How to test

  1. git fetch origin && git switch sprint7/m1-channel-edit-delete
  2. npm run install:all, then npm run dev:backend and npm run dev:frontend
  3. Two accounts in one project (second one in incognito, added as Contributor), open Chat and follow the checklist above.

@vercel

vercel Bot commented Nov 22, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
devorbit Ready Ready Preview Nov 22, 2026 6:45am UTC

@SumitGauswami
SumitGauswami merged commit b505902 into main Nov 22, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants