-
Notifications
You must be signed in to change notification settings - Fork 70
Edit Comments Frontend Functionality #2278
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@HS-90 is attempting to deploy a commit to the c0d3-prod Team on Vercel. A member of the Team first needs to authorize it. |
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Codecov Report
@@ Coverage Diff @@
## master #2278 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 177 177
Lines 3036 3066 +30
Branches 811 818 +7
=========================================
+ Hits 3036 3066 +30
|
flacial
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really cool feature!
Title: enhancement : adds ability to edit comments on a submission
Description: closes #893
This PR will allow users to edit their own comments on submissions from the frontend. Clicking the edit button will allow users to make changes to existing comments, as well as discarding changes, which will revert the comment to it's original state pr previously saved edit.
To test: login as a Dummy 'Admin' user, try to create then edit existing comments. You can then log out and login as another user(such as 'Leetcoder'), You should now see that you can no longer edit or delete comments that were created by "Admin".
Note:
querySelectorclasses were used to select button elements in the test file, as our custom Button components do not accepttest-idas a prorp