Skip to content

fix: QA baseline 403s, summary proxy, range flash, alert email - #677

Merged
cursor[bot] merged 1 commit into
developfrom
cursor/qa-baseline-e2e-fixes-f4fb
Sep 25, 2026
Merged

cursor[bot] merged 1 commit into
developfrom
cursor/qa-baseline-e2e-fixes-f4fb

Conversation

@unjica

@unjica unjica commented Sep 25, 2026

Copy link
Copy Markdown
Collaborator

Base branch: open feature and fix PRs against develop. Milestone releases promote develop → main — see docs/RELEASE.md.

Summary

Fixes the confirmed findings from the v1.17.18 production QA pass.

  • TT-001: Rejecting optional cookies no longer clears or hides telemetry_organization_id / telemetry_project_id. Those cookies are essential. Without them the API fell back to the env default project in another organization and returned 403.
  • TT-006: The dashboard /api/telemetry proxy now allows performance/summary and sessions/summary, so Overview Web Vitals and Sessions summary cards load.
  • TT-007: Middleware adds ?range=24h on list pages before React renders. A server redirect() after the shell called useSearchParams() was throwing React good-first: add title tooltips on truncated event and error names in tables #310 and flashing the application error. Issue detail URLs (alert email links) are left unchanged so their unbounded window stays the same.
  • TT-008: New accounts default the Email channel on, matching alert routing. The Alerts page warns when that channel is off.
  • @telemetry-tracker/next: Repo already had the July useLayoutEffect first-page-view fix. Published npm 1.3.0 (2026-07-02) still uses useEffect. Package version is now 1.3.1 for the next npm publish. This PR does not publish to npm.

No database migration. Google Analytics stays consent-gated. SEO page not included.

How to test

  • pnpm lint && pnpm test && pnpm build (passed locally).
  • Reject optional cookies, sign in, open API keys / issues / sessions / releases / alerts: requests include the selected project and do not 403.
  • Overview shows Web Vitals; Sessions summary cards stay visible.
  • Open /dashboard/overview and /dashboard/errors without range: middleware 307 to ?range=24h with no error flash. /dashboard/errors/:id without range is not redirected.
  • New account (no saved notification preferences): alert email sends. Turn the Email channel off: Alerts page shows the warning and mail stops.

Code review (Bugbot)

Paused: GitHub bugbot-review is currently a no-op. /review-bugbot is optional.

  • For notification, alert, billing, ingest, or auth changes: considered running /review-bugbot in Cursor (optional while the gate is paused)
  • If Bugbot comments appear anyway: addressed or replied (resolve thread + update .cursor/BUGBOT.md if a finding was a false positive)

Checklist

  • Tests pass (pnpm test; use RUN_DB_INTEGRATION_TESTS=true + Postgres if API integration behavior changed)
  • Lint passes (pnpm lint)
  • Build succeeds (pnpm build)
  • CHANGELOG.md updated under [Unreleased] (if user-facing)
  • Documentation updated (if needed)
  • New code follows the existing style
  • No breaking changes (or called out clearly above)

Security / privacy

Workspace org/project cookies are now essential and are set even when analytics consent is rejected. Optional Google Analytics still loads only after accept. Accounts that have never saved notification preferences will start receiving alert, billing, and team email (issues email stays off). Accounts that already saved the Email channel off are unchanged, and the Alerts page warns them.

Deployment

No migration. After merge to develop, the normal develop → main release ships the dashboard and API. Separately publish @telemetry-tracker/[email protected] with pnpm publish:packages (npm auth required). Existing API keys and the source-map column are unchanged.

Open in Web Open in Cursor 

…ptional consent

Rejecting analytics cookies no longer drops the selected project. The telemetry proxy forwards summary reads, list pages get a default range before React renders, and new accounts send alert email by default.

Co-authored-by: Sanja Malovic <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants