This card does not change `src/`. Frames come from:
```
cargo test --locked --test tui_frames -- --nocapture dump_audit_frames
```
`tests/tui_chrome.rs` still locks helper **names** and **return strings**. Implementation
must keep `wordmark_banner`, `compact_banner`, `banner_for_width`, `onion_glyph`,
`status_footer`, `main_footer_hints`, `help_overlay_text`, `draw_share`, and `Pane`
working. Add helpers; do not rename those.
## Gaps (could not render the live `App` frame)
`App`, `App::draw`, `App::draw_main`, and every overlay except `draw_share` are
private and need `Arc<Node>` (Arti + store). This presentation-only test cannot
construct that.
| Screen / state | What you get | Why |
|---|---|---|
| Main chat (empty, messages, long line, stale roster, alert) | **RECONSTRUCTED** — same `Layout` constraints as `src/tui.rs``draw_main` (banner height, 36% roster, composer 3, footer 1) plus the real `banner_for_width` / `status_footer` | `App` private |
| Help / `/who` overlay | **RECONSTRUCTED** — Rect math copied from private `draw_text_overlay` | private |
| Share / invite | **REAL**`draw_share` | public |
| Profile, paste, approve, rotate, wipe, quit, backup, restore, passphrase | **RECONSTRUCTED** — public `*_screen_text` / `ProfileEditor` copy inside `Block::bordered`, titles taken from `src/tui.rs` | private `draw_*` |
| Pay / invoice / file transfer | **No screen exists.** Footer `status_note` only (`invoice sent`, `sending`, `sent file {name}`, `send failed: {e}`) | not a gap in the test — a product finding |
| Tor bootstrap / disconnected HS | Not a TUI screen. `hs status: Bootstrapping` is stderr before `ratatui::init` | out of TUI draw |
| Color / `NO_COLOR` | Glyph dumps only. Color findings are from reading `src/tui.rs` | TestBackend prints symbols |
Color, focus-by-border, and RGB-only styling are invisible in these dumps. Treat
the reconstruction as the glyph skeleton, not a screenshot of Color.
## Deliverable 1 — before frames
Trailing spaces in the live buffer are omitted here. Re-run the command for
byte-identical dumps, including 120x40 and 200x60.
### 80x24 — chrome (`banner_for_width` + `status_footer`, real helpers)
```
.-~~-. .-~~-. .-~~-. ONIONWIRE
( o )( o )( o ) identity = pubkey onion = locator
`-..-' `-..-' `-..-' tor messenger no server
TOR me:abcdef01… onion:abcdefgh… Tab F2 F3 F4 F5 Ctrl-Q ? help
```
Same footer with `status_note = "send failed: connection timed out"` — the note
**does not appear**. Ident + hints win. Fail-closed copy is gone at 80 and at
120 (full onion eats the row). It only survives at 200.
column of copy + typed buffer. Readable. Fine as modal confirmations.
-`/who`: overlay Clear is only the popup rect; chat remnants (`d`, `ff`) show
in the side gutters. Full onion is shown (good).
### 120x40 / 200x60
At 120, `status_footer` shows the **full** 62-char onion and still drops
`send failed: …`. At 200 the note survives in front of `TOR`. Banner stays the
3-line wordmark (width ≥ 63). Chat pane is large; hierarchy problem is worse
(more empty bordered void), not better. Dump: same cargo command.
## Deliverable 2 — findings
Walked in `tui-aesthetics` ladder order.
### 1. Clipping / overlap
| Sev | Where | Wrong | User impact |
|---|---|---|---|
| **blocker** | `src/tui.rs:1505``status_footer` candidate list | Fail-closed `status_note` (`send failed: …`) is skipped when ident+hints fill the row. Proven at 80 and 120. | Peer down looks like success. The product rule is "send visibly fails". |
| **major** | `src/tui.rs:1702``draw_text_overlay` | No `Wrap`. Height clipped to `area.height-2`. At 80x24 help overlaps banner/roster/composer and drops the last line. | `?` is unreadable on the floor size. |
| **major** | `src/tui.rs:1355` roster `format!("{name} {fp}")` | No truncate. `bob-the-stale-peer bbbbb` clips inside the 36% pane. | Cannot tell who is selected/stale. |
| **major** | `src/tui.rs:1570``draw_share` (and paste body) | 346-char invite wraps mid-token at inner width 78. | Mouse-select copy is split; easy to miss a continuation line. |
| **minor** | `src/tui.rs:1334` alert | Alert is one raw line, no wrap/truncate. | Long error will collide with roster on the next row. |
| **nit** | `tests/tui_chrome.rs:15` (and `src/tui.rs:1512`, `1707`) | Width via `chars().count()`. See deliverable 4. | CJK/emoji can wrap in a real terminal while tests stay green. |
### 2. Hierarchy
| Sev | Where | Wrong | User impact |
|---|---|---|---|
| **major** | `src/tui.rs:1314``draw_main` | Three-line wordmark + two equal bordered panes + bordered composer + footer. Chat is not the primary element. At 80x24, 3 rows of art + 3 composer + 1 footer + 2×2 borders leave the transcript starved. | First glance is ASCII onions, not the conversation. |
| **major** | `src/tui.rs:1340` | Roster is 36% of width on every size. | Chat (the primary pane) is the leftover. |
| **minor** | every `themed_block` / `pane_block` | Border on every pane, including composer and full-screen modals. | Eye cannot find content; "box drawing UI". |
### 3. Spacing
| Sev | Where | Wrong | User impact |
|---|---|---|---|
| **minor** | `src/tui.rs:1328` banner vs `1367` lists | Banner has no inner pad; list/paragraph sit against borders; footer has no pad. Mixed 0 and 1. | Ragged left edge: chat `no friends yet` vs roster empty. |
| **nit** | `src/tui.rs:93``/file /path` extra space vs other slash rows | Help columns almost align, one extra space. | Looks unfinished. Do **not** change `help_overlay_text` unless `tui_chrome` is updated — the string is locked. Leave the space. |
### 4. States
| Sev | Where | Wrong | User impact |
|---|---|---|---|
| **major** | `src/tui.rs:1349` empty roster | `List` with zero items → blank pane titled `roster 0`. Empty copy lives only in chat. | Looks broken, not empty. |
| **major** | pay / tip / file | No pane. Outcome is a footer note that 80/120 may drop. | `/pay` and `/file` feel like they did nothing. |
| **minor** | `src/tui.rs:1414` empty composer | Placeholder is the slash cheatsheet, dim color only. | Reads as commands already typed. |
| **minor** | `src/tui.rs:1456``no messages` | One word. No "type below, Enter sends". | Dead pane. |
| **nit** | loading | `sending` in footer, 100 ms poll, no spinner. | Correct. Keep. |
There is no dedicated disconnected screen. Stale friends get a `stale` suffix
(`src/tui.rs:1357`) — keep the word, not color-only.
### 5. Color
| Sev | Where | Wrong | User impact |
|---|---|---|---|
| **major** | `src/tui.rs:15-21` | Seven RGB colors. No 16-color map. No `NO_COLOR`. | 16-color and `NO_COLOR` terminals get garbage or still emit ANSI. |
| **minor** | `src/tui.rs:1359-1372` | Stale is `C_STALE` plus the word `stale` (ok). Selection is bg+fg+bold+`> ` (ok for roster). | Chat/composer focus is color-only (see focus). |
Accent RGB `(232,165,75)` is fine as **the** accent. Do not add more hues.
| **nit** | `src/tui.rs:24``TUI_POLL` 100 ms | Full `terminal.draw` every poll even with no keys, so background send can refresh status. | Acceptable. No decorative spinner. Do not redraw faster. |
### 8. Copy
| Sev | Where | Wrong | User impact |
|---|---|---|---|
| **minor** | `src/tui.rs:1583` paste error | Error replaces the paste hint. No "what next". | User sees `bad invite` and an empty buffer. |
| **minor** | `src/tui.rs:1415` | Composer placeholder is a command dump, not a verb. | Conflicts with `?` help. |
| **nit** | `src/tui.rs:36` | `fingerprint mismatch` is a good short fail-closed string when it actually reaches the footer. | Often dropped (finding 1). |
### Untrusted text
`src/tui.rs:1461``String::from_utf8_lossy(&m.plaintext)` goes into `Paragraph`
| Help | The help text, **full screen** when `height < 28`, else a centered overlay that **fits** (wrap, scroll if needed, never clip the last line) | — | title `? help` |
| `/who` | Profile fields | — | same overlay rules as help |
| Pay / file | **None.** Stay on main. Status line carries the result. | — | — |
`draw_main` at `height <= 24`**must not** spend 3 rows on `wordmark_banner()`.
Use a one-line header. Do **not** change `banner_for_width(80)` — chrome tests
lock it to the wordmark. Add `main_header_line(width, fp, onion)` or call
`compact_banner()` plus ident. At `height >= 40`, the 3-line wordmark **may**
sit above the one-line ident; it is optional, not required.
### Spacing unit
**1 cell.** Apply as:
- Header: no box. One space between fields.
- Roster / chat: `Block` with `Borders::ALL`**only on those two** (the primary
split). Inner text starts one cell after the border (ratatui default).
- Composer: **no** outer box. Prefix `> ` when focused, ` ` when not. One
blank row is not required; the 3-row slot stays for wrapped input.
- Footer: no box. One space between clusters, two spaces between clusters if
width ≥ 120.
- Overlays: one box around the popup. No nested padding.
### Palette
One accent. Semantic color only for state. Pair every color with a glyph or
Presentation-only. The base branch already owns the API on the table in plan §1.3. This deliverable names the pane on each wallet-family screen, the primary element, and the exact copy for every non-happy state. The copy table is binding: a later card must render these strings (or their ASCII/word variants), not invent new refusal text.
Layout: vertical 2-line title, a bordered body that fills the middle, 1-line action footer.
```
┌wallet────────────────────────┐
└──────────────────────────────┘
┌──────────────────────────────┐
│address 4AdY… │
│balance not synced — unavailable│
│ │
│chain │
│chain: local monerod … │
│daemon: stopped … │
│sync: unknown — … │
│storage: 412 GB free … │
│not ready: wallet RPC … │
│pruned nodes … │
│ │
│recent transfers │
│ (none shown) │
│ │
│ │
│ │
│ │
└──────────────────────────────┘
s chain n start/stop c create i import r qr
```
Primary: address + balance + chain block. Largest element on screen.
**Copy table** — every state the wallet screen can show (sources verified at base commit `b20313e`):
| State | On-screen copy | Source |
|---|---|---|
| Receive-only / no wallet | address: `no address yet — /profile xmr, or create a wallet`; balance: `not synced — unavailable` | `draw_wallet` empty branch; `wallet_view` not-ready branch |
| Receive-only configured (no daemon) | chain: `chain: receive-only — no daemon, no chain traffic`; daemon: `daemon: not configured — press s to choose a chain source`; readiness: `not ready: no wallet — receive-only until c create / i import` | `chain_view``ChainSource::None` + `WalletChildState::Off` |
| Local monerod chosen, stopped | `chain: local monerod ({bin}) — chain in {dir}`; `daemon: stopped — press n to start it` | `ChainSource::Local` + `WalletChildState::Stopped` |
| Local monerod running | `daemon: running (child owned by this app)` | `WalletChildState::Running` |
| Not configured (wallet screen) | readiness: `not ready: no wallet — receive-only until c create / i import` | `WalletReadiness::NotConfigured.line()` |
| Configured, RPC down | readiness: `not ready: wallet RPC not answering — balance is not authoritative` | `WalletReadiness::NotConnected.line()` |
| `/tip` on view-only | status_note exactly: `wallet is in view-only/no-spend mode — /tip is disabled; /pay and receipt verification still work` | `wallet::VIEW_ONLY_MSG` |
| `/tip` or `/pay`, not configured | status_note exactly: `wallet not configured — open F7 to set it up, or set ONIONWIRE_WALLET_RPC` | `wallet::NOT_CONFIGURED_MSG` |
| `/tip` or `/pay`, not connected | status_note exactly: `wallet not connected — check endpoint, login, daemon` | `wallet::NOT_CONNECTED_MSG` |
| Friend has no address (`/tip`) | status_note exactly: `friend has no Monero address — they must /profile` | existing `tip` refusal (src/tui.rs:1738) |
| `Choose` | `chain source` | `where should the chain come from?` + 3 choices (Receive-only / Local monerod / Remote daemon) with detail lines + `receive-only needs no wallet file…` + `Up/Down choose Enter select Esc back` | `ChainChoice::ALL` order; never preselects Remote |
| `RemoteAddr` | `enter daemon address` | `daemon address, as host:port` + `e.g. 127.0.0.1:18081 or yournode.onion:18089` + `> {buf}` + error line or `Enter continues Esc goes back` | parses via `parse_daemon_addr` |
| `RemoteWarn` | `trust shift` | `use {host}:{port} for chain traffic?` + `the daemon operator sees your addresses during sync,` + `and every spend. a remote daemon is untrusted:` + `this app never passes --trusted-daemon.` + `.onion` branch: `this is a .onion host, so Tor would hide the transport.` + `it still does not hide your addresses from the operator.` + `ONION_NO_SOCKS_MSG` | `Enter saves it Esc cancels` |
| `CreatePass` mismatch | — | alert: `passphrases do not match` | alert_line |
| `CreateSeed` | `write down this seed` | `{seed}` + blank + `this is shown once. anyone with it can spend.` + `Type SEEN when you have written it down` + `{typed}` | type SEEN / Esc (zeroizes seed on Esc) |
| `ImportSeed` | `import wallet` | `paste the 25-word seed. this is the only path that takes an existing key.` + blank + `{buf}` + blank + `Enter continues Esc cancels` | Enter / Esc |
| `ImportSeed` empty | — | alert: `seed required to import a wallet` | error |
| `ImportPass` (1st) | `wallet passphrase` | `passphrase for the imported wallet file` + `Enter continues Esc cancels` | Enter / Esc |
| `ImportPass` mismatch | — | alert: `passphrases do not match` | alert_line |
| RPC failure | — | alert: the RPC error exactly as returned | error |
### New send/tip flow (`Screen::Send` — **new screen, spec only**)
No screen exists yet in `src/tui.rs`. Primary: recipient + amount field + memo field + resolved atomic value + confirm action. Opens from the wallet screen and from main with a friend selected.
| Amount 0 | field error: `amount must be > 0`; confirm disabled | `pay::parse_atomic` rejection |
| View-only / no-spend refusal | confirm disabled; line exactly: `wallet is in view-only/no-spend mode — /tip is disabled; /pay and receipt verification still work` | `VIEW_ONLY_MSG` |
| Not configured refusal | confirm disabled; line exactly: `wallet not configured — open F7 to set it up, or set ONIONWIRE_WALLET_RPC` | `NOT_CONFIGURED_MSG` |
| Friend has no address | line exactly: `friend has no Monero address — they must /profile` | existing `tip` guard |
| Amount too large for RPC | line: the overflow error from `pay::xmr_to_atomic` | `pay::xmr_to_atomic` |
| no_spend off | `spend on — /tip enabled` | word + glyph |
| no_spend on | `view-only — /tip off` | word + glyph |
Masking rule: `WalletConfig::secret()` (`src/wallet.rs:79`) exists for redaction. The fixture password must not appear in any rendered frame, status note, alert, or help string. The toggle is distinguishable in `NO_COLOR` by the word `•••••••` vs the user, not by color alone.
### Copy rules for every wallet surface
1. Refusal text is the existing string from `wallet.rs` / `Node` — never invent a softer version.
2. Spend badge is always word + glyph (`view-only — /tip off`; `spend on`). Never color-only.
3. Addresses from a friend's profile are peer-supplied — pass through `sanitize::display_text` before draw.
4. Memos are peer-supplied — sanitize first, then wrap/truncate with ellipsis.
5. Empty states are designed copy, not blank panes.
6. Fail-closed status notes (`send failed`, `fingerprint mismatch`, view-only refusal) keep the `! ` prefix when colour is off (`src/tui.rs:64`).
This replaces palette values, glyph fallbacks, spacing, and focus rules. It does **not** add hues. The locked helper names and strings in `tests/tui_chrome.rs` survive.
### Color palette
The palette lives as RGB constants in `src/tui.rs:21-27`, each with an ANSI16 fallback via `style_fg()` / `style_accent()` / `style_highlight()`. `NO_COLOR` (`ColorMode::None`) drops fg entirely and uses bold/reverse for accent/highlight.
| Role | RGB (current) | ANSI16 fallback | `NO_COLOR` treatment | Where |
Glyphs are never color-only. ASCII mode (triggered by `ONIONWIRE_ASCII=1` or `NO_COLOR=1`) swaps all unicode glyphs per the table. `delivery_glyph()` (`src/tui.rs:138`) and `tests/tui_spec.rs::delivery_markers_have_exercised_ascii_fallbacks` exercise the fallback.
### Spacing unit
**1 cell.** All internal padding is a single space after the label: `address {value}`, `balance {value}`, `chain: {detail}`. A single blank `String::new()` row separates blocks. Pane borders add no inner pad on the title line.
`WALLET_LINE_MAX` = 76 (`src/tui.rs:1169`). Every chain line is `truncate_chars(&line, WALLET_LINE_MAX)` (`src/tui.rs:1373`).
---
## Before frames (identity v1)
Real `draw_wallet` frames from the base branch at `b20313e`, rendered via `TestBackend` at 80x24. The dump test (`tests/tui_wallet_dump.rs`) was a throwaway — removed after capture, touches no `src/`. Trailing spaces omitted.