feat(machine): add Zeus and Lightning.Pub QR codes to mock UI

dev.sh atm auto-injects VITE_LNDCONNECT_URL from lnd-3 credentials.
Idle screen shows "Zeus QR" and "Lightning.Pub nprofile" buttons (debug
mode) that open fullscreen overlays with scannable 400px QR codes and
copy-to-clipboard support. Also makes the debug overlay collapsible.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Patrick Mulligan 2026-02-17 12:11:55 -05:00
commit 60f4eb6639
6 changed files with 122 additions and 496 deletions

View file

@ -980,6 +980,13 @@ cmd_atm() {
fi
fi
# Auto-generate lndconnect URI for Zeus QR in mock UI
local lndconnect=$(generate_lndconnect 2>/dev/null || echo "")
if [[ -n "$lndconnect" ]]; then
export VITE_LNDCONNECT_URL="$lndconnect"
log "Zeus lndconnect injected into ATM UI"
fi
if [[ "$background" == "true" ]]; then
local log_file="$STATE_DIR/atm.log"
log "Starting ATM application in background..."
@ -997,6 +1004,9 @@ cmd_atm() {
echo -e "${CYAN}ATM Mock Mode:${NC}"
echo " - Press 'b' to insert a bill (simulates cash insertion)"
echo " - Use the UI to complete transactions"
if [[ -n "$lndconnect" ]]; then
echo -e " - ${GREEN}Zeus QR available on idle screen${NC}"
fi
echo ""
cd "$atm_dir" && pnpm dev
fi