Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changeset/big-radios-count.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@spotlightjs/overlay': patch
---

- changed route and added navigation in performance tab to make queries tab default active.
- Fixed showing of 0 in false condition in span details.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useState } from 'react';
import { Outlet, Route, Routes } from 'react-router-dom';
import { Navigate, Outlet, Route, Routes } from 'react-router-dom';
import Tabs from '~/components/Tabs';
import { useSpotlightContext } from '~/lib/useSpotlightContext';
import { useSentrySpans } from '../../data/useSentrySpans';
Expand Down Expand Up @@ -58,7 +58,8 @@ export default function PerformanceTabDetails() {
<Route path="webvitals" element={<WebVitals />} />
<Route path="webvitals/:page" element={<WebVitalsDetail />} />
{/* Default tab */}
<Route path="*" element={<Queries showAll={showAll} />} />
<Route path="queries" element={<Queries showAll={showAll} />} />
<Route path="*" element={<Navigate to="/performance/queries" replace />} />
Comment thread
BYK marked this conversation as resolved.
</Routes>
<Outlet />
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ export default function SpanDetails({
</div>
)}

{span.children?.length && (
{(span.children?.length ?? 0) > 0 && (
<div>
<h2 className="mb-2 font-bold uppercase">Sub-tree</h2>
<SpanTree
Expand Down