diff --git a/app/main.py b/app/main.py index 5bfb6c6..0535b3c 100644 --- a/app/main.py +++ b/app/main.py @@ -385,7 +385,6 @@ PAGE_HTML = """ .coop-trend { border: 1px solid var(--border, #e4e0d8); border-radius: 12px; padding: 14px 16px 12px; margin-bottom: 20px; } .coop-trend-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; } .coop-trend-title { font-weight: 700; font-size: 15px; color: var(--ink, #2d3327); } - .coop-trend-sub { color: var(--muted); font-size: 12px; } .coop-trend-controls { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 10px; } .trend-group { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .coop-trend-body svg { display: block; width: 100%; height: auto; overflow: visible; } @@ -562,7 +561,6 @@ PAGE_HTML = """
The co-op over time -
@@ -579,7 +577,6 @@ PAGE_HTML = """
Loading
-

Usage across the co-op, last 30 days
@@ -808,12 +805,9 @@ let trendMetric = "members"; // members | requests | spend let trendDays = 90; // 0 = all time const TREND_CONF = { - members: { kind: "line", title: "The co-op over time", - note: "How many members the co-op has had, day by day. A gap means days that were never measured, not zero members." }, - requests: { kind: "bar", title: "Requests the co-op served", - note: "AI requests served to members each day. Days we did not record are gaps, not zeroes." }, - spend: { kind: "bar", title: "What the co-op spent", - note: "Spend charged to the co-op each day, in US dollars. Days we did not record are gaps, not zeroes." } + members: { kind: "line", title: "The co-op over time" }, + requests: { kind: "bar", title: "Requests the co-op served" }, + spend: { kind: "bar", title: "What the co-op spent" } }; async function loadMetrics() { @@ -882,10 +876,8 @@ function renderTrends() { const have = vals.filter(v => v !== null && v !== undefined); if (have.length < 2) { host.innerHTML = "
Not enough history yet.
"; - $("trend-sub").textContent = ""; return; } - const gaps = vals.length - have.length; const maxV = Math.max.apply(null, have); const step = niceStep((maxV <= 0 ? 1 : maxV * 1.08) / 4); const top = step * 4; @@ -941,8 +933,6 @@ function renderTrends() { } parts.push(""); host.innerHTML = parts.join(""); - $("trend-sub").textContent = rows.length + " days" + (gaps > 0 ? " - " + gaps + " not measured" : ""); - $("trend-note").textContent = conf.note; } let usageMode = 'mine'; // 'mine' | 'coop'