-
-
Notifications
You must be signed in to change notification settings - Fork 190
feat(api): added support for email preferences #978
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(api): added support for email preferences #978
Conversation
PR Reviewer Guide 🔍(Review updated until commit d7bdb9e)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to d7bdb9e
Previous suggestions✅ Suggestions up to commit 15c5233
|
apps/api/src/workspace-membership/workspace-membership.service.ts
Outdated
Show resolved
Hide resolved
apps/api/src/workspace-membership/workspace-membership.service.ts
Outdated
Show resolved
Hide resolved
@Allan2000-Git, please resolve all open reviews! |
… handling in notifications
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The tests are failing
@Allan2000-Git, please resolve all open reviews; otherwise this PR will be closed after Wed May 28 2025 18:24:54 GMT+0000 (Coordinated Universal Time)! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving this for now. We need a dedicated notification service to take care of these.
## [2.23.0-stage.1](v2.22.3-stage.3...v2.23.0-stage.1) (2025-06-04) ### 🚀 Features * **api:** added support for email preferences ([#978](#978)) ([f7e5028](f7e5028))
🎉 This PR is included in version 2.23.0-stage.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
## [2.23.0](v2.22.2...v2.23.0) (2025-06-05) ### 🚀 Features * **api:** add cross-platform sleep utility for e2e preparation ([#985](#985)) ([befb695](befb695)) * **api:** added support for email preferences ([#978](#978)) ([f7e5028](f7e5028)) * **platform:** Integration setup ([#976](#976)) ([ac98f27](ac98f27)) ### 🐛 Bug Fixes * **cli:** keyshade run wouldn't decrypt encrypted [secure]s ([13a9c11](13a9c11)) * **platform:** Suspense boundary fix ([#983](#983)) ([dedba9b](dedba9b)) * **web:** Broken blog link on the footer > web page ([#980](#980)) ([8dac31b](8dac31b)) ### 📚 Documentation * **cli:** add download badge ([9999ec8](9999ec8)) ### 🔧 Miscellaneous Chores * **release:** 2.22.3-stage.1 [skip ci] ([73cc605](73cc605)) * **release:** 2.22.3-stage.2 [skip ci] ([b2a605e](b2a605e)) * **release:** 2.22.3-stage.3 [skip ci] ([3acae33](3acae33)) * **release:** 2.23.0-stage.1 [skip ci] ([b7ff3f7](b7ff3f7)) * **release:** 2.23.0-stage.2 [skip ci] ([291b22d](291b22d)) * **release:** 2.23.0-stage.3 [skip ci] ([81fc3b2](81fc3b2)) ### 🔨 Code Refactoring * **platform:** Improve readability and maintainability ([#977](#977)) ([be4bad0](be4bad0))
🎉 This PR is included in version 2.23.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
User description
Description
This PR adds support for user-configurable email preferences. Users can now choose which types of emails they want to receive: promotional, operational, and critical. This includes:
Pending:
Integrating email preferences to other mail services
Fixes #122
Dependencies
N/A
Future Improvements
N/A
Mentions
@rajdip-b
Developer's checklist
If changes are made in the code:
PR Type
Enhancement, Tests
Description
Add
EmailPreference
model and schema to PrismaUser
andEmailPreference
Integrate email preferences into user creation and update flows
Enforce email preferences in notification logic
Update API schemas and e2e tests for email preferences
Changes walkthrough 📝
8 files
Add EmailPreference model and user relation in Prisma schema
Migration for EmailPreference table and indexes
Create user with default email preferences; include in fetch
Update user service to handle email preferences on update
Add DTO for updating email preferences in user update
Extend user types with EmailPreference
Enforce email preferences for workspace notifications
Add emailPreference to UserSchema and update request schema
10 files
Add emailPreference to test user objects
Add emailPreference to test user objects
Add emailPreference to test user objects
Add emailPreference to test user objects
Add emailPreference to test user objects
Add emailPreference to test user objects
Add emailPreference to test user objects
Add emailPreference to test user objects
Add emailPreference to test user objects
Add emailPreference to test user objects