Pipeline: count linked positions' buyers on member cards, the way My line and badges do; show the main/positions split on the card

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-09-15 12:22:25 -05:00
parent 02f742f90a
commit 560d758ed9
4 changed files with 27 additions and 10 deletions
+1 -1
View File
@@ -1383,7 +1383,7 @@
function fillPipeCard(c) {
$('pipeCardName').textContent = c.name;
const stage = (PIPE.stages.find(s => s.key === c.stage) || {}).label || '';
$('pipeCardMeta').textContent = stage + (c.kind === 'member' ? ' · joined ' + new Date(c.since).toLocaleDateString() + (c.lastSeen ? ' · last seen ' + pipeAgo(c.lastSeen) : ' · never signed in') + (c.bought ? ' · your qualifying buyer' : '') : ' · prospect' + (c.contact ? ' · ' + c.contact : ''));
$('pipeCardMeta').textContent = stage + (c.kind === 'member' ? ' · joined ' + new Date(c.since).toLocaleDateString() + (c.lastSeen ? ' · last seen ' + pipeAgo(c.lastSeen) : ' · never signed in') + (c.bought ? ' · your qualifying buyer' : '') + (c.buyersPositions ? ' · ' + c.buyers + ' buyers: ' + c.buyersMain + ' on the main wallet, ' + c.buyersPositions + ' on linked positions' : '') : ' · prospect' + (c.contact ? ' · ' + c.contact : ''));
$('pipeCardNext').innerHTML = '<b>Next for them:</b> ' + esc(c.next) + (c.stalled ? ' <span class="chip warm">quiet ' + c.quietDays + ' days</span>' : '');
const say = (c.say || '').replace('{{link}}', pipeInvite());
$('pipeSayBlock').hidden = !say; $('pipeSay').textContent = say;
+1 -1
View File
@@ -1021,7 +1021,7 @@
<script src="/assets/common.js?v=20260914a"></script>
<script src="/assets/wallet.js?v=20260911a"></script>
<script src="/assets/promo.js?v=20260911a"></script>
<script src="/assets/my.js?v=20260915c"></script>
<script src="/assets/my.js?v=20260915d"></script>
<script src="/assets/chat.js?v=20260907l"></script>
</body>
</html>