Chat bubble back on every Control Room screen: the shell loads chat.js once per page (it only lived on the retired /my dashboard); Control Room styles for the widget

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-10-18 06:35:55 -05:00
parent 57b8eb4208
commit 8a1a6b1f6d
14 changed files with 44 additions and 23 deletions
+1 -1
View File
@@ -6,7 +6,7 @@
<title>Admin | LinkSpin</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Rajdhani:wght@600;700&family=Manrope:wght@400;500;700;800&family=JetBrains+Mono:wght@500;700&display=swap">
<link rel="icon" type="image/png" href="/logo-icon.png">
<link rel="stylesheet" href="/assets/cr.css?v=20261018a">
<link rel="stylesheet" href="/assets/cr.css?v=20261018c">
<style>@import url("/assets/site.css?v=ls20260916a") layer(legacy);</style>
<link rel="stylesheet" href="/assets/tools.css?v=20261008a">
<link rel="stylesheet" href="/assets/admin.css?v=20261012a">
+2 -2
View File
@@ -6,7 +6,7 @@
<meta name="robots" content="noindex, nofollow">
<title>Ads · LinkSpin</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Rajdhani:wght@600;700&family=Manrope:wght@400;500;700&family=JetBrains+Mono:wght@500;700&display=swap">
<link rel="stylesheet" href="/assets/cr.css?v=20261018a">
<link rel="stylesheet" href="/assets/cr.css?v=20261018c">
<style>
/* layout by the space the screen really has (rail expanded or collapsed), not the viewport: the campaign table squeezed
its first column to a word, then a letter, per line once the rail and the side cards took the width (tester, 2026-10-18) */
@@ -69,7 +69,7 @@
</div>
</div>
</div>
<script src="/assets/cr-shell.js?v=20261017p"></script>
<script src="/assets/cr-shell.js?v=20261018c"></script>
<script src="/assets/ads-screen.js?v=20261018a"></script>
</body>
</html>
+6
View File
@@ -48,8 +48,14 @@ window.CR = (function () {
back.addEventListener('keydown', e => { if (e.key === 'Enter' && e.target.tagName !== 'TEXTAREA') back.querySelector('#dlgOk').click(); if (e.key === 'Escape') done(null); });
});
}
// the chat bubble on every Control Room screen (Marty, 2026-10-18: it vanished when /my was retired); once per page
function chat() {
if (document.getElementById('iapChat') || document.querySelector('script[src^="/assets/chat.js"]')) return;
const s = document.createElement('script'); s.src = '/assets/chat.js?v=20261018c'; s.defer = true; document.body.appendChild(s);
}
function mount(o) {
const page = $('page'); if (!page) return;
chat();
const app = document.createElement('div'); app.className = 'app'; let railWide = true; try { railWide = localStorage.getItem('cr.rail') !== 'narrow'; } catch (e) {} if (railWide) app.classList.add('wide'); // expanded by default (Marty 2026-10-08), the choice remembered per browser
app.innerHTML = '<nav class="rail" aria-label="LinkSpin"><a class="mark" href="/" aria-label="LinkSpin home" title="LinkSpin"></a>'
+ NAV.map(([k, label, href, svg, sec]) => '<a ' + (k === 'help' ? 'id="crHelp" ' : '') + 'href="' + (BUILT.has(k) ? href : FALLBACK[k]) + '"' + (k === o.active ? ' class="on' + (sec ? ' rsec' : '') + '" aria-current="page"' : (sec ? ' class="rsec"' : '')) + ' title="' + label + '" aria-label="' + label + '"><svg viewBox="0 0 24 24">' + svg + '</svg><span class="lbl">' + label + '</span></a>').join('')
+15
View File
@@ -188,3 +188,18 @@ label.lbl{display:grid;gap:5px;font-size:10.5px;font-weight:700;letter-spacing:.
/* JetBrains Mono joins "//" into a ligature that reads as a missing slash in URLs (Marty 2026-10-07): no ligatures anywhere */
body,input,textarea,button,code,.mono{font-variant-ligatures:none;font-feature-settings:"liga" 0,"calt" 0}
/* chat widget on Control Room screens (2026-10-18: the bubble only lived on the retired /my dashboard) */
#iapChatBtn{position:fixed;right:20px;bottom:44px;z-index:60;width:56px;height:56px;border-radius:50%;border:0;background:var(--accent,#3b9dff);color:#fff;font-size:24px;cursor:pointer;box-shadow:0 8px 28px rgba(20,60,140,.35)}
#iapChatBtn:hover{transform:scale(1.06)}
#iapChatPanel{position:fixed;right:20px;bottom:112px;z-index:60;width:min(360px,calc(100vw - 40px));background:#fff;color:var(--ink,#14213d);border:1px solid var(--line-strong,#c9d3e3);border-radius:16px;overflow:hidden;box-shadow:0 24px 60px rgba(10,20,50,.28);display:flex;flex-direction:column}
#iapChatPanel .ch-head{padding:14px 16px;border-bottom:1px solid var(--line,#e2e8f2);font-family:var(--display,inherit);position:relative;font-weight:700}
#iapChatPanel .ch-head .ch-sub{display:block;font-size:12px;font-weight:400;color:var(--muted,#64748b)}
#iapChatClose{position:absolute;right:10px;top:10px;background:transparent;border:0;color:var(--muted,#64748b);font-size:22px;cursor:pointer;line-height:1}
#iapChatPanel .ch-msgs{padding:14px;overflow-y:auto;max-height:340px;display:flex;flex-direction:column;gap:10px}
#iapChatPanel .ch-m{border-radius:12px;padding:9px 13px;font-size:13.5px;line-height:1.5;max-width:86%}
#iapChatPanel .ch-m.bot{background:rgba(59,157,255,.08);border:1px solid rgba(59,157,255,.22);align-self:flex-start}
#iapChatPanel .ch-m.me{background:#f1f4f9;border:1px solid var(--line,#e2e8f2);align-self:flex-end}
#iapChatPanel .ch-m a{word-break:break-all}
#iapChatPanel .ch-input{display:flex;gap:8px;padding:11px;border-top:1px solid var(--line,#e2e8f2)}
#iapChatPanel .ch-input input{flex:1;min-width:0;padding:9px 11px;border:1px solid var(--line-strong,#c9d3e3);border-radius:10px;font:inherit}
#iapChatPanel .ch-input button{background:var(--accent,#3b9dff);color:#fff;border:0;border-radius:10px;padding:0 16px;font-weight:700;cursor:pointer}
+2 -2
View File
@@ -6,7 +6,7 @@
<meta name="robots" content="noindex, nofollow">
<title>Credits · LinkSpin</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Rajdhani:wght@600;700&family=Manrope:wght@400;500;700&family=JetBrains+Mono:wght@500;700&display=swap">
<link rel="stylesheet" href="/assets/cr.css?v=20261018a">
<link rel="stylesheet" href="/assets/cr.css?v=20261018c">
<style>
.body{padding:16px 24px;display:grid;gap:16px}
.two{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:16px;align-items:start}
@@ -82,7 +82,7 @@
</div>
<script src="/assets/common.js?v=20261016a"></script>
<script src="/assets/wallet.js?v=20261018a"></script>
<script src="/assets/cr-shell.js?v=20261017p"></script>
<script src="/assets/cr-shell.js?v=20261018c"></script>
<script src="/assets/credits-screen.js?v=20261018a"></script>
</body>
</html>
+2 -2
View File
@@ -6,7 +6,7 @@
<meta name="robots" content="noindex, nofollow">
<title>Help · LinkSpin</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Rajdhani:wght@600;700&family=Manrope:wght@400;500;700&family=JetBrains+Mono:wght@500;700&display=swap">
<link rel="stylesheet" href="/assets/cr.css?v=20261018a">
<link rel="stylesheet" href="/assets/cr.css?v=20261018c">
<style>
.body{padding:16px 24px;display:grid;gap:16px;max-width:980px}
.hl .hd,.hl .rw{grid-template-columns:minmax(0,1fr) 150px 130px}.hl .rw{cursor:pointer}
@@ -29,7 +29,7 @@
<div id="page">
<div class="body" id="helpBody"><div class="panel"><span class="muted">loading</span></div></div>
</div>
<script src="/assets/cr-shell.js?v=20261017p"></script>
<script src="/assets/cr-shell.js?v=20261018c"></script>
<script src="/assets/help-screen.js?v=20261016a"></script>
</body>
</html>
+2 -2
View File
@@ -6,7 +6,7 @@
<meta name="robots" content="noindex, nofollow">
<title>Links · LinkSpin</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Rajdhani:wght@600;700&family=Manrope:wght@400;500;700&family=JetBrains+Mono:wght@500;700&display=swap">
<link rel="stylesheet" href="/assets/cr.css?v=20261018a">
<link rel="stylesheet" href="/assets/cr.css?v=20261018c">
<style>
.ws{display:grid;grid-template-columns:320px minmax(0,1fr);min-height:calc(100vh - 94px)}
.dbody .tiles{grid-template-columns:repeat(auto-fit,minmax(128px,1fr))}
@@ -135,7 +135,7 @@
</div>
</div>
</div>
<script src="/assets/cr-shell.js?v=20261017p"></script>
<script src="/assets/cr-shell.js?v=20261018c"></script>
<script src="/assets/links.js?v=20261012a"></script>
</body>
</html>
+2 -2
View File
@@ -6,7 +6,7 @@
<title>More · LinkSpin</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Rajdhani:wght@600;700&family=Manrope:wght@400;500;700;800&family=JetBrains+Mono:wght@500;700&display=swap">
<link rel="icon" type="image/png" href="/logo-icon.png">
<link rel="stylesheet" href="/assets/cr.css?v=20261018a">
<link rel="stylesheet" href="/assets/cr.css?v=20261018c">
<style>@import url("/assets/site.css?v=ls20260916a") layer(legacy);</style>
<link rel="stylesheet" href="/assets/tools.css?v=20261008a">
</head>
@@ -1008,7 +1008,7 @@
</div>
</div>
<script src="/assets/common.js?v=20261016a"></script>
<script src="/assets/cr-shell.js?v=20261017p"></script>
<script src="/assets/cr-shell.js?v=20261018c"></script>
<script src="/assets/tools.js?v=20261011a"></script>
<script src="/assets/wallet.js?v=20261018a"></script>
<script src="/assets/promo.js?v=20261009b"></script>
+2 -2
View File
@@ -6,7 +6,7 @@
<meta name="robots" content="noindex, nofollow">
<title>Pages · LinkSpin</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Rajdhani:wght@600;700&family=Manrope:wght@400;500;700&family=JetBrains+Mono:wght@500;700&display=swap">
<link rel="stylesheet" href="/assets/cr.css?v=20261018a">
<link rel="stylesheet" href="/assets/cr.css?v=20261018c">
<style>
.look{display:grid;gap:10px;margin:6px 0 10px}.lk-row{display:flex;gap:10px;align-items:flex-start}.lk-k{flex:none;width:64px;font:700 11px var(--mono);letter-spacing:.1em;text-transform:uppercase;color:var(--muted);padding-top:9px}
.lk-opts{display:flex;gap:6px;flex-wrap:wrap}.lk-opts button{font:600 12px var(--body);padding:7px 10px;border-radius:7px;border:1px solid var(--line);background:transparent;color:var(--fg);cursor:pointer}.lk-opts button.on{border-color:var(--accent);background:rgba(59,157,255,.12)}
@@ -72,7 +72,7 @@
</div>
</div>
</div>
<script src="/assets/cr-shell.js?v=20261017p"></script>
<script src="/assets/cr-shell.js?v=20261018c"></script>
<script src="/assets/pages-screen.js?v=20261011a"></script>
</body>
</html>
+2 -2
View File
@@ -6,7 +6,7 @@
<meta name="robots" content="noindex, nofollow">
<title>Reports · LinkSpin</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Rajdhani:wght@600;700&family=Manrope:wght@400;500;700&family=JetBrains+Mono:wght@500;700&display=swap">
<link rel="stylesheet" href="/assets/cr.css?v=20261018a">
<link rel="stylesheet" href="/assets/cr.css?v=20261018c">
<style>
.body{padding:16px 24px;display:grid;gap:16px}
.two{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:16px}
@@ -70,7 +70,7 @@
</div>
</div>
</div>
<script src="/assets/cr-shell.js?v=20261017p"></script>
<script src="/assets/cr-shell.js?v=20261018c"></script>
<script src="/assets/reports.js?v=20261012a"></script>
</body>
</html>
+2 -2
View File
@@ -6,7 +6,7 @@
<meta name="robots" content="noindex, nofollow">
<title>Traffic sources · LinkSpin</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Rajdhani:wght@600;700&family=Manrope:wght@400;500;700&family=JetBrains+Mono:wght@500;700&display=swap">
<link rel="stylesheet" href="/assets/cr.css?v=20261018a">
<link rel="stylesheet" href="/assets/cr.css?v=20261018c">
<style>
.ws{display:grid;grid-template-columns:320px minmax(0,1fr);min-height:calc(100vh - 94px)}
.list{border-right:1px solid var(--line);display:flex;flex-direction:column;min-height:0;background:rgba(255,255,255,.55)}
@@ -123,7 +123,7 @@
</div>
</div>
</div>
<script src="/assets/cr-shell.js?v=20261017p"></script>
<script src="/assets/cr-shell.js?v=20261018c"></script>
<script src="/assets/sources-screen.js?v=20261012a"></script>
</body>
</html>
+2 -2
View File
@@ -6,7 +6,7 @@
<meta name="robots" content="noindex, nofollow">
<title>Team · LinkSpin</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Rajdhani:wght@600;700&family=Manrope:wght@400;500;700&family=JetBrains+Mono:wght@500;700&display=swap">
<link rel="stylesheet" href="/assets/cr.css?v=20261018a">
<link rel="stylesheet" href="/assets/cr.css?v=20261018c">
<style>
.body{padding:16px 24px;display:grid;gap:16px}
.two{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:16px}
@@ -37,7 +37,7 @@
</div>
</div>
</div>
<script src="/assets/cr-shell.js?v=20261017p"></script>
<script src="/assets/cr-shell.js?v=20261018c"></script>
<script src="/assets/team.js?v=20260929a"></script>
</body>
</html>
+2 -2
View File
@@ -6,7 +6,7 @@
<meta name="robots" content="noindex, nofollow">
<title>Wallet · LinkSpin</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Rajdhani:wght@600;700&family=Manrope:wght@400;500;700&family=JetBrains+Mono:wght@500;700&display=swap">
<link rel="stylesheet" href="/assets/cr.css?v=20261018a">
<link rel="stylesheet" href="/assets/cr.css?v=20261018c">
<style>
.body{padding:16px 24px;display:grid;gap:16px}
.two{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:16px}
@@ -31,7 +31,7 @@
</div>
</div>
</div>
<script src="/assets/cr-shell.js?v=20261017p"></script>
<script src="/assets/cr-shell.js?v=20261018c"></script>
<script src="/assets/wallet-screen.js?v=20261018a"></script>
</body>
</html>
+2 -2
View File
@@ -6,7 +6,7 @@
<meta name="robots" content="noindex, nofollow">
<title>Zones · LinkSpin</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Rajdhani:wght@600;700&family=Manrope:wght@400;500;700&family=JetBrains+Mono:wght@500;700&display=swap">
<link rel="stylesheet" href="/assets/cr.css?v=20261018a">
<link rel="stylesheet" href="/assets/cr.css?v=20261018c">
<style>
.body{padding:16px 24px;display:grid;gap:16px}
.two{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:16px}
@@ -41,7 +41,7 @@
</div>
</div>
</div>
<script src="/assets/cr-shell.js?v=20261017p"></script>
<script src="/assets/cr-shell.js?v=20261018c"></script>
<script src="/assets/zones-screen.js?v=20261010a"></script>
</body>
</html>