Repository navigation
Conversation
Store the fullscreen tile in a fullscreenTileId query param so a single tile can be shared by link. Back/forward opens and closes it, and a link to a tile in a collapsed group or inactive tab reveals the tile. Co-authored-by: Mike Shi <mike@hyperdx.io>
Co-authored-by: Mike Shi <mike@hyperdx.io>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🦋 Changeset detectedLatest commit: ec8ab4d The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
🔵 Tier 2 — Low RiskSmall, isolated change with no API route or data model modifications. Why this tier:
Review process: AI review + quick human skim (target: 5–15 min). Reviewer validates AI assessment and checks for domain-specific concerns. Stats
|
Duplicate code analysisNo new duplicate code introduced by this PR. jscpd compared this branch against |
PR Review
4 finding(s): 🔴 0 P0/P1 · 🟡 1 P2 · 🔵 3 P3 No inline comments. 3 P3 folded at the bottom. 1 unchanged from an earlier push (already inline above). 🔵 3 P3 — no action needed before merge
Priority comes from a separate grading pass over the finished review. P3 is folded here instead of posted inline. No finding blocks merge automatically; a maintainer decides. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 4e3f7be. Configure here.
…s hidden Co-authored-by: Mike Shi <mike@hyperdx.io>
E2E Test Results✅ All tests passed • 495 passed • 1 skipped • 1141s
Tests ran across 4 shards in parallel. |
| // The fullscreen view renders inside its tile, so a ?fullscreenTileId link | ||
| // must activate the tile's tab and expand its group for the tile to mount. | ||
| // A tile ID that matches no tile leaves the dashboard as it is. | ||
| useEffect(() => { |
There was a problem hiding this comment.
🟡 P2 — The new tile-reveal effect repeats the existing highlightedTileId tab-switch effect
The effect at DBDashboardPage.tsx:2451 already finds the tile, looks up its container and calls setUrlActiveTabs when getActiveTabId(container) !== tile.tabId. This new effect repeats that and also expands collapsed groups. Move it into one helper, e.g. revealTile(tileId), and call it from both effects. That way a ?highlightedTileId link to a tile in a collapsed group also gets expanded, and the two copies can't drift apart.
Advisory. Fix if it is a small defect in code this PR changes; otherwise reply in the thread. Do not widen the PR or touch files it did not already change. How to respond
There was a problem hiding this comment.
Leaving this out of this PR. A shared revealTile would also change how ?highlightedTileId links behave (they would start expanding collapsed groups), so it fits better as a separate follow-up than inside the fullscreen change.
| dateRange: [Date, Date]; | ||
| granularity: SQLInterval | undefined; | ||
| } | null>(null); | ||
| if (!isFullscreen && fullscreenSeed != null) { |
There was a problem hiding this comment.
🟡 P2 — The new reseed rules are untested: following the dashboard range while open, and the live-mode exception
No spec changes the dashboard range or granularity while fullscreen is open (for example, back across a time-range change), and none runs in live mode or with the tab hidden. Commit b8cd7b5 fixes exactly that case. Add an e2e case for back/forward across a range change with the tile open. Add another that turns on live mode, changes the fullscreen picker, and checks the picker survives a refresh.
Advisory. Fix if it is a small defect in code this PR changes; otherwise reply in the thread. Do not widen the PR or touch files it did not already change. How to respond
There was a problem hiding this comment.
Added the live-mode case in f68ae78. It turns on live mode, changes both fullscreen pickers, then hides and re-shows the tab, and checks the picker values are kept. It fails on the commit before b8cd7b5 and passes now. I haven't added the back/forward case: while fullscreen is open the modal covers the dashboard's own pickers, so no history entry can hold the tile open across a dashboard range change. The reseed-after-mount path is covered by "a link with the param opens that tile fullscreen with the URL time range and granularity".
…idden tab Co-authored-by: Mike Shi <mike@hyperdx.io>
Deep ReviewScope: Intent: Make a dashboard's fullscreen-tile view shareable by lifting it into nuqs URL params ( The implementation is careful: the seed reseed is safe because ✅ No critical issues found. No P0/P1 defects. P2 items below are worth addressing before merge; none block. 🟡 P2 — recommended
🔵 P3 nitpicks (8)
Pre-existing (not introduced by this PR, excluded from verdict)
Reviewers (11): correctness, adversarial, julik-frontend-races, kieran-typescript, testing, maintainability, performance, previous-comments, project-standards, agent-native, learnings. Testing gaps:
No finding blocks merge automatically. A maintainer will expect P0/P1 findings in code this PR changes to be fixed; P2/P3 are your call -- fix or reply. Never fix findings about surrounding code here; reply instead. Do not widen the PR. How to respond |
|
The fullscreen view also has its own time range and granularity, independent from the dashboard's. Should we put those values in the URL as well so that if a user changes those and shares the link, the link also carry the updated time range and granularity? |
…he URL The fullscreen view's pickers now write fullscreenFrom, fullscreenTo and fullscreenGranularity instead of local state. They stay separate from the dashboard's from/to and granularity, so changing them refetches only the fullscreen tile. Co-authored-by: Mike Shi <mike@hyperdx.io>
Co-authored-by: Mike Shi <mike@hyperdx.io>
|
@pulpdrew Yes, done in da0203c. The fullscreen pickers now write They're separate from the dashboard's |
Co-authored-by: Mike Shi <mike@hyperdx.io>
…er exists Co-authored-by: Mike Shi <mike@hyperdx.io>
…reen view Co-authored-by: Mike Shi <mike@hyperdx.io>
Co-authored-by: Mike Shi <mike@hyperdx.io>

Summary
You could open a dashboard tile in fullscreen, but you couldn't share that view. The state lived in each tile's local React state. To share one panel, you had to build a separate dashboard that held only that panel.
The fullscreen tile now lives in a
fullscreenTileIdquery param. It uses the same nuqs mechanism as the other dashboard URL state (highlightedTileId,activeTabs,collapsed,from/to,granularity,where).fshortcut all set the param. Close, Esc andfclear it. Other params are left as they are.history: 'push', so back and forward step through fullscreen picker changes and open and close the view.The range and granularity picked inside the fullscreen view are in the URL too, as
fullscreenFrom,fullscreenToandfullscreenGranularity, so a link reopens the exact window the sender was looking at. They are kept apart from the dashboard's ownfrom/toandgranularity: changing them refetches only the fullscreen tile, not every tile on the dashboard, and the dashboard's pickers don't change. Without them, the view starts from the dashboard's range and granularity and follows them if they change while it is open, except on a live dashboard, where it keeps the range it opened with (including while the browser tab is hidden). Closing the view clears all four fullscreen params.Screenshots or video
The UI chrome is unchanged; what changed is the URL behavior. On
mainthe same modal opens, but the URL never changes, so the view can't be linked.main, a?fullscreenTileId=…link opens the normal dashboardOpening a link, closing, then back and reload (2x slowed e2e run, recorded before the fullscreen range params were added):

Back/forward toggling:

A link to a tile in a collapsed group and in an inactive tab:

How to reproduce
Starting point:
yarn app:dev:localconnected to the demo server, or the Vercel preview. Use any dashboard with at least one tile.On
main:On this branch:
fullscreenTileId=<tile id>, andfrom/to/granularity/whereare unchanged.fullscreenFrom,fullscreenToandfullscreenGranularity. The dashboard's own params stay the same.fullscreenTileIdin the URL to a nonexistent value. The normal dashboard shows.How to test on Vercel preview
Preview routes: /dashboards
Steps:
fullscreenTileId=and the fullscreen view is open.fullscreenTileIdorfullscreenGranularity.Tests
The new spec
packages/app/tests/e2e/features/dashboard-fullscreen-url.spec.tsseeds a dashboard through the API and covers:f) without dropping or changing other params. Changes in the fullscreen pickers don't touch them either.The spec (8 tests) passed 24 of 24 runs with
--repeat-each 3 --retries 0. The existing fullscreen, granularity, heatmap,dashboard-containerandtemporary-dashboarde2e tests still pass.References
Fixes HDX-6236
Note
Medium Risk
Touches core dashboard URL and history behavior on a large page, but changes are scoped to fullscreen params and backed by extensive e2e tests.
Reviewed by Cursor Bugbot for commit ec8ab4d. Bugbot is set up for automated code reviews on this repo. Configure here.