Skip to content

[Feature] [Server]: add authentication email templates and improve ATS reliability#163

Merged
Gautam25Raj merged 1 commit into
masterfrom
feature/auth-email-templates-and-ats-improvements
Jun 28, 2026
Merged

[Feature] [Server]: add authentication email templates and improve ATS reliability#163
Gautam25Raj merged 1 commit into
masterfrom
feature/auth-email-templates-and-ats-improvements

Conversation

@Gautam25Raj

Copy link
Copy Markdown
Collaborator

Summary

This pull request introduces a new set of authentication email templates for user onboarding and security notifications while improving the resilience of the ATS AI pipeline. It also includes fixes for quota reset calculations, expanded test coverage, and template rendering improvements.

What's Changed

Authentication & Email

  • Added a login alert email template to notify users of new sign-in activity.
  • Added an OTP email template for verification and authentication workflows.
  • Added a welcome email template to onboard new users and help them get started with VeriWorkly.

ATS Improvements

  • Enhanced the ATS AI service to gracefully handle nullable fields returned by AI models.
  • Improved parsing resilience for missing or incomplete AI-generated content.
  • Fixed quota TTL calculations to ensure accurate reset times for ATS usage limits.

Testing

  • Added comprehensive tests for authentication services and email functionality.
  • Expanded test coverage for rate limiting middleware, mailer utilities, and authentication configuration.
  • Added tests to validate ATS conversion handling for null and missing AI responses.

Template Improvements

  • Updated the mock template library to correctly render visible sections and items.
  • Improved project rendering consistency across the Atelier and Signal templates.

Notes

  • No breaking changes are introduced.
  • These changes improve authentication communications, strengthen ATS processing reliability, and expand automated test coverage across critical platform services.

Type of Change

  • 🐛 Bug fix (non-breaking change which fixes an issue)
  • ✨ New feature (non-breaking change which adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • 📝 Documentation update
  • 🧪 Tests (adding or updating tests)

Checklist

  • I have read the CONTRIBUTING.md document.
  • My code follows the style guidelines of this project.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • My changes generate no new warnings.
  • I have added tests that prove my fix is effective or that my feature works.
  • New and existing unit tests pass locally with my changes.
  • Any dependent changes have been merged and published in downstream modules.

- Implemented `renderLoginAlertEmail` for notifying users of new logins.
- Created `renderOtpEmail` for sending one-time passwords for various actions.
- Developed `renderWelcomeEmail` to welcome new users and guide them to start using the platform.

refactor: enhance ATS AI service with nullable fields

- Updated schemas in `atsAiService` to handle nullable strings and arrays, improving resilience against missing data.

fix: adjust ATS quota service to handle TTL correctly

- Fixed TTL calculation in `atsQuotaService` to ensure accurate reset times for user quotas.

test: add comprehensive tests for authentication and email services

- Created tests for rate limiting middleware, mailer functions, and better auth configuration.
- Ensured resilience in parsing LLM conversion outputs with null or missing fields.

chore: update mock template library for improved project rendering

- Enhanced `AtelierTemplate` and `SignalTemplate` to filter and display visible sections and items correctly.
@Gautam25Raj Gautam25Raj added enhancement New feature or request backend server-side logic api API-related changes or issues labels Jun 28, 2026
@Gautam25Raj Gautam25Raj merged commit a976ba2 into master Jun 28, 2026
10 checks passed
@Gautam25Raj Gautam25Raj deleted the feature/auth-email-templates-and-ats-improvements branch June 29, 2026 07:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api API-related changes or issues backend server-side logic enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant