search for standard sites pub-search.waow.tech
search zig blog atproto
11
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: remove bridgy fed references from dashboard

Bridgy fed content is now dropped at ingest, so the metric card,
stacked timeline bars, and special CSS were all showing zero. Remove
the dead code.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

+7 -55
-21
site/dashboard.css
··· 112 112 min-height: 2px; 113 113 } 114 114 .bar-stack:hover .bar-normal { background: #2a9d5c; } 115 - .bar-stack:hover .bar-bridgy { background: #e5a00d; } 116 115 .bar-normal { background: #1B7340; flex-shrink: 0; } 117 - .bar-bridgy { background: #d97706; flex-shrink: 0; } 118 - 119 - .timeline-legend { 120 - display: flex; 121 - gap: 12px; 122 - font-size: 10px; 123 - color: var(--text-dim); 124 - margin-bottom: 6px; 125 - } 126 - .legend-swatch { 127 - display: inline-block; 128 - width: 8px; 129 - height: 8px; 130 - margin-right: 4px; 131 - vertical-align: middle; 132 - } 133 - 134 - .metric-bridgyfed { color: #d97706; } 135 - 136 - .doc-type.bridgy-fed { color: #d97706; } 137 116 138 117 .doc-row { 139 118 display: flex;
-4
site/dashboard.html
··· 37 37 <div class="metric-label">embeddings</div> 38 38 </div> 39 39 <div> 40 - <div class="metric-value metric-bridgyfed" id="bridgyfed">--</div> 41 - <div class="metric-label">bridgy fed</div> 42 - </div> 43 - <div> 44 40 <div class="metric-value" id="relay">--</div> 45 41 <div class="metric-label">relay</div> 46 42 </div>
+7 -30
site/dashboard.js
··· 29 29 const el = document.getElementById('timeline'); 30 30 if (!timeline || timeline.length === 0) return; 31 31 32 - // add legend if any bridgy fed data 33 - const hasBridgy = timeline.some(d => (d.bridgyfed || 0) > 0); 34 - if (hasBridgy) { 35 - const legend = document.createElement('div'); 36 - legend.className = 'timeline-legend'; 37 - legend.innerHTML = 38 - '<span><span class="legend-swatch" style="background:#1B7340"></span>content</span>' + 39 - '<span><span class="legend-swatch" style="background:#d97706"></span>bridgy fed</span>'; 40 - el.parentNode.insertBefore(legend, el); 41 - } 42 - 43 32 const max = Math.max(...timeline.map(d => d.count)); 44 33 [...timeline].reverse().forEach(d => { 45 34 const totalH = max > 0 ? (d.count / max * 100) : 0; 46 - const bridgy = d.bridgyfed || 0; 47 - const normal = d.count - bridgy; 48 35 49 36 const stack = document.createElement('div'); 50 37 stack.className = 'bar-stack'; 51 38 stack.style.height = Math.max(totalH, 3) + '%'; 52 - stack.title = d.date + ': ' + d.count + (bridgy ? ' (' + bridgy + ' bridgy fed)' : ''); 39 + stack.title = d.date + ': ' + d.count; 53 40 54 - if (bridgy > 0 && d.count > 0) { 55 - const bridgyDiv = document.createElement('div'); 56 - bridgyDiv.className = 'bar-bridgy'; 57 - bridgyDiv.style.height = (bridgy / d.count * 100) + '%'; 58 - stack.appendChild(bridgyDiv); 59 - } 60 - if (normal > 0 && d.count > 0) { 61 - const normalDiv = document.createElement('div'); 62 - normalDiv.className = 'bar-normal'; 63 - normalDiv.style.height = (normal / d.count * 100) + '%'; 64 - stack.appendChild(normalDiv); 65 - } 41 + const normalDiv = document.createElement('div'); 42 + normalDiv.className = 'bar-normal'; 43 + normalDiv.style.height = '100%'; 44 + stack.appendChild(normalDiv); 66 45 67 46 el.appendChild(stack); 68 47 }); ··· 100 79 platforms.forEach(p => { 101 80 const row = document.createElement('div'); 102 81 row.className = 'doc-row'; 103 - const isBridgy = p.platform === 'bridgy fed'; 104 - const typeClass = 'doc-type' + (isBridgy ? ' bridgy-fed' : ''); 105 - row.innerHTML = '<span class="' + typeClass + '">' + escapeHtml(p.platform) + '</span><span class="doc-count">' + p.count + '</span>'; 82 + row.innerHTML = '<span class="doc-type">' + escapeHtml(p.platform) + '</span><span class="doc-count">' + p.count + '</span>'; 106 83 el.appendChild(row); 107 84 }); 108 85 } ··· 413 390 document.getElementById('searches').textContent = data.searches; 414 391 document.getElementById('publications').textContent = data.publications; 415 392 document.getElementById('embeddings').textContent = data.embeddings ?? '--'; 416 - document.getElementById('bridgyfed').textContent = data.bridgyfedDocuments ?? '--'; 393 + 417 394 418 395 if (data.relayUrl) { 419 396 const relayEl = document.getElementById('relay');