|
@@ -9,7 +9,6 @@ import useJumpButtons from 'sentry/components/replays/useJumpButtons';
|
|
|
import {t} from 'sentry/locale';
|
|
|
import useCrumbHandlers from 'sentry/utils/replays/hooks/useCrumbHandlers';
|
|
|
import useExtractedDomNodes from 'sentry/utils/replays/hooks/useExtractedDomNodes';
|
|
|
-import useOrganization from 'sentry/utils/useOrganization';
|
|
|
import useVirtualizedInspector from 'sentry/views/replays/detail//useVirtualizedInspector';
|
|
|
import BreadcrumbFilters from 'sentry/views/replays/detail/breadcrumbs/breadcrumbFilters';
|
|
|
import BreadcrumbRow from 'sentry/views/replays/detail/breadcrumbs/breadcrumbRow';
|
|
@@ -18,10 +17,8 @@ import useScrollToCurrentItem from 'sentry/views/replays/detail/breadcrumbs/useS
|
|
|
import FilterLoadingIndicator from 'sentry/views/replays/detail/filterLoadingIndicator';
|
|
|
import FluidHeight from 'sentry/views/replays/detail/layout/fluidHeight';
|
|
|
import NoRowRenderer from 'sentry/views/replays/detail/noRowRenderer';
|
|
|
-import useReplayPerfData from 'sentry/views/replays/detail/perfTable/useReplayPerfData';
|
|
|
import TabItemContainer from 'sentry/views/replays/detail/tabItemContainer';
|
|
|
import useVirtualizedList from 'sentry/views/replays/detail/useVirtualizedList';
|
|
|
-import useVirtualListDimentionChange from 'sentry/views/replays/detail/useVirtualListDimentionChange';
|
|
|
|
|
|
// Ensure this object is created once as it is an input to
|
|
|
// `useVirtualizedList`'s memoization
|
|
@@ -32,13 +29,9 @@ const cellMeasurer = {
|
|
|
|
|
|
function Breadcrumbs() {
|
|
|
const {currentTime, replay} = useReplayContext();
|
|
|
- const organization = useOrganization();
|
|
|
- const hasPerfTab = organization.features.includes('session-replay-trace-table');
|
|
|
-
|
|
|
const {onClickTimestamp} = useCrumbHandlers();
|
|
|
const {data: frameToExtraction, isFetching: isFetchingExtractions} =
|
|
|
useExtractedDomNodes({replay});
|
|
|
- const {data: frameToTrace, isFetching: isFetchingTraces} = useReplayPerfData({replay});
|
|
|
|
|
|
const startTimestampMs = replay?.getStartTimestampMs() ?? 0;
|
|
|
const frames = replay?.getChapterFrames();
|
|
@@ -57,7 +50,6 @@ function Breadcrumbs() {
|
|
|
ref: listRef,
|
|
|
deps,
|
|
|
});
|
|
|
- const {handleDimensionChange} = useVirtualListDimentionChange({cache, listRef});
|
|
|
const {handleDimensionChange: handleInspectorExpanded} = useVirtualizedInspector({
|
|
|
cache,
|
|
|
listRef,
|
|
@@ -81,12 +73,12 @@ function Breadcrumbs() {
|
|
|
ref: listRef,
|
|
|
});
|
|
|
|
|
|
- // Need to refresh the item dimensions as DOM & Trace data gets loaded
|
|
|
+ // Need to refresh the item dimensions as DOM data gets loaded
|
|
|
useEffect(() => {
|
|
|
- if (!isFetchingExtractions || !isFetchingTraces) {
|
|
|
+ if (!isFetchingExtractions) {
|
|
|
updateList();
|
|
|
}
|
|
|
- }, [isFetchingExtractions, isFetchingTraces, updateList]);
|
|
|
+ }, [isFetchingExtractions, updateList]);
|
|
|
|
|
|
const renderRow = ({index, key, style, parent}: ListRowProps) => {
|
|
|
const item = (items || [])[index];
|
|
@@ -103,14 +95,12 @@ function Breadcrumbs() {
|
|
|
index={index}
|
|
|
frame={item}
|
|
|
extraction={frameToExtraction?.get(item)}
|
|
|
- traces={hasPerfTab ? frameToTrace?.get(item) : undefined}
|
|
|
startTimestampMs={startTimestampMs}
|
|
|
style={style}
|
|
|
expandPaths={Array.from(expandPathsRef.current?.get(index) || [])}
|
|
|
onClick={() => {
|
|
|
onClickTimestamp(item);
|
|
|
}}
|
|
|
- onDimensionChange={handleDimensionChange}
|
|
|
onInspectorExpanded={handleInspectorExpanded}
|
|
|
/>
|
|
|
</CellMeasurer>
|
|
@@ -119,7 +109,7 @@ function Breadcrumbs() {
|
|
|
|
|
|
return (
|
|
|
<FluidHeight>
|
|
|
- <FilterLoadingIndicator isLoading={isFetchingExtractions || isFetchingTraces}>
|
|
|
+ <FilterLoadingIndicator isLoading={isFetchingExtractions}>
|
|
|
<BreadcrumbFilters frames={frames} {...filterProps} />
|
|
|
</FilterLoadingIndicator>
|
|
|
<TabItemContainer data-test-id="replay-details-breadcrumbs-tab">
|