Skip to content

feat: Modified discussions FE so that ONLY users with verified emails #789

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

Merged
merged 10 commits into from
Jul 23, 2025

Conversation

sundasnoreen12
Copy link
Contributor

@sundasnoreen12 sundasnoreen12 commented Jul 21, 2025

INF-2037

Description

This PR implements the frontend logic to restrict forum posting (adding posts, responses, or comments) to users with verified email accounts, as per the product requirement.

Key Features:
When a user with an unconfirmed email clicks on “Add a post/response/comment,” they will now see a modal dialog that:

Prompts them to verify their email.

Provides a button to send an account confirmation email.

Informs them to reload the page after verification.

The language and appearance of the dialog follow the design mock provided.

Notes:
This feature is guarded by a backend waffle flag "only_verified_users_can_post".

Screenshot
Screenshot 2025-07-23 at 2 46 20 PM

Merge Checklist

  • If your update includes visual changes, have they been reviewed by a designer? Send them a link to the Sandbox, if applicable.
  • Is there adequate test coverage for your changes?

Post-merge Checklist

  • Deploy the changes to prod after verifying on stage or ask @openedx/edx-infinity to do it.
  • 🎉 🙌 Celebrate! Thanks for your contribution.

Copy link

codecov bot commented Jul 21, 2025

Codecov Report

Attention: Patch coverage is 94.44444% with 4 lines in your changes missing coverage. Please review.

Project coverage is 93.75%. Comparing base (750720f) to head (cc5037b).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
src/discussions/empty-posts/EmptyTopics.jsx 80.00% 1 Missing ⚠️
...sions/in-context-topics/components/EmptyTopics.jsx 80.00% 1 Missing ⚠️
...iscussions/post-comments/comments/CommentsView.jsx 66.66% 1 Missing ⚠️
...ussions/post-comments/comments/comment/Comment.jsx 66.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #789      +/-   ##
==========================================
+ Coverage   93.56%   93.75%   +0.18%     
==========================================
  Files         165      166       +1     
  Lines        3561     3618      +57     
  Branches      957      972      +15     
==========================================
+ Hits         3332     3392      +60     
+ Misses        212      210       -2     
+ Partials       17       16       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@sundasnoreen12 sundasnoreen12 merged commit 76da74a into master Jul 23, 2025
6 checks passed
@sundasnoreen12 sundasnoreen12 deleted the sundas/INF-2037 branch July 23, 2025 12:24
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.

3 participants