From 477727587b83db70c5a32c6c945958aa1755d1e5 Mon Sep 17 00:00:00 2001 From: Jordan Ritter Date: Wed, 17 Jun 2026 11:20:03 -0700 Subject: [PATCH] =?UTF-8?q?Revert=20"Release=20v1.15.3=20=E2=80=94=20analy?= =?UTF-8?q?tics=20view:=20blocked=20filter=20+=20Blocked=20Queries=20panel?= =?UTF-8?q?=20+=20Pacific=20timestamps=20(#116)"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit f8f7ab77ca5e2a9014ebc0063e3889a22169daa7, reversing changes made to d501caeff78d5a9e1a052a0d9343eacfef8e11ab. --- CHANGELOG.md | 8 - docs/analytics.html | 313 ++++-------------- package.json | 2 +- .../analytics-auth-length-check.test.ts | 2 - src/__tests__/analytics-error-log-ip.test.ts | 4 - .../analytics-sendfile-correlation.test.ts | 1 - src/__tests__/analytics-server.test.ts | 84 ----- src/__tests__/analytics-ui.test.ts | 211 ------------ src/__tests__/analytics.test.ts | 100 ------ src/cli.ts | 2 +- src/db/analytics.ts | 100 ------ src/server.ts | 30 -- 12 files changed, 59 insertions(+), 798 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7ea720d..82b9d24 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,13 +1,5 @@ # @copilotkit/pathfinder -## 1.15.3 - -### Patch Changes - -- **Analytics view — "Empty Result Queries" excludes blocked rows**: rows the v1.15.2 abuse blocklist short-circuited (`blocked = true`) are filtered out of the "Empty Result Queries (Last 7 days)" table. Those queries never reached retrieval, so `result_count = 0` is a known by-design outcome — not a content gap. Previously they showed up alongside genuine empty-result rows because the SQL filtered on `result_count = 0` alone. The blocked-column predicate is `blocked = false`, which is safe for historical rows that predate the column (the schema declares `BOOLEAN NOT NULL DEFAULT FALSE`). -- **New "Blocked Queries (Last 7 days)" panel on /analytics**: surfaces the rows the blocklist caught, grouped by `block_reason` with hit count, last-seen timestamp, and up to 5 sample queries per reason. Operators can now see the blocklist actively catching abuse instead of inferring it from the absence of off-topic rows in the empty-results table. The panel deliberately ignores tool/source/request-source filters — those carry no meaning for rows the blocklist short-circuited before retrieval — but does honor the same `days` window as the rest of the dashboard. -- **Analytics timestamps render in Pacific time (DST-aware)**: every absolute timestamp on the /analytics operator-facing page now renders in `America/Los_Angeles` via `Intl.DateTimeFormat`, emitting e.g. `2026-06-17 09:40:32 PDT` (or `PST` in winter). The dashboard is operated from Pacific; UTC timestamps forced an in-head conversion on every read. Storage and URL contracts are unchanged — Postgres still stores `created_at TIMESTAMPTZ` in UTC, the server still computes windows in UTC, and the URL `from`/`to` contract is still a UTC calendar date. Only display flips. - ## 1.15.2 ### Patch Changes diff --git a/docs/analytics.html b/docs/analytics.html index 502d3e8..ce460dc 100644 --- a/docs/analytics.html +++ b/docs/analytics.html @@ -4,41 +4,19 @@ Pathfinder Analytics - - - - - - - - - - - - - + + + + + + + + + + + + +