feat(machine): add regtest network badge and rename Zeus lnd-3 to lnd-alice

Shows a warning-colored badge with the network name (regtest/testnet) when
not on mainnet. Also renames Zeus QR references from lnd-3 to lnd-alice.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Patrick Mulligan 2026-02-19 16:33:11 -05:00
commit 45975bccd4
2 changed files with 9 additions and 2 deletions

View file

@ -8,6 +8,7 @@ import { Button } from '@/components/ui/button'
const atmStore = useAtmStore()
const { current: currentTheme, themes } = useTheme()
const debugExpanded = ref(false)
const network = import.meta.env.VITE_NETWORK || 'regtest'
function formatSats(sats: number): string {
return sats.toLocaleString()
@ -59,6 +60,12 @@ function toggleLiveServices() {
Offline
</Badge>
<Badge v-else class="bg-muted text-muted-foreground">Mock</Badge>
<Badge
v-if="network !== 'mainnet'"
class="bg-warning/20 text-warning border border-warning/30"
>
{{ network }}
</Badge>
</div>
<!-- Debug overlay (dev only) -->

View file

@ -112,7 +112,7 @@ function handleCashOut() {
class="text-xs text-muted-foreground"
@click="showZeusQR = true"
>
Zeus QR (lnd-3)
Zeus QR (lnd-alice)
</Button>
<Button
v-if="lpNprofile"
@ -131,7 +131,7 @@ function handleCashOut() {
class="fixed inset-0 z-[100] flex flex-col items-center justify-center gap-4 bg-black/90"
@click.self="showZeusQR = false"
>
<p class="text-sm text-white/70">Scan with Zeus to connect to lnd-3</p>
<p class="text-sm text-white/70">Scan with Zeus to connect to lnd-alice</p>
<div class="rounded-2xl bg-white p-4">
<QRCode :value="lndconnectUrl" :size="400" />
</div>