tui: F7 wallet config screen + wallet/chain setup redesign + doc sync
Implement the F7 wallet-endpoint config screen (Screen::WalletConfig): - Fields: rpc_url, rpc_login masked with reveal toggle, no_spend checkbox - Test connection (t → PingResult::line), Save (s → wallet_save_config) - Status line: 'saved · not connected', 'connected — ...', 'error: ...' - NO_COLOR distinguishability: '·' bullets, username visible, password masked - Password never leaks: WalletConfig::secret() redaction on all status lines - ConfigField cycle (Tab/Esc), footer hints, help overlay entries Redraw draw_wallet_setup (CreateWarn→CreatePass→CreateSeed→ImportPass, CreateWarn→ImportSeq→ImportPass) with spend-authority warning, SEEN challenge, zeroizing buffers preserved on submit/mismatch/Esc. Update help_overlay_text() with F6 h, F7, copy key; main_footer_hints() for F7. Extend tui_chrome.rs needle list (F6 h, F7 added). Reconcile docs: README key table gains F6 s/n/h and F7; WALLET.md wallet-screen paragraph updated; TUI.md Deliverable 5 marked implemented with after frames for each config state at 80x24 and 120x40. Tests: 30 tui_spec (incl. 7 new wallet-config tests), tui_chrome green. cargo test --locked: 0 failures. cargo clippy --all-targets: clean.
This commit is contained in:
parent
4ecd73e79f
commit
cee53cfd73
6 changed files with 766 additions and 12 deletions
|
|
@ -133,6 +133,11 @@ Focus starts on the composer so typing works immediately. `Tab` cycles panes; `j
|
|||
| `F3` | Paste a friend’s invite |
|
||||
| `F4` | Rotate **onion** (locator only) |
|
||||
| `F5` | Selected friend’s profile (`/who`) |
|
||||
| `F6` | Wallet screen (address, chain, transfers) |
|
||||
| `F6 s` | Chain source: receive-only / local / remote |
|
||||
| `F6 n` | Start or stop the app-owned daemon |
|
||||
| `F6 h` | Show receive address / seed phrase |
|
||||
| `F7` | Wallet config (RPC URL, login, spend) |
|
||||
| Enter | Send chat to the selected friend, or run a `/command` |
|
||||
| `Esc` | Close overlay / back to Main / clear composer |
|
||||
| `Ctrl-Q` | Quit: type `CLEAR`+Enter to wipe history, `QUIT`+Enter to leave it, Esc to stay |
|
||||
|
|
|
|||
Loading…
Reference in a new issue