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
feat: alert module ui improvements (#8572)
Yunus Mdb440a6eb4d7
diff --git a/frontend/src/container/FormAlertRules/FormAlertRules.styles.scss b/frontend/src/container/FormAlertRules/FormAlertRules.styles.scssindex 22a272ca93..66d2167519 100644--- a/frontend/src/container/FormAlertRules/FormAlertRules.styles.scss+++ b/frontend/src/container/FormAlertRules/FormAlertRules.styles.scss@@ -21,6 +21,24 @@}}+.form-alert-rules-container {+ &.create-mode {+ padding: 16px;+ }+}++.triggered-alerts-container {+ padding: 8px;+}++.alert-rules-list-container {+ padding: 8px;+}++.planned-downtime-container {+ padding: 8px;+}+.steps-container {width: 80%;}diff --git a/frontend/src/container/FormAlertRules/index.tsx b/frontend/src/container/FormAlertRules/index.tsxindex 736967d23f..38ca8567a1 100644--- a/frontend/src/container/FormAlertRules/index.tsx+++ b/frontend/src/container/FormAlertRules/index.tsx@@ -766,7 +766,12 @@ function FormAlertRules({<>{Element}- <div id="top">+ <div+ id="top"+ className={`form-alert-rules-container ${+ isRuleCreated ? 'create-mode' : 'edit-mode'+ }`}+ ><div className="overview-header"><div className="alert-type-container">{isNewRule && (diff --git a/frontend/src/container/ListAlertRules/ListAlert.tsx b/frontend/src/container/ListAlertRules/ListAlert.tsxindex fae18d12e9..0850934548 100644--- a/frontend/src/container/ListAlertRules/ListAlert.tsx+++ b/frontend/src/container/ListAlertRules/ListAlert.tsx@@ -341,7 +341,7 @@ function ListAlert({ allAlertRules, refetch }: ListAlertProps): JSX.Element {defaultCurrent: Number(paginationParam) || 1,};return (- <>+ <div className="alert-rules-list-container"><SearchContainer><Searchplaceholder="Search by Alert Name, Severity and Labels"@@ -378,7 +378,7 @@ function ListAlert({ allAlertRules, refetch }: ListAlertProps): JSX.Element {onChange={handleChange}pagination={paginationConfig}/>- </>+ </div>);}diff --git a/frontend/src/container/PlannedDowntime/PlannedDowntime.styles.scss b/frontend/src/container/PlannedDowntime/PlannedDowntime.styles.scssindex b81e4d1e51..ee1471a52b 100644--- a/frontend/src/container/PlannedDowntime/PlannedDowntime.styles.scss+++ b/frontend/src/container/PlannedDowntime/PlannedDowntime.styles.scss@@ -151,7 +151,6 @@}.planned-downtime-container {- margin-top: 70px;display: flex;justify-content: center;width: 100%;diff --git a/frontend/src/container/TriggeredAlerts/index.tsx b/frontend/src/container/TriggeredAlerts/index.tsxindex a7f9bd5843..ab85fc30d1 100644--- a/frontend/src/container/TriggeredAlerts/index.tsx+++ b/frontend/src/container/TriggeredAlerts/index.tsx@@ -69,13 +69,15 @@ function TriggeredAlerts(): JSX.Element {}return (- <TriggerComponent- allAlerts={alertsResponse?.data?.payload || []}- selectedFilter={selectedFilter}- selectedGroup={selectedGroup}- onSelectedFilterChange={handleSelectedFilterChange}- onSelectedGroupChange={handleSelectedGroupChange}- />+ <div className="triggered-alerts-container">+ <TriggerComponent+ allAlerts={alertsResponse?.data?.payload || []}+ selectedFilter={selectedFilter}+ selectedGroup={selectedGroup}+ onSelectedFilterChange={handleSelectedFilterChange}+ onSelectedGroupChange={handleSelectedGroupChange}+ />+ </div>);}diff --git a/frontend/src/pages/AlertDetails/AlertDetails.styles.scss b/frontend/src/pages/AlertDetails/AlertDetails.styles.scssindex f43d253451..22ed56d6e1 100644--- a/frontend/src/pages/AlertDetails/AlertDetails.styles.scss+++ b/frontend/src/pages/AlertDetails/AlertDetails.styles.scss@@ -8,6 +8,7 @@.top-level-tab.periscope-tab {padding: 2px 0;}+.ant-tabs {&-nav {margin-bottom: 0 !important;@@ -22,13 +23,7 @@&:not(:first-of-type) {margin-left: 24px !important;}- .periscope-tab {- font-size: 14px;- color: var(--text-vanilla-100);- line-height: 20px;- letter-spacing: -0.07px;- gap: 10px;- }+[aria-selected='false'] {.periscope-tab {color: var(--text-vanilla-400);diff --git a/frontend/src/pages/AlertList/AlertList.styles.scss b/frontend/src/pages/AlertList/AlertList.styles.scssindex 8cacccd646..0d1c58f36b 100644--- a/frontend/src/pages/AlertList/AlertList.styles.scss+++ b/frontend/src/pages/AlertList/AlertList.styles.scss@@ -1,9 +1,5 @@.alerts-container {- .ant-tabs-nav-wrap {+ .ant-tabs-nav-wrap:first-of-type {padding-left: 16px;}-- .ant-tabs-content-holder {- padding: 8px;- }}diff --git a/frontend/src/pages/AlertList/index.tsx b/frontend/src/pages/AlertList/index.tsxindex 71f0dedcbf..8df082d995 100644--- a/frontend/src/pages/AlertList/index.tsx+++ b/frontend/src/pages/AlertList/index.tsx@@ -43,8 +43,11 @@ function AllAlertList(): JSX.Element {</div>),key: 'AlertRules',- children:- isAlertHistory || isAlertOverview ? <AlertDetails /> : <AllAlertRules />,+ children: (+ <div className="alert-rules-container">+ {isAlertHistory || isAlertOverview ? <AlertDetails /> : <AllAlertRules />}+ </div>+ ),},{label: (@@ -54,7 +57,11 @@ function AllAlertList(): JSX.Element {</div>),key: 'Configuration',- children: <PlannedDowntime />,+ children: (+ <div className="planned-downtime-container">+ <PlannedDowntime />+ </div>+ ),},];diff --git a/frontend/src/pages/ErrorBoundaryFallback/ErrorBoundaryFallback.styles.scss b/frontend/src/pages/ErrorBoundaryFallback/ErrorBoundaryFallback.styles.scssindex 78fd73bf0f..33f0121b97 100644--- a/frontend/src/pages/ErrorBoundaryFallback/ErrorBoundaryFallback.styles.scss+++ b/frontend/src/pages/ErrorBoundaryFallback/ErrorBoundaryFallback.styles.scss@@ -1,10 +1,16 @@.error-boundary-fallback-container {width: 100%;+ height: 100%;- .actionBtn {- display: flex;- align-items: center;- gap: 4px;+ display: flex;+ flex-direction: column;+ justify-content: center;+ align-items: center;++ color: var(--bg-vanilla-100);++ .error-icon {+ margin-bottom: 16px;}.title,@@ -13,4 +19,8 @@align-items: center;gap: 8px;}++ .actions {+ margin-top: 16px;+ }}diff --git a/frontend/src/pages/ErrorBoundaryFallback/ErrorBoundaryFallback.tsx b/frontend/src/pages/ErrorBoundaryFallback/ErrorBoundaryFallback.tsxindex d8ceb5890f..3bf26e0db1 100644--- a/frontend/src/pages/ErrorBoundaryFallback/ErrorBoundaryFallback.tsx+++ b/frontend/src/pages/ErrorBoundaryFallback/ErrorBoundaryFallback.tsx@@ -1,8 +1,10 @@import './ErrorBoundaryFallback.styles.scss';-import { BugOutlined, UndoOutlined } from '@ant-design/icons';-import { Button, Card, Typography } from 'antd';+import { BugOutlined } from '@ant-design/icons';+import { Button, Typography } from 'antd';+import ROUTES from 'constants/routes';import Slack from 'container/SideNav/Slack';+import { Home, TriangleAlert } from 'lucide-react';import { useTranslation } from 'react-i18next';function ErrorBoundaryFallback(): JSX.Element {@@ -13,10 +15,14 @@ function ErrorBoundaryFallback(): JSX.Element {};const handleReload = (): void => {- window.location.reload();+ // Go to home page+ window.location.href = ROUTES.HOME;};return (- <Card size="small" className="error-boundary-fallback-container">+ <div className="error-boundary-fallback-container">+ <div className="error-icon">+ <TriangleAlert size={48} />+ </div><div className="title"><BugOutlined /><Typography.Title type="danger" level={4} style={{ margin: 0 }}>@@ -24,30 +30,28 @@ function ErrorBoundaryFallback(): JSX.Element {</Typography.Title></div>- <>- <p>{t('contact_if_issue_exists')}</p>-- <div className="actions">- <Button- className="actionBtn"- type="default"- onClick={handleReload}- icon={<UndoOutlined />}- >- Reload- </Button>-- <Button- className="actionBtn"- type="default"- onClick={onClickSlackHandler}- icon={<Slack />}- >- Support- </Button>- </div>- </>- </Card>+ <p>{t('contact_if_issue_exists')}</p>++ <div className="actions">+ <Button+ type="primary"+ onClick={handleReload}+ icon={<Home size={16} />}+ className="periscope-btn primary"+ >+ Go Home+ </Button>++ <Button+ className="periscope-btn secondary"+ type="default"+ onClick={onClickSlackHandler}+ icon={<Slack />}+ >+ Slack Support+ </Button>+ </div>+ </div>);}