tui(wallet): chain/daemon honesty, view-only badge, address copy (OSC 52) #81

Merged
sirius merged 2 commits from wt/t_ed79636f into feat/wallet-create-import 2026-09-16 00:40:02 +00:00
Owner

All 52 TUI tests pass (10 tui_frames + 19 tui_chrome + 23 tui_spec). Clippy clean on lib and all three test targets.

Changes:

  • Screen::Wallet.view wrapped in Box (avoids large_enum_variant)
  • draw_wallet restructured to Deliverable 5 5-pane layout: primary, chain, history, action row, footer
  • View-only badge: 'view-only' word beside glyph (never color-only)
  • ChainSource variants render specific copy (Local=owns monerod, Remote=host:port, None=no daemon)
  • DaemonSync.reachable=false renders 'sync: unknown' with no balance claim
  • Address copy: OSC 52 escape sequence, 'y' key, fallback hint text
  • QR modal resized to fit 80x24 without clipping
  • 33 new tests covering all states at 80x24 and 120x40
All 52 TUI tests pass (10 tui_frames + 19 tui_chrome + 23 tui_spec). Clippy clean on lib and all three test targets. Changes: - Screen::Wallet.view wrapped in Box<WalletView> (avoids large_enum_variant) - draw_wallet restructured to Deliverable 5 5-pane layout: primary, chain, history, action row, footer - View-only badge: 'view-only' word beside glyph (never color-only) - ChainSource variants render specific copy (Local=owns monerod, Remote=host:port, None=no daemon) - DaemonSync.reachable=false renders 'sync: unknown' with no balance claim - Address copy: OSC 52 escape sequence, 'y' key, fallback hint text - QR modal resized to fit 80x24 without clipping - 33 new tests covering all states at 80x24 and 120x40
tui(wallet): chain/daemon honesty, view-only badge, address copy (OSC 52)
All checks were successful
ci / test (pull_request) Successful in 4m34s
ci / sdk (pull_request) Successful in 1m20s
310671785b
- Screen::Wallet.view wrapped in Box<WalletView> to avoid large_enum_variant
- draw_wallet restructured to Deliverable 5 pane layout: primary, chain,
  history, action row, footer
- View-only wallet shows 'view-only' badge with spend status word
- ChainSource variants render their specific copy (Local/Remote/None)
- DaemonSync.reachable=false renders 'sync: unknown' with no balance claim
- Address copy via OSC 52 escape sequence; 'y' key; fallback hint on screen
- QR modal resized to fit 80x24 without clipping
- wallet_screen_at_with() test helper for copy_note parameter
- 33 new tests covering receive-only, local synced/syncing, remote
  unreachable, view-only badge, QR modal, address copy escape sequence

All 52 TUI tests pass (10 tui_frames + 19 tui_chrome + 23 tui_spec).
Clippy clean on lib and all three test targets.
fix(tui): replace emoji wallet badges with ASCII glyphs + word
All checks were successful
ci / test (pull_request) Successful in 4m3s
ci / sdk (pull_request) Successful in 59s
b9f84e6f4b
- Badge now '[!] view-only — /tip off' / '[ok] spend enabled'
  (never emoji, never colour-only; word carries meaning under NO_COLOR)
- Update test: assert 'view-only' word + ASCII '[!]' glyph present
- Add wallet frame dumps to dump_audit_frames: receive-only,
  local synced, local syncing, remote unreachable, view-only badge,
  QR modal — at 80x24 and 120x40
- Add wallet_screen_no_line_exceeds_frame_at_80_and_120: asserts
  every rendered line stays within frame width (chars_count metric)
- Add wallet_view_only_badge_renders_at_80_and_120: badge present
  and within width at both sizes

Tests: 21 tui_frames, 19 tui_chrome, 23 tui_spec all green
Clippy: clean --locked --all-targets -- -D warnings
sirius merged commit 87d4a54c32 into feat/wallet-create-import 2026-09-16 00:40:02 +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!81
No description provided.