keyshade icon indicating copy to clipboard operation
keyshade copied to clipboard

feat: Add workspace removal notification email template

Open Allan2000-Git opened this issue 4 months ago • 8 comments

User description

Description

This PR adds a project removal notification email template. It provides users with key information regarding the project removal, including project name and removal date.

Fixes #56

Dependencies

No new dependencies introduced.

Future Improvements

Make it consistent with Keyshade's theme.

Mentions

@rajdip-b

Screenshots of relevant screens

Screenshot 2024-10-04 232418

Developer's checklist

  • [x] My PR follows the style guidelines of this project
  • [x] I have performed a self-check on my work

If changes are made in the code:

  • [x] I have followed the coding guidelines
  • [x] My changes in code generate no new warnings
  • [ ] My changes are breaking another fix/feature of the project
  • [ ] I have added test cases to show that my feature works
  • [x] I have added relevant screenshots in my PR
  • [x] There are no UI/UX issues

Documentation Update

  • [ ] This PR requires an update to the documentation at docs.keyshade.xyz
  • [ ] I have made the necessary updates to the documentation, or no documentation changes are required.

PR Type

enhancement


Description

  • Added a new projectRemoval method to the IMailService interface to handle project removal notifications.
  • Implemented the projectRemoval method in MailService with an HTML email template that includes project name and removal date.
  • Added a mock implementation of the projectRemoval method in MockMailService for testing purposes, logging the project removal details.

Changes walkthrough 📝

Relevant files
Enhancement
interface.service.ts
Add `projectRemoval` method to mail service interface       

apps/api/src/mail/services/interface.service.ts

  • Added a new method projectRemoval to the IMailService interface.
  • The method takes email, projectName, and removedOn as parameters.
  • +6/-0     
    mail.service.ts
    Implement project removal notification email template       

    apps/api/src/mail/services/mail.service.ts

  • Implemented projectRemoval method in MailService.
  • Created an HTML email template for project removal notifications.
  • The email includes project name and removal date.
  • +103/-0 
    Tests
    mock.service.ts
    Add mock implementation for project removal notification 

    apps/api/src/mail/services/mock.service.ts

  • Added mock implementation for projectRemoval method.
  • Logs project removal details for testing purposes.
  • +10/-0   

    💡 PR-Agent usage: Comment /help "your question" on any pull request to receive relevant information

    Allan2000-Git avatar Oct 04 '24 18:10 Allan2000-Git