Get notifications by email
An identity holder wants their notifications sent to an email address they have proved is theirs, and to change or stop that at any time.

As an identity holder, I want to have my notifications sent to an email address I control, so that I hear about replies and mentions when the app is closed.

Situation

I have an identity selected on this phone and I am in the Activity tab. I do not open the app every day, and I have an email address I do read.

What I do

    Tap the settings button in the top bar of Activity.

    Type my address and tap "Enable".

    Open the message in my mail and follow the verification link.

    Return to the app and see the address verified.

    Later, type another address and tap "Change", or tap "Turn off email notifications".

What I should see

    The Email notifications screen opens with a back button.

    With nothing set up the status reads "No email configured", the field shows the hint "you@example.com", and the button reads "Enable", dimmed until I type.

    Under the field: "We'll send a link to verify your address before emailing you notifications."

    After "Enable" the status reads "Pending verification: reader@example.com". The address is saved trimmed and in lower case.

    While pending I see "Check your inbox and open the verification link. This screen updates automatically." and "Resend verification email".

    Once I have followed the link, the status becomes "Verified: reader@example.com" within a few seconds, with nothing to tap, and the resend row disappears.

    With an address saved, the button reads "Change" and "Turn off email notifications" is offered.

    Changing the address starts verification again for the new one.

    If the link ran out, the status reads "Pending verification: reader@example.com (link expired)" with "Your verification link expired. Request a new email to finish setup." Tapping "Resend verification email" makes it pending again.

    "Turn off email notifications" returns the status to "No email configured" and empties the field.

    The setting belongs to the selected identity: after switching identity the screen shows that identity's own address, or none.

When something goes wrong

    If I type something that is not an address, a red line reads "Enter a valid email address." and nothing is saved. I correct it and tap the button again.

    If the settings cannot be loaded, I see the reason, for example "Notification service is temporarily unavailable.", with "Retry".

    With no identity the screen says "Choose an identity to set up email notifications." with "Open Me".

Not included

    Turning email off happens at once, with no confirmation and no warning colour (Email status panel).

    I cannot choose which kinds of notification are emailed, or how often.

    Verification happens in my mail and browser, not in the app.

Trace

Story US-ACT-04, status Shipped. These links are kept in step with the traceability matrix and with the "User stories" section of every page listed here.

Design

Page

Part it plays

Email notification settings

The email settings screen

Activity inbox

The settings button that leads here

Activity tab screens

Why this screen exists although the original design did not mention it

Email status panel

The status sentence, field, button and footer, and the sections each state adds

input, textarea, select and label

The email field

list and section

The inset-grouped sections with header and footer

button

Enable, Change, Resend and Turn off as row buttons

Forms and inputs

One field, validation on submit, the error section

Every form

The email form among the app forms

Buttons and actions

Plain button rows that act at once

Confirmations and alerts

Turning off has no confirmation

Loading, failure and empty states

Loading, load failure with Retry, no identity

States for every screen

The email settings rows of the state table

Badges, countdowns and connection status

The status sentence and the automatic update

Stacks, pushes and sheets

Pushed, not a sheet

Navigation bars and their actions

The settings bar action on the inbox

Moving between tabs and into the app

"Open Me" from the no-identity state

Honest state: loading, failure and empty

Each state shows only the section it needs

Representative strings

The exact status and help wording

Implementation

Page

Part it plays

Activity: screens, tasks and email settings

ActivityEmailScreen, the draft ownership and the 3 second verification task

Activity: sources, the ask stamp and the committed snapshot

activityApply set-config, resend-config-verification and remove-config

Activity: snapshot model and grouping

emailInput validation; emailState and emailStatus

Activity: notify client and signed requests

The signed writes and service discovery

Crypto: signed envelopes

The signed notify envelope

Identity: key storage

The signer for the selected identity

Notify service

The email config actions, verification and expiry

Root declarations: Activity and Agents

activityEmail and its owner, activityDraft, activityVerification

Navigation and routes

The activity-email route

State, refresh and stale-reply patterns

Polling while pending or expired

Grants and capabilities

The notify network grants

Contract UI tests

The email tests

Mock notify service

The fixture: verify endpoint and the "expired" scenario

The local test server

The combined local server

Bun unit tests

Email verification unit tests

Code

File

What

activity.contract L112-168

ActivityEmailScreen

app.contract L39-42

the activity tab and the activity-email route

app.contract L122-124

activityEmail, activityEmailOwner, activityEmailServer

app.contract L136-140

activityDraft, errors and the activityVerification task

app.contract L384-399

activitySettings, activityEditEmail, activitySetEmail, activityResend, activityRemoveEmail

app.contract L406-414

activityAfterChange

src/activity/sources.ts L22-44

activityApply

src/activity/model.ts L175-199

emailState, emailStatus and emailInput

src/activity/client.ts L47-80

notificationRequest

tools/mock-notify/routes.ts

the notify fixture used by the tests

Tests

File

What it checks

activity.test.contract

activity: email validation, pending, poll verified, change and turn off

activity.test.contract

activity: expired verification can be resent

activity.test.contract

activity: switching identities scopes the inbox and email draft

src/activity/__tests__/activity.test.ts

email verification: normalizes input only at the input boundary; off โ†’ pending โ†’ verified โ†’ off and changing address resets verification; expired links can be resent, pending links are unchanged

Delivery

Delivered by #1470.

Do you like what you are reading? Subscribe to receive updates.

Unsubscribe anytime

Comments