Commit graph

6 commits

Author SHA1 Message Date
mplorentz
83a8bb1572 Send include_event tag with 30390
Some checks failed
CI / lint-check-build (pull_request) Has been cancelled
2026-08-27 15:44:37 -04:00
mplorentz
dd1182cb32 Save email notification prefs to app settings
Some checks failed
CI / lint-check-build (pull_request) Has been cancelled
2026-08-27 15:08:37 -04:00
mplorentz
c0f545350c Merge branch 'dev' into email-notifications
Some checks failed
CI / lint-check-build (pull_request) Has been cancelled
2026-08-24 14:40:44 -04:00
Agent
5cbc1e459c Show email registration errors in UI
- Add error field to EmailNotificationState type
- Set user-friendly error messages in MailNotifications.register() for:
  missing signer, missing server config, NIP-98 auth failure,
  network errors, and server errors
- Clear error on successful registration
- Show inline error banner in the email settings card
- Return early on registration failure (like push does)
- Clear error when user edits email/frequency or clicks reset
2026-08-20 12:22:53 -04:00
mplorentz
725ef45d9d Fix signer error 2026-08-20 11:51:26 -04:00
Agent
fee6f565ff Email notifications: settings UI + mail adapter
- Add VITE_EMAIL_NOTIFICATION_SERVER env var
- Extend notificationSettings with email, emailFrequency, emailAddress
- Add emailNotificationState store in push/adapters/common.ts
- New src/app/mail/index.ts with MailNotifications class:
  register/unregister with mailship via NIP-98 auth,
  publish kind 30390 NIP-9a subscription events
- Wired into alerts settings save handler
- Email Digest Settings card in alerts UI
2026-08-20 11:15:35 -04:00