Skip to content

Feature/autorenewal notifications#15

Merged
krakenhavoc merged 2 commits intomainfrom
feature/autorenewal-notifications
Mar 11, 2026
Merged

Feature/autorenewal notifications#15
krakenhavoc merged 2 commits intomainfrom
feature/autorenewal-notifications

Conversation

@krakenhavoc
Copy link
Contributor

This pull request introduces a system for requiring free-tier users to periodically confirm their intent to keep certificate auto-renewal active. If a user does not confirm within six months, auto-renewal is paused, and a notification email is sent. The frontend displays a banner prompting users to confirm, and backend logic enforces this lapsed state for certificate renewals. The implementation includes new database fields, API endpoints, backend checks, notification emails, and frontend UI.

Backend: Auto-renewal confirmation enforcement

  • Added autoRenewalConfirmedAt and autoRenewalReminderSentAt fields to the User entity and database schema to track confirmation and reminder status. [1] [2]
  • Implemented backend logic in CertMonitorService to pause auto-renewal for free-tier users who have not confirmed in the last six months, including caching and reminder email logic. [1] [2] [3] [4]
  • Added a new API endpoint POST /auth/confirm-auto-renewal for users to confirm auto-renewal, resetting the confirmation timestamp. [1] [2] [3] [4]
  • Updated user creation and profile responses to include the confirmation timestamp. [1] [2]

Notifications

  • Added a new email template and sending logic to notify users when auto-renewal has been paused due to lapsed confirmation. [1] [2] [3] [4]

Frontend: User experience

  • Added a banner to the dashboard (Overview.tsx) for free-tier users, prompting them to confirm auto-renewal or informing them when auto-renewal is paused, with logic to handle confirmation and dismissal. [1] [2] [3]
  • Integrated the new confirmation endpoint into the frontend and updated shared API routes. [1] [2]

Testing and plumbing

  • Updated tests and module imports to support the new user fields and repository injections. [1] [2] [3] [4] [5] [6] [7] [8]

@krakenhavoc krakenhavoc merged commit 69dde39 into main Mar 11, 2026
21 checks passed
@krakenhavoc krakenhavoc deleted the feature/autorenewal-notifications branch March 11, 2026 12:06
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.

1 participant