Feat/438 notification preferences toggle groups, send gate, and one click unsubscribe - #139
Conversation
This migration introduces two new notification types for event-triggered emails in the v6 system: a GIVbacks-eligible badge type and an emailable supporters-update type. The GIVbacks-eligible badge type allows users to receive distinct notifications for their project's GIVbacks eligibility, while the supporters-update type enables users to control email notifications for project updates. The migration also updates existing user settings to ensure proper notification delivery and user preferences are respected. The down method reverts these changes if necessary.
This update introduces a new notification type, GIVBACKS_ELIGIBILITY_GRANTED, to the notification schema. This addition aligns with the ongoing enhancements for GIVbacks-related notifications, ensuring users are informed about their eligibility status. The change is part of the broader effort to improve user engagement and notification accuracy.
This update introduces a new notification case for when a project supported by a user posts an update, ensuring that supporters receive relevant information. Additionally, it clarifies the distinction between GIVbacks eligibility and project verification by introducing a separate `verified-status` attribute for GIVbacks notifications. These changes enhance user engagement and improve the accuracy of notifications related to project activities.
This commit introduces the GIVBACKS_ELIGIBILITY_GRANTED notification type to the general types schema. This change clarifies the distinction between project verification and GIVbacks eligibility, enhancing the notification system to better inform users about their eligibility status. This update is part of ongoing improvements to user engagement and notification accuracy.
This update adds the mapping for the new GIVBACKS_ELIGIBILITY_GRANTED notification type to the Ortto event names, ensuring it is properly integrated into the project-verification activity. This change enhances the notification system by allowing users to receive relevant updates regarding their GIVbacks eligibility status, further improving user engagement and notification accuracy.
This update introduces a new segment validation for the GIVbacks eligibility granted notification type, ensuring it aligns with the existing project-related tracker schema. Additionally, it modifies the project update notification to include a segment, enhancing the notification system's accuracy and user engagement.
This update introduces comprehensive tests for the new v6 event-triggered email notifications, including GIVbacks eligibility and project update notifications. It ensures that the activity creator functions correctly for various notification types and validates the associated segment schemas, enhancing the reliability and accuracy of the notification system.
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (7)
WalkthroughAdds GIVbacks eligibility and supporter project update email events. It adds notification contracts, Ortto activity mappings, segment validators, tests, and a migration for notification types and user settings. ChangesV6 event-triggered emails
Estimated code review effort: 4 (Complex) | ~45 minutes Sequence Diagram(s)sequenceDiagram
participant NotificationEvent
participant activityCreator
participant OrttoActivity
participant SegmentValidator
NotificationEvent->>activityCreator: Send event and payload
activityCreator->>OrttoActivity: Create mapped activity attributes
activityCreator->>SegmentValidator: Resolve and validate segment payload
SegmentValidator-->>activityCreator: Return validation result
Suggested reviewers: Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary by CodeRabbit
New Features
Improvements