docs(tui): add payment history after frames to Deliverable 5
All checks were successful
ci / test (pull_request) Successful in 3m59s
ci / sdk (pull_request) Successful in 1m1s

Render command + 80x24 frames for empty, mixed verified/unverified,
detail view with hostile memo sanitized, and ASCII fallback.

Signed-off-by: tui-design <tui-design@hermes>
This commit is contained in:
agent 2026-09-15 21:39:05 -04:00
commit a94f071ccb
No known key found for this signature in database

View file

@ -1002,3 +1002,71 @@ s chain n start/stop c create i import r qr
- `ChainChoice::ALL.len() == 3` (three choices, never a public node) — asserted.
- `status_footer` keeps `send failed`, `TOR`, `me:`, `? help` at 80 and 120 — asserted by `status_footer_drops_send_failed_when_crowded`.
- `chars().count() <= width` on all locked public copy — asserted by `public_copy_fits_80_by_chars_count`.
## Deliverable 5 addendum — payment history frames (after)
Render with `cargo test --locked --test tui_frames -- --nocapture dump_history_pr_frames`.
### 80x24 — empty history
```
┌history bob──────────────────────────────────────────────────────────────────┐
│no payments with this friend yet │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
└──────────────────────────────────────────────────────────────────────────────┘
Enter detail Esc back ? help ```
### 80x24 — mixed verified/unverified list
```
┌history alice────────────────────────────────────────────────────────────────┐
│> 0.001 XMR ✓ verified abcdef012345678… 21m │
│< 0.05 XMR ✓ verified deadbeefdeadbee… 3m │
│> 0.0005 XMR ✗ unverified awaiting receipt 1m │
└──────────────────────────────────────────────────────────────────────────────┘
Enter detail Esc back ? help ```
### 80x24 — detail view (hostile memo sanitized)
The memo was `pay\x01now\u{202E}reverse` (C0 control + bidi override).
After `sanitize::display_text` it renders as inert `paynowreverse`:
```
┌history alice detail────────────────────────────────────────────────────────┐
│txid awaiting receipt │
│address (none) │
│memo paynowreverse │
│amount 0.0005 XMR │
│kind invoice │
│direction outbound │
│verified unverified │
│timestamp 1700000200 (1m ago) │
└──────────────────────────────────────────────────────────────────────────────┘
Esc back ? help ```
### 80x24 — ASCII fallback
```
+history alice----------------------------------------------------------------+
|> 0.001 XMR verified abcdef0123456... 21m |
+------------------------------------------------------------------------------+
Enter detail Esc back ? help ```