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: Minor UI fixes in changelog + sidebar (#8625)

Abhi kumar210393e28133
diff --git a/frontend/src/components/ChangelogModal/ChangelogModal.tsx b/frontend/src/components/ChangelogModal/ChangelogModal.tsx
index db755eb259..129ca98971 100644
--- a/frontend/src/components/ChangelogModal/ChangelogModal.tsx
+++ b/frontend/src/components/ChangelogModal/ChangelogModal.tsx
@@ -118,12 +118,6 @@ function ChangelogModal({ changelog, onClose }: Props): JSX.Element {
<div
className={cx('changelog-modal-footer', hasScroll && 'scroll-available')}
>
- {changelog?.features && changelog.features.length > 0 && (
- <span className="changelog-modal-footer-label">
- {changelog.features.length} new&nbsp;
- {changelog.features.length > 1 ? 'features' : 'feature'}
- </span>
- )}
{!isCloudUser && (
<div className="changelog-modal-footer-ctas">
<Button type="default" icon={<CloseOutlined />} onClick={onClose}>
diff --git a/frontend/src/container/AppLayout/index.tsx b/frontend/src/container/AppLayout/index.tsx
index b0022d0321..e467d39870 100644
--- a/frontend/src/container/AppLayout/index.tsx
+++ b/frontend/src/container/AppLayout/index.tsx
@@ -111,6 +111,27 @@ function AppLayout(props: AppLayoutProps): JSX.Element {
(state) => state.app,
);
+ const isWorkspaceAccessRestricted = useMemo(() => {
+ if (!activeLicense) {
+ return false;
+ }
+
+ const isTerminated = activeLicense.state === LicenseState.TERMINATED;
+ const isExpired = activeLicense.state === LicenseState.EXPIRED;
+ const isCancelled = activeLicense.state === LicenseState.CANCELLED;
+ const isDefaulted = activeLicense.state === LicenseState.DEFAULTED;
+ const isEvaluationExpired =
+ activeLicense.state === LicenseState.EVALUATION_EXPIRED;
+
+ return (
+ isTerminated ||
+ isExpired ||
+ isCancelled ||
+ isDefaulted ||
+ isEvaluationExpired
+ );
+ }, [activeLicense]);
+
const handleBillingOnSuccess = (
data: SuccessResponseV2<CheckoutSuccessPayloadProps>,
): void => {
@@ -183,7 +204,13 @@ function AppLayout(props: AppLayoutProps): JSX.Element {
useEffect(() => {
// refetch the changelog only when the current tab becomes active + there isn't an active request
- if (!getChangelogByVersionResponse.isLoading && isVisible) {
+ if (
+ isVisible &&
+ !changelog &&
+ !getChangelogByVersionResponse.isLoading &&
+ isLoggedIn &&
+ Boolean(latestVersion)
+ ) {
getChangelogByVersionResponse.refetch();
}
// eslint-disable-next-line react-hooks/exhaustive-deps
@@ -194,7 +221,8 @@ function AppLayout(props: AppLayoutProps): JSX.Element {
if (
isCloudUserVal &&
Boolean(latestVersion) &&
- latestVersion !== seenChangelogVersion
+ latestVersion !== seenChangelogVersion &&
+ !isWorkspaceAccessRestricted
) {
// Automatically open the changelog modal for cloud users after 1s, if they've not seen this version before.
timer = setTimeout(() => {
@@ -210,6 +238,7 @@ function AppLayout(props: AppLayoutProps): JSX.Element {
latestVersion,
seenChangelogVersion,
toggleChangelogModal,
+ isWorkspaceAccessRestricted,
]);
useEffect(() => {
@@ -364,20 +393,6 @@ function AppLayout(props: AppLayoutProps): JSX.Element {
useEffect(() => {
if (!isFetchingActiveLicense && activeLicense) {
- const isTerminated = activeLicense.state === LicenseState.TERMINATED;
- const isExpired = activeLicense.state === LicenseState.EXPIRED;
- const isCancelled = activeLicense.state === LicenseState.CANCELLED;
- const isDefaulted = activeLicense.state === LicenseState.DEFAULTED;
- const isEvaluationExpired =
- activeLicense.state === LicenseState.EVALUATION_EXPIRED;
-
- const isWorkspaceAccessRestricted =
- isTerminated ||
- isExpired ||
- isCancelled ||
- isDefaulted ||
- isEvaluationExpired;
-
const { platform } = activeLicense;
if (
@@ -387,7 +402,7 @@ function AppLayout(props: AppLayoutProps): JSX.Element {
setShowWorkspaceRestricted(true);
}
}
- }, [isFetchingActiveLicense, activeLicense]);
+ }, [isFetchingActiveLicense, activeLicense, isWorkspaceAccessRestricted]);
useEffect(() => {
if (
diff --git a/frontend/src/container/SideNav/SideNav.styles.scss b/frontend/src/container/SideNav/SideNav.styles.scss
index 6a1ad75ff6..fdbe6193c1 100644
--- a/frontend/src/container/SideNav/SideNav.styles.scss
+++ b/frontend/src/container/SideNav/SideNav.styles.scss
@@ -830,7 +830,7 @@
& span {
display: block;
- max-width: 170px;
+ max-width: 286px;
white-space: nowrap; /* Prevents line breaks */
overflow: hidden; /* Hides overflowing content */
text-overflow: ellipsis;
@@ -841,7 +841,7 @@
.ant-dropdown-menu {
margin-left: 8px !important;
padding: 0px !important;
- width: 216px !important;
+ width: 360px !important;
border-radius: 3px !important;
// Glass blur
diff --git a/frontend/src/container/SideNav/SideNav.tsx b/frontend/src/container/SideNav/SideNav.tsx
index 7bd47ec042..8d857b06cb 100644
--- a/frontend/src/container/SideNav/SideNav.tsx
+++ b/frontend/src/container/SideNav/SideNav.tsx
@@ -566,6 +566,9 @@ function SideNav({ isPinned }: { isPinned: boolean }): JSX.Element {
if (dropdownItems.length === 0) {
return [
...prevState,
+ {
+ type: 'divider',
+ },
{
key: changelogKey,
label: (
@@ -576,12 +579,17 @@ function SideNav({ isPinned }: { isPinned: boolean }): JSX.Element {
),
icon: <ScrollText size={14} />,
itemKey: changelogKey,
+ isExternal: true,
+ url: 'https://signoz.io/changelog/',
},
];
}
return [
...prevState,
+ {
+ type: 'divider',
+ },
{
type: 'group',
label: "WHAT's NEW",
@@ -597,6 +605,8 @@ function SideNav({ isPinned }: { isPinned: boolean }): JSX.Element {
),
icon: <ScrollText size={14} />,
itemKey: changelogKey,
+ isExternal: true,
+ url: 'https://signoz.io/changelog/',
},
];
});
@@ -769,7 +779,6 @@ function SideNav({ isPinned }: { isPinned: boolean }): JSX.Element {
break;
case 'changelog-1':
case 'changelog-2':
- case CHANGELOG_LABEL.toLowerCase().replace(' ', '-'):
toggleChangelogModal();
break;
default:
diff --git a/frontend/src/container/SideNav/menuItems.tsx b/frontend/src/container/SideNav/menuItems.tsx
index 7c20e98a45..ca4f20fb11 100644
--- a/frontend/src/container/SideNav/menuItems.tsx
+++ b/frontend/src/container/SideNav/menuItems.tsx
@@ -1,6 +1,7 @@
import { RocketOutlined } from '@ant-design/icons';
import ROUTES from 'constants/routes';
import {
+ ArrowUpRight,
BarChart2,
BellDot,
Binoculars,
@@ -355,7 +356,12 @@ export const settingsMenuItems: SidebarItem[] = [
export const helpSupportDropdownMenuItems: SidebarItem[] = [
{
key: 'documentation',
- label: 'Documentation',
+ label: (
+ <div className="nav-item-label-container">
+ <span>Documentation</span>
+ <ArrowUpRight size={14} />
+ </div>
+ ),
icon: <Book size={14} />,
isExternal: true,
url: 'https://signoz.io/docs',
@@ -363,7 +369,13 @@ export const helpSupportDropdownMenuItems: SidebarItem[] = [
},
{
key: 'github',
- label: 'GitHub',
+ label: (
+ <div className="nav-item-label-container">
+ <span>GitHub</span>
+ <ArrowUpRight size={14} />
+ </div>
+ ),
+
icon: <Github size={14} />,
isExternal: true,
url: 'https://github.com/signoz/signoz',
@@ -371,7 +383,12 @@ export const helpSupportDropdownMenuItems: SidebarItem[] = [
},
{
key: 'slack',
- label: 'Community Slack',
+ label: (
+ <div className="nav-item-label-container">
+ <span>Community Slack</span>
+ <ArrowUpRight size={14} />
+ </div>
+ ),
icon: <Slack size={14} />,
isExternal: true,
url: 'https://signoz.io/slack',