More panes inside the Control Room: /tools mounts the shell (rail, topbar, strip), legacy site.css layered under cr.css + tools.css light restyle, CR tabs for Start/Promo tools/Training/Pipeline/My line/Profile, shell-owned sign-in; Promo tools gets its own rail entry
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
+8
-2
@@ -633,7 +633,7 @@
|
||||
|
||||
// ── back-office menu: hash-routed panes ───────────────
|
||||
const PANES = ['overview', 'line', 'pipeline', 'rotator', 'buy', 'campaigns', 'earn', 'earnings', 'promo', 'training', 'wallet', 'profile'];
|
||||
const TITLES = { overview: 'Overview', line: 'My line', pipeline: 'Pipeline', rotator: 'Rotator', buy: 'Buy packages', campaigns: 'Campaigns',
|
||||
const TITLES = { overview: 'Start', line: 'My line', pipeline: 'Pipeline', rotator: 'Rotator', buy: 'Buy packages', campaigns: 'Campaigns',
|
||||
earn: 'Earn credits', earnings: 'Earnings', promo: 'Promo tools', training: 'Training',
|
||||
wallet: 'Wallet & account', profile: 'Profile' };
|
||||
const MOVED = { buy: '/credits', rotator: '/links', campaigns: '/ads', earn: '/ads', earnings: '/credits', wallet: '/wallet' }; // control-room screens (2026-10-08)
|
||||
@@ -647,6 +647,7 @@
|
||||
document.querySelectorAll('.bo-menu [data-pane]').forEach(b =>
|
||||
b.classList.toggle('on', b.dataset.pane === name));
|
||||
if ($('boTitle')) $('boTitle').textContent = TITLES[name];
|
||||
{ const h1 = document.querySelector('.topbar h1'); if (h1 && TITLES[name]) h1.textContent = TITLES[name]; }
|
||||
// member ads: a fresh text ad in the strip under the title, and a banner at the foot of the pane
|
||||
IAP.adSlot('text', 'adStripTop');
|
||||
if ($('adSlotPane-' + name)) IAP.adSlot('banner', 'adSlotPane-' + name);
|
||||
@@ -685,9 +686,14 @@
|
||||
// email card with a finish-setup note; verifying the code links that wallet.
|
||||
const walletOnly = !!(me && me.signedIn && !me.email);
|
||||
const signedIn = me && me.signedIn && !walletOnly;
|
||||
$('authArea').hidden = !!signedIn;
|
||||
// signed out: the Control Room sign-in dialog (the old email card only serves the wallet-only finish-setup case)
|
||||
$('authArea').hidden = !!signedIn || !walletOnly;
|
||||
$('memberArea').hidden = !signedIn;
|
||||
if ($('mcFinish')) $('mcFinish').hidden = !walletOnly;
|
||||
if (!signedIn && !walletOnly && window.CR) { // the Control Room shell runs the sign-in dialog; render again once it reports a session
|
||||
if (window.LS_SESSION_READY && (render.retries = (render.retries || 0) + 1) < 6) { setTimeout(render, 400); }
|
||||
else if (!render.waiting) { render.waiting = true; window.addEventListener('ls:session', () => { render.waiting = false; render(); }, { once: true }); }
|
||||
}
|
||||
if (!signedIn) return;
|
||||
if ($('adminLink')) $('adminLink').hidden = !me.isAdmin; // admin portal link, only for ADMIN_EMAIL
|
||||
// REQUIRED first step (Marty, 2026-09-12): no username, nothing else. The modal cannot be
|
||||
|
||||
Reference in New Issue
Block a user