Align index.html with yearly-listing terms

- Sidebar: replace vague 'Bid-based ranking' lead with the actual
  4-criteria ordering (excess donated, total paid, base fee, points)
- Sidebar: drop 'Early-adopter guarantee 12 months' (contradicts
  Terms 2.04 pro-rata conversion of legacy balances); add
  'Listing period 365 days' / 'Renewal window' facts instead
- Info block 03: rename 'Early Adopter Incentives' -> 'Listing &
  Renewal', remove the unconditional 12-month promise, describe the
  real pay -> listed -> renewal -> expiry lifecycle from Terms Sec. 2
- Rename 'Next deposit' -> 'Next renewal' (label + status text)
- Fix s-block stat: use max(last_block) across all servers instead of
  getFiltered()[0].last_block, since the list order no longer tracks
  block height
- Clarify 'Server added' -> 'Server verified... listed after 3
  confirmations', matching Terms 2.01 (listing starts at 3 confs,
  not at submission)

Note: result.donation (singular) confirmed correct against the
current API by backend — left untouched, no change needed here.
This commit is contained in:
Claude (draft, do not push as-is)
2026-07-17 00:01:41 +02:00
parent 57347e87e7
commit 7be9959241

View File

@@ -319,7 +319,7 @@ footer a{color:var(--accent);text-decoration:none}
<div class="row"><span>Contact</span><span id="iv-contact"></span></div>
<div class="row"><span>Server</span><span id="iv-url"></span></div>
<div class="row"><span>Will Executor</span><span><a id="iv-weinfo" href="#" target="_blank"></a></span></div>
<div class="row" id="iv-nextdep-row" style="display:none"><span>Next deposit</span><span id="iv-nextdep"></span></div>
<div class="row" id="iv-nextdep-row" style="display:none"><span>Next renewal</span><span id="iv-nextdep"></span></div>
<div id="qrcode"></div>
<button class="btn-share" id="share-btn">Share invoice</button>
<p class="note">
@@ -331,10 +331,11 @@ footer a{color:var(--accent);text-decoration:none}
<div class="panel">
<h2>How ranking works</h2>
<p class="lead">Bid-based ranking: higher contributions rank higher.</p>
<p class="lead">Ordered by excess donated, then total paid, then base fee (lower first), then WeTime points.</p>
<div style="display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid var(--line);font-size:13px"><span style="color:var(--muted)">Yearly fee</span><b class="mono"><span id="thr-min">50,000</span> sats</b></div>
<div style="display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid var(--line);font-size:13px"><span style="color:var(--muted)">Plugin integration</span><b>automatic</b></div>
<div style="display:flex;justify-content:space-between;padding:8px 0;font-size:13px"><span style="color:var(--muted)">Early-adopter guarantee</span><b>12 months</b></div>
<div style="display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid var(--line);font-size:13px"><span style="color:var(--muted)">Listing period</span><b>365 days</b></div>
<div style="display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid var(--line);font-size:13px"><span style="color:var(--muted)">Renewal window</span><b>from 6 months before expiry</b></div>
<div style="display:flex;justify-content:space-between;padding:8px 0;font-size:13px"><span style="color:var(--muted)">Plugin integration</span><b>automatic</b></div>
</div>
</div>
@@ -354,8 +355,8 @@ footer a{color:var(--accent);text-decoration:none}
<div class="info-block">
<span class="ic">03</span>
<h3>Early Adopter Incentives</h3>
<p>To support the project's initial launch phase, we plan to maintain the first Will Executor servers for a minimum of 12 months, rewarding early participants. Long-term position is determined by total paid, base fee, and WeTime points (see <a href="/terms.html" target="_blank">Terms</a>).</p>
<h3>Listing &amp; Renewal</h3>
<p>A flat yearly fee buys 365 days of presence in the list, starting when your payment reaches 3 confirmations. You can renew for one additional year at any time from 6 months before expiry; listings that are not renewed are removed at expiry. See the <a href="/terms.html" target="_blank">Terms</a> for details.</p>
</div>
<div class="info-block">
@@ -439,8 +440,9 @@ function render() {
const online = allServers.filter(d => d.status === "OK").length;
document.getElementById('s-online').textContent = online;
document.getElementById('s-total').textContent = allServers.length;
const top = getFiltered()[0];
document.getElementById('s-block').textContent = top ? fmt(top.last_block) : '—';
// Highest known block across all servers (the list is ranked by fee/points, not by height)
const maxBlock = allServers.reduce((m, d) => Math.max(m, d.last_block || 0), 0);
document.getElementById('s-block').textContent = maxBlock ? fmt(maxBlock) : '—';
}
async function fetchData() {
@@ -587,7 +589,7 @@ document.getElementById('terms-accept').addEventListener('click', async function
document.getElementById('iv-nextdep').textContent = result.next_deposit_date || '—';
document.getElementById('iv-nextdep-row').style.display = 'flex';
document.getElementById('iv-status').className = 'ok-line';
document.getElementById('iv-status').textContent = 'Server is already listed. Next deposit: ' + (result.next_deposit_date || '—');
document.getElementById('iv-status').textContent = 'Server is already listed. Next renewal: ' + (result.next_deposit_date || '—');
const inv = document.getElementById('invoice');
inv.classList.add('show');
inv.scrollIntoView({ behavior: 'smooth', block: 'nearest' });
@@ -623,7 +625,7 @@ document.getElementById('terms-accept').addEventListener('click', async function
}
};
document.getElementById('iv-status').className = 'ok-line';
document.getElementById('iv-status').textContent = '✓ Server added: ' + serverUrl + '. Pay the invoice to complete.';
document.getElementById('iv-status').textContent = '✓ Server verified: ' + serverUrl + '. Pay the invoice — it will be listed after 3 confirmations.';
const inv = document.getElementById('invoice');
inv.classList.add('show');
inv.scrollIntoView({ behavior: 'smooth', block: 'nearest' });