IntersectMBO / IntersectMBO/govtool
💡 Add Option to Edit and Remove Comments in Budget Proposal and Proposal Discussion Forum Sections
- Dominant language
- HTML
- Stars
- 21
- Forks
- 29
- Avg merge
- 2d 22h
- Merged PRs (30d)
- 7
Description
### Area
Other
### Is there new design needed?
Yes
### What?
Introduce the ability for users to **edit** or **remove** their own comments in both the **Budget Proposals** and **Proposal Discussion Forum** sections. This functionality should include a **time window** during which editing or removal is allowed (e.g., within 1 hour of posting).
### Why?
- Allows users to correct mistakes, typos, or improve clarity after posting.
- Prevents long-standing comments from being changed in ways that might disrupt context.
- Encourages better engagement while maintaining integrity of discussions.
### How?
- Add **edit** and **delete** icons next to comments posted by the currently logged-in user.
- Enable editing or removal **only within a predefined time window** (e.g., 1 hour).
- Display a small notice on edited comments (e.g., "edited").
- After the time window, editing and deletion should no longer be available.
- Apply the same logic across both **Budget Proposals** and **Proposal Discussion Forum** sections.
### (Optional) User Story with acceptance criteria
## User Story
> As a **community member**,
> I want to be able to **edit or remove my comments** within a short time after posting,
> so that I can correct mistakes without affecting long-term discussion integrity.
## Acceptance Criteria
- [ ] Users can **edit** or **remove** their own comments within a **defined time window** (e.g., 1 hour).
- [ ] **Edit** and **delete** options are only visible for the user’s own comments.
- [ ] Edited comments are labeled with an **"edited"** tag.
- [ ] After the time window expires, comments become **read-only**.
- [ ] Functionality is available in both **Budget Proposals** and **Proposal Discussion Forum** sections.
Contributor guide
Assessment
This issue has not been assessed yet.