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: reset env on data source select, set logo center aligned (#4417)

Yunus M8c6096d60ee1
diff --git a/frontend/src/container/FullViewHeader/FullViewHeader.styles.scss b/frontend/src/container/FullScreenHeader/FullScreenHeader.styles.scss
similarity index 88%
rename from frontend/src/container/FullViewHeader/FullViewHeader.styles.scss
rename to frontend/src/container/FullScreenHeader/FullScreenHeader.styles.scss
index 98f2897902..92200eead5 100644
--- a/frontend/src/container/FullViewHeader/FullViewHeader.styles.scss
+++ b/frontend/src/container/FullScreenHeader/FullScreenHeader.styles.scss
@@ -1,6 +1,6 @@
-.full-view-header-container {
+.full-screen-header-container {
display: flex;
- justify-content: flex-end;
+ justify-content: center;
align-items: center;
padding: 24px 0;
diff --git a/frontend/src/container/FullViewHeader/FullViewHeader.tsx b/frontend/src/container/FullScreenHeader/FullScreenHeader.tsx
similarity index 76%
rename from frontend/src/container/FullViewHeader/FullViewHeader.tsx
rename to frontend/src/container/FullScreenHeader/FullScreenHeader.tsx
index 8fa19b8ee4..75eba0b73c 100644
--- a/frontend/src/container/FullViewHeader/FullViewHeader.tsx
+++ b/frontend/src/container/FullScreenHeader/FullScreenHeader.tsx
@@ -1,10 +1,10 @@
/* eslint-disable jsx-a11y/no-static-element-interactions */
/* eslint-disable jsx-a11y/click-events-have-key-events */
-import './FullViewHeader.styles.scss';
+import './FullScreenHeader.styles.scss';
import history from 'lib/history';
-export default function FullViewHeader({
+export default function FullScreenHeader({
overrideRoute,
}: {
overrideRoute?: string;
@@ -13,7 +13,7 @@ export default function FullViewHeader({
history.push(overrideRoute || '/');
};
return (
- <div className="full-view-header-container">
+ <div className="full-screen-header-container">
<div className="brand-logo" onClick={handleLogoClick}>
<img src="/Logos/signoz-brand-logo.svg" alt="SigNoz" />
@@ -23,6 +23,6 @@ export default function FullViewHeader({
);
}
-FullViewHeader.defaultProps = {
+FullScreenHeader.defaultProps = {
overrideRoute: '/',
};
diff --git a/frontend/src/container/OnboardingContainer/OnboardingContainer.tsx b/frontend/src/container/OnboardingContainer/OnboardingContainer.tsx
index dfe2f7affe..797e3b396b 100644
--- a/frontend/src/container/OnboardingContainer/OnboardingContainer.tsx
+++ b/frontend/src/container/OnboardingContainer/OnboardingContainer.tsx
@@ -6,7 +6,7 @@ import { ArrowRightOutlined } from '@ant-design/icons';
import { Button, Card, Typography } from 'antd';
import getIngestionData from 'api/settings/getIngestionData';
import cx from 'classnames';
-import FullViewHeader from 'container/FullViewHeader/FullViewHeader';
+import FullScreenHeader from 'container/FullScreenHeader/FullScreenHeader';
import useAnalytics from 'hooks/analytics/useAnalytics';
import { useIsDarkMode } from 'hooks/useDarkMode';
import { useEffect, useState } from 'react';
@@ -211,7 +211,7 @@ export default function Onboarding(): JSX.Element {
<div className={cx('container', isDarkMode ? 'darkMode' : 'lightMode')}>
{activeStep === 1 && (
<>
- <FullViewHeader />
+ <FullScreenHeader />
<div className="onboardingHeader">
<h1> Select a use-case to get started</h1>
</div>
diff --git a/frontend/src/container/OnboardingContainer/Steps/DataSource/DataSource.tsx b/frontend/src/container/OnboardingContainer/Steps/DataSource/DataSource.tsx
index a52113c572..13296671ec 100644
--- a/frontend/src/container/OnboardingContainer/Steps/DataSource/DataSource.tsx
+++ b/frontend/src/container/OnboardingContainer/Steps/DataSource/DataSource.tsx
@@ -30,6 +30,7 @@ export default function DataSource(): JSX.Element {
selectedDataSource,
selectedFramework,
updateSelectedDataSource,
+ updateSelectedEnvironment,
updateServiceName,
updateSelectedFramework,
} = useOnboardingContext();
@@ -89,6 +90,7 @@ export default function DataSource(): JSX.Element {
key={dataSource.name}
onClick={(): void => {
updateSelectedFramework(null);
+ updateSelectedEnvironment(null);
updateSelectedDataSource(dataSource);
form.setFieldsValue({ selectFramework: null });
}}
diff --git a/frontend/src/pages/WorkspaceLocked/WorkspaceLocked.tsx b/frontend/src/pages/WorkspaceLocked/WorkspaceLocked.tsx
index d9df5265df..eab934c69c 100644
--- a/frontend/src/pages/WorkspaceLocked/WorkspaceLocked.tsx
+++ b/frontend/src/pages/WorkspaceLocked/WorkspaceLocked.tsx
@@ -10,7 +10,7 @@ import { Button, Card, Skeleton, Typography } from 'antd';
import updateCreditCardApi from 'api/billing/checkout';
import { SOMETHING_WENT_WRONG } from 'constants/api';
import ROUTES from 'constants/routes';
-import FullViewHeader from 'container/FullViewHeader/FullViewHeader';
+import FullScreenHeader from 'container/FullScreenHeader/FullScreenHeader';
import useAnalytics from 'hooks/analytics/useAnalytics';
import useLicense from 'hooks/useLicense';
import { useNotifications } from 'hooks/useNotifications';
@@ -106,7 +106,7 @@ export default function WorkspaceBlocked(): JSX.Element {
return (
<>
- <FullViewHeader overrideRoute={ROUTES.WORKSPACE_LOCKED} />
+ <FullScreenHeader overrideRoute={ROUTES.WORKSPACE_LOCKED} />
<Card className="workspace-locked-container">
{isLoadingLicenseData || !licensesData?.payload?.workSpaceBlock ? (