tui: send/tip flow screen with readiness guard, view-only badge, and no-address refusal #82

Merged
sirius merged 1 commit from wt/t_78f0cb32 into wt/t_7719eda3 2026-09-16 04:40:01 +00:00
Owner

Send screen (Screen::Send) now enforces the full readiness guard before allowing confirm:

  • Confirm is disabled when wallet_readiness refuses (NotConfigured / NotConnected / ViewOnly for /tip), showing the exact contract string from wallet.rs (NOT_CONFIGURED_MSG, NOT_CONNECTED_MSG, VIEW_ONLY_MSG).
  • /pay on a view-only wallet is still allowed (invoice only), but the spend badge is shown.
  • Friend with no Monero address shows NO_ADDRESS_MSG inline and disables confirm.
  • Amount parse errors (empty, invalid, negative, >8dp) render inline via xmr_to_atomic errors — no panic, no silent drop.
  • Esc cancels with no side effect.
  • The spend badge "view-only — /tip off" is visible on both /tip and /pay.

send_form_confirm_enabled() layers readiness + address + amount checks.

All 63 tests pass (42 tui_spec + 11 tui_frames + 10 tui_chrome). Clippy clean.

Send screen (Screen::Send) now enforces the full readiness guard before allowing confirm: - Confirm is disabled when wallet_readiness refuses (NotConfigured / NotConnected / ViewOnly for /tip), showing the exact contract string from wallet.rs (NOT_CONFIGURED_MSG, NOT_CONNECTED_MSG, VIEW_ONLY_MSG). - /pay on a view-only wallet is still allowed (invoice only), but the spend badge is shown. - Friend with no Monero address shows NO_ADDRESS_MSG inline and disables confirm. - Amount parse errors (empty, invalid, negative, >8dp) render inline via xmr_to_atomic errors — no panic, no silent drop. - Esc cancels with no side effect. - The spend badge "view-only — /tip off" is visible on both /tip and /pay. send_form_confirm_enabled() layers readiness + address + amount checks. All 63 tests pass (42 tui_spec + 11 tui_frames + 10 tui_chrome). Clippy clean.
tui: send screen readiness guard + view-only badge + no-address refusal
All checks were successful
ci / test (pull_request) Successful in 4m32s
ci / sdk (pull_request) Successful in 1m16s
51129f6c83
Send screen now carries WalletReadiness and no_spend fields, populated
from Node::wallet_readiness at form open. The confirm line reflects:
- readiness refusal (NOT_CONFIGURED_MSG / NOT_CONNECTED_MSG / VIEW_ONLY_MSG)
- friend has no address (NO_ADDRESS_MSG)
- no recipient
- amount invalid
- ready (Enter)

Spend badge 'view-only — /tip off' shown on both /tip and /pay when the
wallet is no-spend. send_form_confirm_enabled() gates Enter dispatch.

Tests: 10 new tests for readiness states, amount errors, badge visibility,
and width fit at all readiness states.
sirius force-pushed wt/t_78f0cb32 from 51129f6c83
All checks were successful
ci / test (pull_request) Successful in 4m32s
ci / sdk (pull_request) Successful in 1m16s
to b3052b8277
All checks were successful
ci / test (pull_request) Successful in 4m26s
ci / sdk (pull_request) Successful in 1m15s
2026-09-16 04:29:51 +00:00
Compare
sirius changed target branch from feat/wallet-create-import to wt/t_7719eda3 2026-09-16 04:29:58 +00:00
sirius merged commit a32c432a0b into wt/t_7719eda3 2026-09-16 04:40:01 +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!82
No description provided.