Connect vault sheet
The waiting sheet shown while this device is approved in the vault's browser page: pending with a countdown, warnings, stopped, and connected.

Connecting to a remote vault happens in two places: the person approves this device on the vault's web page, and the app waits. The Connect vault sheet is the waiting side. It says what to do, offers the browser link again, counts down the time left, and reports what happens.

At a glance

Tab

Me

Route

vault-connect, path /me/vault/connect

Screen component

VaultConnectScreen in vault.contract

Presentation

sheet (navigationPresentation="modal")

Title

"Connect vault"

How you get here

"Connect", "Restart connection" or "Continue pending connection" on Vault

Where it leads

The browser, for approval. Then back to Vault: by itself two seconds after connecting, or on "Cancel"

There is no capture of the sheet itself. This is the Vault screen it returns to after "Cancel": still "Local", the typed address kept in the Remote vault field.

Anatomy

    Navigation bar. Title "Connect vault", and a "Cancel" button.

    One section, the Vault connect panel, in a list listStyle="inset-grouped":

      A status title in -exact-title2.

      One sentence of instruction in secondary colour.

      While pending: "Open in browser", then "Link expires in 4:32" in footnote and the approval link itself in footnote, selectable.

      Warnings and errors in -exact-system-red.

      When stopped: "Try again".

States

State

Title

Sentence

Also shown

Pending

"Approve this device"

"Open your vault in the browser and approve the connection, then return here."

"Open in browser", "Link expires in 4:32", the link

Pending, server not answering

"Approve this device"

as above

A red warning, for example "Cannot reach the vault server (3 failed checks: …). If using a browser, the vault server must allow cross-origin requests."

Pending, interrupted

"Approve this device"

as above

A red warning: "Connection interrupted (attempt 2: …). Retrying with your browser approval…"

Expired or failed

"Connection stopped"

as above

The reason in red, for example "connection token expired", and "Try again"

Connected

"Connected"

"Your identities are ready. Returning to your vault…"

Nothing else. The sheet closes after two seconds

The countdown is minutes and seconds ("4:32", "0:07") and updates every second. The app checks for approval every two seconds while it is in the foreground.

Actions

Gesture

Result

Tap "Open in browser"

Opens the approval link in the browser again. It was already opened once when the connection started

Long press the link

System text selection, to copy it to another device

Tap "Try again"

Starts a new connection with the same vault address and opens the browser

Tap "Cancel"

Cancels the pending connection and closes the sheet. Vault stays "Local"

Swipe the sheet down

Closes the sheet without cancelling (inferred: "Cancel" is not the sheet's back control, and Vault offers "Continue pending connection" for this case)

Components used

Component

Kind

What it does here

Vault connect panel

inline part

The whole content: status, instruction, link, countdown, warnings, retry

list and section

primitive

The grouped list with its single section

header, footer and nav

primitive

The sheet's bar

text

primitive

Title, status, instruction, countdown, link, warnings

button

primitive

"Cancel", "Open in browser", "Try again"

row, column and view

primitive

The screen root and the two stacked groups of text

No named component or platform part is used. There is no progress indicator: the countdown is the sign that the sheet is alive.

Why it is designed this way

    The title is the state. One large line tells the person where they are in the ceremony: approve, connected, or stopped. The rest of the panel only supports it. See Honest state.

    The app hands off to the browser and says so. Approval needs the vault's own page, so the sheet names the step ("then return here") and keeps the link on screen in case the browser did not open. Inferred from the instruction text and the repeated link.

    A deadline is shown as a clock. The link expires, so the time left is visible instead of a surprise failure. When it does expire, the title changes and "Try again" appears in the same place. See Loading, failure and empty states.

    Warnings do not end the wait. A server that stops answering produces a red line while the title stays "Approve this device". Only expiry or failure changes the title. The vault test walks through exactly this order.

    Success closes itself. After "Connected" there is nothing left to do, so the sheet says "Returning to your vault…" and leaves. Inferred: a Done button would be one more tap for no decision.

    A sheet, because it is an interruption of the Vault screen. See Stacks, pushes and sheets. DESIGN.md lists it as "remote vault connect flow" and says nothing more.

    Rough edge. Error text comes straight from the connection code and is not sentence case ("connection token expired"), unlike the rest of the app's voice.

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

Attributes
name
Connect vault sheet
summary
The waiting sheet shown while this device is approved in the vault's browser page: pending with a countdown, warnings, stopped, and connected.