This screen turns the inbox into email. The person enters an address, confirms it from a link sent to that address, and can later change it or turn email off. Its screen component is ActivityEmailScreen.
At a glance
Tab | Activity |
Route |
|
Presentation | Pushed |
Title | Inline "Email notifications" ( |
How you get here | The settings action on the Activity inbox |
Where it leads | Back to the inbox; the Me tab when there is no identity |
Anatomy
Navigation bar. Back button and the inline title. No trailing actions.
Section "Email", the Email status panel:
A status line: "No email configured", "Pending verification: reader@example.com", "Pending verification: reader@example.com (link expired)" or "Verified: reader@example.com".
An email field, placeholder "you@example.com", prefilled with the saved address.
A button row: "Enable" when no address is saved, "Change" when one is.
Footer: "We'll send a link to verify your address before emailing you notifications."
Verification section, only while pending or expired: a grey sentence and the row "Resend verification email".
Pending: "Check your inbox and open the verification link. This screen updates automatically."
Expired: "Your verification link expired. Request a new email to finish setup."
Removal section, only when an address is saved: the row "Turn off email notifications".
Error section, after a failed action, in -exact-system-red.
States
State | What is shown |
|---|---|
No identity, or its key is not on this device | One section: "Choose an identity to set up email notifications." and a row "Open Me" |
Loading | "Loading email settings…" |
Load failed | The message in secondary colour and a row "Retry" |
Off | Status "No email configured", button "Enable", no other sections |
Pending | Status "Pending verification: …", the verification section, the removal row. The screen checks every 3 seconds and flips to verified by itself |
Expired | Status ends with "(link expired)", the expired sentence, "Resend verification email" |
Verified | Status "Verified: …", button "Change", the removal row |
Saving | The field and all three buttons are disabled |
Invalid input | The error section reads "Enter a valid email address." and nothing is saved |
Actions
Action | Result |
|---|---|
Tap "Enable" or "Change" | Saves the typed address (trimmed, lower case) and sends a verification email. Disabled while the field is empty |
Tap "Resend verification email" | Sends a new link; an expired address becomes pending again |
Tap "Turn off email notifications" | Removes the address at once, with no confirmation. The status returns to "No email configured" and the field empties |
Tap "Retry" | Loads the settings again |
Tap "Open Me" | Switches to the Me tab |
Components used
Component | Kind | What it does here |
|---|---|---|
Inline part | The status line, field and button of the "Email" section, with the verification and removal sections | |
Primitive | The inset grouped list and its sections | |
Primitive | The navigation bar, the "Email" header and its footer | |
Primitive | "Enable" or "Change", "Resend verification email", "Turn off email notifications", "Retry", "Open Me" | |
Primitive | The email | |
Primitive | Status, help and error lines |
It uses no named component and no platform part.
Why it is designed this way
The status is a sentence, not a badge. The first row says in words where things stand, including the address it is about. One line covers four states, so the layout never jumps (Voice and wording).
Each state adds only the section it needs. Off shows one card. Pending adds a card that says what to do next. A saved address adds the way out. The screen grows with the situation instead of showing disabled controls (Honest state).
It waits for you. After the person leaves to open their mail, the screen keeps checking and updates itself, and it says so: "This screen updates automatically." No "I have verified" button is needed (inferred from the string and the 3 second check).
Pushed, not a sheet. It is a settings page reached from a bar action, with no draft to cancel: each button acts at once. A push with a back button fits that; sheets in this app are for tasks with "Cancel" (Stacks, pushes and sheets, inferred).
Plain button rows. Actions are rows in the grouped list, tinted by the platform, as in Settings (Buttons and actions, Forms and inputs).
One gap: "Turn off email notifications" is not styled as destructive and asks for no confirmation. It is easy to undo by entering the address again, which may be why (inferred).
DESIGN.md does not mention this screen. It was added with the notification service work.
User stories
This page helps deliver these stories. Each story lists this page in its Trace, so the link holds in both directions (traceability).
US-ACT-04 Get notifications by email: The email settings screen
Related
Parent: Activity tab screens. Previous: Activity inbox.
Compare other one field settings: Agent server sheet, Server.
Implementation: Activity: screens, tasks and email settings, Activity: notify client and signed requests, Notify service.
Source: activity.contract lines 112 to 168.
Do you like what you are reading? Subscribe to receive updates.
Unsubscribe anytime