Vault
The vault screen: where keys are stored, the identities in the vault, connecting to or leaving a remote vault, and locking.

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

vault, path /me/vault

Screen component

VaultScreen in vault.contract

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

The local state with two identities. The screenshot is older than the code: "Current" now sits at the trailing edge of its row, where "Use" sits on the other row.
The same state in dark mode. There are no captures of the connected or locked states. They are described from the contract below.

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 -exact-system-red, or "Couldn’t open the vault.", and "Retry"

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 selection haptic

Tap "Create identity" or "Import recovery phrase or key"

Opens the Create or Import sheet

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

Vault status panel

inline part

The Storage section in all its states

Identity rows

inline part

The vault variant: name, short id, "Current" or "Use"

list and section

primitive

The grouped list and its sections

header, footer and nav

primitive

The bar title and the section headers

text

primitive

Mode, address, counters, explanations, errors

button

primitive

Retry, unlock, sync, use, create, import, connect, continue, switch to local, log out, lock, alert buttons

link

primitive

The name area of each identity row

input, textarea, select and label

primitive

The vault address field

row, column and view

primitive

The screen root, the identity rows, the two line stacks

dialog

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).

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

Unsubscribe anytime

Connections0
Linked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkVaultVault
Citations 0Children & links 42

Loading child documents…

Connections show where other documents or comments link to this document.

Related documents

Loading connections…