← back to Ads Dashboard
href-drill: daily trend bars now href to /api/acquisition (every data point drills to its source; TK-10376)
c0ed05eac5d81445d18804ee47b5314c88e727d9 · 2026-08-08 15:18:56 -0700 · Steve
Files touched
Diff
commit c0ed05eac5d81445d18804ee47b5314c88e727d9
Author: Steve <steve@designerwallcoverings.com>
Date: Sat Aug 8 15:18:56 2026 -0700
href-drill: daily trend bars now href to /api/acquisition (every data point drills to its source; TK-10376)
---
public/index.html | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/public/index.html b/public/index.html
index 4780e69..775a8d9 100644
--- a/public/index.html
+++ b/public/index.html
@@ -188,8 +188,8 @@ async function boot(){
if (tr.length) {
$('trendEmpty').hidden = true;
const max = Math.max(...tr.map(d=>d.orders), 1);
- $('trend').innerHTML = tr.map(d=>`<div title="${d.date}: ${d.orders} orders, $${d.revenue.toLocaleString()}"
- style="flex:1;min-width:8px;height:${Math.round(d.orders/max*100)}%;background:var(--accent);border-radius:3px 3px 0 0;opacity:.85"></div>`).join('');
+ $('trend').innerHTML = tr.map(d=>`<a href="/api/acquisition" title="${d.date}: ${d.orders} orders, $${d.revenue.toLocaleString()} — view source"
+ style="flex:1;min-width:8px;height:${Math.round(d.orders/max*100)}%;background:var(--accent);border-radius:3px 3px 0 0;opacity:.85;text-decoration:none;display:block"></a>`).join('');
$('trendCap').innerHTML = 'Revenue net of refunds, attributed to order date (shop-local, America/Los_Angeles).'
+ (acq.capped ? ' <span class="badge" style="border-color:#c0392b;color:#c0392b">⚠ hit 250-order fetch cap — earliest days may under-report</span>' : '');
} else { $('trend').innerHTML=''; $('trendEmpty').hidden=false; $('trendEmpty').textContent='No daily data (source: /api/acquisition).'; }
← 914f356 combined revenue: /api/revenue merges Shopify + FMPro (Mac2-
·
back to Ads Dashboard
·
ads-dashboard: move to free port :9770 (9764=dw-cadence-next 60133c1 →