Requirement EPIC
- Epic
- MVP2 · E14 · Notifications: email, SMS, push
- Stories in this module
- 4
DELIVERY-V2-E14-01 Notification preferences
Size SDelivery
- AC1
/account/notifications has toggles per channel (email on by default; SMS and push off) and per event (batch extracted, review needed, payment succeeded, files ready).
DELIVERY-V2-E14-02 Phone verification and SMS
Size MIdentity (phone) and Delivery (SMS)
- AC1Adding a phone number sends a 6-digit code using the hand-built code service from IDENTITY-V2-E8-03. The number is saved only after verification, in E.164 format.
- AC2SMS goes through Twilio (or AWS SNS, recorded in the decision log), with at most 10 messages per user per day.
- AC3Replying STOP opts the user out and is reflected in their preferences. The SMS says "Reply STOP to opt out".
- AC4SMS never contains file contents or links that work without signing in.
DELIVERY-V2-E14-03 Web push
Size MDelivery
- AC1A service worker and VAPID keys (
web-push library) power an "Enable notifications" button that asks for browser permission only when I click it. - AC2Multiple devices per user are supported. Subscriptions that come back 404 or 410 are deleted automatically.
- AC3Works on desktop Chrome and Android Chrome, and on iOS when 01scale.com is added to the home screen (documented with the steps).
DELIVERY-V2-E14-04 Notification dispatcher and log
Size MDelivery
- AC1One
notify(userId, event, payload) function sends to every enabled channel. Events are triggered by the server (webhooks or pipeline), never the browser. - AC2Each attempt is logged per channel (sent, failed, skipped because of preferences) and shown on
/account/notifications. - AC3Failures retry up to 3 times. If one channel fails, the others still send.
All Delivery V2 epics and stories on GitHub →