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(FE): remove unused panel settings (#336)

pal-sig02446579a687
diff --git a/frontend/src/container/NewWidget/RightContainer/index.tsx b/frontend/src/container/NewWidget/RightContainer/index.tsx
index 651725459e..079c5d48e1 100644
--- a/frontend/src/container/NewWidget/RightContainer/index.tsx
+++ b/frontend/src/container/NewWidget/RightContainer/index.tsx
@@ -1,4 +1,10 @@
-import { Button, Input, Slider, Switch, Typography } from 'antd';
+import {
+ // Button,
+ Input,
+ // Slider,
+ // Switch,
+ // Typography,
+} from 'antd';
import InputComponent from 'components/Input';
import { GRAPH_TYPES } from 'container/NewDashboard/ComponentsSlider';
import GraphTypes from 'container/NewDashboard/ComponentsSlider/menuItems';
@@ -9,18 +15,22 @@ import { timePreferance } from './timeItems';
const { TextArea } = Input;
import TimePreference from 'components/TimePreferenceDropDown';
-import { Container, NullButtonContainer, TextContainer, Title } from './styles';
+import {
+ Container,
+ // NullButtonContainer, TextContainer,
+ Title,
+} from './styles';
const RightContainer = ({
description,
- opacity,
- selectedNullZeroValue,
+ // opacity,
+ // selectedNullZeroValue,
setDescription,
- setOpacity,
- setSelectedNullZeroValue,
- setStacked,
+ // setOpacity,
+ // setSelectedNullZeroValue,
+ // setStacked,
setTitle,
- stacked,
+ // stacked,
title,
selectedGraph,
setSelectedTime,
@@ -33,20 +43,20 @@ const RightContainer = ({
[],
);
- const nullValueButtons = [
- {
- check: 'zero',
- name: 'Zero',
- },
- {
- check: 'interpolate',
- name: 'Interpolate',
- },
- {
- check: 'blank',
- name: 'Blank',
- },
- ];
+ // const nullValueButtons = [
+ // {
+ // check: 'zero',
+ // name: 'Zero',
+ // },
+ // {
+ // check: 'interpolate',
+ // name: 'Interpolate',
+ // },
+ // {
+ // check: 'blank',
+ // name: 'Blank',
+ // },
+ // ];
const selectedGraphType =
GraphTypes.find((e) => e.name === selectedGraph)?.display || '';
@@ -86,7 +96,7 @@ const RightContainer = ({
}
/>
- <TextContainer>
+ {/* <TextContainer>
<Typography>Stacked Graphs :</Typography>
<Switch
checked={stacked}
@@ -94,11 +104,11 @@ const RightContainer = ({
setStacked((value) => !value);
}}
/>
- </TextContainer>
+ </TextContainer> */}
- <Title light={'true'}>Fill Opacity: </Title>
+ {/* <Title light={'true'}>Fill Opacity: </Title> */}
- <Slider
+ {/* <Slider
value={parseInt(opacity, 10)}
marks={{
0: '0',
@@ -108,9 +118,9 @@ const RightContainer = ({
}}
onChange={(number): void => onChangeHandler(setOpacity, number.toString())}
step={1}
- />
+ /> */}
- <Title light={'true'}>Null/Zero values: </Title>
+ {/* <Title light={'true'}>Null/Zero values: </Title>
<NullButtonContainer>
{nullValueButtons.map((button) => (
@@ -124,7 +134,7 @@ const RightContainer = ({
{button.name}
</Button>
))}
- </NullButtonContainer>
+ </NullButtonContainer> */}
<Title light={'true'}>Panel Time Preference</Title>