Skip to content

SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.

fix: removed unused file

sawhiled3026eeb549
diff --git a/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/EndPointDetailsWrapper.tsx b/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/EndPointDetailsWrapper.tsx
deleted file mode 100644
index bf94a85d7e..0000000000
--- a/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/EndPointDetailsWrapper.tsx
+++ /dev/null
@@ -1,76 +0,0 @@
-import { ENTITY_VERSION_V4 } from 'constants/app';
-import { REACT_QUERY_KEY } from 'constants/reactQueryKeys';
-import { getEndPointZeroStateQueryPayload } from 'container/ApiMonitoring/utils';
-import { GetMetricQueryRange } from 'lib/dashboard/getQueryResults';
-import { useMemo } from 'react';
-import { useQueries } from 'react-query';
-import { SuccessResponse } from 'types/api';
-import { MetricRangePayloadProps } from 'types/api/metrics/getQueryRange';
-import { IBuilderQuery } from 'types/api/queryBuilder/queryBuilderData';
-
-import EndPointDetailsZeroState from './components/EndPointDetailsZeroState';
-import EndPointDetails from './EndPointDetails';
-
-function EndPointDetailsWrapper({
- domainName,
- endPointName,
- setSelectedEndPointName,
- domainListFilters,
- timeRange,
-}: {
- domainName: string;
- endPointName: string;
- setSelectedEndPointName: (value: string) => void;
- domainListFilters: IBuilderQuery['filters'];
- timeRange: {
- startTime: number;
- endTime: number;
- };
-}): JSX.Element {
- const { startTime: minTime, endTime: maxTime } = timeRange;
-
- const endPointZeroStateQueryPayload = useMemo(
- () => getEndPointZeroStateQueryPayload(domainName, minTime, maxTime / 1e9),
- [domainName, minTime, maxTime],
- );
-
- const endPointZeroStateDataQueries = useQueries(
- endPointZeroStateQueryPayload.map((payload) => ({
- queryKey: [
- // Since only one query here
- REACT_QUERY_KEY.GET_ENDPOINT_DROPDOWN_DATA,
- payload,
- ENTITY_VERSION_V4,
- ],
- queryFn: (): Promise<SuccessResponse<MetricRangePayloadProps>> =>
- GetMetricQueryRange(payload, ENTITY_VERSION_V4),
- enabled: !!payload,
- })),
- );
-
- const [endPointZeroStateDataQuery] = useMemo(
- () => [endPointZeroStateDataQueries[0]],
- [endPointZeroStateDataQueries],
- );
-
- if (endPointName === '') {
- return (
- <EndPointDetailsZeroState
- setSelectedEndPointName={setSelectedEndPointName}
- endPointDropDownDataQuery={endPointZeroStateDataQuery}
- />
- );
- }
-
- return (
- <EndPointDetails
- domainName={domainName}
- endPointName={endPointName}
- setSelectedEndPointName={setSelectedEndPointName}
- domainListFilters={domainListFilters}
- timeRange={timeRange}
- />
- );
-}
-
-export default EndPointDetailsWrapper;