feat: Arbitrator Assignment Notification (Issue #126)#3
Open
FaithOnuh wants to merge 1 commit into
Open
Conversation
…r-xcrow#126) - Migration: on_arbitrator_assigned pref column + in_app_notifications table - TemplateId::ArbitratorAssigned with email/SMS/push templates including dispute summary and link - NotificationService.notify_arbitrator_assigned: triggered on dispute_raised events that carry an arbitrator field; respects email opt-out preference - Always creates in-app notification record regardless of channel prefs - DB: create/list/mark-read/mark-all-read for in_app_notifications - Routes: GET /notifications/inbox/:address PATCH /notifications/inbox/:address/:id/read POST /notifications/inbox/:address/read-all Closes Stellar-xcrow#126
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary of Changes
20260330000001_arbitrator_notifications.sql:on_arbitrator_assignedcolumn added tonotification_preferencesin_app_notificationstable with unread indexTemplateId::ArbitratorAssignedwith email/SMS/push templates (includes trade summary + dispute link)NotificationService.notify_arbitrator_assigned: triggered ondispute_raisedevents that carry anarbitratorfield; respects email opt-out preferencecreate/list/mark-read/mark-all-readforin_app_notificationsGET /notifications/inbox/:address— list in-app notifications (?unread_only=true)PATCH /notifications/inbox/:address/:id/read— mark single as readPOST /notifications/inbox/:address/read-all— mark all as readCloses Stellar-xcrow#413