dialog is a question the app puts over the screen and that must be answered before anything else. Seed Exact writes five, all with role="alertdialog", so iOS draws each as its own system alert: a title, a message, and two actions. They guard the few steps that destroy or expose something: removing an identity, revealing a private key, logging a device out of a vault. One is a prompt with a text field, for renaming a key.
What iOS draws
For dialog role="alertdialog", a UIAlertController alert. The aria-label is the alert's title, the text is its message, each button is an action, and an input among them is the alert's text field. The app writes no layout or style: the centred card, the dimmed background and the button arrangement are the platform's. An alert has no outside: a tap beside it does nothing.
None of the screenshots in the set captures an open alert, so this page describes them from the code.
The five dialogs
| Title ( | Message | Actions | Opened from | Source |
|---|---|---|---|---|---|
| "Remove this identity?" | "Its key is deleted from this device. Without its recovery phrase or a key file, it can’t be recovered." | "Remove" (destructive), "Cancel" | Swiping an identity row on Me | |
| "Remove this identity?" | the same | "Remove" (destructive), "Cancel" | "Remove from this device" on Identity detail | |
| "Rename key" | "Letters, numbers, dashes and underscores." | a field with placeholder "Name", then "Save", "Cancel" | The "Key name" row on Identity detail | |
| "Reveal the private key?" | "The export is your unencrypted private key. Keep it somewhere safe and never share it with anyone you don’t trust." | "Reveal", "Cancel" | "Export key file" on Identity detail | |
| "Log out and clear this device?" | "Your identities remain in your remote vault and on your other devices." | "Cancel", "Log out" (red text) | "Log out and clear this device" on Vault |
The same removal question exists twice because a dialog belongs to the screen that shows it: one copy on Me, one on Identity detail. The root action picks the one for the visible screen (app.contract L605-L610).
Attributes in this app
Element | Attribute | Uses | Meaning |
|---|---|---|---|
|
| 5 | The name an action opens it by, with |
|
| 5 | Makes it the system alert |
|
| 5 | The title, always phrased as the question or the task |
|
| 10 | Every action closes the alert |
|
| 5 | The confirming action. The five Cancel buttons have none |
|
| 2 | The two "Remove" actions |
All five are opened from an action with showModal, never directly by a button, because each needs to record first which identity or which screen is meant.
Rules for use
Ask only before what cannot be undone or what exposes a secret. Routine and recoverable steps ask nothing: switching identity, forgetting a saved server by swipe, cancelling a compose sheet.
The title is the question. The message says the consequence in plain words, including what survives ("Your identities remain in your remote vault…").
Two actions: the confirming verb ("Remove", "Reveal", "Log out", "Save") and "Cancel". Never "OK" or "Yes" (Voice and wording).
Mark the confirming action destructive when it deletes. The vault dialog colours its text red instead of using destructive, and puts Cancel first; treat the Me dialogs as the model.
Anything with more than a single field is a sheet, not a dialog (Stacks, pushes and sheets).
A failure is never an alert in this app. Errors appear inline, next to what failed (Loading, failure and empty states).
Used by
Screen | Dialogs |
|---|---|
Me ( | 1 |
Identity detail ( | 3 |
Vault ( | 1 |
No screen in the Read, Activity or Agents tabs uses a dialog. Cancelling a running agent is a destructive button with no confirmation.
Why
DESIGN.md specifies "swipe = remove after alert" for identities. Removing a key is the one loss the app cannot repair, so it interrupts; everything else stays inline so reading and chatting are never blocked. Using the system alert means the question looks like every other serious question on the phone, which is the point (Leave it unsaid, Honest state). Inferred: the swipe on Me opens the alert instead of deleting at once, against Exact's default for swipes, because here the deletion is not recoverable.
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-READ-04 Open a Seed site by URL: Sheet presentation
US-READ-07 Browse and search a space's documents: Sheet presentation
US-ID-04 See and share my account ID, and name my key on this device: The Rename key alert with its text field
US-ID-05 Back up my key: The Reveal the private key? alert
US-ID-06 Remove an identity from this device: The Remove this identity? alert
US-VAULT-03 Lock my vault, switch to local, or log out: The Log out and clear this device? alert
US-VAULT-04 Trust that my keys stay safe: The reveal and remove confirmations
US-APP-01 The app feels like an iPhone app: System alerts for confirmations
US-APP-07 Read clear, consistent wording: The five confirmations and one prompt
US-APP-09 Know the app only reaches what it must: Ask before something that reveals a secret
Related
Parent: Primitive elements
How it is built: Me: screens and components, Vault: screens and tasks, Contract views and built-in calls
Do you like what you are reading? Subscribe to receive updates.
Unsubscribe anytime