Skip to content

Add relay selection to the login screen - #80

Draft
oth-body wants to merge 1 commit into
masterfrom
worktree-hoot-relay-select
Draft

oth-body wants to merge 1 commit into
masterfrom
worktree-hoot-relay-select

Conversation

@oth-body

Copy link
Copy Markdown
Owner

Summary

  • Adds a "Configure relays" option to the TUI login menu, reachable both when no profiles exist yet and when choosing between saved profiles, so relays can be reviewed/added/removed before signing in — this matters most for QR (NIP-46) pairing, which dials the configured relay set.
  • Wires up the relay screen's a (add) / d (delete) key handling and list navigation, which existed in the UI (viewRelays) but were never connected to Update() — pressing them previously did nothing.
  • Esc from the relay screen returns to the login menu when no session exists yet (previously it unconditionally went to the Home screen, which doesn't exist pre-login).

Test plan

  • go build ./...
  • go test ./... (existing suite, all green)
  • Added tui/tui_relay_prelogin_test.go covering: login menu shows "Configure relays", selecting it preloads saved relays, add/delete relay calls through to the save callback, Esc returns to login (not Home) pre-login

🤖 Generated with Claude Code

The login menu now has a "Configure relays" option so relays can be
reviewed, added, and removed before signing in. This matters most for
QR (NIP-46) pairing, which dials the configured relay set.

Also wires up the relay screen's add/delete/navigate controls
('a'/'d' keys, list navigation, Enter-to-save), which existed in the
UI but were never connected to any key handling.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants