Skip to content
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

Reply anonymously #26

Merged
merged 2 commits into from
Sep 29, 2024
Merged

Reply anonymously #26

merged 2 commits into from
Sep 29, 2024

Conversation

luciafang
Copy link

@luciafang luciafang commented Sep 29, 2024

Description:
I implemented a new feature in the Quick Reply module that allows users to post replies anonymously. The feature provides users with an option to reply to topics without revealing their identity.

I made the following changes:

  1. Anonymous Reply Button:
  • Added a "Reply Anonymously" button next to the existing Quick Reply button in the UI.
  • Attached a click event handler to this new button that calls the postReply function with the anonymous flag set to true.
  1. Refactored postReply Function:
  • Updated the postReply function to accept an additional anonymous parameter.
  • Modified the API call to include the anonymous flag in the request data, allowing the backend to handle anonymous replies.
    Screenshot 2024-09-29 at 2 20 35 PM

Overview: The new "Reply Anonymously" button is visible alongside the existing Quick Reply button which improves students' privacy and encourages more open discussions by providing an option for anonymous participation.

How to Test:

  • Navigate to any discussion thread
  • You can see a "Reply Anonymously" button.

Resolves: #20

@luciafang luciafang changed the title Feat/add quick reply anonymously Reply anonymously Sep 29, 2024
@coveralls
Copy link

Pull Request Test Coverage Report for Build 11089069665

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 81.82%

Totals Coverage Status
Change from base Build 11086119573: 0.0%
Covered Lines: 22348
Relevant Lines: 25872

💛 - Coveralls

@luciafang luciafang merged commit 33244c8 into f24 Sep 29, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants