The vault is the container that holds a person's identities. On this screen they see whether it is stored only on the phone ("Local") or synced with a vault server ("Remote"), connect it to a remote vault, sync, switch back to local, log out, and lock it. It has three main states: local, connected and locked.
At a glance
Tab | Me |
Route |
|
Screen component |
|
Presentation | pushed |
Title | inline: "Vault" |
How you get here | "Vault" in the Connections section of Me; automatically when the Connect vault sheet closes |
Where it leads | Connect vault sheet, Identity detail, Create identity sheet, Import identity sheet |
Anatomy
One list listStyle="inset-grouped" with up to four sections:
Navigation bar. The platform back button and the inline title "Vault".
Section "Storage". The Vault status panel: the mode in -exact-headline ("Local" or "Remote"), and under it the vault address or "Vault stored on this device". When remote it adds version counters, the last sync time and "Sync now".
Section "Identities". One row per identity: the name, the short id in footnote under it, and at the trailing edge either "Current" in secondary footnote or a "Use" button. The name area is a link. These are the vault variant of Identity rows, and they have no avatar. Then "Create identity" and "Import recovery phrase or key".
Section "Remote vault". It depends on the mode, see the states below.
Last section. "Lock vault".
States
State | Storage section | Other sections |
|---|---|---|
Opening | "Opening your vault…" in secondary colour | none |
Failure | The error in | none |
Locked | "Locked" in headline, "Unlock vault", and "Reopen using the key kept in this device’s Keychain." | none |
Local | "Local", "Vault stored on this device" | Identities, Remote vault (connect form), Lock |
Connected | "Remote", the vault address, "Local 4 · Remote 4 · Synced 4", "Last sync: " and a date or "Never", a sync error in red if any, "Sync now" | Identities, Remote vault (leave actions), Lock |
The Remote vault section in the local state:
A text field holding the vault address, prefilled with "https://hyper.media/vault".
A connect error in red, for example "Invalid vault URL".
"Connect". While a connection is pending it reads "Restart connection" and a second row "Continue pending connection" appears.
The explanation: "Keep your identities in sync across devices. Approve this device in your vault’s browser page."
In the connected state it holds "Switch to local", "Log out and clear this device" in red, and "Switching to local keeps your identities on this device."
The Identities section, when empty, shows "No identities yet" in headline with "Create an identity, import a key, or connect your remote vault." While a vault operation is running, the rows that change the vault (unlock, sync, connect, switch to local, log out, lock) are disabled, and "Sync now" reads "Syncing…".
Actions
Gesture | Result |
|---|---|
Tap an identity's name | Pushes Identity detail |
Tap "Use" | Makes that identity current, with a |
Tap "Create identity" or "Import recovery phrase or key" | |
Tap "Connect" | Starts a connection, opens the Connect vault sheet and opens the vault's approval page in the browser |
Tap "Continue pending connection" | Reopens the Connect vault sheet |
Tap "Sync now" | Syncs with the remote vault. It also syncs by itself while connected and in the foreground |
Tap "Switch to local" | Disconnects and keeps the identities on the device |
Tap "Log out and clear this device" | Opens the alert "Log out and clear this device?" with "Your identities remain in your remote vault and on your other devices." and the buttons "Cancel" and "Log out" (red) |
Tap "Lock vault" | Locks the vault. Only the Storage section remains |
Tap "Unlock vault" | Reopens it |
Tap "Retry" | Tries to open the vault again |
Components used
Component | Kind | What it does here |
|---|---|---|
inline part | The Storage section in all its states | |
inline part | The vault variant: name, short id, "Current" or "Use" | |
primitive | The grouped list and its sections | |
primitive | The bar title and the section headers | |
primitive | Mode, address, counters, explanations, errors | |
primitive | Retry, unlock, sync, use, create, import, connect, continue, switch to local, log out, lock, alert buttons | |
primitive | The name area of each identity row | |
primitive | The vault address field | |
primitive | The screen root, the identity rows, the two line stacks | |
primitive | The "Log out and clear this device?" alert |
vault.contract imports Avatar but does not use it. Explanations are plain text rows inside the sections, not section footers.
Why it is designed this way
Say where the keys are, first. The first row answers the question a person brings to this screen, in one word: "Local" or "Remote". See Honest state.
The same identities, the same names. The list repeats the names from Me so the person recognises what the vault holds. "Use" and "Current" share one position so the column reads as one control; the contract marks that as fix B3. See Names, not identifiers.
Reversible and irreversible actions look different. "Switch to local" is tinted and acts at once. "Log out and clear this device" is red and asks first, and the alert reassures: the identities remain elsewhere. See Buttons and actions.
A locked vault shows nothing else. Identities and connection controls disappear until it is unlocked. Inferred from the condition on those sections: locking should hide what is inside.
Sync is shown as numbers. The three counters and the last sync time are diagnostic text, in footnote. Inferred: the screen was built for parity with the vault's device role, and plain facts were chosen over a status graphic.
Difference from DESIGN.md. It gives this screen one line, "vault status, sync, lock". The identities list and the connect form were added when the screen was built.
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-ID-01 Create an identity: Second entry point: the Create identity row in the vault list
US-ID-02 Import an identity I already have: Second entry point: Import recovery phrase or key
US-ID-03 Switch between my identities: The vault list with Use and Current
US-ID-04 See and share my account ID, and name my key on this device: Entry point: identity rows in the vault list
US-ID-06 Remove an identity from this device: The vault list that also loses the identity
US-VAULT-01 Connect my vault to bring my identities to this phone: The Remote vault section with the address field and Connect
US-VAULT-02 Keep my identities in sync across devices: The Storage section in remote mode and the identities list
US-VAULT-03 Lock my vault, switch to local, or log out: Lock, unlock, Switch to local, Log out and the alert
US-VAULT-04 Trust that my keys stay safe: Failure with Retry, sync error in place, identities kept
US-APP-09 Know the app only reaches what it must: What the vault keeps here and remotely
Related
Parent: Me tab screens. Neighbours: Connect vault sheet, Me.
Inline parts: Vault connect panel. Patterns: Lists, Forms and inputs, Loading, failure and empty states, Refresh, haptics and progress.
Philosophy: Leave it unsaid. Visual language: Light and dark.
How it is built: Vault: screens and tasks, Vault: the store and on-device format, Vault: API and sync, Vault server.
Source: VaultScreen, the vault actions, vault.test.contract.
Do you like what you are reading? Subscribe to receive updates.
Unsubscribe anytime