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

feat: show relay hostname in dashboard UI

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

+15
+4
site/dashboard.html
··· 29 29 <div class="metric-value" id="embeddings">--</div> 30 30 <div class="metric-label">embeddings</div> 31 31 </div> 32 + <div> 33 + <div class="metric-value" id="relay">--</div> 34 + <div class="metric-label">relay</div> 35 + </div> 32 36 </div> 33 37 <div class="live" id="live"></div> 34 38 </section>
+11
site/dashboard.js
··· 276 276 document.getElementById('publications').textContent = data.publications; 277 277 document.getElementById('embeddings').textContent = data.embeddings ?? '--'; 278 278 279 + if (data.relayUrl) { 280 + const relayEl = document.getElementById('relay'); 281 + try { 282 + const host = new URL(data.relayUrl).hostname; 283 + relayEl.textContent = host; 284 + relayEl.title = data.relayUrl; 285 + } catch { 286 + relayEl.textContent = data.relayUrl; 287 + } 288 + } 289 + 279 290 renderPlatforms(data.platforms); 280 291 renderTiming(data.timing); 281 292 renderTimeline(data.timeline);