Partner-Dashboard: Zähler selbsterklärend — 'X von Y Codes erfolgreich' statt 'verbraucht', '+N unbest.' ausgeschrieben, Einzel-Code-Badge zeigt Registrierungszahl (ein Code kann mehrere Accounts bringen)
This commit is contained in:
parent
fe783ef01b
commit
0cca716c3d
6 changed files with 20 additions and 19 deletions
|
|
@ -3,7 +3,7 @@
|
|||
Router, State-Management, Navigation, Initialisierung.
|
||||
============================================================ */
|
||||
|
||||
const APP_VER = '1262'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
|
||||
const APP_VER = '1263'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
|
||||
const APP_VERSION = '1.6.0'; // ← semantische Version, wird bei make release gesetzt
|
||||
window.APP_VER = APP_VER; // global verfügbar für andere Module (z.B. offline-indicator)
|
||||
window.APP_VERSION = APP_VERSION;
|
||||
|
|
|
|||
|
|
@ -113,7 +113,8 @@ window.Page_partner_dashboard = (() => {
|
|||
<div style="font-weight:600;font-size:var(--text-sm)">${UI.escape(b.label)}</div>
|
||||
<div class="text-xs-muted">
|
||||
${b.quantity} Codes · ${(b.created_at || '').slice(0, 10)} ·
|
||||
<span style="color:${b.codes_used > 0 ? 'var(--c-success,#16a34a)' : 'inherit'}">${b.codes_used}/${b.quantity} verbraucht</span>
|
||||
<span style="color:${b.codes_used > 0 ? 'var(--c-success,#16a34a)' : 'inherit'}"
|
||||
title="Codes mit mindestens einer bestätigten Registrierung — ein Code kann mehrere Accounts bringen">${b.codes_used} von ${b.quantity} Codes erfolgreich</span>
|
||||
</div>
|
||||
</div>
|
||||
<div style="text-align:center;min-width:48px">
|
||||
|
|
@ -122,7 +123,7 @@ window.Page_partner_dashboard = (() => {
|
|||
</div>
|
||||
<div style="text-align:center;min-width:48px"
|
||||
title="Registriert und E-Mail bestätigt${b.attempts ? ` — dazu ${b.attempts} unbestätigte` : ''}">
|
||||
<div style="font-weight:700;color:${b.registrations > 0 ? 'var(--c-success,#16a34a)' : 'inherit'}">${b.registrations}${b.attempts ? `<span class="text-xs-muted" style="font-weight:400"> +${b.attempts}</span>` : ''}</div>
|
||||
<div style="font-weight:700;color:${b.registrations > 0 ? 'var(--c-success,#16a34a)' : 'inherit'}">${b.registrations}${b.attempts ? `<span class="text-xs-muted" style="font-weight:400"> +${b.attempts} unbest.</span>` : ''}</div>
|
||||
<div class="text-xs-muted">Registr.</div>
|
||||
</div>
|
||||
<button class="btn btn-sm btn-ghost pd-qr-codes-btn" data-id="${b.id}" title="Einzel-Codes anzeigen">
|
||||
|
|
@ -194,7 +195,7 @@ window.Page_partner_dashboard = (() => {
|
|||
<code class="flex-1-min" style="color:var(--c-text-muted)">banyaro.app/q/${UI.escape(c.token)}</code>
|
||||
<span class="text-xs-muted" style="min-width:60px;text-align:right">${c.scans} Scan${c.scans === 1 ? '' : 's'}</span>
|
||||
${used
|
||||
? `<span class="badge" style="background:#dcfce7;color:#16a34a" title="Registrierung am ${(c.first_registration_at || '').slice(0, 10)}">● verbraucht</span>`
|
||||
? `<span class="badge" style="background:#dcfce7;color:#16a34a" title="Erste Registrierung am ${(c.first_registration_at || '').slice(0, 10)}">● ${c.registrations} Registrierung${c.registrations === 1 ? '' : 'en'}</span>`
|
||||
: scanned
|
||||
? `<span class="badge" style="background:#fef9c3;color:#a16207" title="Gescannt${c.last_scan_at ? ' am ' + c.last_scan_at.slice(0, 10) : ''}, noch keine bestätigte Registrierung">◐ gescannt</span>`
|
||||
: `<span class="badge" style="background:var(--c-surface-2);color:var(--c-text-muted)">○ frei</span>`}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue