Skip to content

fix: redirect /dashboard to overview before React renders - #680

Merged
cursor[bot] merged 1 commit into
developfrom
cursor/dashboard-root-redirect-f4fb
Sep 25, 2026
Merged

cursor[bot] merged 1 commit into
developfrom
cursor/dashboard-root-redirect-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

TT-009: /dashboard, /dashboard/, and /dashboard?range=… still rendered the dashboard page, which then redirected to /dashboard/overview. That page-level redirect runs after the shell has started and flashes the full-page Application Error (React #310) for about a second. Middleware now sends those URLs straight to /dashboard/overview, preserving an explicit range, from, or to and adding range=24h only when none is present. Issue-detail URLs such as /dashboard/errors/:id are unchanged.

Overview-only alert links now point at /dashboard/overview?range=24h instead of /dashboard.

A project with no API keys no longer claims it has historical telemetry.

@telemetry-tracker/[email protected] shipped without a LICENSE file because the file was not next to that package when it was published. 1.3.0 included it only because a LICENSE file was present in the package directory at pack time (files is still ["dist"]; npm adds LICENSE automatically when the file exists). This PR adds that file for the next publish. It does not bump or republish the SDK.

How to test

  • pnpm lint && pnpm test && pnpm build
  • Signed-in requests to /dashboard, /dashboard/, /dashboard?range=24h, and /dashboard?range=7d 307 to /dashboard/overview with the same range (default 24h when none was supplied) and never render the dashboard page.
  • /dashboard/overview and /dashboard/errors still only gain a default range when one is missing.
  • /dashboard/errors/:id is not rewritten.
  • A project with zero API keys shows the empty state without mentioning historical telemetry.

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

N/A. Redirects stay inside the signed-in dashboard middleware path. No auth, ingest, or data-handling change.

Open in Web Open in Cursor 

Canonicalize the dashboard root in middleware so the page-level redirect
no longer flashes React #310. Point overview alerts at that URL, drop the
false historical-telemetry claim on an empty API key list, and include
LICENSE in the Next SDK package directory for the next publish.

Co-authored-by: Sanja Malovic <[email protected]>
@unjica
unjica marked this pull request as ready for review September 25, 2026 16:19
@cursor
cursor Bot merged commit 6db15b6 into develop Sep 25, 2026
9 checks passed
@cursor
cursor Bot deleted the cursor/dashboard-root-redirect-f4fb branch September 25, 2026 16:28
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