Pipeline board colour: one colour per stage (tinted column, top bar, coloured title, count pill, card stripe), white cards with dark names, amber stalled cards and chips; cache tags bumped

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-10-18 16:42:19 -05:00
parent c963226703
commit 4dae478902
4 changed files with 31 additions and 5 deletions
+1 -1
View File
@@ -8,7 +8,7 @@
<link rel="icon" type="image/png" href="/logo-icon.png">
<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/tools.css?v=20261018pc">
<link rel="stylesheet" href="/assets/admin.css?v=20261018a">
</head>
<body>
+2 -2
View File
@@ -1366,7 +1366,7 @@
if (c.tag) chips.push('<span class="chip flat">' + esc(c.tag) + '</span>');
if (c.kind === 'member' && c.buyers) chips.push('<span class="chip flat">' + c.buyers + ' buyer' + (c.buyers === 1 ? '' : 's') + '</span>');
const stage = showStage ? (PIPE.stages.find(s => s.key === c.stage) || {}).label || '' : '';
return '<div class="pipe-card' + (c.key === PIPE_KEY ? ' on' : '') + '" tabindex="0" data-pk="' + esc(c.key) + '">'
return '<div class="pipe-card' + (c.key === PIPE_KEY ? ' on' : '') + (c.stalled ? ' stalled' : '') + '" tabindex="0" data-pk="' + esc(c.key) + '" data-stage="' + esc(c.stage || '') + '">'
+ '<div class="nm"><span>' + esc(c.name) + '</span><small>' + (c.kind === 'prospect' ? 'prospect' : (c.lastSeen ? 'seen ' + pipeAgo(c.lastSeen) : 'never signed in')) + '</small></div>'
+ '<div class="sub">' + esc(stage ? stage + ' · ' + c.next : c.next) + '</div>'
+ (c.note ? '<div class="note" title="' + esc(c.note) + '">' + esc(c.note) + '</div>' : '')
@@ -1386,7 +1386,7 @@
$('pipeDueCount').hidden = !r.due.length; $('pipeDueCount').textContent = r.due.length;
$('pipeDue').innerHTML = r.due.length ? '<div class="pipe-due">' + r.due.map(c => pipeCardHtml(c, true)).join('') + '</div>' : '<p class="muted small">Nothing due. Set a follow-up date on any card and it shows up here.</p>';
$('pipeSummary').textContent = r.counts.total ? r.counts.total + ' people on your board' + (r.counts.stalled ? ', ' + r.counts.stalled + ' stalled' : '') + '. Cards move on their own when something happens on the ledger; open one to add a note, a follow-up date or a tag.' : 'Nobody on your board yet. Add prospects on My line, and everyone who joins through your link appears here on their own.';
$('pipeBoard').innerHTML = r.columns.map(col => '<div class="pipe-col"><h4>' + esc(col.label) + '<span>' + col.cards.length + '</span></h4><p class="hint">' + esc(col.hint) + '</p>' + col.cards.map(c => pipeCardHtml(c, false)).join('') + '</div>').join('');
$('pipeBoard').innerHTML = r.columns.map(col => '<div class="pipe-col" data-stage="' + esc(col.key) + '"><h4>' + esc(col.label) + '<span>' + col.cards.length + '</span></h4><p class="hint">' + esc(col.hint) + '</p>' + col.cards.map(c => pipeCardHtml(c, false)).join('') + '</div>').join('');
$('pipeLive').querySelectorAll('[data-pk]').forEach(el => {
el.addEventListener('click', () => openPipeCard(el.dataset.pk));
el.addEventListener('keydown', e => { if (e.key === 'Enter' || e.key === ' ') { e.preventDefault(); openPipeCard(el.dataset.pk); } });
+26
View File
@@ -60,3 +60,29 @@ table{font-size:13px;color:var(--ink)} th{font-family:var(--mono);font-size:10.5
.grid.c2{grid-template-columns:repeat(auto-fit,minmax(300px,1fr))}
.tr-group{color:var(--muted)!important}
@media (max-width:760px){.bo-content{padding:12px 14px 20px}.tools-tabs{padding:10px 14px 0}.tabs{flex-wrap:wrap}}
/* Pipeline board colour (Marty 2026-10-18: "bland and bright and difficult to read"): one colour per stage on the column
(tinted body, solid top bar, coloured title, count pill) and the same colour as a stripe on each card; white cards with
dark names; stalled cards get an amber chip and edge so they stand out. */
.pipe-board .pipe-col,.pipe-due .pipe-card,.pipe-board .pipe-card{--st:#64748b}
[data-stage="talking"]{--st:#7c3aed}
[data-stage="joined"]{--st:#2563eb}
[data-stage="wallet"]{--st:#0891b2}
[data-stage="payouts"]{--st:#ea580c}
[data-stage="bought"]{--st:#16a34a}
[data-stage="building"]{--st:#b7791f}
[data-stage="later"]{--st:#64748b}
.pipe-board .pipe-col{background:color-mix(in srgb,var(--st) 7%,#f8fafc);border:1px solid color-mix(in srgb,var(--st) 28%,#e2e8f0);border-top:4px solid var(--st);border-radius:10px}
.pipe-board .pipe-col h4{color:var(--st);font-weight:800}
.pipe-board .pipe-col h4 span{background:var(--st);color:#fff;border-radius:999px;padding:0 8px;font-size:12px;line-height:20px;min-width:22px;text-align:center}
.pipe-board .pipe-col .hint{color:#475569}
.pipe-board .pipe-card,.pipe-due .pipe-card{background:#fff;border:1px solid color-mix(in srgb,var(--st) 22%,#e2e8f0);border-left:4px solid var(--st);border-radius:8px;box-shadow:0 1px 2px rgba(15,23,42,.06)}
.pipe-board .pipe-card:hover,.pipe-board .pipe-card:focus-visible,.pipe-due .pipe-card:hover{border-color:var(--st);box-shadow:0 2px 8px color-mix(in srgb,var(--st) 25%,transparent)}
.pipe-board .pipe-card.on{box-shadow:0 0 0 2px var(--st)}
.pipe-card .nm{color:#0f172a}
.pipe-card .nm small{color:#64748b}
.pipe-card .sub{color:#334155}
.pipe-card .note{color:#1e293b}
.pipe-card.stalled{background:#fffbeb}
.pipe-card .chip.warm{background:#fef3c7;border-color:#f59e0b;color:#92400e;font-weight:700}
.pipe-card .chip.flat{background:#f1f5f9;border-color:#cbd5e1;color:#334155}
+2 -2
View File
@@ -8,7 +8,7 @@
<link rel="icon" type="image/png" href="/logo-icon.png">
<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/tools.css?v=20261018pc">
</head>
<body>
@@ -1012,7 +1012,7 @@
<script src="/assets/tools.js?v=20261011a"></script>
<script src="/assets/wallet.js?v=20261018a"></script>
<script src="/assets/promo.js?v=20261009b"></script>
<script src="/assets/my.js?v=20261018p25"></script>
<script src="/assets/my.js?v=20261018pc"></script>
<script src="/assets/chat.js?v=20261016a"></script>
</body>
</html>