From 4dae478902493216a1da3aeccd0782aa449d9860 Mon Sep 17 00:00:00 2001 From: martbost Date: Sun, 18 Oct 2026 16:42:19 -0500 Subject: [PATCH] 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 --- public/admin.html | 2 +- public/assets/my.js | 4 ++-- public/assets/tools.css | 26 ++++++++++++++++++++++++++ public/my.html | 4 ++-- 4 files changed, 31 insertions(+), 5 deletions(-) diff --git a/public/admin.html b/public/admin.html index 60ca270..47b20c7 100644 --- a/public/admin.html +++ b/public/admin.html @@ -8,7 +8,7 @@ - + diff --git a/public/assets/my.js b/public/assets/my.js index 4b076e4..762ec30 100644 --- a/public/assets/my.js +++ b/public/assets/my.js @@ -1366,7 +1366,7 @@ if (c.tag) chips.push('' + esc(c.tag) + ''); if (c.kind === 'member' && c.buyers) chips.push('' + c.buyers + ' buyer' + (c.buyers === 1 ? '' : 's') + ''); const stage = showStage ? (PIPE.stages.find(s => s.key === c.stage) || {}).label || '' : ''; - return '
' + return '
' + '
' + esc(c.name) + '' + (c.kind === 'prospect' ? 'prospect' : (c.lastSeen ? 'seen ' + pipeAgo(c.lastSeen) : 'never signed in')) + '
' + '
' + esc(stage ? stage + ' ยท ' + c.next : c.next) + '
' + (c.note ? '
' + esc(c.note) + '
' : '') @@ -1386,7 +1386,7 @@ $('pipeDueCount').hidden = !r.due.length; $('pipeDueCount').textContent = r.due.length; $('pipeDue').innerHTML = r.due.length ? '
' + r.due.map(c => pipeCardHtml(c, true)).join('') + '
' : '

Nothing due. Set a follow-up date on any card and it shows up here.

'; $('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 => '

' + esc(col.label) + '' + col.cards.length + '

' + esc(col.hint) + '

' + col.cards.map(c => pipeCardHtml(c, false)).join('') + '
').join(''); + $('pipeBoard').innerHTML = r.columns.map(col => '

' + esc(col.label) + '' + col.cards.length + '

' + esc(col.hint) + '

' + col.cards.map(c => pipeCardHtml(c, false)).join('') + '
').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); } }); diff --git a/public/assets/tools.css b/public/assets/tools.css index 49108c1..47f75ab 100644 --- a/public/assets/tools.css +++ b/public/assets/tools.css @@ -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} diff --git a/public/my.html b/public/my.html index e93e32a..1df7c07 100644 --- a/public/my.html +++ b/public/my.html @@ -8,7 +8,7 @@ - + @@ -1012,7 +1012,7 @@ - +