diff --git a/docs/TODO.md b/docs/TODO.md index e638b35..708dd76 100644 --- a/docs/TODO.md +++ b/docs/TODO.md @@ -1,10 +1,18 @@ # Performance West — TODO / Backlog - ## Analytics / Umami -- [ ] **Fix Umami Goals and Funnels** — both report "Something went wrong" when - opened. Investigate the self-hosted Umami instance (analytics.performancewest.net): - likely a DB/migration, version, or query issue specific to the Goals and - Funnels reports (other Umami reports appear to work). Check umami container - logs + version, and whether these features need a schema migration or a - newer Umami release. (Reported 2026-06-13.) +- [x] **Fix Umami Goals and Funnels "Something went wrong"** — RESOLVED 2026-06-13. + Root cause: the saved Goal and Funnel reports were created in an older umami + version and stored `parameters` in a pre-v3.1.0 shape. umami 3.1.0's + funnelReportSchema / goalReportSchema reject the old shape (HTTP 400 -> + client shows "Something went wrong"). + - Funnel old: {urls:[...], window, dateRange:{startDate,endDate}} + v3.1.0 needs: {startDate, endDate, window, steps:[{type:'path',value,filters:[]}]} + - Goal old: {dateRange:{...}} (no type/value) + v3.1.0 needs: {startDate, endDate, type, value} + Fix: migrated the two saved reports in the umami DB to the v3.1.0 schema + (urls->steps, lifted dateRange to top-level dates, set goal type=url/value). + Verified: the funnel route now returns 401 (auth-gated, schema valid) instead + of 400; underlying data exists (3,195 -> 86 on the compliance funnel paths). + NOTE: running v3.1.0 = latest; the "Failed to find Server Action ... older/ + newer deployment" log lines are unrelated stale-browser-cache noise.