1
0
mirror of https://github.com/immich-app/immich.git synced 2024-11-28 09:33:27 +02:00
immich/e2e
Nicolò 9bce3417e9
feat(server): email notifications (#8447)
* feat(server): add `react-mail` as mail template engine and `nodemailer`

* feat(server): add `smtp` related configs to `SystemConfig`

* feat(web): add page for SMTP settings

* feat(server): add `react-email.adapter`

This adapter render the React-Email into HTML and plain/text email.
The output is set as the body of the email.

* feat(server): add `MailRepository` and `MailService`

Allow to use the NestJS-modules-mailer module to send SMTP emails.
This is the base transport for the `NotificationRepository`

* feat(server): register the job dispatcher and Job for async email

This allows to queue email sending jobs for the `EmailService`.

* feat(server): add `NotificationRepository` and `NotificationService`

This act as a middleware to properly route the notification to the right transport.
As POC I've only implemented a simple SMTP transport.

* feat(server): add `welcome` email template

* feat(server): add the first notification on `createUser` in `UserService`

This trigger an event for the `NotificationRepository` that once processes
by using the global config and per-user config will carry the payload to the right notification transport.

* chore: clean up

* chore: clean up web

* fix: type errors"

* fix package lock

* fix mail sending, option to ignore certs

* chore: open api

* chore: clean up

* remove unused import

* feat: email feature flag

* chore: remove unused interface

* small styling

---------

Co-authored-by: Jason Rasmussen <jrasm91@gmail.com>
Co-authored-by: Daniel Dietzler <mail@ddietzler.dev>
Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
2024-05-02 15:43:18 +01:00
..
src feat(server): email notifications (#8447) 2024-05-02 15:43:18 +01:00
.eslintrc.cjs chore(deps): update dependency eslint-plugin-unicorn to v52 (#8629) 2024-04-08 12:45:46 -04:00
.gitignore web: e2e (#7063) 2024-02-13 13:08:49 -05:00
.nvmrc chore: fvm and node dependency updates and pinning (#9203) 2024-05-01 14:05:18 +01:00
.prettierignore chore: linting (#7532) 2024-02-29 11:26:55 -05:00
.prettierrc chore: linting (#7532) 2024-02-29 11:26:55 -05:00
docker-compose.yml chore: for redis, use service name as the default (#9109) 2024-04-27 11:04:23 -04:00
package-lock.json fix(deps): update typescript-projects (#9169) 2024-04-30 09:49:14 -04:00
package.json chore: fvm and node dependency updates and pinning (#9203) 2024-05-01 14:05:18 +01:00
playwright.config.ts refactor: server auth e2e (#7203) 2024-02-19 12:03:51 -05:00
tsconfig.json chore: linting (#7532) 2024-02-29 11:26:55 -05:00
vitest.config.ts refactor(server): immich-admin list-users (#8862) 2024-04-17 12:27:04 +00:00