From 5812d3cc767fa6a4c4de1c1127d252dd56a7803d Mon Sep 17 00:00:00 2001 From: Ian Keane Date: Thu, 11 Jun 2026 14:51:57 -0400 Subject: [PATCH] Slim dict for faster loading --- app.js | 156 ++++++++++++++++++++++++++++++++++----------------------- 1 file changed, 93 insertions(+), 63 deletions(-) diff --git a/app.js b/app.js index 91fa837..297daaf 100644 --- a/app.js +++ b/app.js @@ -416,7 +416,7 @@ function renderTable() { emptyMsg.hidden = rows.length > 0; rows.forEach(({ tune, entry }) => { - const hasNotes = (tune.notes?.length > 0) || (entry?.notes?.length > 0); + const hasNotes = tune.has_notes ?? false; // ── Mobile 2-line card data ────────────────────────────────── const nameRaw = tune.name ?? ''; @@ -431,7 +431,7 @@ function renderTable() { const mobPills = entry ? pillStatus(entry.status, 'mob-pill') : ''; const mobActions = [ hasNotes ? `` : '', - tune.references?.length > 0 ? `` : '', + (tune.reference_count ?? 0) > 0 ? `` : '', ``, ].join(''); @@ -446,7 +446,7 @@ function renderTable() { ${hasNotes ? `` : ''} - ${tune.references?.length > 0 + ${(tune.reference_count ?? 0) > 0 ? `` : ''}