This commit is contained in:
2026-06-08 04:19:53 -04:00
parent 9881982d43
commit 2a5d6788c1

View File

@@ -40,6 +40,15 @@ function g1wallet_render_landing($access) {
$out .= '<p class="text-muted">Your self-sovereign Ğ1 identity. Keys are derived in your browser and never leave your device.</p>';
$out .= '</div>';
// Optional participation notice.
$out .= '<p class="text-muted small g1wallet-optional-notice">';
$out .= 'The Ğ1 Wallet is <strong>optional</strong>. ';
$out .= 'Ğ1 is a libre currency independent of fiat, used for valuing and bartering surplus capacity among private individuals. ';
$out .= 'The Civic Infrastructure implements it for participants who choose to engage in that economy. ';
$out .= 'It is not required for participation in the diagnostic record system. ';
$out .= 'Future addons such as Barter will require an active wallet — this page is where you manage it.';
$out .= '</p>';
// Locked view — shown by default. JS hides this and shows unlocked-view on successful derivation.
$out .= '<div id="g1wallet-locked-view">';
$out .= g1wallet_render_unlock_form();
@@ -72,7 +81,7 @@ function g1wallet_render_unlock_form() {
$out .= '<input type="text" class="form-control" id="g1wallet-pseudo" name="g1wallet_pseudo"
autocomplete="username" autocorrect="off" autocapitalize="off" spellcheck="false"
placeholder="your Ğ1 pseudo">';
$out .= '<div class="form-text">Your Ğ1 pseudo — the same one you use in Cesium or Ğecko.</div>';
$out .= '<div class="form-text">Your Ğ1 pseudo — the identifier you chose when creating your Ğ1 account.</div>';
$out .= '</div>';
$out .= '<div class="mb-3">';
@@ -90,14 +99,6 @@ function g1wallet_render_unlock_form() {
$out .= '<span id="g1wallet-unlock-spinner" class="ms-2 text-muted small" style="display:none;">Deriving keypair…</span>';
$out .= '</div>';
$out .= '<div class="mt-3">';
$out .= '<p class="text-muted small">';
$out .= 'Don\'t have a Ğ1 account? You can create one using ';
$out .= '<a href="https://cesium.app" target="_blank" rel="noopener">Cesium</a> or ';
$out .= '<a href="https://gecko.duniter.org" target="_blank" rel="noopener">Ğecko</a>.';
$out .= '</p>';
$out .= '</div>';
$out .= '</div>';
return $out;
}
@@ -110,8 +111,6 @@ function g1wallet_render_unlocked_placeholder($access) {
// Placeholder for the unlocked wallet interface.
// Populated by g1wallet.js once key derivation is implemented.
$pubkey_url = z_root() . '/g1wallet/pubkey';
$out = '<div class="g1wallet-unlocked">';
$out .= '<div class="alert alert-success d-flex justify-content-between align-items-center">';
$out .= '<span><strong>Wallet unlocked.</strong></span>';