docs: TUI wallet surfaces — presentation and flow review (report only) #160

Merged
sirius merged 1 commit from onionwire/t_e4eb38a8-onionwire-tui-presentation-flow-review-o into main 2026-09-27 02:51:19 +00:00
Owner

What this is

A report-only review of the TUI wallet surfaces at a1f5c87 (main), written up in docs/tui-wallet-ux-review.md. One file, no source touched. It exists so the wallet fixes in flight are reviewed for how they read, with rendered frames as the evidence rather than a designer's sense that it looks better now.

Sections in the doc: Summary, Method, Frames, Findings (12 rows: blocker / should-fix / polish, each located by function and line), What is already right, Not examined.

Headlines

  • draw_wallet never draws its body. src/tui.rs:5327-5333 gives the body pane Constraint::Length(2) and :5379 borders it, so inner height is 0: address, balance, transfers and the child line are invisible at 80x24, 120x40 and 200x60, configured or not. The third frame below is the whole screen.
  • Every long overlay body is pinned to its tail. draw_text_overlay (src/tui.rs:3820) computes scroll = wrapped - inner_h, so the SPEND warning reads trust. at 80x24 and one sentence at 120x40; the create-seed frame shows six of twenty-five words at 80x24 and the single word about at 200x60; the ? help overlay loses the eight lines that teach navigation.
  • First run is the create-spend-wallet gate (App::new, src/tui.rs:1387-1390), before anything says the install has no wallet.
  • F6 on that install exits the process (src/tui.rs:1504 -> :1438 -> src/main.rs:30: onionwire: no receive address — set profile xmr or ONIONWIRE_WALLET_RPC) — owned by the sibling rust-dev card; the review's ask is that the state be a screen, not a process exit.
  • What is already right: the F6 -> w wallet list (designed empty, error and reading states; cell-measured fixed columns; + create new wallet always last and always marked) and the F9 menu's shape. The doc says so explicitly so the next person does not "fix" the deliberate choices.

Evidence

export TMPDIR=/home/lancelot/.hermes/tmp/onionwire-tui
unset FUZZ_TMP_DIR GIT_WORK_TREE GIT_DIR
cargo test --locked --test tui_frames -- --nocapture dump_audit_frames
-> test result: ok. 1 passed; 0 failed; 11 filtered out
   60 frames dumped, every row asserted `cells <= width` via onionwire::tui::cell_width

cargo test --locked
-> 472 passed; 0 failed  (35 test binaries)

cargo clippy --locked --all-targets -- -D warnings
-> Finished `dev` profile ... (no warnings)

The wallet frames are in the doc. The ones this PR rests on:

First run, 80x24 — the security warning, whole frame, nothing typed










 ┌create spend wallet─────────────────────────────────────────────────────────┐
 │trust.                                                                      │
 │                                                                            │
 │Type SPEND to confirm    Esc to cancel                                      │
 └────────────────────────────────────────────────────────────────────────────┘











First run, 120x40


















 ┌create spend wallet─────────────────────────────────────────────────────────────────────────────────────────────────┐
 │do not leave it on a box you do not trust.                                                                          │
 │                                                                                                                    │
 │Type SPEND to confirm    Esc to cancel                                                                              │
 └────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘



















F6 wallet screen, unconfigured, 80x24 — no body at any width

┌wallet────────────────────────────────────────────────────────────────────────┐
└──────────────────────────────────────────────────────────────────────────────┘
















┌──────────────────────────────────────────────────────────────────────────────┐
└──────────────────────────────────────────────────────────────────────────────┘
s start child  x stop child  p probe  c create  i import  r qr  Esc back




F6 -> w, empty list, 80x24 (real render path)

┌(o) wallets───────────────────────────────────────────────────────────────────┐
│  no saved wallets yet                                                        │
│  create one to get an identity and an onion address                          │
│                                                                              │
│                                                                              │
│                                                                              │
│                                                                              │
│> + create new wallet                                                         │
│                                                                              │
│                                                                              │
│                                                                              │
│                                                                              │
│                                                                              │
│                                                                              │
│                                                                              │
│                                                                              │
│                                                                              │
│                                                                              │
│                                                                              │
│                                                                              │
│                                                                              │
│                                                                              │
└──────────────────────────────────────────────────────────────────────────────┘
✓ TOR ready  me:abcdef01… onion:abcdefgh… Esc back j k select Enter open ? help

F9 WALLETS & SETTINGS, unconfigured, 80x24 (real render path)

┌(o) wallets & settings────────────────────────────────────────────────────────┐
│WALLET ───────────────────────────────────────────────────────────────────────│
│  endpoint   not configured · receive-only                                    │
│  child      receive-only · not started                                 F6 s/x│
│  sync       not probing · no chain source                                F6 p│
│  receive    no address yet · wallet unreachable                              │
│  balance    off                                                            F6│
│  transfers  no transfers yet                                               F6│
│  payments   no friend selected                                               │
│  create     /wallet create · seed shown once                             F6 c│
│  import     /wallet import · 25-word seed                                F6 i│
│                                                                              │
│SETTINGS ─────────────────────────────────────────────────────────────────────│
│  nickname   (none)                                                   /profile│
│  profile    bio unset · xmr unset                                    /profile│
│  identity   abcdef01… · identity = pubkey                                  F2│
│  colour     auto · follows NO_COLOR / TERM                                   │
│  backup     encrypted identity export                                 /backup│
│  restore    overwrite self keys from a backup                        /restore│
│  wipe       messages · identity and friends stay                        /wipe│
│  wipe-all   deletes your identity key · new person                  /wipe-all│
│                                                                              │
└──────────────────────────────────────────────────────────────────────────────┘
✓ TOR ready  me:abcdef01… onion:abcdefgh… Esc back c copy ? help

✓ TOR ready  me:abcdef01… onion:abcdefgh… 2 full 3 testnet Esc back ? help
























The help line F6 actually draws (src/tui.rs:5373)

s start child  x stop child  p probe  c create  i import  r qr  Esc back
























Method notes

  • Widths are terminal cells (onionwire::tui::cell_width), never chars().count().
  • draw_wallet and draw_wallet_setup are private, so those surfaces are RECONSTRUCTED frames: layout constants and copy copied verbatim from src/tui.rs:5277-5384 and :5386-5452, drawn through the real public draw_text_overlay. The card forbids changes under tests/, so the scratch driver is not committed; it and the raw dumps are attached to the task, and a follow-up should add these dumps to tests/tui_frames.rs so private-screen frames live in the repo.
  • Everything else is the shipped public path (draw_wallet_select, draw_wallets_settings, draw_text_overlay, status_footer_phased) with the same footers App::draw composes.

Scope

docs/tui-wallet-ux-review.md only. No src/, tests/, android/ or other docs/*.md file is touched. Findings that propose a change to a file this card may not edit name the file and line and leave the change to the owning card.

## What this is A **report-only** review of the TUI wallet surfaces at `a1f5c87` (main), written up in `docs/tui-wallet-ux-review.md`. One file, no source touched. It exists so the wallet fixes in flight are reviewed for *how they read*, with rendered frames as the evidence rather than a designer's sense that it looks better now. Sections in the doc: Summary, Method, Frames, Findings (12 rows: `blocker` / `should-fix` / `polish`, each located by function and line), What is already right, Not examined. ## Headlines * **`draw_wallet` never draws its body.** `src/tui.rs:5327-5333` gives the body pane `Constraint::Length(2)` and `:5379` borders it, so inner height is 0: address, balance, transfers and the child line are invisible at 80x24, 120x40 and 200x60, configured or not. The third frame below is the whole screen. * **Every long overlay body is pinned to its tail.** `draw_text_overlay` (`src/tui.rs:3820`) computes `scroll = wrapped - inner_h`, so the SPEND warning reads `trust.` at 80x24 and one sentence at 120x40; the create-seed frame shows six of twenty-five words at 80x24 and the single word `about` at 200x60; the `?` help overlay loses the eight lines that teach navigation. * **First run is the create-spend-wallet gate** (`App::new`, `src/tui.rs:1387-1390`), before anything says the install has no wallet. * **`F6` on that install exits the process** (`src/tui.rs:1504` -> `:1438` -> `src/main.rs:30`: `onionwire: no receive address — set profile xmr or ONIONWIRE_WALLET_RPC`) — owned by the sibling `rust-dev` card; the review's ask is that the state be a screen, not a process exit. * **What is already right:** the `F6` -> `w` wallet list (designed empty, error and reading states; cell-measured fixed columns; `+ create new wallet` always last and always marked) and the `F9` menu's shape. The doc says so explicitly so the next person does not "fix" the deliberate choices. ## Evidence ``` export TMPDIR=/home/lancelot/.hermes/tmp/onionwire-tui unset FUZZ_TMP_DIR GIT_WORK_TREE GIT_DIR cargo test --locked --test tui_frames -- --nocapture dump_audit_frames -> test result: ok. 1 passed; 0 failed; 11 filtered out 60 frames dumped, every row asserted `cells <= width` via onionwire::tui::cell_width cargo test --locked -> 472 passed; 0 failed (35 test binaries) cargo clippy --locked --all-targets -- -D warnings -> Finished `dev` profile ... (no warnings) ``` The wallet frames are in the doc. The ones this PR rests on: ### First run, 80x24 — the security warning, whole frame, nothing typed ``` ┌create spend wallet─────────────────────────────────────────────────────────┐ │trust. │ │ │ │Type SPEND to confirm Esc to cancel │ └────────────────────────────────────────────────────────────────────────────┘ ``` ### First run, 120x40 ``` ┌create spend wallet─────────────────────────────────────────────────────────────────────────────────────────────────┐ │do not leave it on a box you do not trust. │ │ │ │Type SPEND to confirm Esc to cancel │ └────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ ``` ### F6 wallet screen, unconfigured, 80x24 — no body at any width ``` ┌wallet────────────────────────────────────────────────────────────────────────┐ └──────────────────────────────────────────────────────────────────────────────┘ ┌──────────────────────────────────────────────────────────────────────────────┐ └──────────────────────────────────────────────────────────────────────────────┘ s start child x stop child p probe c create i import r qr Esc back ``` ### F6 -> `w`, empty list, 80x24 (real render path) ``` ┌(o) wallets───────────────────────────────────────────────────────────────────┐ │ no saved wallets yet │ │ create one to get an identity and an onion address │ │ │ │ │ │ │ │ │ │> + create new wallet │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ └──────────────────────────────────────────────────────────────────────────────┘ ✓ TOR ready me:abcdef01… onion:abcdefgh… Esc back j k select Enter open ? help ``` ### F9 WALLETS & SETTINGS, unconfigured, 80x24 (real render path) ``` ┌(o) wallets & settings────────────────────────────────────────────────────────┐ │WALLET ───────────────────────────────────────────────────────────────────────│ │ endpoint not configured · receive-only │ │ child receive-only · not started F6 s/x│ │ sync not probing · no chain source F6 p│ │ receive no address yet · wallet unreachable │ │ balance off F6│ │ transfers no transfers yet F6│ │ payments no friend selected │ │ create /wallet create · seed shown once F6 c│ │ import /wallet import · 25-word seed F6 i│ │ │ │SETTINGS ─────────────────────────────────────────────────────────────────────│ │ nickname (none) /profile│ │ profile bio unset · xmr unset /profile│ │ identity abcdef01… · identity = pubkey F2│ │ colour auto · follows NO_COLOR / TERM │ │ backup encrypted identity export /backup│ │ restore overwrite self keys from a backup /restore│ │ wipe messages · identity and friends stay /wipe│ │ wipe-all deletes your identity key · new person /wipe-all│ │ │ └──────────────────────────────────────────────────────────────────────────────┘ ✓ TOR ready me:abcdef01… onion:abcdefgh… Esc back c copy ? help ``` ### The F6 footer the app builds and never draws, 80x24 — the fit loop eats the front ``` ✓ TOR ready me:abcdef01… onion:abcdefgh… 2 full 3 testnet Esc back ? help ``` ### The help line F6 actually draws (`src/tui.rs:5373`) ``` s start child x stop child p probe c create i import r qr Esc back ``` ## Method notes * Widths are terminal **cells** (`onionwire::tui::cell_width`), never `chars().count()`. * `draw_wallet` and `draw_wallet_setup` are private, so those surfaces are **RECONSTRUCTED** frames: layout constants and copy copied verbatim from `src/tui.rs:5277-5384` and `:5386-5452`, drawn through the real public `draw_text_overlay`. The card forbids changes under `tests/`, so the scratch driver is not committed; it and the raw dumps are attached to the task, and a follow-up should add these dumps to `tests/tui_frames.rs` so private-screen frames live in the repo. * Everything else is the shipped public path (`draw_wallet_select`, `draw_wallets_settings`, `draw_text_overlay`, `status_footer_phased`) with the same footers `App::draw` composes. ## Scope `docs/tui-wallet-ux-review.md` only. No `src/`, `tests/`, `android/` or other `docs/*.md` file is touched. Findings that propose a change to a file this card may not edit name the file and line and leave the change to the owning card.
Report-only audit of the wallet screens at a1f5c878: rendered frames at
80x24/120x40/200x60 for the first-run frame, the F6 wallet screen, the
F6 -> w wallet list, the create-spend-wallet gate and the F9 menu, plus a
findings table located by function and line.

No source file changed.
sirius merged commit 863adc22dd into main 2026-09-27 02:51:19 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
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
sirius/onionwire!160
No description provided.