From 93acf37ffce8b9816df13128d7af0dbdb2caae40 Mon Sep 17 00:00:00 2001 From: zhu1090093659 <1090093659@qq.com> Date: Sun, 13 Sep 2026 09:53:28 +0800 Subject: [PATCH] feat(telemetry-view): chart daily active instances above the site trend The dashboard only showed the active-instance count as a KPI number, with no series behind it. Render the heartbeat UV series as its own trend panel above the site PV/UV chart, sharing one SVG line renderer whose tooltip, crosshair and hit zone are now per chart box. --- ...6-telemetry-dashboard-pagination.i18n.yaml | 4 +- ...26-08-26-telemetry-dashboard-pagination.md | 6 +- ...08-26-telemetry-dashboard-pagination.zh.md | 6 +- docs/telemetry.md | 2 +- market/telemetry-view/src/page.js | 110 ++++++++++++------ scripts/telemetry-view.test.mjs | 3 + 6 files changed, 88 insertions(+), 43 deletions(-) diff --git a/.agents/notes/implemented/feature/2026-08-26-telemetry-dashboard-pagination.i18n.yaml b/.agents/notes/implemented/feature/2026-08-26-telemetry-dashboard-pagination.i18n.yaml index 5b47a1e5c..f2e3cdde7 100644 --- a/.agents/notes/implemented/feature/2026-08-26-telemetry-dashboard-pagination.i18n.yaml +++ b/.agents/notes/implemented/feature/2026-08-26-telemetry-dashboard-pagination.i18n.yaml @@ -1,5 +1,5 @@ # Bilingual-pair consistency record (docs/i18n.md): the git blob hash of each # side as of the last confirmed-consistent state. Both languages carry equal authority; # after editing either side, bring the other along and re-record with git hash-object. -2026-08-26-telemetry-dashboard-pagination.md: 5f6a9f1741c6e47d2d132aec95013a9f6fb91ed7 -2026-08-26-telemetry-dashboard-pagination.zh.md: 8212e239f83a0901497545d6db2a21dda5a5e7a2 +2026-08-26-telemetry-dashboard-pagination.md: ce2146ee192f9cbaca235adae9e344fdf46989bd +2026-08-26-telemetry-dashboard-pagination.zh.md: 31d21e194c16b4406857ed3ed5853e2b5d87a5f8 diff --git a/.agents/notes/implemented/feature/2026-08-26-telemetry-dashboard-pagination.md b/.agents/notes/implemented/feature/2026-08-26-telemetry-dashboard-pagination.md index 5f6a9f174..ce2146ee1 100644 --- a/.agents/notes/implemented/feature/2026-08-26-telemetry-dashboard-pagination.md +++ b/.agents/notes/implemented/feature/2026-08-26-telemetry-dashboard-pagination.md @@ -11,7 +11,7 @@ The private telemetry dashboard rendered the summary aggregate as static server- The summary API paginates server-side and the dashboard became a self-rendering dark client: - `GET /api/telemetry/summary` accepts `paths_limit`/`paths_offset` (default 20, max 100) and `items_limit`/`items_offset` (default 200, max 200); responses carry `site.paths_total` and `plugins.totals.items` (now an exact distinct-subject count rather than a capped page length) plus echoed `*_page` windows. Defaults reproduce the pre-pagination response, so existing readers are unaffected. The per-item channel/version breakdowns stay full-cardinality scans (their size is bounded by the plugin catalog, not traffic) and are joined onto the returned page in memory, keeping one D1 batch of nine statements. -- `market/telemetry-view` splits into `src/index.js` (Access JWT verification, routing, `/app.js` and `/data` endpoints) and `src/page.js` (the document plus the client source). Boot data rides in an inert `