Skip to content

[FEATURE] Comment Section #833

@TeriyakiThames

Description

@TeriyakiThames

Features

  • Allow users to comment on a subject
  • Hold the comments for review first
  • Display the user's name, faculty, and department in the review

Acceptance Criteria

Features

  • Allow users to comment on a subject
  • Hold the comments for review first (moderation)
  • Display the user's name, faculty, and department with the comment

Acceptance Criteria

Add Comment to a Subject

GIVEN: a user is logged in and viewing a subject page
WHEN: the user types a comment and clicks “Submit”
THEN: the system saves the comment with status = “Pending review”
AND: the comment is not publicly visible yet

Display User Information in Comment

GIVEN: a user submits a comment
THEN: the system attaches the following information to the comment:

  • User’s name
  • Faculty
  • Department

Review and Approve Comments

GIVEN: a comment is in “Pending review” status
WHEN: an admin or moderator approves the comment
THEN: the comment becomes publicly visible on the subject page
AND: it displays:

  • Comment content
  • User’s name
  • Faculty
  • Department

Reject Comments

GIVEN: a comment is in “Pending review” status
WHEN: an admin or moderator rejects the comment
THEN: the comment is not displayed on the subject page
AND: it is either archived or deleted from the system

Prevent Anonymous Comments

GIVEN: the user is not logged in
WHEN: the user tries to submit a comment
THEN: the system blocks the action
AND: displays a message such as “You must be logged in to comment”

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementImprove existing features

    Projects

    Status

    Todo

    Status

    No status

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions