Skip to content

fix(web): no false testnet banner when API is down + Show password toggle#269

Merged
Jolah1 merged 1 commit into
mainfrom
fix/alpha-banner-offline
Jul 4, 2026
Merged

fix(web): no false testnet banner when API is down + Show password toggle#269
Jolah1 merged 1 commit into
mainfrom
fix/alpha-banner-offline

Conversation

@Jolah1

@Jolah1 Jolah1 commented Jul 4, 2026

Copy link
Copy Markdown
Owner

Two findings from the desktop review pass (1440px, all public pages screenshotted from a production build):

  1. False testnet warning on mainnet. The alpha banner rendered once the /health probe completed, including failures, and the network state defaults to "testnet". So any API blip made the live mainnet site announce "running on Bitcoin testnet. Don't use real-money keys yet." Now the banner only renders when /health succeeds; the offline banner covers the rest. Verified by screenshot with the API unreachable: only the honest offline banner shows.

  2. Show password toggle on sign-in. The field hid every character with no way to check; password UX is money UX here since the password unseals the vault key.

Checks: tsc clean, 58 web tests, eslint clean, vite build ok.

🤖 Generated with Claude Code

…ggle

Desktop review findings:

- AlphaBanner rendered whenever /health had *completed*, including
  failures. `network` defaults to "testnet", so a mainnet owner whose
  server was briefly unreachable saw "Alpha: GhostKey is running on
  Bitcoin testnet. Don't use real-money keys yet" - false and alarming
  at the worst moment. Banner now renders only when /health succeeds;
  ServerOfflineBanner already covers the failure case.
- Sign-in password field gets a Show/Hide toggle. Mistyped passwords
  are the top sign-in failure and the field hid every character.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@vercel

vercel Bot commented Jul 4, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ghost-key Ready Ready Preview, Comment Jul 4, 2026 8:47am

@Jolah1 Jolah1 merged commit c60bb51 into main Jul 4, 2026
8 checks passed
@Jolah1 Jolah1 deleted the fix/alpha-banner-offline branch July 4, 2026 08:49
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.

1 participant