Products · Delivery V2

Notifications

Email, SMS and push notifications, with preferences per channel and event.

Planned, not builtModule 15 of 15

ProductRequirement EPICSections

Requirement EPIC

Epic
MVP2 · E14 · Notifications: email, SMS, push
Stories in this module
4

DELIVERY-V2-E14-01 Notification preferences

  • 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

  • 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

  • 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

  • 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.