-
Type: Story
-
Status: Closed (View Workflow)
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 3.0 Larks
-
Fix Version/s: 3.0 Larks
-
Labels:
-
Epic Link:
-
Sprint:3.0 Larks
Creating comments
As a user I’d like to be able to comment on questions and answers so I can ask for some additional information on them:
- Given CREATE_POSTS permission user can see comments area with “Add comment“ text after each question and each answer.
- Once cursor is placed to the comments area user should see the comment text area and buttons "Comment" and "Cancel".
- When text of the comment is entered in the text field and the button "Comment" is pressed, the comment must be added below the corresponding question/answer if comment passed validation. Ctrl+Enter hot key must do the same.
- Min comment length is 1 and max comment length is 5 000
- The date of comment and its author should be displayed near the comment text.
- Comments should be sorted by date (oldest to the newest ones) Should the comment be edited it still should be sorted by the date of creation, not the date of edit.
- Comments must not up the topic in the topic list (recent activity, branch page, main page)
- Comments should not be searchable (as for now)
- Owner of the post must get notification on newly added comments
Editing comments
As a user I must have possibility to edit comments in order to be able to add new info to them or correct my mistakes:
- Given EDIT_OWN_POSTS permission user can see Edit icon near the comments left by this user and is able to edit comment left by him.
- Given EDIT_OTHER_POSTS permission user can see Edit icon near the comments left by other users and is able to edit comment left by other users.
- Once user presses Edit icon he should be able to edit text previously left in the comment text field. Comment editing area should contain Save and Cancel buttons.
- Once Save button is pressed, edited comment is saved and is shown in the same order with other comments as before the editing. Ctrl+Enter has the same results.
- Once Cancel button is pressed all changes made in the dialog are not saved and comment is shown in the same order with other comments as before the editing.
- User should be able to edit comment as many times as he wants.
Deleting comments
As a user I should have possibility to delete comments if they were made by mistake or I think they are not informative anymore:
- Given DELETE_OWN_POSTS permission user can see Delete icon near the comments left by this user and is able to delete comment left by him.
- Given DELETE_OTHER_POSTS permission user can see Delete icon near the comments left by other users and is able to delete comments left by other users.
- Once user presses Delete icon he should see confirmation dialog with the text: “Delete this comment?” and buttons “Yes” and “No”
- Once "Yes" button is pressed, the comment is deleted and is not shown to all users anymore. The order of all other comments should remain the same.
- Technical Note: comments must NOT be removed from database - they must be marked as DELETED.
- relates to
-
JC-1986 Question&Answer: create comment UI
- Closed
-
JC-2182 Possibility to add more than 50 comments via Fiddler
- Open
-
JC-2187 "Add your comment" text is overlapping comment block area in Q&A topic type (FF)
- Closed
-
JC-2190 Incorrect Ukrainian translation for Vote Up/Vote Down buttons' tooltips in Q&A Topic
- Closed
- links to