Skip to content

Fix: Surface external testnet faucet link in console for new users without gas - #1

Merged
Rorical merged 2 commits into
mainfrom
copilot/fix-console-page-faucet
Mar 15, 2026
Merged

Fix: Surface external testnet faucet link in console for new users without gas#1
Rorical merged 2 commits into
mainfrom
copilot/fix-console-page-faucet

Conversation

Copilot AI commented Mar 15, 2026

Copy link
Copy Markdown
Contributor

The in-console contract faucet requires gas to call claim(), creating a catch-22 for new users with zero balance. The external web faucet at https://testnet-faucet.muri.moe/ dispenses tokens gaslessly but was never surfaced in the console UI.

Changes

  • Console.jsx — Import FAUCET_URL from config; add a link to the external faucet in two places:

    • Disconnected gate: replaces vague copy with a direct link and explicit "no gas required" callout
    • ClaimTokens faucet bar: adds a secondary hint below the claim button for users who lack gas for the first on-chain call
  • Console.css — Adds .faucet-bar__hint styles (and a/a:hover) consistent with existing .console-gate__hint link pattern

  • package-lock.json — Regenerated to sync with package.json; was missing utf-8-validate, @base-org/account, brotli-wasm, and preact, causing npm ci to fail in CI

// Disconnected gate
<p className="console-gate__hint">
  Need tokens? Get free testnet MURI from the{' '}
  <a href={FAUCET_URL} target="_blank" rel="noopener noreferrer">Testnet Faucet</a>
  {' '}— no gas required.
</p>

// Connected, inside ClaimTokens faucet bar
<span className="faucet-bar__hint">
  Need gas for the first claim?{' '}
  <a href={FAUCET_URL} target="_blank" rel="noopener noreferrer">Get free tokens here</a>.
</span>

📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.

…ithout gas

Co-authored-by: Rorical <46294886+Rorical@users.noreply.github.com>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Mar 15, 2026

Copy link
Copy Markdown

Deploying muri-website with  Cloudflare Pages  Cloudflare Pages

Latest commit: 45d6e38
Status:🚫  Build failed.

View logs

Copilot AI changed the title [WIP] Fix faucet interaction on console page for new users Fix: Add external testnet faucet link in console page for new users without gas Mar 15, 2026
Copilot AI requested a review from Rorical March 15, 2026 17:47
Copilot AI changed the title Fix: Add external testnet faucet link in console page for new users without gas Fix: Surface external testnet faucet link in console for new users without gas Mar 15, 2026
@Rorical
Rorical marked this pull request as ready for review March 15, 2026 18:25
@Rorical
Rorical merged commit f498e0c into main Mar 15, 2026
1 of 2 checks passed
@Rorical
Rorical deleted the copilot/fix-console-page-faucet branch March 15, 2026 18:25
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