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: resolve UX regressions across dashboards, metrics and alerts pages after component migration (#11546)

Ashwin Bhatkalaf72a4118b11
diff --git a/frontend/src/components/CustomTimePicker/CustomTimePickerPopoverContent.tsx b/frontend/src/components/CustomTimePicker/CustomTimePickerPopoverContent.tsx
index 5f3edca973..7dc2dd2981 100644
--- a/frontend/src/components/CustomTimePicker/CustomTimePickerPopoverContent.tsx
+++ b/frontend/src/components/CustomTimePicker/CustomTimePickerPopoverContent.tsx
@@ -359,8 +359,7 @@ function CustomTimePickerPopoverContent({
<Clock
color={Color.BG_ROBIN_400}
className="timezone-container__clock-icon"
- height={12}
- width={12}
+ size={14}
/>
<span className="timezone__name">{timezone.name}</span>
diff --git a/frontend/src/components/NewSelect/styles.scss b/frontend/src/components/NewSelect/styles.scss
index f2eb942eaf..0c334d0ff7 100644
--- a/frontend/src/components/NewSelect/styles.scss
+++ b/frontend/src/components/NewSelect/styles.scss
@@ -109,6 +109,16 @@ $custom-border-color: #2c3044;
color: color-mix(in srgb, var(--l2-foreground) 45%, transparent);
}
+ .ant-select-clear {
+ background-color: var(--l2-background);
+ color: var(--l2-foreground);
+ font-size: 12px;
+
+ &:hover {
+ color: var(--l1-foreground);
+ }
+ }
+
// Customize tags in multiselect (dark mode by default)
.ant-select-selection-item {
background-color: var(--l1-border);
@@ -392,7 +402,9 @@ $custom-border-color: #2c3044;
// Custom dropdown styles for multi-select
.custom-multiselect-dropdown {
padding: 8px 0 0 0;
- max-height: 350px;
+ // Tall enough to hold the react-virtuoso list (<=300px) + header/footer
+ // so only the list scrolls (avoids a second scrollbar on this container).
+ max-height: 410px;
overflow-y: auto;
overflow-x: hidden;
scrollbar-width: thin;
@@ -483,8 +495,12 @@ $custom-border-color: #2c3044;
.option-checkbox {
width: 100%;
- > span:not(.ant-checkbox) {
- width: 100%;
+ // @signozhq/ui Checkbox renders children inside a <label> that is
+ // content-sized by default. Make it fill the row (min-width: 0 lets it
+ // shrink) so the option text below can truncate instead of overflowing.
+ > label {
+ flex: 1 1 auto;
+ min-width: 0;
}
.all-option-text {
@@ -501,7 +517,12 @@ $custom-border-color: #2c3044;
width: 100%;
.option-label-text {
+ flex: 1 1 auto;
+ min-width: 0;
margin-bottom: 0;
+ overflow: hidden;
+ white-space: nowrap;
+ text-overflow: ellipsis;
}
.option-badge {
@@ -514,26 +535,30 @@ $custom-border-color: #2c3044;
}
}
- .only-btn {
- display: none;
- }
+ // Size the buttons to the row's resting content height (20px) and fully
+ // override antd's default 32px Button box, so revealing them on hover
+ // never changes the row height.
+ .only-btn,
.toggle-btn {
display: none;
- }
+ align-items: center;
+ justify-content: center;
+ height: 18px;
+ min-height: 0;
+ padding: 0 6px;
+ font-size: 12px;
+ line-height: 1;
+ border: none;
+ box-shadow: none;
- .only-btn:hover {
- background-color: unset;
- }
- .toggle-btn:hover {
- background-color: unset;
+ &:hover {
+ background-color: unset;
+ }
}
.option-content:hover {
.only-btn {
display: flex;
- align-items: center;
- justify-content: center;
- height: 21px;
}
.toggle-btn {
display: none;
@@ -548,9 +573,6 @@ $custom-border-color: #2c3044;
.option-checkbox:hover {
.toggle-btn {
display: flex;
- align-items: center;
- justify-content: center;
- height: 21px;
}
.option-badge {
display: none;
diff --git a/frontend/src/container/AlertHistory/Statistics/StatsCard/StatsCard.styles.scss b/frontend/src/container/AlertHistory/Statistics/StatsCard/StatsCard.styles.scss
index 52643de624..19a194f7d5 100644
--- a/frontend/src/container/AlertHistory/Statistics/StatsCard/StatsCard.styles.scss
+++ b/frontend/src/container/AlertHistory/Statistics/StatsCard/StatsCard.styles.scss
@@ -67,8 +67,8 @@
gap: 4px;
&--success {
- background: color-mix(in srgb, var(--success-background) 10%, transparent);
- color: var(--success-foreground);
+ background: color-mix(in srgb, var(--text-forest-500) 10%, transparent);
+ color: var(--text-forest-400);
}
&--error {
diff --git a/frontend/src/container/CreateAlertV2/NotificationSettings/styles.scss b/frontend/src/container/CreateAlertV2/NotificationSettings/styles.scss
index b270bf7c6f..734f7e75ec 100644
--- a/frontend/src/container/CreateAlertV2/NotificationSettings/styles.scss
+++ b/frontend/src/container/CreateAlertV2/NotificationSettings/styles.scss
@@ -153,6 +153,7 @@
font-size: 10px;
color: var(--l2-foreground);
margin-top: 4px;
+ display: block;
}
}
diff --git a/frontend/src/container/DashboardContainer/DashboardSettings/DashboardSettingsContent.styles.scss b/frontend/src/container/DashboardContainer/DashboardSettings/DashboardSettingsContent.styles.scss
index 8ee3038b36..fb50918043 100644
--- a/frontend/src/container/DashboardContainer/DashboardSettings/DashboardSettingsContent.styles.scss
+++ b/frontend/src/container/DashboardContainer/DashboardSettings/DashboardSettingsContent.styles.scss
@@ -47,18 +47,10 @@
}
.ant-tabs-tab-active {
- .overview-btn {
- border-radius: 2px 0px 0px 2px;
- background: var(--l1-border);
- }
-
- .variables-btn {
- border-radius: 2px 0px 0px 2px;
- background: var(--l1-border);
- }
-
+ .overview-btn,
+ .variables-btn,
.public-dashboard-btn {
- border-radius: 2px 0px 0px 2px;
+ color: var(--primary-background);
background: var(--l1-border);
}
}
diff --git a/frontend/src/container/DashboardContainer/DashboardSettings/DashboardVariableSettings/VariableItem/VariableItem.styles.scss b/frontend/src/container/DashboardContainer/DashboardSettings/DashboardVariableSettings/VariableItem/VariableItem.styles.scss
index 90d39d1933..ba324d9dd0 100644
--- a/frontend/src/container/DashboardContainer/DashboardSettings/DashboardVariableSettings/VariableItem/VariableItem.styles.scss
+++ b/frontend/src/container/DashboardContainer/DashboardSettings/DashboardVariableSettings/VariableItem/VariableItem.styles.scss
@@ -127,6 +127,15 @@
align-items: center;
justify-content: center;
gap: 4px;
+
+ .sidenav-beta-tag {
+ margin-left: 4px;
+ }
+
+ div {
+ display: flex;
+ align-items: center;
+ }
}
.variable-type-btn + .variable-type-btn {
@@ -177,6 +186,7 @@
.multiple-values-section {
justify-content: space-between;
+ align-items: flex-start;
margin-bottom: 0;
.typography-variables {
@@ -193,6 +203,7 @@
.all-option-section {
justify-content: space-between;
+ align-items: flex-start;
margin-bottom: 0;
.typography-variables {
diff --git a/frontend/src/container/DashboardContainer/DashboardSettings/DashboardVariableSettings/VariableItem/VariableItem.tsx b/frontend/src/container/DashboardContainer/DashboardSettings/DashboardVariableSettings/VariableItem/VariableItem.tsx
index 125bf2e2bc..cc002704e8 100644
--- a/frontend/src/container/DashboardContainer/DashboardSettings/DashboardVariableSettings/VariableItem/VariableItem.tsx
+++ b/frontend/src/container/DashboardContainer/DashboardSettings/DashboardVariableSettings/VariableItem/VariableItem.tsx
@@ -518,7 +518,6 @@ function VariableItem({
size={14}
style={{
color: isDarkMode ? Color.BG_VANILLA_100 : Color.BG_INK_500,
- marginTop: 1,
}}
/>
}
@@ -614,7 +613,6 @@ function VariableItem({
size={14}
style={{
color: isDarkMode ? Color.BG_VANILLA_100 : Color.BG_INK_500,
- marginTop: 1,
}}
/>
}
diff --git a/frontend/src/container/FormAlertRules/QuerySection.styles.scss b/frontend/src/container/FormAlertRules/QuerySection.styles.scss
index 33e01c5803..ca4e98c7c0 100644
--- a/frontend/src/container/FormAlertRules/QuerySection.styles.scss
+++ b/frontend/src/container/FormAlertRules/QuerySection.styles.scss
@@ -19,6 +19,7 @@
}
.ant-btn-default {
border-color: transparent;
+ box-shadow: none;
}
}
.ant-tabs-tab-active {
diff --git a/frontend/src/container/PlannedDowntime/PlannedDowntime.styles.scss b/frontend/src/container/PlannedDowntime/PlannedDowntime.styles.scss
index 28781f8967..49f52123a8 100644
--- a/frontend/src/container/PlannedDowntime/PlannedDowntime.styles.scss
+++ b/frontend/src/container/PlannedDowntime/PlannedDowntime.styles.scss
@@ -72,8 +72,20 @@
.alert-rule-scope {
margin-bottom: 12px;
- .ant-radio-wrapper {
- color: var(--l1-foreground);
+ // `.createForm label` styles field labels (font-weight 500, 14px,
+ // 6px bottom padding). Those bleed into the @signozhq/ui RadioGroup
+ // option labels, making them bold and vertically misaligned with the
+ // radio control. Reset them back to plain option-text styling.
+ label {
+ padding: 0;
+ font-weight: 400;
+ line-height: normal;
+ }
+
+ // Loosen the design-system default (grid gap 0.5rem) between options.
+ .silence-alerts-radio-group {
+ margin-top: 8px;
+ gap: 12px;
}
}
@@ -144,10 +156,7 @@
display: flex;
align-items: center;
gap: 8px;
-
- .ant-btn {
- margin-top: 8px;
- }
+ margin-top: 12px;
}
.schedule-created-at {
diff --git a/frontend/src/container/PlannedDowntime/PlannedDowntimeForm.tsx b/frontend/src/container/PlannedDowntime/PlannedDowntimeForm.tsx
index a4ecfcf828..60556188ca 100644
--- a/frontend/src/container/PlannedDowntime/PlannedDowntimeForm.tsx
+++ b/frontend/src/container/PlannedDowntime/PlannedDowntimeForm.tsx
@@ -54,8 +54,7 @@ import {
} from './PlannedDowntimeutils';
import './PlannedDowntime.styles.scss';
-import { RadioGroupItem } from '@signozhq/ui/radio-group';
-import { RadioGroup } from '@signozhq/ui/radio-group';
+import { RadioGroupItem, RadioGroup } from '@signozhq/ui/radio-group';
dayjs.locale('en');
dayjs.extend(utc);
@@ -471,7 +470,7 @@ export function PlannedDowntimeForm(
initialValue="specific"
className="alert-rule-scope"
>
- <RadioGroup>
+ <RadioGroup className="silence-alerts-radio-group">
<RadioGroupItem value="all">All alert rules</RadioGroupItem>
<RadioGroupItem value="specific">Specific alert rules</RadioGroupItem>
</RadioGroup>
diff --git a/frontend/src/container/RoutingPolicies/styles.scss b/frontend/src/container/RoutingPolicies/styles.scss
index 223c619e44..0df910273e 100644
--- a/frontend/src/container/RoutingPolicies/styles.scss
+++ b/frontend/src/container/RoutingPolicies/styles.scss
@@ -35,10 +35,7 @@
display: flex;
align-items: center;
gap: 8px;
-
- .ant-btn {
- margin-top: 8px;
- }
+ margin-top: 12px;
}
.routing-policies-table {
diff --git a/frontend/src/container/TopNav/AutoRefreshV2/AutoRefreshV2.styles.scss b/frontend/src/container/TopNav/AutoRefreshV2/AutoRefreshV2.styles.scss
index 4d51642972..a55899c4e8 100644
--- a/frontend/src/container/TopNav/AutoRefreshV2/AutoRefreshV2.styles.scss
+++ b/frontend/src/container/TopNav/AutoRefreshV2/AutoRefreshV2.styles.scss
@@ -8,7 +8,7 @@
139deg,
color-mix(in srgb, var(--card) 80%, transparent) 0%,
color-mix(in srgb, var(--card) 90%, transparent) 98.68%
- );
+ ) !important;
box-shadow: 4px 10px 16px 2px rgba(0, 0, 0, 0.2);
backdrop-filter: blur(20px);
padding: 0;
@@ -34,9 +34,9 @@
}
.refresh-interval-text {
- padding: 12px 14px 8px 14px;
+ padding: 12px 14px 8px 14px !important;
color: var(--muted-foreground);
- font-size: 11px;
+ font-size: 13px;
font-style: normal;
font-weight: 500;
line-height: 18px; /* 163.636% */
diff --git a/frontend/src/pages/MetricsExplorer/MetricsExplorerPage.styles.scss b/frontend/src/pages/MetricsExplorer/MetricsExplorerPage.styles.scss
index 20e753aae2..41dbed2aeb 100644
--- a/frontend/src/pages/MetricsExplorer/MetricsExplorerPage.styles.scss
+++ b/frontend/src/pages/MetricsExplorer/MetricsExplorerPage.styles.scss
@@ -9,7 +9,7 @@
}
.ant-tabs-nav {
- padding: 0 8px;
+ padding-left: 16px;
margin-bottom: 0px;
&::before {