Repository navigation
fix: redirect /dashboard to overview before React renders - #680
Merged
Merged
Conversation
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
marked this pull request as ready for review
September 25, 2026 16:19
This was referenced Sep 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Base branch: open feature and fix PRs against
develop. Milestone releases promotedevelop→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 explicitrange,from, ortoand addingrange=24honly when none is present. Issue-detail URLs such as/dashboard/errors/:idare unchanged.Overview-only alert links now point at
/dashboard/overview?range=24hinstead of/dashboard.A project with no API keys no longer claims it has historical telemetry.
@telemetry-tracker/[email protected]shipped without aLICENSEfile because the file was not next to that package when it was published. 1.3.0 included it only because aLICENSEfile was present in the package directory at pack time (filesis still["dist"]; npm addsLICENSEautomatically 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/dashboard,/dashboard/,/dashboard?range=24h, and/dashboard?range=7d307 to/dashboard/overviewwith the same range (default24hwhen none was supplied) and never render the dashboard page./dashboard/overviewand/dashboard/errorsstill only gain a default range when one is missing./dashboard/errors/:idis not rewritten.Code review (Bugbot)
/review-bugbotin Cursor (optional while the gate is paused).cursor/BUGBOT.mdif a finding was a false positive)Checklist
pnpm test; useRUN_DB_INTEGRATION_TESTS=true+ Postgres if API integration behavior changed)pnpm lint)pnpm build)[Unreleased](if user-facing)Security / privacy
N/A. Redirects stay inside the signed-in dashboard middleware path. No auth, ingest, or data-handling change.