mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-14 19:55:58 +08:00
chore: temporarily hide latency pointer from funnel steps
This commit is contained in:
parent
a7baa3b841
commit
fc8767a391
@ -1,13 +1,11 @@
|
|||||||
import './FunnelStep.styles.scss';
|
import './FunnelStep.styles.scss';
|
||||||
|
|
||||||
import { Button, Divider, Dropdown, Form, Space, Switch, Tooltip } from 'antd';
|
import { Button, Divider, Form, Switch, Tooltip } from 'antd';
|
||||||
import { MenuProps } from 'antd/lib';
|
|
||||||
import { FilterSelect } from 'components/CeleryOverview/CeleryOverviewConfigOptions/CeleryOverviewConfigOptions';
|
import { FilterSelect } from 'components/CeleryOverview/CeleryOverviewConfigOptions/CeleryOverviewConfigOptions';
|
||||||
import { QueryParams } from 'constants/query';
|
import { QueryParams } from 'constants/query';
|
||||||
import { initialQueriesMap } from 'constants/queryBuilder';
|
import { initialQueriesMap } from 'constants/queryBuilder';
|
||||||
import QueryBuilderSearchV2 from 'container/QueryBuilder/filters/QueryBuilderSearchV2/QueryBuilderSearchV2';
|
import QueryBuilderSearchV2 from 'container/QueryBuilder/filters/QueryBuilderSearchV2/QueryBuilderSearchV2';
|
||||||
import { ChevronDown, GripVertical, HardHat, PencilLine } from 'lucide-react';
|
import { GripVertical, HardHat, PencilLine } from 'lucide-react';
|
||||||
import { LatencyPointers } from 'pages/TracesFunnelDetails/constants';
|
|
||||||
import { useFunnelContext } from 'pages/TracesFunnels/FunnelContext';
|
import { useFunnelContext } from 'pages/TracesFunnels/FunnelContext';
|
||||||
import { useMemo, useState } from 'react';
|
import { useMemo, useState } from 'react';
|
||||||
import { FunnelStepData } from 'types/api/traceFunnels';
|
import { FunnelStepData } from 'types/api/traceFunnels';
|
||||||
@ -37,16 +35,17 @@ function FunnelStep({
|
|||||||
false,
|
false,
|
||||||
);
|
);
|
||||||
|
|
||||||
const latencyPointerItems: MenuProps['items'] = LatencyPointers.map(
|
// temporarily hide latency pointer, as it breaks some edge cases (ref: https://signoz-team.slack.com/archives/C089MNX4Y90/p1748600682066499?thread_ts=1748599673.171759&cid=C089MNX4Y90)
|
||||||
(option) => ({
|
// const latencyPointerItems: MenuProps['items'] = LatencyPointers.map(
|
||||||
key: option.value,
|
// (option) => ({
|
||||||
label: option.key,
|
// key: option.value,
|
||||||
style:
|
// label: option.key,
|
||||||
option.value === stepData.latency_pointer
|
// style:
|
||||||
? { backgroundColor: 'var(--bg-slate-100)' }
|
// option.value === stepData.latency_pointer
|
||||||
: {},
|
// ? { backgroundColor: 'var(--bg-slate-100)' }
|
||||||
}),
|
// : {},
|
||||||
);
|
// }),
|
||||||
|
// );
|
||||||
|
|
||||||
const updatedCurrentQuery = useMemo(
|
const updatedCurrentQuery = useMemo(
|
||||||
() => ({
|
() => ({
|
||||||
@ -176,7 +175,8 @@ function FunnelStep({
|
|||||||
/>
|
/>
|
||||||
<div className="error__label">Errors</div>
|
<div className="error__label">Errors</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="latency-pointer">
|
{/* temporarily hide latency pointer, as it breaks some edge cases (ref: https://signoz-team.slack.com/archives/C089MNX4Y90/p1748600682066499?thread_ts=1748599673.171759&cid=C089MNX4Y90) */}
|
||||||
|
{/* <div className="latency-pointer">
|
||||||
<div className="latency-pointer__label">Latency pointer</div>
|
<div className="latency-pointer__label">Latency pointer</div>
|
||||||
<Dropdown
|
<Dropdown
|
||||||
menu={{
|
menu={{
|
||||||
@ -197,7 +197,7 @@ function FunnelStep({
|
|||||||
<ChevronDown size={14} color="var(--bg-vanilla-400)" />
|
<ChevronDown size={14} color="var(--bg-vanilla-400)" />
|
||||||
</Space>
|
</Space>
|
||||||
</Dropdown>
|
</Dropdown>
|
||||||
</div>
|
</div> */}
|
||||||
</div>
|
</div>
|
||||||
</Form>
|
</Form>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user