Skip to content

πŸ› οΈ Implement Edit & Delete Post FeatureΒ #8

Description

@zainphp

Allow users to edit and delete their own posts.
Moderators should have the ability to delete any post if it violates community guidelines.


βœ… Tasks

  • UI/UX

    • Add Edit button on post detail page (visible only to authors).
    • Add Delete button on post detail page (visible to authors & moderators).
    • Create edit form (reuse create form) with existing post data pre-filled.
    • Show confirmation modal before deleting.
    • Provide feedback (success/error toast).
  • Backend / Fullstack Logic

    • Implement update functionality for posts (only authors).
    • Implement delete functionality (authors for own posts, moderators for all posts).
    • Ensure ownership & role-based authorization checks.
  • Testing & QA

    • Add unit tests for update & delete operations.
    • Add integration tests for authorization rules.
    • Test UI flow for edit & delete actions.

🏁 Acceptance Criteria

  • Authors can edit their own posts (title, description, attachments, authors).
  • Authors can delete their own posts.
  • Moderators can delete any post.
  • Confirmation modal shown before deletion.
  • Success/error feedback is displayed after action.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    πŸ“ POST & INTERACTIONSCore features like creating posts, editing, deleting, commenting, and liking.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions