recovery phrase screens: one box per word with a copy button — match matou-app's 12-word layout (founding S6a show + prove, control-panel join, id.<apex> sign-in) #1706

Closed
opened 2026-09-21 20:25:22 +00:00 by ben · 3 comments
Owner

Ask (Ben)

Every screen that shows or takes the twelve-word recovery phrase adopts matou-app's layout: a numbered grid of twelve boxes, one word each, with a copy button.

Surfaces

  1. Founding S6a — showing the phrase (app/src/components/founding/, IDIP only).
  2. Founding S6a prove-it — "type words x, y and z": the same grid, only the asked boxes editable.
  3. The IDIP sign-in page on id.<apex>/login (internal/idp/brand.go — today one textarea, placeholder "the twelve words you wrote down"): twelve boxes; pasting a whole phrase into any box fills all twelve; Enter submits.
  4. The member join / wallet screens that mint or take a phrase (app/src/keriweb/, docs/ux/wireframes/p6-members-idip/, wallet-signin/).

Design notes (needs a wireframe pass before build)

  • Source of truth for the look: matou-app's recovery-phrase component (Matou/matou-app) — copy its grid, numbering and copy affordance; wear IDSS kit tokens.
  • Copy button: copies all twelve, space-separated; confirms "Copied" then reverts. Open question for the DDR: copying a root secret to the clipboard is convenient and risky — matou-app does it; decide whether IDSS adds a clear-clipboard-after-N-seconds or a one-line warning. Entry screens get paste, not copy.
  • Inputs: autocomplete=off, autocapitalize=none, spellcheck=false, no password-manager capture of individual boxes; BIP-39 word validation per box (a wrong word marks its own box, not the whole form).
  • The phrase never leaves the browser on the sign-in page — unchanged.

Labelled needs-design: four surfaces across three codebases' worth of markup; wireframes first (/wireframe), then a DDR, then build tickets.

Found on the hand re-founding of Whakatōhea Demo 2026-09-21 (rented + IDIP). Build idss_0.1.0_amd64.deb sha256 ecff1f99…6e87febc, source 5b910ef3.

## Ask (Ben) Every screen that shows or takes the twelve-word recovery phrase adopts **matou-app's layout**: a numbered grid of twelve boxes, one word each, with a **copy** button. ## Surfaces 1. Founding **S6a** — showing the phrase (`app/src/components/founding/`, IDIP only). 2. Founding **S6a prove-it** — "type words x, y and z": the same grid, only the asked boxes editable. 3. The IDIP **sign-in page** on `id.<apex>/login` (`internal/idp/brand.go` — today one textarea, placeholder "the twelve words you wrote down"): twelve boxes; **pasting a whole phrase into any box fills all twelve**; Enter submits. 4. The member **join / wallet** screens that mint or take a phrase (`app/src/keriweb/`, `docs/ux/wireframes/p6-members-idip/`, `wallet-signin/`). ## Design notes (needs a wireframe pass before build) - Source of truth for the look: matou-app's recovery-phrase component (`Matou/matou-app`) — copy its grid, numbering and copy affordance; wear IDSS kit tokens. - Copy button: copies all twelve, space-separated; confirms "Copied" then reverts. **Open question for the DDR:** copying a root secret to the clipboard is convenient and risky — matou-app does it; decide whether IDSS adds a clear-clipboard-after-N-seconds or a one-line warning. Entry screens get **paste**, not copy. - Inputs: `autocomplete=off`, `autocapitalize=none`, `spellcheck=false`, no password-manager capture of individual boxes; BIP-39 word validation per box (a wrong word marks its own box, not the whole form). - The phrase never leaves the browser on the sign-in page — unchanged. Labelled `needs-design`: four surfaces across three codebases' worth of markup; wireframes first (`/wireframe`), then a DDR, then build tickets. Found on the hand re-founding of Whakatōhea Demo 2026-09-21 (rented + IDIP). Build `idss_0.1.0_amd64.deb` sha256 `ecff1f99…6e87febc`, source `5b910ef3`.
Author
Owner

Reference found — matou-app d2d13c0 (Matou/matou-app, frontend/src/components/onboarding/). Ben: match this. Flipped to ready-for-agent.

Three components are the contract, one per kind of screen:

Kind matou-app source IDSS surfaces that adopt it
Show the phrase ProfileConfirmationScreen.vue:79-104 (grid + Copy), :173-180 (handler), :221-223 (mono) founding S6a show; member join show (app/src/keriweb/main.ts:87-100 already renders a numbered box grid "sized from matou-app's p1-s6a" — add the Copy button, align the markup)
Prove 3 words MnemonicVerificationScreen.vue:30-70 (labelled Word #N inputs, per-word "Incorrect word" error) founding S6a prove-it; member join prove-it
Enter all 12 RecoveryScreen.vue:49-82 (12 labelled inputs, grid), :185-200 (handlePaste) id.<apex>/login (internal/idp/brand.go — today one textarea); any wallet / recovery entry

Show — copy this section (Tailwind classes → IDSS kit tokens; Copy is a lucide icon)

        <!-- Mnemonic Words Grid -->
        <div class="mnemonic-container bg-card border border-border rounded-xl p-5">
          <div class="flex items-center justify-between mb-4">
            <h3 class="text-sm font-medium">Your 12-Word Recovery Phrase</h3>
            <button
              type="button"
              class="text-xs text-primary hover:underline flex items-center gap-1"
              @click="copyMnemonic"
            >
              <Copy class="w-3 h-3" />
              {{ copied ? 'Copied!' : 'Copy' }}
            </button>
          </div>

          <div class="grid grid-cols-3 gap-2">
            <div
              v-for="(word, index) in mnemonic.words"
              :key="index"
              class="word-card flex items-center gap-2 bg-secondary/50 border border-border rounded-lg px-3 py-2"
            >
              <span class="text-xs text-muted-foreground w-5">{{ index + 1 }}.</span>
              <span class="text-sm font-mono font-medium">{{ word }}</span>
            </div>
          </div>
        </div>
function copyMnemonic() {
  const text = mnemonic.value.words.join(' ');
  navigator.clipboard.writeText(text);
  copied.value = true;
  setTimeout(() => {
    copied.value = false;
  }, 2000);
}

Enter — the paste rule to copy

function handlePaste(event: ClipboardEvent, index: number) {
  const pastedText = event.clipboardData?.getData('text') || '';
  const pastedWords = pastedText.trim().split(/\s+/);

  // If pasting multiple words, fill them in starting from the current index
  if (pastedWords.length > 1) {
    event.preventDefault();
    for (let i = 0; i < pastedWords.length && index + i < 12; i++) {
      words.value[index + i] = pastedWords[i].toLowerCase();
    }
  }
}

async function handleRecover() {
  clearError();
  isRecovering.value = true;

Hint line under the grid, verbatim: "Tip: You can paste your entire phrase into the first field".

Rulings for the build (ADR 0174 — match matou-app unless stated)

  • Grid: 3 columns × 4 rows, numbered 1.…12., monospace words; 2 columns at phone width.
  • Copy sits top-right of the grid card, copies the twelve words space-separated, reads "Copied!" for 2 s. Clipboard handling matches matou-app (no auto-clear) — the clipboard question raised above is dropped on Ben's "match it".
  • Entry: twelve inputs, autocomplete=off autocapitalize=none spellcheck=false; pasting several words into ANY box fills forward from that box; on submit each word is trimmed + lower-cased and joined with single spaces (what validateMnemonic expects). Also accept a paste that uses commas — split on /[\s,]+/ — since today's textarea rejects word, word as "not a valid twelve-word recovery phrase".
  • id.<apex>/login is server-rendered Go HTML with the keri-web bundle, not Vue: render the twelve inputs in internal/idp/brand.go, join them in window.idssKeriSignIn (app/src/keriweb/main.ts:166-170). The phrase still never leaves the browser.
  • Wireframes updated in the same commits (p1-founding/p1-s6a*, p6-members-idip/, wallet-signin/) — they are the contract (ADR 0122). No separate design pass needed: the design IS matou-app's.
## Reference found — matou-app `d2d13c0` (`Matou/matou-app`, `frontend/src/components/onboarding/`). Ben: match this. Flipped to `ready-for-agent`. Three components are the contract, one per kind of screen: | Kind | matou-app source | IDSS surfaces that adopt it | | --- | --- | --- | | **Show** the phrase | `ProfileConfirmationScreen.vue:79-104` (grid + Copy), `:173-180` (handler), `:221-223` (mono) | founding S6a show; member join show (`app/src/keriweb/main.ts:87-100` already renders a numbered box grid "sized from matou-app's p1-s6a" — add the Copy button, align the markup) | | **Prove** 3 words | `MnemonicVerificationScreen.vue:30-70` (labelled `Word #N` inputs, per-word "Incorrect word" error) | founding S6a prove-it; member join prove-it | | **Enter** all 12 | `RecoveryScreen.vue:49-82` (12 labelled inputs, grid), `:185-200` (`handlePaste`) | **`id.<apex>/login`** (`internal/idp/brand.go` — today one textarea); any wallet / recovery entry | ### Show — copy this section (Tailwind classes → IDSS kit tokens; `Copy` is a lucide icon) ```vue <!-- Mnemonic Words Grid --> <div class="mnemonic-container bg-card border border-border rounded-xl p-5"> <div class="flex items-center justify-between mb-4"> <h3 class="text-sm font-medium">Your 12-Word Recovery Phrase</h3> <button type="button" class="text-xs text-primary hover:underline flex items-center gap-1" @click="copyMnemonic" > <Copy class="w-3 h-3" /> {{ copied ? 'Copied!' : 'Copy' }} </button> </div> <div class="grid grid-cols-3 gap-2"> <div v-for="(word, index) in mnemonic.words" :key="index" class="word-card flex items-center gap-2 bg-secondary/50 border border-border rounded-lg px-3 py-2" > <span class="text-xs text-muted-foreground w-5">{{ index + 1 }}.</span> <span class="text-sm font-mono font-medium">{{ word }}</span> </div> </div> </div> ``` ```ts function copyMnemonic() { const text = mnemonic.value.words.join(' '); navigator.clipboard.writeText(text); copied.value = true; setTimeout(() => { copied.value = false; }, 2000); } ``` ### Enter — the paste rule to copy ```ts function handlePaste(event: ClipboardEvent, index: number) { const pastedText = event.clipboardData?.getData('text') || ''; const pastedWords = pastedText.trim().split(/\s+/); // If pasting multiple words, fill them in starting from the current index if (pastedWords.length > 1) { event.preventDefault(); for (let i = 0; i < pastedWords.length && index + i < 12; i++) { words.value[index + i] = pastedWords[i].toLowerCase(); } } } async function handleRecover() { clearError(); isRecovering.value = true; ``` Hint line under the grid, verbatim: "Tip: You can paste your entire phrase into the first field". ## Rulings for the build (ADR 0174 — match matou-app unless stated) - Grid: 3 columns × 4 rows, numbered `1.`…`12.`, monospace words; 2 columns at phone width. - **Copy** sits top-right of the grid card, copies the twelve words **space-separated**, reads "Copied!" for 2 s. Clipboard handling matches matou-app (no auto-clear) — the clipboard question raised above is dropped on Ben's "match it". - Entry: twelve inputs, `autocomplete=off autocapitalize=none spellcheck=false`; pasting several words into ANY box fills forward from that box; on submit each word is trimmed + lower-cased and joined with single spaces (what `validateMnemonic` expects). **Also accept a paste that uses commas** — split on `/[\s,]+/` — since today's textarea rejects `word, word` as "not a valid twelve-word recovery phrase". - `id.<apex>/login` is server-rendered Go HTML with the keri-web bundle, not Vue: render the twelve inputs in `internal/idp/brand.go`, join them in `window.idssKeriSignIn` (`app/src/keriweb/main.ts:166-170`). The phrase still never leaves the browser. - Wireframes updated in the same commits (`p1-founding/p1-s6a*`, `p6-members-idip/`, `wallet-signin/`) — they are the contract (ADR 0122). No separate design pass needed: the design IS matou-app's.

swarm-claim host=matou-dev-server-01 run=29518
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=29518 (automated multi-host claim — lowest live claim id works this ticket)

close-report for #1706 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 1706,
  "status": "success",
  "commits": [
    "fd4a0df2a659a7807452f0ebd1dd8d970f38551a"
  ],
  "changed_files": [
    "STATUS.md",
    "app/src/components/founding/FoundingRecoveryPhrase.vue",
    "app/src/i18n/founding/g4.en.ts",
    "app/src/i18n/founding/g4.es.ts",
    "app/src/i18n/founding/g4.fr.ts",
    "app/src/i18n/founding/g4.nl.ts",
    "app/src/keriweb/doors.ts",
    "app/src/keriweb/main.ts",
    "app/tests/unit/foundingRecoveryPhrase.test.ts",
    "app/tests/unit/keriwebDoors.test.ts",
    "docs/ux/wireframes/p1-founding/p1-s6a-recovery-phrase.html",
    "docs/ux/wireframes/p6-members-idip/p6-s3i-member-joins.html",
    "docs/ux/wireframes/wallet-signin/ws-s1-sign-in-app-door.html",
    "internal/controlapi/member_join_idip.go",
    "internal/controlapi/member_join_idip_integration_test.go",
    "internal/idp/brand.go",
    "internal/idp/seam_test.go"
  ],
  "tests": [
    {
      "command": "go test ./internal/idp/ ./internal/controlapi/",
      "exit_code": 0
    },
    {
      "command": "npx vitest run tests/unit/foundingRecoveryPhrase.test.ts tests/unit/keriwebDoors.test.ts tests/unit/i18nSeam.test.ts tests/unit/keri/s6aCeremony.test.ts",
      "exit_code": 0
    },
    {
      "command": "npx vue-tsc -p tsconfig.json --noEmit",
      "exit_code": 0
    },
    {
      "command": "npx eslint src/keriweb/main.ts src/keriweb/doors.ts src/components/founding/FoundingRecoveryPhrase.vue",
      "exit_code": 0
    },
    {
      "command": "gofmt -l internal/idp/brand.go internal/controlapi/member_join_idip.go",
      "exit_code": 0
    },
    {
      "command": "go vet ./internal/idp/ ./internal/controlapi/",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Founding S6a show grid matches matou-app (numbered boxes + Copy button)": "app/src/components/founding/FoundingRecoveryPhrase.vue: 3-col card grid, one bordered box per word, Copy affordance data-action=copy copies space-separated words, 'Copied!' 2s revert; proven by app/tests/unit/foundingRecoveryPhrase.test.ts",
    "Copy copies all twelve space-separated, confirms Copied then reverts, no auto-clear": "onCopy in FoundingRecoveryPhrase.vue + mountJoinCeremony copy handler in app/src/keriweb/main.ts; founding test asserts writeText(words.join(' ')) and data-status=copied",
    "Member join show grid gains Copy": "internal/controlapi/member_join_idip.go renders phrase-card with data-action=copy; app/src/keriweb/main.ts wires it; locked by member_join_idip_integration_test.go copy contract",
    "id.<apex>/login renders twelve boxes not a textarea; paste into any box fills all twelve; Enter submits": "internal/idp/brand.go renders twelve data-field=recovery-word-N inputs + paste-fills-all inline script + paste hint; TestSeam_SignInPage_TwelveWordBoxes asserts twelve boxes, no textarea, hardening attrs, no form name, hint",
    "Inputs autocomplete=off autocapitalize=none spellcheck=false; comma paste accepted": "brand.go input attrs; joinRecoveryPhrase in app/src/keriweb/doors.ts splits on /[\\s,]+/; keriwebDoors.test.ts asserts comma-separated paste accepted",
    "Phrase never leaves the browser on sign-in": "word inputs carry no form name and are disabled before submit (main.ts idssKeriSignIn); brand.go inline paste only distributes locally; unchanged posting of {aid,challengeID,response}",
    "Wireframes updated as the contract": "docs/ux/wireframes/p1-founding/p1-s6a-recovery-phrase.html, p6-members-idip/p6-s3i-member-joins.html, wallet-signin/ws-s1-sign-in-app-door.html"
  },
  "summary": "Every recovery-phrase screen adopts matou-app's layout: one box per word, Copy on the show screens and twelve paste-fills-all boxes on the id.<apex> sign-in entry.",
  "reason": "",
  "blockers": []
}
**close-report** for #1706 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1706, "status": "success", "commits": [ "fd4a0df2a659a7807452f0ebd1dd8d970f38551a" ], "changed_files": [ "STATUS.md", "app/src/components/founding/FoundingRecoveryPhrase.vue", "app/src/i18n/founding/g4.en.ts", "app/src/i18n/founding/g4.es.ts", "app/src/i18n/founding/g4.fr.ts", "app/src/i18n/founding/g4.nl.ts", "app/src/keriweb/doors.ts", "app/src/keriweb/main.ts", "app/tests/unit/foundingRecoveryPhrase.test.ts", "app/tests/unit/keriwebDoors.test.ts", "docs/ux/wireframes/p1-founding/p1-s6a-recovery-phrase.html", "docs/ux/wireframes/p6-members-idip/p6-s3i-member-joins.html", "docs/ux/wireframes/wallet-signin/ws-s1-sign-in-app-door.html", "internal/controlapi/member_join_idip.go", "internal/controlapi/member_join_idip_integration_test.go", "internal/idp/brand.go", "internal/idp/seam_test.go" ], "tests": [ { "command": "go test ./internal/idp/ ./internal/controlapi/", "exit_code": 0 }, { "command": "npx vitest run tests/unit/foundingRecoveryPhrase.test.ts tests/unit/keriwebDoors.test.ts tests/unit/i18nSeam.test.ts tests/unit/keri/s6aCeremony.test.ts", "exit_code": 0 }, { "command": "npx vue-tsc -p tsconfig.json --noEmit", "exit_code": 0 }, { "command": "npx eslint src/keriweb/main.ts src/keriweb/doors.ts src/components/founding/FoundingRecoveryPhrase.vue", "exit_code": 0 }, { "command": "gofmt -l internal/idp/brand.go internal/controlapi/member_join_idip.go", "exit_code": 0 }, { "command": "go vet ./internal/idp/ ./internal/controlapi/", "exit_code": 0 } ], "criteria": { "Founding S6a show grid matches matou-app (numbered boxes + Copy button)": "app/src/components/founding/FoundingRecoveryPhrase.vue: 3-col card grid, one bordered box per word, Copy affordance data-action=copy copies space-separated words, 'Copied!' 2s revert; proven by app/tests/unit/foundingRecoveryPhrase.test.ts", "Copy copies all twelve space-separated, confirms Copied then reverts, no auto-clear": "onCopy in FoundingRecoveryPhrase.vue + mountJoinCeremony copy handler in app/src/keriweb/main.ts; founding test asserts writeText(words.join(' ')) and data-status=copied", "Member join show grid gains Copy": "internal/controlapi/member_join_idip.go renders phrase-card with data-action=copy; app/src/keriweb/main.ts wires it; locked by member_join_idip_integration_test.go copy contract", "id.<apex>/login renders twelve boxes not a textarea; paste into any box fills all twelve; Enter submits": "internal/idp/brand.go renders twelve data-field=recovery-word-N inputs + paste-fills-all inline script + paste hint; TestSeam_SignInPage_TwelveWordBoxes asserts twelve boxes, no textarea, hardening attrs, no form name, hint", "Inputs autocomplete=off autocapitalize=none spellcheck=false; comma paste accepted": "brand.go input attrs; joinRecoveryPhrase in app/src/keriweb/doors.ts splits on /[\\s,]+/; keriwebDoors.test.ts asserts comma-separated paste accepted", "Phrase never leaves the browser on sign-in": "word inputs carry no form name and are disabled before submit (main.ts idssKeriSignIn); brand.go inline paste only distributes locally; unchanged posting of {aid,challengeID,response}", "Wireframes updated as the contract": "docs/ux/wireframes/p1-founding/p1-s6a-recovery-phrase.html, p6-members-idip/p6-s3i-member-joins.html, wallet-signin/ws-s1-sign-in-app-door.html" }, "summary": "Every recovery-phrase screen adopts matou-app's layout: one box per word, Copy on the show screens and twelve paste-fills-all boxes on the id.<apex> sign-in entry.", "reason": "", "blockers": [] } ``` </details>
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#1706
No description provided.