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.
TypeScript apmapplication-monitoringdistributed-tracinggogood-first-issuejaegerloglogsmetricsmonitoringnextjsobservabilityopen-sourceopentelemetryprometheusreactreactjsself-hostedtracingtypescript
refactor(ListAlert): update styles and button layout (#5931)
Sudeep MP6c446226eb33
diff --git a/frontend/src/container/ListAlertRules/ListAlert.tsx b/frontend/src/container/ListAlertRules/ListAlert.tsxindex f446d55f90..424d98ddd9 100644--- a/frontend/src/container/ListAlertRules/ListAlert.tsx+++ b/frontend/src/container/ListAlertRules/ListAlert.tsx@@ -1,6 +1,6 @@/* eslint-disable react/display-name */import { PlusOutlined } from '@ant-design/icons';-import { Input, Typography } from 'antd';+import { Flex, Input, Typography } from 'antd';import type { ColumnsType } from 'antd/es/table/interface';import saveAlertApi from 'api/alerts/save';import logEvent from 'api/common/logEvent';@@ -34,12 +34,7 @@ import { GettableAlert } from 'types/api/alerts/get';import AppReducer from 'types/reducer/app';import DeleteAlert from './DeleteAlert';-import {- Button,- ButtonContainer,- ColumnButton,- SearchContainer,-} from './styles';+import { Button, ColumnButton, SearchContainer } from './styles';import Status from './TableComponents/Status';import ToggleAlertState from './ToggleAlertState';import { alertActionLogEvent, filterAlerts } from './utils';@@ -373,21 +368,25 @@ function ListAlert({ allAlertRules, refetch }: ListAlertProps): JSX.Element {onChange={handleSearch}defaultValue={searchString}/>- <ButtonContainer>+ <Flex gap={12}>+ {addNewAlert && (+ <Button+ type="primary"+ onClick={onClickNewAlertHandler}+ icon={<PlusOutlined />}+ >+ New Alert+ </Button>+ )}<TextToolTip{...{text: `More details on how to create alerts`,url:'https://signoz.io/docs/alerts/?utm_source=product&utm_medium=list-alerts',+ urlText: 'Learn More',}}/>-- {addNewAlert && (- <Button onClick={onClickNewAlertHandler} icon={<PlusOutlined />}>- New Alert- </Button>- )}- </ButtonContainer>+ </Flex></SearchContainer><DynamicColumnTabletablesource={TableDataSource.Alert}diff --git a/frontend/src/container/ListAlertRules/styles.ts b/frontend/src/container/ListAlertRules/styles.tsindex 6d89b88c53..c34bf0871c 100644--- a/frontend/src/container/ListAlertRules/styles.ts+++ b/frontend/src/container/ListAlertRules/styles.ts@@ -9,12 +9,6 @@ export const SearchContainer = styled.div`gap: 2rem;}`;-export const ButtonContainer = styled.div`- &&& {- display: flex;- align-items: center;- }-`;export const Button = styled(ButtonComponent)`&&& {