Skip to content

fix: add email input handler to Weekly Digest subscribe section #458

Open
rachel-d-07 wants to merge 4 commits into
imDarshanGK:mainfrom
rachel-d-07:fix/weekly-digest-email-input
Open

fix: add email input handler to Weekly Digest subscribe section #458
rachel-d-07 wants to merge 4 commits into
imDarshanGK:mainfrom
rachel-d-07:fix/weekly-digest-email-input

Conversation

@rachel-d-07
Copy link
Copy Markdown

…s #422)

Description

The Weekly Digest section in the footer had no submit event handler in script.js,
making the Subscribe button completely non-functional. Users had no way to enter
or submit their email address. Added a form submit listener with validation and
a success confirmation message.

Related Issue

Fixes #422

Type of change

  • Bug fix
  • New feature / enhancement
  • Documentation update
  • Test addition
  • Refactor

Checklist

  • I have read CONTRIBUTING.md
  • My branch is up to date with main
  • I have run pytest -v and all tests pass
  • I have not introduced duplicate issues or features
  • My PR title follows the format: feat/fix/docs/test: short description
  • I have added tests for new features (Level 2 and 3 issues)
  • No hardcoded secrets or API keys in my code
  • This PR is linked to a GSSoC 2026 issue

Screenshots (if frontend change)

Before: Only a Subscribe button with no email input - clicking did nothing.
After: Email input field appears next to Subscribe button. Entering a valid
email and clicking Subscribe shows "✓ You have been subscribed!" confirmation.
Screenshot 2026-05-30 115749

Test evidence

This is a frontend-only JS fix. No backend changes were made.
pytest -v is not applicable for this change.

@rachel-d-07 rachel-d-07 requested a review from imDarshanGK as a code owner May 30, 2026 06:59
@imDarshanGK
Copy link
Copy Markdown
Owner

@rachel-d-07 update your branch with the latest main changes

@rachel-d-07
Copy link
Copy Markdown
Author

rachel-d-07 commented May 30, 2026

I have updated my branch

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.

[Bug] Weekly Digest subscribe button has no email input field — users cannot subscribe

3 participants