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.

feat(typography): migrate to @signozhq/ui (#11199)

Vinicius Lourençof198d20da740
diff --git a/frontend/.oxlintrc.json b/frontend/.oxlintrc.json
index 3286a40387..080547dd56 100644
--- a/frontend/.oxlintrc.json
+++ b/frontend/.oxlintrc.json
@@ -289,6 +289,8 @@
// Prevents navigator.clipboard - use useCopyToClipboard hook instead (disabled in tests via override)
"signoz/no-raw-absolute-path": "error",
// Prevents window.open(path), window.location.origin + path, window.location.href = path
+ "signoz/no-antd-components": "error",
+ // Prevents the usage of specific antd components in favor of our lib
"no-restricted-globals": [
"error",
{
diff --git a/frontend/package.json b/frontend/package.json
index e6c04b3f0c..69a6861af3 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -50,7 +50,7 @@
"@signozhq/design-tokens": "2.1.4",
"@signozhq/icons": "0.1.0",
"@signozhq/resizable": "0.0.2",
- "@signozhq/ui": "0.0.12",
+ "@signozhq/ui": "0.0.17",
"@tanstack/react-table": "8.21.3",
"@tanstack/react-virtual": "3.13.22",
"@uiw/codemirror-theme-copilot": "4.23.11",
diff --git a/frontend/plugins/rules/no-antd-components.mjs b/frontend/plugins/rules/no-antd-components.mjs
new file mode 100644
index 0000000000..74e632881f
--- /dev/null
+++ b/frontend/plugins/rules/no-antd-components.mjs
@@ -0,0 +1,66 @@
+/**
+ * Rule: no-antd-components
+ *
+ * Prevents importing specific components from antd.
+ *
+ * This rule catches patterns like:
+ * import { Typography } from 'antd'
+ * import { Typography, Button } from 'antd'
+ * import Typography from 'antd/es/typography'
+ * import { Text } from 'antd/es/typography'
+ *
+ * Add components to BANNED_COMPONENTS to ban them.
+ * Key should be PascalCase component name, will match lowercase path too.
+ */
+
+const BANNED_COMPONENTS = {
+ Typography: 'Use @signozhq/ui Typography instead of antd Typography.',
+};
+
+export default {
+ create(context) {
+ return {
+ ImportDeclaration(node) {
+ const source = node.source.value;
+
+ // Check direct antd import: import { Typography } from 'antd'
+ if (source === 'antd') {
+ for (const specifier of node.specifiers) {
+ if (specifier.type !== 'ImportSpecifier') {
+ continue;
+ }
+
+ const importedName = specifier.imported.name;
+ const message = BANNED_COMPONENTS[importedName];
+
+ if (message) {
+ context.report({
+ node: specifier,
+ message: `Do not import '${importedName}' from antd. ${message}`,
+ });
+ }
+ }
+ return;
+ }
+
+ // Check antd/es/<component> import: import Typography from 'antd/es/typography'
+ const match = source.match(/^antd\/es\/([^/]+)/);
+ if (!match) {
+ return;
+ }
+
+ const pathComponent = match[1].toLowerCase();
+
+ for (const [componentName, message] of Object.entries(BANNED_COMPONENTS)) {
+ if (pathComponent === componentName.toLowerCase()) {
+ context.report({
+ node,
+ message: `Do not import from '${source}'. ${message}`,
+ });
+ break;
+ }
+ }
+ },
+ };
+ },
+};
diff --git a/frontend/plugins/signoz.mjs b/frontend/plugins/signoz.mjs
index d515b455f4..035219d115 100644
--- a/frontend/plugins/signoz.mjs
+++ b/frontend/plugins/signoz.mjs
@@ -9,6 +9,7 @@ import noZustandGetStateInHooks from './rules/no-zustand-getstate-in-hooks.mjs';
import noNavigatorClipboard from './rules/no-navigator-clipboard.mjs';
import noUnsupportedAssetPattern from './rules/no-unsupported-asset-pattern.mjs';
import noRawAbsolutePath from './rules/no-raw-absolute-path.mjs';
+import noAntdComponents from './rules/no-antd-components.mjs';
export default {
meta: {
@@ -19,5 +20,6 @@ export default {
'no-navigator-clipboard': noNavigatorClipboard,
'no-unsupported-asset-pattern': noUnsupportedAssetPattern,
'no-raw-absolute-path': noRawAbsolutePath,
+ 'no-antd-components': noAntdComponents,
},
};
diff --git a/frontend/src/components/AppLoading/AppLoading.tsx b/frontend/src/components/AppLoading/AppLoading.tsx
index 437724381e..64bda87001 100644
--- a/frontend/src/components/AppLoading/AppLoading.tsx
+++ b/frontend/src/components/AppLoading/AppLoading.tsx
@@ -1,4 +1,4 @@
-import { Typography } from 'antd';
+import { Typography } from '@signozhq/ui';
import get from 'api/browser/localstorage/get';
import { LOCALSTORAGE } from 'constants/localStorage';
import { THEME_MODE } from 'hooks/useDarkMode/constant';
diff --git a/frontend/src/components/CeleryOverview/CeleryOverviewTable/CeleryOverviewTable.tsx b/frontend/src/components/CeleryOverview/CeleryOverviewTable/CeleryOverviewTable.tsx
index bb35763d0f..4c9d990836 100644
--- a/frontend/src/components/CeleryOverview/CeleryOverviewTable/CeleryOverviewTable.tsx
+++ b/frontend/src/components/CeleryOverview/CeleryOverviewTable/CeleryOverviewTable.tsx
@@ -14,8 +14,8 @@ import {
TableColumnsType,
TableColumnType,
Tooltip,
- Typography,
} from 'antd';
+import { Typography } from '@signozhq/ui';
import type { FilterDropdownProps } from 'antd/lib/table/interface';
import logEvent from 'api/common/logEvent';
import {
diff --git a/frontend/src/components/CeleryTask/CeleryTaskConfigOptions/CeleryTaskConfigOptions.tsx b/frontend/src/components/CeleryTask/CeleryTaskConfigOptions/CeleryTaskConfigOptions.tsx
index 62fda94d8b..6335f191b8 100644
--- a/frontend/src/components/CeleryTask/CeleryTaskConfigOptions/CeleryTaskConfigOptions.tsx
+++ b/frontend/src/components/CeleryTask/CeleryTaskConfigOptions/CeleryTaskConfigOptions.tsx
@@ -1,5 +1,6 @@
import { useHistory, useLocation } from 'react-router-dom';
-import { Select, Spin, Typography } from 'antd';
+import { Select, Spin } from 'antd';
+import { Typography } from '@signozhq/ui';
import { SelectMaxTagPlaceholder } from 'components/MessagingQueues/MQCommon/MQCommon';
import { QueryParams } from 'constants/query';
import useUrlQuery from 'hooks/useUrlQuery';
diff --git a/frontend/src/components/CeleryTask/CeleryTaskDetail/CeleryTaskDetail.tsx b/frontend/src/components/CeleryTask/CeleryTaskDetail/CeleryTaskDetail.tsx
index 8e52958e4a..46f50d4ef5 100644
--- a/frontend/src/components/CeleryTask/CeleryTaskDetail/CeleryTaskDetail.tsx
+++ b/frontend/src/components/CeleryTask/CeleryTaskDetail/CeleryTaskDetail.tsx
@@ -1,6 +1,7 @@
import { useState } from 'react';
import { Color, Spacing } from '@signozhq/design-tokens';
-import { Divider, Drawer, Typography } from 'antd';
+import { Divider, Drawer } from 'antd';
+import { Typography } from '@signozhq/ui';
import logEvent from 'api/common/logEvent';
import { PANEL_TYPES } from 'constants/queryBuilder';
import dayjs from 'dayjs';
diff --git a/frontend/src/components/CeleryTask/CeleryTaskGraph/CeleryTaskGraphGrid.tsx b/frontend/src/components/CeleryTask/CeleryTaskGraph/CeleryTaskGraphGrid.tsx
index bb09f8153a..b6fc9979f0 100644
--- a/frontend/src/components/CeleryTask/CeleryTaskGraph/CeleryTaskGraphGrid.tsx
+++ b/frontend/src/components/CeleryTask/CeleryTaskGraph/CeleryTaskGraphGrid.tsx
@@ -1,7 +1,8 @@
import { useMemo, useState } from 'react';
// eslint-disable-next-line no-restricted-imports
import { useSelector } from 'react-redux';
-import { Card, Typography } from 'antd';
+import { Card } from 'antd';
+import { Typography } from '@signozhq/ui';
import logEvent from 'api/common/logEvent';
import { CardContainer } from 'container/GridCardLayout/styles';
import { useIsDarkMode } from 'hooks/useDarkMode';
diff --git a/frontend/src/components/ChatSupportGateway/ChatSupportGateway.tsx b/frontend/src/components/ChatSupportGateway/ChatSupportGateway.tsx
index 7da976a3cd..791a970122 100644
--- a/frontend/src/components/ChatSupportGateway/ChatSupportGateway.tsx
+++ b/frontend/src/components/ChatSupportGateway/ChatSupportGateway.tsx
@@ -1,7 +1,8 @@
import { useState } from 'react';
import { useMutation } from 'react-query';
import { useLocation } from 'react-router-dom';
-import { Button, Modal, Typography } from 'antd';
+import { Button, Modal } from 'antd';
+import { Typography } from '@signozhq/ui';
import logEvent from 'api/common/logEvent';
import updateCreditCardApi from 'api/v1/checkout/create';
import { useNotifications } from 'hooks/useNotifications';
diff --git a/frontend/src/components/ClientSideQBSearch/ClientSideQBSearch.tsx b/frontend/src/components/ClientSideQBSearch/ClientSideQBSearch.tsx
index 33124f6b40..978df2d5c2 100644
--- a/frontend/src/components/ClientSideQBSearch/ClientSideQBSearch.tsx
+++ b/frontend/src/components/ClientSideQBSearch/ClientSideQBSearch.tsx
@@ -554,10 +554,9 @@ function ClientSideQBSearch(
>
<Tooltip title={chipValue}>
<TypographyText
- ellipsis
$isInNin={isInNin}
- disabled={isDisabled}
$isEnabled={!!searchValue}
+ $disabled={isDisabled}
onClick={(): void => {
if (!isDisabled) {
tagEditHandler(value);
diff --git a/frontend/src/components/DownloadOptionsMenu/DownloadOptionsMenu.tsx b/frontend/src/components/DownloadOptionsMenu/DownloadOptionsMenu.tsx
index 04664b15f0..251ff62bc4 100644
--- a/frontend/src/components/DownloadOptionsMenu/DownloadOptionsMenu.tsx
+++ b/frontend/src/components/DownloadOptionsMenu/DownloadOptionsMenu.tsx
@@ -1,5 +1,6 @@
import { useCallback, useMemo, useState } from 'react';
-import { Button, Popover, Radio, Tooltip, Typography } from 'antd';
+import { Button, Popover, Radio, Tooltip } from 'antd';
+import { Typography } from '@signozhq/ui';
import { TelemetryFieldKey } from 'api/v5/v5';
import { useExportRawData } from 'hooks/useDownloadOptionsMenu/useDownloadOptionsMenu';
import { Download, DownloadIcon, Loader2 } from 'lucide-react';
diff --git a/frontend/src/components/ExplorerCard/ExplorerCard.tsx b/frontend/src/components/ExplorerCard/ExplorerCard.tsx
index ed4e302d10..b78bde5f79 100644
--- a/frontend/src/components/ExplorerCard/ExplorerCard.tsx
+++ b/frontend/src/components/ExplorerCard/ExplorerCard.tsx
@@ -15,8 +15,8 @@ import {
Row,
Select,
Space,
- Typography,
} from 'antd';
+import { Typography } from '@signozhq/ui';
import axios from 'axios';
import TextToolTip from 'components/TextToolTip';
import { SOMETHING_WENT_WRONG } from 'constants/api';
diff --git a/frontend/src/components/ExplorerCard/MenuItemGenerator.tsx b/frontend/src/components/ExplorerCard/MenuItemGenerator.tsx
index 60ba524355..bf2dfe7a0f 100644
--- a/frontend/src/components/ExplorerCard/MenuItemGenerator.tsx
+++ b/frontend/src/components/ExplorerCard/MenuItemGenerator.tsx
@@ -1,6 +1,7 @@
import { MouseEvent, useCallback } from 'react';
import { DeleteOutlined } from '@ant-design/icons';
-import { Col, Row, Tooltip, Typography } from 'antd';
+import { Col, Row, Tooltip } from 'antd';
+import { Typography } from '@signozhq/ui';
import { useQueryBuilder } from 'hooks/queryBuilder/useQueryBuilder';
import { useDeleteView } from 'hooks/saveViews/useDeleteView';
import { useHandleExplorerTabChange } from 'hooks/useHandleExplorerTabChange';
@@ -81,7 +82,7 @@ function MenuItemGenerator({
</Tooltip>
</Row>
<Row>
- <Typography.Text type="secondary">Created by {createdBy}</Typography.Text>
+ <Typography.Text color="muted">Created by {createdBy}</Typography.Text>
</Row>
</Col>
<Col span={2}>
diff --git a/frontend/src/components/ExplorerCard/SaveViewWithName.tsx b/frontend/src/components/ExplorerCard/SaveViewWithName.tsx
index 10b36ba572..5e3395c459 100644
--- a/frontend/src/components/ExplorerCard/SaveViewWithName.tsx
+++ b/frontend/src/components/ExplorerCard/SaveViewWithName.tsx
@@ -1,5 +1,6 @@
import { useTranslation } from 'react-i18next';
-import { Card, Form, Input, Typography } from 'antd';
+import { Card, Form, Input } from 'antd';
+import { Typography } from '@signozhq/ui';
import { PANEL_TYPES } from 'constants/queryBuilder';
import { useQueryBuilder } from 'hooks/queryBuilder/useQueryBuilder';
import { useSaveView } from 'hooks/saveViews/useSaveView';
diff --git a/frontend/src/components/HeaderRightSection/AnnouncementsModal.tsx b/frontend/src/components/HeaderRightSection/AnnouncementsModal.tsx
index fdd054de11..76e5fded5e 100644
--- a/frontend/src/components/HeaderRightSection/AnnouncementsModal.tsx
+++ b/frontend/src/components/HeaderRightSection/AnnouncementsModal.tsx
@@ -1,4 +1,4 @@
-import { Typography } from 'antd';
+import { Typography } from '@signozhq/ui';
function AnnouncementsModal(): JSX.Element {
return (
diff --git a/frontend/src/components/HeaderRightSection/FeedbackModal.tsx b/frontend/src/components/HeaderRightSection/FeedbackModal.tsx
index 083baf979c..cb896d8ac6 100644
--- a/frontend/src/components/HeaderRightSection/FeedbackModal.tsx
+++ b/frontend/src/components/HeaderRightSection/FeedbackModal.tsx
@@ -1,7 +1,8 @@
import { useCallback, useEffect, useState } from 'react';
import { useLocation } from 'react-router-dom';
import { toast } from '@signozhq/ui';
-import { Button, Input, Radio, RadioChangeEvent, Typography } from 'antd';
+import { Button, Input, Radio, RadioChangeEvent } from 'antd';
+import { Typography } from '@signozhq/ui';
import logEvent from 'api/common/logEvent';
import { handleContactSupport } from 'container/Integrations/utils';
import { useGetTenantLicense } from 'hooks/useGetTenantLicense';
diff --git a/frontend/src/components/HeaderRightSection/ShareURLModal.tsx b/frontend/src/components/HeaderRightSection/ShareURLModal.tsx
index 3e2012ab6e..2ffb0a2c79 100644
--- a/frontend/src/components/HeaderRightSection/ShareURLModal.tsx
+++ b/frontend/src/components/HeaderRightSection/ShareURLModal.tsx
@@ -4,7 +4,8 @@ import { useSelector } from 'react-redux';
import { matchPath, useLocation } from 'react-router-dom';
import { useCopyToClipboard } from 'react-use';
import { Color } from '@signozhq/design-tokens';
-import { Button, Switch, Typography } from 'antd';
+import { Button, Switch } from 'antd';
+import { Typography } from '@signozhq/ui';
import logEvent from 'api/common/logEvent';
import { QueryParams } from 'constants/query';
import ROUTES from 'constants/routes';
diff --git a/frontend/src/components/HostMetricsDetail/WaitlistFragment/WaitlistFragment.tsx b/frontend/src/components/HostMetricsDetail/WaitlistFragment/WaitlistFragment.tsx
index b6a6bb069f..faf46695fa 100644
--- a/frontend/src/components/HostMetricsDetail/WaitlistFragment/WaitlistFragment.tsx
+++ b/frontend/src/components/HostMetricsDetail/WaitlistFragment/WaitlistFragment.tsx
@@ -1,7 +1,8 @@
import { useState } from 'react';
import { useTranslation } from 'react-i18next';
import { Color } from '@signozhq/design-tokens';
-import { Button, Typography } from 'antd';
+import { Button } from 'antd';
+import { Typography } from '@signozhq/ui';
import logEvent from 'api/common/logEvent';
import { useNotifications } from 'hooks/useNotifications';
import { CheckCircle2, HandPlatter } from 'lucide-react';
diff --git a/frontend/src/components/InputWithLabel/InputWithLabel.tsx b/frontend/src/components/InputWithLabel/InputWithLabel.tsx
index 8dd30dca8c..2713451d70 100644
--- a/frontend/src/components/InputWithLabel/InputWithLabel.tsx
+++ b/frontend/src/components/InputWithLabel/InputWithLabel.tsx
@@ -1,5 +1,6 @@
import { useState } from 'react';
-import { Button, Input, Typography } from 'antd';
+import { Button, Input } from 'antd';
+import { Typography } from '@signozhq/ui';
import cx from 'classnames';
import { X } from 'lucide-react';
diff --git a/frontend/src/components/LaunchChatSupport/LaunchChatSupport.tsx b/frontend/src/components/LaunchChatSupport/LaunchChatSupport.tsx
index de6bdc3289..6e31a6b746 100644
--- a/frontend/src/components/LaunchChatSupport/LaunchChatSupport.tsx
+++ b/frontend/src/components/LaunchChatSupport/LaunchChatSupport.tsx
@@ -1,7 +1,8 @@
import { useMemo, useState } from 'react';
import { useMutation } from 'react-query';
import { useLocation } from 'react-router-dom';
-import { Button, Modal, Tooltip, Typography } from 'antd';
+import { Button, Modal, Tooltip } from 'antd';
+import { Typography } from '@signozhq/ui';
import logEvent from 'api/common/logEvent';
import updateCreditCardApi from 'api/v1/checkout/create';
import cx from 'classnames';
diff --git a/frontend/src/components/LogDetail/index.tsx b/frontend/src/components/LogDetail/index.tsx
index 8745a8fe64..9ab1a2747b 100644
--- a/frontend/src/components/LogDetail/index.tsx
+++ b/frontend/src/components/LogDetail/index.tsx
@@ -4,7 +4,8 @@ import { useSelector } from 'react-redux'; // old code, TODO: fix this correctly
import { useCopyToClipboard, useLocation } from 'react-use';
import { Color, Spacing } from '@signozhq/design-tokens';
import { Button } from '@signozhq/ui';
-import { Divider, Drawer, Radio, Tooltip, Typography } from 'antd';
+import { Divider, Drawer, Radio, Tooltip } from 'antd';
+import { Typography } from '@signozhq/ui';
import type { RadioChangeEvent } from 'antd/lib';
import cx from 'classnames';
import { LogType } from 'components/Logs/LogStateIndicator/LogStateIndicator';
@@ -589,7 +590,7 @@ function LogDetailInner({
<div className="log-detail-drawer__footer-hint">
<div className="log-detail-drawer__footer-hint-content">
<Typography.Text
- type="secondary"
+ color="muted"
className="log-detail-drawer__footer-hint-text"
>
Use
@@ -598,7 +599,7 @@ function LogDetailInner({
<span>/</span>
<ArrowDown size={14} className="log-detail-drawer__footer-hint-icon" />
<Typography.Text
- type="secondary"
+ color="muted"
className="log-detail-drawer__footer-hint-text"
>
to view previous/next log
diff --git a/frontend/src/components/Logs/CategoryHeading/index.tsx b/frontend/src/components/Logs/CategoryHeading/index.tsx
index b7d8ae7b50..ed80bbed70 100644
--- a/frontend/src/components/Logs/CategoryHeading/index.tsx
+++ b/frontend/src/components/Logs/CategoryHeading/index.tsx
@@ -6,7 +6,7 @@ interface ICategoryHeadingProps {
children: ReactNode;
}
function CategoryHeading({ children }: ICategoryHeadingProps): JSX.Element {
- return <CategoryHeadingText type="secondary">{children}</CategoryHeadingText>;
+ return <CategoryHeadingText color="muted">{children}</CategoryHeadingText>;
}
export default CategoryHeading;
diff --git a/frontend/src/components/Logs/CategoryHeading/styles.ts b/frontend/src/components/Logs/CategoryHeading/styles.ts
index 99278700dd..287247d0c2 100644
--- a/frontend/src/components/Logs/CategoryHeading/styles.ts
+++ b/frontend/src/components/Logs/CategoryHeading/styles.ts
@@ -1,4 +1,4 @@
-import { Typography } from 'antd';
+import { Typography } from '@signozhq/ui';
import styled from 'styled-components';
export const CategoryHeadingText = styled(Typography.Text)`
diff --git a/frontend/src/components/Logs/ListLogView/index.tsx b/frontend/src/components/Logs/ListLogView/index.tsx
index 4cc46e9483..98be2569e2 100644
--- a/frontend/src/components/Logs/ListLogView/index.tsx
+++ b/frontend/src/components/Logs/ListLogView/index.tsx
@@ -1,6 +1,6 @@
import { memo, useCallback, useMemo } from 'react';
import { blue } from '@ant-design/colors';
-import { Typography } from 'antd';
+import { Typography } from '@signozhq/ui';
import cx from 'classnames';
import { VIEW_TYPES } from 'components/LogDetail/constants';
import { DATE_TIME_FORMATS } from 'constants/dateTimeFormats';
@@ -89,7 +89,7 @@ function LogSelectedField({
</span>
</Typography.Text>
</AddToQueryHOC>
- <Typography.Text ellipsis className={cx('selected-log-kv', fontSize)}>
+ <Typography.Text truncate={1} className={cx('selected-log-kv', fontSize)}>
<span className={cx('selected-log-field-key', fontSize)}>{': '}</span>
<span className={cx('selected-log-value', fontSize)}>
{fieldValue || "''"}
diff --git a/frontend/src/components/LogsFormatOptionsMenu/LogsFormatOptionsMenu.tsx b/frontend/src/components/LogsFormatOptionsMenu/LogsFormatOptionsMenu.tsx
index 72d9ce13d5..d513276c36 100644
--- a/frontend/src/components/LogsFormatOptionsMenu/LogsFormatOptionsMenu.tsx
+++ b/frontend/src/components/LogsFormatOptionsMenu/LogsFormatOptionsMenu.tsx
@@ -1,5 +1,6 @@
import { useCallback, useEffect, useRef, useState } from 'react';
-import { Button, Input, InputNumber, Popover, Tooltip, Typography } from 'antd';
+import { Button, Input, InputNumber, Popover, Tooltip } from 'antd';
+import { Typography } from '@signozhq/ui';
import type { DefaultOptionType } from 'antd/es/select';
import cx from 'classnames';
import { LogViewMode } from 'container/LogsTable';
diff --git a/frontend/src/components/MessagingQueueHealthCheck/AttributeCheckList.tsx b/frontend/src/components/MessagingQueueHealthCheck/AttributeCheckList.tsx
index 5648c2ca15..cf9c7963f5 100644
--- a/frontend/src/components/MessagingQueueHealthCheck/AttributeCheckList.tsx
+++ b/frontend/src/components/MessagingQueueHealthCheck/AttributeCheckList.tsx
@@ -1,15 +1,8 @@
+import { Typography } from '@signozhq/ui';
import { ReactNode, useEffect, useState } from 'react';
import { useHistory } from 'react-router-dom';
import { CaretDownOutlined, LoadingOutlined } from '@ant-design/icons';
-import {
- Modal,
- Select,
- Spin,
- Tooltip,
- Tree,
- TreeDataNode,
- Typography,
-} from 'antd';
+import { Modal, Select, Spin, Tooltip, Tree, TreeDataNode } from 'antd';
import { OnboardingStatusResponse } from 'api/messagingQueues/onboarding/getOnboardingStatus';
import { QueryParams } from 'constants/query';
import ROUTES from 'constants/routes';
@@ -84,7 +77,7 @@ function ErrorTitleAndKey({
key: `${title}-key-${uuid()}`,
title: (
<div className="attribute-error-title">
- <Typography.Text className="tree-text" ellipsis={{ tooltip: title }}>
+ <Typography.Text title={title} className="tree-text" truncate={1}>
{title}
</Typography.Text>
<Tooltip title={errorMsg}>
@@ -125,7 +118,7 @@ function treeTitleAndKey({
key: `${title}-key-${uuid()}`,
title: (
<div className="attribute-success-title">
- <Typography.Text className="tree-text" ellipsis={{ tooltip: title }}>
+ <Typography.Text title={title} className="tree-text" truncate={1}>
{title}
</Typography.Text>
{isLeaf && (
diff --git a/frontend/src/components/NewSelect/CustomMultiSelect.tsx b/frontend/src/components/NewSelect/CustomMultiSelect.tsx
index a4ec8bab05..aadaed7836 100644
--- a/frontend/src/components/NewSelect/CustomMultiSelect.tsx
+++ b/frontend/src/components/NewSelect/CustomMultiSelect.tsx
@@ -13,7 +13,8 @@ import {
ReloadOutlined,
} from '@ant-design/icons';
import { Color } from '@signozhq/design-tokens';
-import { Button, Checkbox, Select, Typography } from 'antd';
+import { Button, Checkbox, Select } from 'antd';
+import { Typography } from '@signozhq/ui';
import cx from 'classnames';
import TextToolTip from 'components/TextToolTip/TextToolTip';
import { SOMETHING_WENT_WRONG } from 'constants/api';
@@ -755,15 +756,7 @@ const CustomMultiSelect: React.FC<CustomMultiSelectProps> = ({
}}
>
<div className="option-content">
- <Typography.Text
- ellipsis={{
- tooltip: {
- placement: 'right',
- autoAdjustOverflow: true,
- },
- }}
- className="option-label-text"
- >
+ <Typography.Text truncate={1} className="option-label-text">
{highlightMatchedText(String(option.label || ''), searchText)}
</Typography.Text>
{(option.type === 'custom' || option.type === 'regex') && (
diff --git a/frontend/src/components/QueryBuilderV2/QueryV2/QueryFooter/QueryFooter.tsx b/frontend/src/components/QueryBuilderV2/QueryV2/QueryFooter/QueryFooter.tsx
index 5686b3f624..d36afc40aa 100644
--- a/frontend/src/components/QueryBuilderV2/QueryV2/QueryFooter/QueryFooter.tsx
+++ b/frontend/src/components/QueryBuilderV2/QueryV2/QueryFooter/QueryFooter.tsx
@@ -1,5 +1,6 @@
import { useMemo } from 'react';
-import { Button, Tooltip, Typography } from 'antd';
+import { Button, Tooltip } from 'antd';
+import { Typography } from '@signozhq/ui';
import WarningPopover from 'components/WarningPopover/WarningPopover';
import { PANEL_TYPES } from 'constants/queryBuilder';
import { useQueryBuilder } from 'hooks/queryBuilder/useQueryBuilder';
diff --git a/frontend/src/components/QueryBuilderV2/QueryV2/TraceOperator/TraceOperator.tsx b/frontend/src/components/QueryBuilderV2/QueryV2/TraceOperator/TraceOperator.tsx
index 4a96c19027..420b66425d 100644
--- a/frontend/src/components/QueryBuilderV2/QueryV2/TraceOperator/TraceOperator.tsx
+++ b/frontend/src/components/QueryBuilderV2/QueryV2/TraceOperator/TraceOperator.tsx
@@ -1,5 +1,6 @@
import { useCallback } from 'react';
-import { Button, Tooltip, Typography } from 'antd';
+import { Button, Tooltip } from 'antd';
+import { Typography } from '@signozhq/ui';
import cx from 'classnames';
import { useQueryBuilder } from 'hooks/queryBuilder/useQueryBuilder';
import { useQueryOperations } from 'hooks/queryBuilder/useQueryBuilderOperations';
diff --git a/frontend/src/components/QueryCancelledPlaceholder/QueryCancelledPlaceholder.tsx b/frontend/src/components/QueryCancelledPlaceholder/QueryCancelledPlaceholder.tsx
index 8b708456e0..ac0526c925 100644
--- a/frontend/src/components/QueryCancelledPlaceholder/QueryCancelledPlaceholder.tsx
+++ b/frontend/src/components/QueryCancelledPlaceholder/QueryCancelledPlaceholder.tsx
@@ -1,4 +1,4 @@
-import { Typography } from 'antd';
+import { Typography } from '@signozhq/ui';
import eyesEmojiUrl from 'assets/Images/eyesEmoji.svg';
import styles from './QueryCancelledPlaceholder.module.scss';
diff --git a/frontend/src/components/QuickFilters/FilterRenderers/Checkbox/Checkbox.tsx b/frontend/src/components/QuickFilters/FilterRenderers/Checkbox/Checkbox.tsx
index ff59f44d60..c6d166c814 100644
--- a/frontend/src/components/QuickFilters/FilterRenderers/Checkbox/Checkbox.tsx
+++ b/frontend/src/components/QuickFilters/FilterRenderers/Checkbox/Checkbox.tsx
@@ -1,6 +1,7 @@
/* eslint-disable sonarjs/no-identical-functions */
import { Fragment, useMemo, useState } from 'react';
-import { Button, Checkbox, Input, Skeleton, Typography } from 'antd';
+import { Button, Checkbox, Input, Skeleton } from 'antd';
+import { Typography } from '@signozhq/ui';
import cx from 'classnames';
import { removeKeysFromExpression } from 'components/QueryBuilderV2/utils';
import {
@@ -640,16 +641,7 @@ export default function CheckboxFilter(props: ICheckboxProps): JSX.Element {
{filter.customRendererForValue ? (
filter.customRendererForValue(value)
) : (
- <Typography.Text
- className="value-string"
- ellipsis={{
- tooltip: {
- placement: 'top',
- mouseEnterDelay: 0.2,
- mouseLeaveDelay: 0,
- },
- }}
- >
+ <Typography.Text className="value-string" truncate={1}>
{String(value)}
</Typography.Text>
)}
diff --git a/frontend/src/components/QuickFilters/QuickFilters.tsx b/frontend/src/components/QuickFilters/QuickFilters.tsx
index fb7db6b784..c62b917607 100644
--- a/frontend/src/components/QuickFilters/QuickFilters.tsx
+++ b/frontend/src/components/QuickFilters/QuickFilters.tsx
@@ -12,7 +12,8 @@ import {
ComboboxList,
ComboboxTrigger,
} from '@signozhq/ui';
-import { Skeleton, Switch, Tooltip, Typography } from 'antd';
+import { Skeleton, Switch, Tooltip } from 'antd';
+import { Typography } from '@signozhq/ui';
import getLocalStorageKey from 'api/browser/localstorage/get';
import setLocalStorageKey from 'api/browser/localstorage/set';
import logEvent from 'api/common/logEvent';
diff --git a/frontend/src/components/ResizeTable/TableComponent/DateComponent.tsx b/frontend/src/components/ResizeTable/TableComponent/DateComponent.tsx
index 87c5c57420..d547c9e79f 100644
--- a/frontend/src/components/ResizeTable/TableComponent/DateComponent.tsx
+++ b/frontend/src/components/ResizeTable/TableComponent/DateComponent.tsx
@@ -1,4 +1,4 @@
-import { Typography } from 'antd';
+import { Typography } from '@signozhq/ui';
import Time from './Time';
diff --git a/frontend/src/components/ResizeTable/TableComponent/Time.tsx b/frontend/src/components/ResizeTable/TableComponent/Time.tsx
index 19cf435aba..e76ff2b5f6 100644
--- a/frontend/src/components/ResizeTable/TableComponent/Time.tsx
+++ b/frontend/src/components/ResizeTable/TableComponent/Time.tsx
@@ -1,4 +1,4 @@
-import { Typography } from 'antd';
+import { Typography } from '@signozhq/ui';
import { DATE_TIME_FORMATS } from 'constants/dateTimeFormats';
import { useTimezone } from 'providers/Timezone';
diff --git a/frontend/src/components/SpanHoverCard/SpanHoverCard.tsx b/frontend/src/components/SpanHoverCard/SpanHoverCard.tsx
index 7168e0466d..bedf2be3bc 100644
--- a/frontend/src/components/SpanHoverCard/SpanHoverCard.tsx
+++ b/frontend/src/components/SpanHoverCard/SpanHoverCard.tsx
@@ -1,5 +1,6 @@
import { ReactNode } from 'react';
-import { Popover, Typography } from 'antd';
+import { Popover } from 'antd';
+import { Typography } from '@signozhq/ui';
import { DATE_TIME_FORMATS } from 'constants/dateTimeFormats';
import { convertTimeToRelevantUnit } from 'container/TraceDetail/utils';
import dayjs from 'dayjs';
diff --git a/frontend/src/components/Styled/index.ts b/frontend/src/components/Styled/index.ts
index a90a577156..2f23d7627e 100644
--- a/frontend/src/components/Styled/index.ts
+++ b/frontend/src/components/Styled/index.ts
@@ -11,10 +11,12 @@ import {
Space,
SpaceProps,
TabsProps,
- Typography,
} from 'antd';
-import type { TextProps } from 'antd/lib/typography/Text';
-import type { TitleProps } from 'antd/lib/typography/Title';
+import {
+ Typography,
+ TypographyTextProps,
+ TypographyTitleProps,
+} from '@signozhq/ui';
import styled, { FlattenSimpleInterpolation } from 'styled-components';
import { IStyledClass } from './types';
@@ -53,13 +55,13 @@ const StyledButton = styled(Button)<TStyledButton>`
`;
const { Text } = Typography;
-type TStyledTypographyText = TextProps & IStyledClass;
+type TStyledTypographyText = TypographyTextProps & IStyledClass;
const StyledTypographyText = styled(Text)<TStyledTypographyText>`
${styledClass}
`;
const { Title } = Typography;
-type TStyledTypographyTitle = TitleProps & IStyledClass;
+type TStyledTypographyTitle = TypographyTitleProps & IStyledClass;
const StyledTypographyTitle = styled(Title)<TStyledTypographyTitle>`
${styledClass}
`;
diff --git a/frontend/src/components/TimePreferenceDropDown/config.tsx b/frontend/src/components/TimePreferenceDropDown/config.tsx
index e7bdd793db..e21dde15bf 100644
--- a/frontend/src/components/TimePreferenceDropDown/config.tsx
+++ b/frontend/src/components/TimePreferenceDropDown/config.tsx
@@ -1,4 +1,4 @@
-import { Typography } from 'antd';
+import { Typography } from '@signozhq/ui';
import { timeItems } from 'container/NewWidget/RightContainer/timeItems';
export const menuItems = timeItems.map((item) => ({
diff --git a/frontend/src/components/TimePreferenceDropDown/index.tsx b/frontend/src/components/TimePreferenceDropDown/index.tsx
index 76093bd831..e0c9241604 100644
--- a/frontend/src/components/TimePreferenceDropDown/index.tsx
+++ b/frontend/src/components/TimePreferenceDropDown/index.tsx
@@ -1,6 +1,7 @@
import { Dispatch, SetStateAction, useCallback, useMemo } from 'react';
import { DownOutlined } from '@ant-design/icons';
-import { Button, Dropdown, Typography } from 'antd';
+import { Button, Dropdown } from 'antd';
+import { Typography } from '@signozhq/ui';
import TimeItems, {
timePreferance,
timePreferenceType,
diff --git a/frontend/src/components/Uplot/Uplot.tsx b/frontend/src/components/Uplot/Uplot.tsx
index 739220ca97..ddc6890bf5 100644
--- a/frontend/src/components/Uplot/Uplot.tsx
+++ b/frontend/src/components/Uplot/Uplot.tsx
@@ -8,7 +8,7 @@ import {
useRef,
} from 'react';
import * as Sentry from '@sentry/react';
-import { Typography } from 'antd';
+import { Typography } from '@signozhq/ui';
import { ToggleGraphProps } from 'components/Graph/types';
import { LineChart } from 'lucide-react';
import ErrorBoundaryFallback from 'pages/ErrorBoundaryFallback/ErrorBoundaryFallback';
diff --git a/frontend/src/components/ValueGraph/index.tsx b/frontend/src/components/ValueGraph/index.tsx
index e8abc0a633..dad8ea2d89 100644
--- a/frontend/src/components/ValueGraph/index.tsx
+++ b/frontend/src/components/ValueGraph/index.tsx
@@ -1,7 +1,8 @@
import { useEffect, useMemo, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
import { ExclamationCircleFilled } from '@ant-design/icons';
-import { Tooltip, Typography } from 'antd';
+import { Tooltip } from 'antd';
+import { Typography } from '@signozhq/ui';
import { ThresholdProps } from 'container/NewWidget/RightContainer/Threshold/types';
import { getBackgroundColorAndThresholdCheck } from './utils';
diff --git a/frontend/src/container/AllAlertChannels/index.tsx b/frontend/src/container/AllAlertChannels/index.tsx
index 7371b8e593..bd3cf03e7c 100644
--- a/frontend/src/container/AllAlertChannels/index.tsx
+++ b/frontend/src/container/AllAlertChannels/index.tsx
@@ -2,7 +2,8 @@ import { useCallback, useEffect } from 'react';
import { useTranslation } from 'react-i18next';
import { useQuery } from 'react-query';
import { PlusOutlined } from '@ant-design/icons';
-import { Tooltip, Typography } from 'antd';
+import { Tooltip } from 'antd';
+import { Typography } from '@signozhq/ui';
import getAll from 'api/channels/getAll';
import logEvent from 'api/common/logEvent';
import Spinner from 'components/Spinner';
@@ -21,7 +22,7 @@ import { Button, ButtonContainer, RightActionContainer } from './styles';
import './AllAlertChannels.styles.scss';
-const { Paragraph } = Typography;
+const { Text } = Typography;
function AlertChannels(): JSX.Element {
const { t } = useTranslation(['channels']);
@@ -60,9 +61,9 @@ function AlertChannels(): JSX.Element {
return (
<div className="alert-channels-container">
<ButtonContainer>
- <Paragraph ellipsis type="secondary">
+ <Text truncate={1} color="muted">
{t('sending_channels_note')}
- </Paragraph>
+ </Text>
<RightActionContainer>
<TextToolTip
diff --git a/frontend/src/container/AllError/index.tsx b/frontend/src/container/AllError/index.tsx
index 5c1822f660..f307c891cd 100644
--- a/frontend/src/container/AllError/index.tsx
+++ b/frontend/src/container/AllError/index.tsx
@@ -1,3 +1,4 @@
+import { Typography } from '@signozhq/ui';
import { useCallback, useEffect, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
import { useQueries } from 'react-query';
@@ -5,15 +6,7 @@ import { useQueries } from 'react-query';
import { useSelector } from 'react-redux';
import { Link, useLocation } from 'react-router-dom';
import { SearchOutlined } from '@ant-design/icons';
-import {
- Button,
- Card,
- Input,
- Space,
- TableProps,
- Tooltip,
- Typography,
-} from 'antd';
+import { Button, Card, Input, Space, TableProps, Tooltip } from 'antd';
import type { ColumnType, TablePaginationConfig } from 'antd/es/table';
import type { FilterValue, SorterResult } from 'antd/es/table/interface';
import type { ColumnsType } from 'antd/lib/table';
@@ -360,13 +353,7 @@ function AllErrors(): JSX.Element {
width: 100,
render: (value): JSX.Element => (
<Tooltip overlay={(): JSX.Element => value}>
- <Typography.Paragraph
- ellipsis={{
- rows: 2,
- }}
- >
- {value}
- </Typography.Paragraph>
+ <Typography.Text truncate={2}>{value}</Typography.Text>
</Tooltip>
),
},
diff --git a/frontend/src/container/AnomalyAlertEvaluationView/AnomalyAlertEvaluationView.tsx b/frontend/src/container/AnomalyAlertEvaluationView/AnomalyAlertEvaluationView.tsx
index 372d221404..897a2ba714 100644
--- a/frontend/src/container/AnomalyAlertEvaluationView/AnomalyAlertEvaluationView.tsx
+++ b/frontend/src/container/AnomalyAlertEvaluationView/AnomalyAlertEvaluationView.tsx
@@ -1,5 +1,6 @@
import { useEffect, useRef, useState } from 'react';
-import { Checkbox, Input, Typography } from 'antd';
+import { Checkbox, Input } from 'antd';
+import { Typography } from '@signozhq/ui';
import { useIsDarkMode } from 'hooks/useDarkMode';
import useDebouncedFn from 'hooks/useDebouncedFunction';
import { useResizeObserver } from 'hooks/useDimensions';
diff --git a/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/DomainDetails.tsx b/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/DomainDetails.tsx
index 7724a41b02..74559d620b 100644
--- a/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/DomainDetails.tsx
+++ b/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/DomainDetails.tsx
@@ -2,7 +2,8 @@ import { useCallback, useEffect, useMemo, useState } from 'react';
// eslint-disable-next-line no-restricted-imports
import { useSelector } from 'react-redux';
import { Spacing } from '@signozhq/design-tokens';
-import { Button, Divider, Drawer, Radio, Typography } from 'antd';
+import { Button, Divider, Drawer, Radio } from 'antd';
+import { Typography } from '@signozhq/ui';
import type { RadioChangeEvent } from 'antd/lib';
import DateTimeSelectionV2 from 'container/TopNav/DateTimeSelectionV2';
import {
diff --git a/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/TopErrors.tsx b/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/TopErrors.tsx
index 0382f1af7f..934e37b333 100644
--- a/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/TopErrors.tsx
+++ b/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/TopErrors.tsx
@@ -1,7 +1,8 @@
import { useMemo, useState } from 'react';
import { QueryFunctionContext, useQueries, useQuery } from 'react-query';
import { LoadingOutlined } from '@ant-design/icons';
-import { Spin, Switch, Table, Tooltip, Typography } from 'antd';
+import { Spin, Switch, Table, Tooltip } from 'antd';
+import { Typography } from '@signozhq/ui';
import { getQueryRangeV5 } from 'api/v5/queryRange/getQueryRange';
import { MetricRangePayloadV5, ScalarData } from 'api/v5/v5';
import { useNavigateToExplorer } from 'components/CeleryTask/useNavigateToExplorer';
diff --git a/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/components/DependentServices.tsx b/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/components/DependentServices.tsx
index e2e34b2b56..adc72c502a 100644
--- a/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/components/DependentServices.tsx
+++ b/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/components/DependentServices.tsx
@@ -1,6 +1,7 @@
import { useMemo, useState } from 'react';
import { UseQueryResult } from 'react-query';
-import { Skeleton, Table, TablePaginationConfig, Typography } from 'antd';
+import { Skeleton, Table, TablePaginationConfig } from 'antd';
+import { Typography } from '@signozhq/ui';
import { QueryParams } from 'constants/query';
import {
dependentServicesColumns,
diff --git a/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/components/DomainMetrics.tsx b/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/components/DomainMetrics.tsx
index a36a17f0e1..73d7d24fdc 100644
--- a/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/components/DomainMetrics.tsx
+++ b/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/components/DomainMetrics.tsx
@@ -1,7 +1,8 @@
import { useMemo } from 'react';
import { useQueries } from 'react-query';
import { Color } from '@signozhq/design-tokens';
-import { Progress, Skeleton, Tooltip, Typography } from 'antd';
+import { Progress, Skeleton, Tooltip } from 'antd';
+import { Typography } from '@signozhq/ui';
import { ENTITY_VERSION_V5 } from 'constants/app';
import { REACT_QUERY_KEY } from 'constants/reactQueryKeys';
import {
@@ -87,28 +88,16 @@ function DomainMetrics({
<div className="domain-detail-drawer__endpoint">
<div className="domain-details-grid">
<div className="labels-row">
- <Typography.Text
- type="secondary"
- className="domain-details-metadata-label"
- >
+ <Typography.Text color="muted" className="domain-details-metadata-label">
EXTERNAL API
</Typography.Text>
- <Typography.Text
- type="secondary"
- className="domain-details-metadata-label"
- >
+ <Typography.Text color="muted" className="domain-details-metadata-label">
AVERAGE LATENCY
</Typography.Text>
- <Typography.Text
- type="secondary"
- className="domain-details-metadata-label"
- >
+ <Typography.Text color="muted" className="domain-details-metadata-label">
ERROR %
</Typography.Text>
- <Typography.Text
- type="secondary"
- className="domain-details-metadata-label"
- >
+ <Typography.Text color="muted" className="domain-details-metadata-label">
LAST USED
</Typography.Text>
</div>
diff --git a/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/components/EndPointMetrics.tsx b/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/components/EndPointMetrics.tsx
index 9a5eb3686e..0598b5c97e 100644
--- a/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/components/EndPointMetrics.tsx
+++ b/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/components/EndPointMetrics.tsx
@@ -1,7 +1,8 @@
import { useMemo } from 'react';
import { UseQueryResult } from 'react-query';
import { Color } from '@signozhq/design-tokens';
-import { Progress, Skeleton, Tooltip, Typography } from 'antd';
+import { Progress, Skeleton, Tooltip } from 'antd';
+import { Typography } from '@signozhq/ui';
import {
getDisplayValue,
getFormattedEndPointMetricsData,
@@ -37,28 +38,16 @@ function EndPointMetrics({
<div className="domain-detail-drawer__endpoint">
<div className="domain-details-grid">
<div className="labels-row">
- <Typography.Text
- type="secondary"
- className="domain-details-metadata-label"
- >
+ <Typography.Text color="muted" className="domain-details-metadata-label">
Rate
</Typography.Text>
- <Typography.Text
- type="secondary"
- className="domain-details-metadata-label"
- >
+ <Typography.Text color="muted" className="domain-details-metadata-label">
AVERAGE LATENCY
</Typography.Text>
- <Typography.Text
- type="secondary"
- className="domain-details-metadata-label"
- >
+ <Typography.Text color="muted" className="domain-details-metadata-label">
ERROR %
</Typography.Text>
- <Typography.Text
- type="secondary"
- className="domain-details-metadata-label"
- >
+ <Typography.Text color="muted" className="domain-details-metadata-label">
LAST USED
</Typography.Text>
</div>
diff --git a/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/components/ErrorState.tsx b/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/components/ErrorState.tsx
index 1ce39401a3..94d0612e8e 100644
--- a/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/components/ErrorState.tsx
+++ b/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/components/ErrorState.tsx
@@ -1,4 +1,5 @@
-import { Button, Typography } from 'antd';
+import { Button } from 'antd';
+import { Typography } from '@signozhq/ui';
import { RotateCw } from 'lucide-react';
import awwSnapUrl from '@/assets/Icons/awwSnap.svg';
@@ -13,7 +14,7 @@ function ErrorState({ refetch }: { refetch: () => void }): JSX.Element {
</div>
<div className="error-state-text">
<Typography.Text>Uh-oh :/ We ran into an error.</Typography.Text>
- <Typography.Text type="secondary">
+ <Typography.Text color="muted">
Please refresh this panel.
</Typography.Text>
</div>
diff --git a/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/components/StatusCodeBarCharts.tsx b/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/components/StatusCodeBarCharts.tsx
index 8a6c8e8c14..c8560b2008 100644
--- a/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/components/StatusCodeBarCharts.tsx
+++ b/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/components/StatusCodeBarCharts.tsx
@@ -1,7 +1,8 @@
import { useCallback, useMemo, useRef, useState } from 'react';
import { UseQueryResult } from 'react-query';
import { Color } from '@signozhq/design-tokens';
-import { Button, Card, Skeleton, Typography } from 'antd';
+import { Button, Card, Skeleton } from 'antd';
+import { Typography } from '@signozhq/ui';
import cx from 'classnames';
import { useNavigateToExplorer } from 'components/CeleryTask/useNavigateToExplorer';
import {
diff --git a/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/components/StatusCodeTable.tsx b/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/components/StatusCodeTable.tsx
index 10a4d6eb87..7fd5ab8763 100644
--- a/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/components/StatusCodeTable.tsx
+++ b/frontend/src/container/ApiMonitoring/Explorer/Domains/DomainDetails/components/StatusCodeTable.tsx
@@ -1,6 +1,7 @@
import { useMemo } from 'react';
import { UseQueryResult } from 'react-query';
-import { Table, Typography } from 'antd';
+import { Table } from 'antd';
+import { Typography } from '@signozhq/ui';
import {
endPointStatusCodeColumns,
getFormattedEndPointStatusCodeData,
diff --git a/frontend/src/container/BillingContainer/BillingContainer.tsx b/frontend/src/container/BillingContainer/BillingContainer.tsx
index 598655027a..f8d0484b33 100644
--- a/frontend/src/container/BillingContainer/BillingContainer.tsx
+++ b/frontend/src/container/BillingContainer/BillingContainer.tsx
@@ -1,3 +1,4 @@
+import { Typography } from '@signozhq/ui';
import { useCallback, useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
import { useMutation, useQuery } from 'react-query';
@@ -14,7 +15,6 @@ import {
Table,
TableColumnsType as ColumnsType,
Tag,
- Typography,
} from 'antd';
import getUsage, { UsageResponsePayloadProps } from 'api/billing/getUsage';
import logEvent from 'api/common/logEvent';
@@ -362,15 +362,17 @@ export default function BillingContainer(): JSX.Element {
[apiResponse, billAmount, isLoading, isFetchingBillingData],
);
- const { Text } = Typography;
const subscriptionPastDueMessage = (): JSX.Element => (
<Typography>
{`We were not able to process payments for your account. Please update your card details `}
- <Text type="danger" onClick={handleBilling} style={{ cursor: 'pointer' }}>
+ <Typography.Link
+ onClick={handleBilling}
+ style={{ cursor: 'pointer', color: 'var(--bg-cherry-500)' }}
+ >
{t('here')}
- </Text>
+ </Typography.Link>
{` if your payment information has changed. Email us at `}
- <Text type="secondary">[email protected]</Text>
+ <Typography.Text color="muted">[email protected]</Typography.Text>
{` otherwise. Be sure to provide this information immediately to avoid interruption to your service.`}
</Typography>
);
@@ -418,7 +420,7 @@ export default function BillingContainer(): JSX.Element {
<Typography.Text style={{ fontWeight: 500, fontSize: 18 }}>
{t('billing')}
</Typography.Text>
- <Typography.Text color={Color.BG_VANILLA_400}>
+ <Typography.Text color="muted">
{t('manage_billing_and_costs')}
</Typography.Text>
</Flex>
@@ -472,7 +474,7 @@ export default function BillingContainer(): JSX.Element {
{trialInfo?.onTrial && trialInfo?.trialConvertedToSubscription && (
<Typography.Text
- ellipsis
+ truncate={1}
style={{ fontWeight: '300', color: 'var(--bg-forest-500)', fontSize: 12 }}
>
{t('card_details_recieved_and_billing_info')}
diff --git a/frontend/src/container/BillingContainer/BillingUsageGraph/BillingUsageGraph.tsx b/frontend/src/container/BillingContainer/BillingUsageGraph/BillingUsageGraph.tsx
index 7060b0b819..877d3776ae 100644
--- a/frontend/src/container/BillingContainer/BillingUsageGraph/BillingUsageGraph.tsx
+++ b/frontend/src/container/BillingContainer/BillingUsageGraph/BillingUsageGraph.tsx
@@ -1,6 +1,7 @@
import { useMemo, useRef } from 'react';
import { Color } from '@signozhq/design-tokens';
-import { Card, Flex, Typography } from 'antd';
+import { Card, Flex } from 'antd';
+import { Typography } from '@signozhq/ui';
import Uplot from 'components/Uplot';
import { useIsDarkMode } from 'hooks/useDarkMode';
import { useResizeObserver } from 'hooks/useDimensions';
@@ -208,7 +209,7 @@ export function BillingUsageGraph(props: BillingUsageGraphProps): JSX.Element {
<Typography.Text className="total-spent-title">
TOTAL SPENT
</Typography.Text>
- <Typography.Text color={Color.BG_VANILLA_100} className="total-spent">
+ <Typography.Text className="total-spent">
${numberFormatter.format(billAmount)}
</Typography.Text>
</Flex>
diff --git a/frontend/src/container/CreateAlertRule/SelectAlertType/index.tsx b/frontend/src/container/CreateAlertRule/SelectAlertType/index.tsx
index 890241d3b1..3ca8ee75b0 100644
--- a/frontend/src/container/CreateAlertRule/SelectAlertType/index.tsx
+++ b/frontend/src/container/CreateAlertRule/SelectAlertType/index.tsx
@@ -1,6 +1,7 @@
import { useMemo } from 'react';
import { useTranslation } from 'react-i18next';
-import { Row, Tag, Typography } from 'antd';
+import { Row, Tag } from 'antd';
+import { Typography } from '@signozhq/ui';
import logEvent from 'api/common/logEvent';
import { ALERTS_DATA_SOURCE_MAP } from 'constants/alerts';
import { FeatureKeys } from 'constants/features';
diff --git a/frontend/src/container/CreateAlertV2/AlertCondition/AlertThreshold.tsx b/frontend/src/container/CreateAlertV2/AlertCondition/AlertThreshold.tsx
index 4a80095c51..05f99282ad 100644
--- a/frontend/src/container/CreateAlertV2/AlertCondition/AlertThreshold.tsx
+++ b/frontend/src/container/CreateAlertV2/AlertCondition/AlertThreshold.tsx
@@ -1,5 +1,6 @@
import { useEffect } from 'react';
-import { Button, Select, Tooltip, Typography } from 'antd';
+import { Button, Select, Tooltip } from 'antd';
+import { Typography } from '@signozhq/ui';
import classNames from 'classnames';
import { useQueryBuilder } from 'hooks/queryBuilder/useQueryBuilder';
import getRandomColor from 'lib/getRandomColor';
diff --git a/frontend/src/container/CreateAlertV2/AlertCondition/AnomalyThreshold.tsx b/frontend/src/container/CreateAlertV2/AlertCondition/AnomalyThreshold.tsx
index 9be2e8a282..b424e3756f 100644
--- a/frontend/src/container/CreateAlertV2/AlertCondition/AnomalyThreshold.tsx
+++ b/frontend/src/container/CreateAlertV2/AlertCondition/AnomalyThreshold.tsx
@@ -1,5 +1,6 @@
import { useMemo } from 'react';
-import { Select, Typography } from 'antd';
+import { Select } from 'antd';
+import { Typography } from '@signozhq/ui';
import { useQueryBuilder } from 'hooks/queryBuilder/useQueryBuilder';
import { useAppContext } from 'providers/App/App';
diff --git a/frontend/src/container/CreateAlertV2/AlertCondition/ThresholdItem.tsx b/frontend/src/container/CreateAlertV2/AlertCondition/ThresholdItem.tsx
index 93587cf235..c5acc7a1c8 100644
--- a/frontend/src/container/CreateAlertV2/AlertCondition/ThresholdItem.tsx
+++ b/frontend/src/container/CreateAlertV2/AlertCondition/ThresholdItem.tsx
@@ -1,5 +1,6 @@
import { useMemo, useState } from 'react';
-import { Button, Input, Select, Tooltip, Typography } from 'antd';
+import { Button, Input, Select, Tooltip } from 'antd';
+import { Typography } from '@signozhq/ui';
import { CircleX, Trash } from 'lucide-react';
import { useAppContext } from 'providers/App/App';
diff --git a/frontend/src/container/CreateAlertV2/AlertCondition/utils.tsx b/frontend/src/container/CreateAlertV2/AlertCondition/utils.tsx
index 3f4b0c9b6b..11e02f1367 100644
--- a/frontend/src/container/CreateAlertV2/AlertCondition/utils.tsx
+++ b/frontend/src/container/CreateAlertV2/AlertCondition/utils.tsx
@@ -1,4 +1,5 @@
-import { Button, Flex, SelectProps, Switch, Typography } from 'antd';
+import { Button, Flex, SelectProps, Switch } from 'antd';
+import { Typography } from '@signozhq/ui';
import type { BaseOptionType, DefaultOptionType } from 'antd/es/select';
import { getInvolvedQueriesInTraceOperator } from 'components/QueryBuilderV2/QueryV2/TraceOperator/utils/utils';
import { YAxisSource } from 'components/YAxisUnitSelector/types';
diff --git a/frontend/src/container/CreateAlertV2/EvaluationSettings/AdvancedOptionItem/AdvancedOptionItem.tsx b/frontend/src/container/CreateAlertV2/EvaluationSettings/AdvancedOptionItem/AdvancedOptionItem.tsx
index 92f3c9cd0b..8f6728686a 100644
--- a/frontend/src/container/CreateAlertV2/EvaluationSettings/AdvancedOptionItem/AdvancedOptionItem.tsx
+++ b/frontend/src/container/CreateAlertV2/EvaluationSettings/AdvancedOptionItem/AdvancedOptionItem.tsx
@@ -1,5 +1,6 @@
import { useEffect, useState } from 'react';
-import { Switch, Tooltip, Typography } from 'antd';
+import { Switch, Tooltip } from 'antd';
+import { Typography } from '@signozhq/ui';
import { Info } from 'lucide-react';
import { IAdvancedOptionItemProps } from '../types';
diff --git a/frontend/src/container/CreateAlertV2/EvaluationSettings/AdvancedOptions.tsx b/frontend/src/container/CreateAlertV2/EvaluationSettings/AdvancedOptions.tsx
index 1aa196330f..d3c0653ef3 100644
--- a/frontend/src/container/CreateAlertV2/EvaluationSettings/AdvancedOptions.tsx
+++ b/frontend/src/container/CreateAlertV2/EvaluationSettings/AdvancedOptions.tsx
@@ -1,4 +1,5 @@
-import { Collapse, Input, Typography } from 'antd';
+import { Collapse, Input } from 'antd';
+import { Typography } from '@signozhq/ui';
import { useCreateAlertState } from '../context';
import AdvancedOptionItem from './AdvancedOptionItem';
diff --git a/frontend/src/container/CreateAlertV2/EvaluationSettings/EvaluationCadence/EditCustomSchedule.tsx b/frontend/src/container/CreateAlertV2/EvaluationSettings/EvaluationCadence/EditCustomSchedule.tsx
index c11d1b6a07..2a4aa477d9 100644
--- a/frontend/src/container/CreateAlertV2/EvaluationSettings/EvaluationCadence/EditCustomSchedule.tsx
+++ b/frontend/src/container/CreateAlertV2/EvaluationSettings/EvaluationCadence/EditCustomSchedule.tsx
@@ -1,5 +1,6 @@
import { useMemo } from 'react';
-import { Button, Typography } from 'antd';
+import { Button } from 'antd';
+import { Typography } from '@signozhq/ui';
import { useCreateAlertState } from 'container/CreateAlertV2/context';
import { INITIAL_ADVANCED_OPTIONS_STATE } from 'container/CreateAlertV2/context/constants';
import { IEditCustomScheduleProps } from 'container/CreateAlertV2/EvaluationSettings/types';
diff --git a/frontend/src/container/CreateAlertV2/EvaluationSettings/EvaluationCadence/EvaluationCadence.tsx b/frontend/src/container/CreateAlertV2/EvaluationSettings/EvaluationCadence/EvaluationCadence.tsx
index 6aaed4e0dc..c715efc484 100644
--- a/frontend/src/container/CreateAlertV2/EvaluationSettings/EvaluationCadence/EvaluationCadence.tsx
+++ b/frontend/src/container/CreateAlertV2/EvaluationSettings/EvaluationCadence/EvaluationCadence.tsx
@@ -1,5 +1,6 @@
import { useEffect, useState } from 'react';
-import { Input, Select, Tooltip, Typography } from 'antd';
+import { Input, Select, Tooltip } from 'antd';
+import { Typography } from '@signozhq/ui';
import { Info } from 'lucide-react';
import { useCreateAlertState } from '../../context';
diff --git a/frontend/src/container/CreateAlertV2/EvaluationSettings/EvaluationCadence/EvaluationCadenceDetails.tsx b/frontend/src/container/CreateAlertV2/EvaluationSettings/EvaluationCadence/EvaluationCadenceDetails.tsx
index e85ddfa624..e5a96652ad 100644
--- a/frontend/src/container/CreateAlertV2/EvaluationSettings/EvaluationCadence/EvaluationCadenceDetails.tsx
+++ b/frontend/src/container/CreateAlertV2/EvaluationSettings/EvaluationCadence/EvaluationCadenceDetails.tsx
@@ -1,5 +1,6 @@
import { useEffect, useMemo, useState } from 'react';
-import { Button, DatePicker, Input, Select, Typography } from 'antd';
+import { Button, DatePicker, Input, Select } from 'antd';
+import { Typography } from '@signozhq/ui';
import classNames from 'classnames';
import { useCreateAlertState } from 'container/CreateAlertV2/context';
import { AdvancedOptionsState } from 'container/CreateAlertV2/context/types';
diff --git a/frontend/src/container/CreateAlertV2/EvaluationSettings/EvaluationCadence/EvaluationCadencePreview.tsx b/frontend/src/container/CreateAlertV2/EvaluationSettings/EvaluationCadence/EvaluationCadencePreview.tsx
index 5911cfafa3..5e09b4c530 100644
--- a/frontend/src/container/CreateAlertV2/EvaluationSettings/EvaluationCadence/EvaluationCadencePreview.tsx
+++ b/frontend/src/container/CreateAlertV2/EvaluationSettings/EvaluationCadence/EvaluationCadencePreview.tsx
@@ -1,5 +1,6 @@
import { useMemo } from 'react';
-import { Modal, Typography } from 'antd';
+import { Modal } from 'antd';
+import { Typography } from '@signozhq/ui';
import { Calendar, Info } from 'lucide-react';
import { useCreateAlertState } from '../../context';
diff --git a/frontend/src/container/CreateAlertV2/EvaluationSettings/EvaluationWindowPopover/EvaluationWindowDetails.tsx b/frontend/src/container/CreateAlertV2/EvaluationSettings/EvaluationWindowPopover/EvaluationWindowDetails.tsx
index 30f801477d..8c6f050c97 100644
--- a/frontend/src/container/CreateAlertV2/EvaluationSettings/EvaluationWindowPopover/EvaluationWindowDetails.tsx
+++ b/frontend/src/container/CreateAlertV2/EvaluationSettings/EvaluationWindowPopover/EvaluationWindowDetails.tsx
@@ -1,5 +1,6 @@
import { useMemo } from 'react';
-import { Input, Select, Typography } from 'antd';
+import { Input, Select } from 'antd';
+import { Typography } from '@signozhq/ui';
import { ADVANCED_OPTIONS_TIME_UNIT_OPTIONS } from '../../context/constants';
import {
diff --git a/frontend/src/container/CreateAlertV2/EvaluationSettings/EvaluationWindowPopover/EvaluationWindowPopover.tsx b/frontend/src/container/CreateAlertV2/EvaluationSettings/EvaluationWindowPopover/EvaluationWindowPopover.tsx
index 7f2a0d96d9..9ce4776ad1 100644
--- a/frontend/src/container/CreateAlertV2/EvaluationSettings/EvaluationWindowPopover/EvaluationWindowPopover.tsx
+++ b/frontend/src/container/CreateAlertV2/EvaluationSettings/EvaluationWindowPopover/EvaluationWindowPopover.tsx
@@ -1,4 +1,5 @@
-import { Button, Typography } from 'antd';
+import { Button } from 'antd';
+import { Typography } from '@signozhq/ui';
import classNames from 'classnames';
import { Check } from 'lucide-react';
diff --git a/frontend/src/container/CreateAlertV2/NotificationSettings/MultipleNotifications.tsx b/frontend/src/container/CreateAlertV2/NotificationSettings/MultipleNotifications.tsx
index 538cc96d7b..789d3fef23 100644
--- a/frontend/src/container/CreateAlertV2/NotificationSettings/MultipleNotifications.tsx
+++ b/frontend/src/container/CreateAlertV2/NotificationSettings/MultipleNotifications.tsx
@@ -1,5 +1,6 @@
import { useCallback, useMemo } from 'react';
-import { Select, Tooltip, Typography } from 'antd';
+import { Select, Tooltip } from 'antd';
+import { Typography } from '@signozhq/ui';
import { useQueryBuilder } from 'hooks/queryBuilder/useQueryBuilder';
import { Info } from 'lucide-react';
@@ -98,9 +99,9 @@ function MultipleNotifications(): JSX.Element {
data-testid="multiple-notifications-select"
/>
{isMultipleNotificationsEnabled && (
- <Typography.Paragraph className="multiple-notifications-select-description">
+ <Typography.Text className="multiple-notifications-select-description">
{groupByDescription}
- </Typography.Paragraph>
+ </Typography.Text>
)}
</div>
);
diff --git a/frontend/src/container/CreateAlertV2/NotificationSettings/NotificationMessage.tsx b/frontend/src/container/CreateAlertV2/NotificationSettings/NotificationMessage.tsx
index cdf501ef87..2f667ad64f 100644
--- a/frontend/src/container/CreateAlertV2/NotificationSettings/NotificationMessage.tsx
+++ b/frontend/src/container/CreateAlertV2/NotificationSettings/NotificationMessage.tsx
@@ -1,4 +1,5 @@
-import { Input, Tooltip, Typography } from 'antd';
+import { Input, Tooltip } from 'antd';
+import { Typography } from '@signozhq/ui';
import { Info } from 'lucide-react';
import { useCreateAlertState } from '../context';
diff --git a/frontend/src/container/CreateAlertV2/NotificationSettings/NotificationSettings.tsx b/frontend/src/container/CreateAlertV2/NotificationSettings/NotificationSettings.tsx
index 52945fea2e..6c5646c504 100644
--- a/frontend/src/container/CreateAlertV2/NotificationSettings/NotificationSettings.tsx
+++ b/frontend/src/container/CreateAlertV2/NotificationSettings/NotificationSettings.tsx
@@ -1,4 +1,5 @@
-import { Input, Select, Typography } from 'antd';
+import { Input, Select } from 'antd';
+import { Typography } from '@signozhq/ui';
import { useCreateAlertState } from '../context';
import {
diff --git a/frontend/src/container/CustomDomainSettings/CustomDomainSettings.tsx b/frontend/src/container/CustomDomainSettings/CustomDomainSettings.tsx
index 31a786297f..c9c39eb48e 100644
--- a/frontend/src/container/CustomDomainSettings/CustomDomainSettings.tsx
+++ b/frontend/src/container/CustomDomainSettings/CustomDomainSettings.tsx
@@ -177,11 +177,7 @@ export default function CustomDomainSettings(): JSX.Element {
if (isLoadingHosts) {
return (
<div className="custom-domain-card custom-domain-card--loading">
- <Skeleton
- active
- title={{ width: '40%' }}
- paragraph={{ rows: 1, width: '60%' }}
- />
+ <Skeleton active paragraph={{ rows: 1, width: '60%' }} />
</div>
);
}
diff --git a/frontend/src/container/DashboardContainer/DashboardDescription/index.tsx b/frontend/src/container/DashboardContainer/DashboardDescription/index.tsx
index 5d90d994ef..1a1938ba96 100644
--- a/frontend/src/container/DashboardContainer/DashboardDescription/index.tsx
+++ b/frontend/src/container/DashboardContainer/DashboardDescription/index.tsx
@@ -4,16 +4,8 @@ import { Layout } from 'react-grid-layout';
import { useTranslation } from 'react-i18next';
import { useCopyToClipboard } from 'react-use';
import { PlusOutlined } from '@ant-design/icons';
-import {
- Button,
- Card,
- Input,
- Modal,
- Popover,
- Tag,
- Tooltip,
- Typography,
-} from 'antd';
+import { Button, Card, Input, Modal, Popover, Tag, Tooltip } from 'antd';
+import { Typography } from '@signozhq/ui';
import logEvent from 'api/common/logEvent';
import ConfigureIcon from 'assets/Integrations/ConfigureIcon';
import { PANEL_GROUP_TYPES, PANEL_TYPES } from 'constants/queryBuilder';
diff --git a/frontend/src/container/DashboardContainer/DashboardSettings/DashboardVariableSettings/VariableItem/DynamicVariable/DynamicVariable.tsx b/frontend/src/container/DashboardContainer/DashboardSettings/DashboardVariableSettings/VariableItem/DynamicVariable/DynamicVariable.tsx
index b7d870edd6..5f9195411a 100644
--- a/frontend/src/container/DashboardContainer/DashboardSettings/DashboardVariableSettings/VariableItem/DynamicVariable/DynamicVariable.tsx
+++ b/frontend/src/container/DashboardContainer/DashboardSettings/DashboardVariableSettings/VariableItem/DynamicVariable/DynamicVariable.tsx
@@ -7,7 +7,8 @@ import {
useState,
} from 'react';
import { Color } from '@signozhq/design-tokens';
-import { Select, Typography } from 'antd';
+import { Select } from 'antd';
+import { Typography } from '@signozhq/ui';
import CustomSelect from 'components/NewSelect/CustomSelect';
import TextToolTip from 'components/TextToolTip';
import { DEBOUNCE_DELAY } from 'constants/queryBuilderFilterConfig';
@@ -213,7 +214,7 @@ function DynamicVariable({
</div>
{errorAttributeKeyMessage && (
<div>
- <Typography.Text type="warning">
+ <Typography.Text color="warning">
{errorAttributeKeyMessage}
</Typography.Text>
</div>
diff --git a/frontend/src/container/DashboardContainer/DashboardSettings/DashboardVariableSettings/VariableItem/VariableItem.tsx b/frontend/src/container/DashboardContainer/DashboardSettings/DashboardVariableSettings/VariableItem/VariableItem.tsx
index 262b04d552..f9e4a7e742 100644
--- a/frontend/src/container/DashboardContainer/DashboardSettings/DashboardVariableSettings/VariableItem/VariableItem.tsx
+++ b/frontend/src/container/DashboardContainer/DashboardSettings/DashboardVariableSettings/VariableItem/VariableItem.tsx
@@ -5,7 +5,8 @@ import { useQuery } from 'react-query';
import { useSelector } from 'react-redux';
import { orange } from '@ant-design/colors';
import { Color } from '@signozhq/design-tokens';
-import { Button, Collapse, Input, Select, Switch, Tag, Typography } from 'antd';
+import { Button, Collapse, Input, Select, Switch, Tag } from 'antd';
+import { Typography } from '@signozhq/ui';
import dashboardVariablesQuery from 'api/dashboard/variables/dashboardVariablesQuery';
import cx from 'classnames';
import Editor from 'components/Editor';
@@ -485,7 +486,7 @@ function VariableItem({
}}
/>
<div>
- <Typography.Text type="warning">{errorNameMessage}</Typography.Text>
+ <Typography.Text color="warning">{errorNameMessage}</Typography.Text>
</div>
</div>
</VariableItemRow>
diff --git a/frontend/src/container/DashboardContainer/DashboardSettings/DashboardVariableSettings/index.tsx b/frontend/src/container/DashboardContainer/DashboardSettings/DashboardVariableSettings/index.tsx
index 5830c5ae88..373f8a2f1f 100644
--- a/frontend/src/container/DashboardContainer/DashboardSettings/DashboardVariableSettings/index.tsx
+++ b/frontend/src/container/DashboardContainer/DashboardSettings/DashboardVariableSettings/index.tsx
@@ -11,7 +11,8 @@ import {
import { restrictToVerticalAxis } from '@dnd-kit/modifiers';
import { arrayMove, SortableContext, useSortable } from '@dnd-kit/sortable';
import { CSS } from '@dnd-kit/utilities';
-import { Button, Modal, Row, RowProps, Space, Table, Typography } from 'antd';
+import { Button, Modal, Row, RowProps, Space, Table } from 'antd';
+import { Typography } from '@signozhq/ui';
import { VariablesSettingsTabHandle } from 'container/DashboardContainer/DashboardDescription/types';
import { convertVariablesToDbFormat } from 'container/DashboardContainer/DashboardVariablesSelection/util';
import { useAddDynamicVariableToPanels } from 'hooks/dashboard/useAddDynamicVariableToPanels';
diff --git a/frontend/src/container/DashboardContainer/DashboardSettings/General/index.tsx b/frontend/src/container/DashboardContainer/DashboardSettings/General/index.tsx
index 8fec43ab55..8f28178905 100644
--- a/frontend/src/container/DashboardContainer/DashboardSettings/General/index.tsx
+++ b/frontend/src/container/DashboardContainer/DashboardSettings/General/index.tsx
@@ -1,6 +1,7 @@
import { useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
-import { Col, Input, Radio, Select, Space, Tooltip, Typography } from 'antd';
+import { Col, Input, Radio, Select, Space, Tooltip } from 'antd';
+import { Typography } from '@signozhq/ui';
import AddTags from 'container/DashboardContainer/DashboardSettings/General/AddTags';
import { useDashboardCursorSyncMode } from 'hooks/dashboard/useDashboardCursorSyncMode';
import { useSyncTooltipFilterMode } from 'hooks/dashboard/useSyncTooltipFilterMode';
diff --git a/frontend/src/container/DashboardContainer/DashboardSettings/PublicDashboard/index.tsx b/frontend/src/container/DashboardContainer/DashboardSettings/PublicDashboard/index.tsx
index 8665d0a870..c21514fd14 100644
--- a/frontend/src/container/DashboardContainer/DashboardSettings/PublicDashboard/index.tsx
+++ b/frontend/src/container/DashboardContainer/DashboardSettings/PublicDashboard/index.tsx
@@ -2,7 +2,8 @@ import { useCallback, useEffect, useMemo, useState } from 'react';
import { useMutation } from 'react-query';
import { useCopyToClipboard } from 'react-use';
import { Checkbox, toast } from '@signozhq/ui';
-import { Button, Select, Typography } from 'antd';
+import { Button, Select } from 'antd';
+import { Typography } from '@signozhq/ui';
import createPublicDashboardAPI from 'api/dashboard/public/createPublicDashboard';
import revokePublicDashboardAccessAPI from 'api/dashboard/public/revokePublicDashboardAccess';
import updatePublicDashboardAPI from 'api/dashboard/public/updatePublicDashboard';
diff --git a/frontend/src/container/DashboardContainer/DashboardVariablesSelection/SelectVariableInput.tsx b/frontend/src/container/DashboardContainer/DashboardVariablesSelection/SelectVariableInput.tsx
index 5c46419782..901bd6080a 100644
--- a/frontend/src/container/DashboardContainer/DashboardVariablesSelection/SelectVariableInput.tsx
+++ b/frontend/src/container/DashboardContainer/DashboardVariablesSelection/SelectVariableInput.tsx
@@ -1,7 +1,8 @@
import { memo, useMemo } from 'react';
import { orange } from '@ant-design/colors';
import { WarningOutlined } from '@ant-design/icons';
-import { Popover, Tooltip, Typography } from 'antd';
+import { Popover, Tooltip } from 'antd';
+import { Typography } from '@signozhq/ui';
import { CustomMultiSelect, CustomSelect } from 'components/NewSelect';
import { OptionData } from 'components/NewSelect/types';
import { popupContainer } from 'utils/selectPopupContainer';
diff --git a/frontend/src/container/DashboardContainer/DashboardVariablesSelection/VariableItem.tsx b/frontend/src/container/DashboardContainer/DashboardVariablesSelection/VariableItem.tsx
index 6f516361cf..d26b427ae2 100644
--- a/frontend/src/container/DashboardContainer/DashboardVariablesSelection/VariableItem.tsx
+++ b/frontend/src/container/DashboardContainer/DashboardVariablesSelection/VariableItem.tsx
@@ -1,6 +1,7 @@
import { memo } from 'react';
import { InfoCircleOutlined } from '@ant-design/icons';
-import { Tooltip, Typography } from 'antd';
+import { Tooltip } from 'antd';
+import { Typography } from '@signozhq/ui';
import { IDashboardVariable } from 'types/api/dashboard/getAll';
import CustomVariableInput from './CustomVariableInput';
@@ -31,7 +32,7 @@ function VariableItem({
return (
<div className="variable-item">
- <Typography.Text className="variable-name" ellipsis>
+ <Typography.Text className="variable-name" truncate={1}>
${name}
{description && (
<Tooltip title={description}>
diff --git a/frontend/src/container/DashboardContainer/DashboardVariablesSelection/styles.ts b/frontend/src/container/DashboardContainer/DashboardVariablesSelection/styles.ts
index 02530dbd0f..f5310a8fe8 100644
--- a/frontend/src/container/DashboardContainer/DashboardVariablesSelection/styles.ts
+++ b/frontend/src/container/DashboardContainer/DashboardVariablesSelection/styles.ts
@@ -1,5 +1,5 @@
import { grey } from '@ant-design/colors';
-import { Typography } from 'antd';
+import { Typography } from '@signozhq/ui';
import styled from 'styled-components';
export const VariableContainer = styled.div`
diff --git a/frontend/src/container/DashboardContainer/PanelTypeSelectionModal/index.tsx b/frontend/src/container/DashboardContainer/PanelTypeSelectionModal/index.tsx
index 0d31c0f9ac..8d8a93bd3e 100644
--- a/frontend/src/container/DashboardContainer/PanelTypeSelectionModal/index.tsx
+++ b/frontend/src/container/DashboardContainer/PanelTypeSelectionModal/index.tsx
@@ -1,5 +1,6 @@
import { memo } from 'react';
-import { Card, Modal, Typography } from 'antd';
+import { Card, Modal } from 'antd';
+import { Typography } from '@signozhq/ui';
import logEvent from 'api/common/logEvent';
import { QueryParams } from 'constants/query';
import { PANEL_TYPES, PANEL_TYPES_INITIAL_QUERY } from 'constants/queryBuilder';
diff --git a/frontend/src/container/EmptyLogsSearch/EmptyLogsSearch.tsx b/frontend/src/container/EmptyLogsSearch/EmptyLogsSearch.tsx
index 8e62d044db..aa72c2aeb1 100644
--- a/frontend/src/container/EmptyLogsSearch/EmptyLogsSearch.tsx
+++ b/frontend/src/container/EmptyLogsSearch/EmptyLogsSearch.tsx
@@ -1,5 +1,5 @@
import { useEffect, useRef } from 'react';
-import { Typography } from 'antd';
+import { Typography } from '@signozhq/ui';
import logEvent from 'api/common/logEvent';
import cx from 'classnames';
import LearnMore from 'components/LearnMore/LearnMore';
diff --git a/frontend/src/container/ErrorDetails/index.tsx b/frontend/src/container/ErrorDetails/index.tsx
index ac5f8cb099..fdc816d75a 100644
--- a/frontend/src/container/ErrorDetails/index.tsx
+++ b/frontend/src/container/ErrorDetails/index.tsx
@@ -2,7 +2,8 @@ import { useEffect, useMemo, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
import { useQuery } from 'react-query';
import { useLocation } from 'react-router-dom';
-import { Button, Divider, Space, Typography } from 'antd';
+import { Button, Divider, Space } from 'antd';
+import { Typography } from '@signozhq/ui';
import logEvent from 'api/common/logEvent';
import getNextPrevId from 'api/errors/getNextPrevId';
import Editor from 'components/Editor';
diff --git a/frontend/src/container/ExplorerOptions/ExplorerOptions.tsx b/frontend/src/container/ExplorerOptions/ExplorerOptions.tsx
index 6a0809d65b..e7b504238b 100644
--- a/frontend/src/container/ExplorerOptions/ExplorerOptions.tsx
+++ b/frontend/src/container/ExplorerOptions/ExplorerOptions.tsx
@@ -20,8 +20,8 @@ import {
RefSelectProps,
Select,
Tooltip,
- Typography,
} from 'antd';
+import { Typography } from '@signozhq/ui';
import getLocalStorageKey from 'api/browser/localstorage/get';
import setLocalStorageKey from 'api/browser/localstorage/set';
import logEvent from 'api/common/logEvent';
diff --git a/frontend/src/container/ExportPanel/ExportPanelContainer.tsx b/frontend/src/container/ExportPanel/ExportPanelContainer.tsx
index 0e4a733574..51fe7878c3 100644
--- a/frontend/src/container/ExportPanel/ExportPanelContainer.tsx
+++ b/frontend/src/container/ExportPanel/ExportPanelContainer.tsx
@@ -1,7 +1,8 @@
import { useCallback, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
import { useMutation } from 'react-query';
-import { Button, Typography } from 'antd';
+import { Button } from 'antd';
+import { Typography } from '@signozhq/ui';
import createDashboard from 'api/v1/dashboards/create';
import { ENTITY_VERSION_V5 } from 'constants/app';
import { useGetAllDashboard } from 'hooks/dashboard/useGetAllDashboard';
diff --git a/frontend/src/container/ExportPanel/styles.ts b/frontend/src/container/ExportPanel/styles.ts
index 7f8fc0d5a8..e8a09a00f6 100644
--- a/frontend/src/container/ExportPanel/styles.ts
+++ b/frontend/src/container/ExportPanel/styles.ts
@@ -1,5 +1,6 @@
import { FunctionComponent } from 'react';
-import { Button, Select, SelectProps, Space, Typography } from 'antd';
+import { Button, Select, SelectProps, Space } from 'antd';
+import { Typography } from '@signozhq/ui';
import styled from 'styled-components';
export const DashboardSelect: FunctionComponent<SelectProps> = styled(
diff --git a/frontend/src/container/FormAlertChannels/index.tsx b/frontend/src/container/FormAlertChannels/index.tsx
index b6579cbd07..80b6224373 100644
--- a/frontend/src/container/FormAlertChannels/index.tsx
+++ b/frontend/src/container/FormAlertChannels/index.tsx
@@ -1,6 +1,7 @@
import { Dispatch, ReactElement, SetStateAction } from 'react';
import { useTranslation } from 'react-i18next';
-import { Form, FormInstance, Input, Select, Switch, Typography } from 'antd';
+import { Form, FormInstance, Input, Select, Switch } from 'antd';
+import { Typography } from '@signozhq/ui';
import type { Store } from 'antd/lib/form/interface';
import ROUTES from 'constants/routes';
import {
diff --git a/frontend/src/container/FormAlertRules/QuerySection.tsx b/frontend/src/container/FormAlertRules/QuerySection.tsx
index 65a27db8cc..9b1f124756 100644
--- a/frontend/src/container/FormAlertRules/QuerySection.tsx
+++ b/frontend/src/container/FormAlertRules/QuerySection.tsx
@@ -1,7 +1,8 @@
import { useEffect, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
import { Color } from '@signozhq/design-tokens';
-import { Button, Tabs, Tooltip, Typography } from 'antd';
+import { Button, Tabs, Tooltip } from 'antd';
+import { Typography } from '@signozhq/ui';
import logEvent from 'api/common/logEvent';
import PromQLIcon from 'assets/Dashboard/PromQl';
import { QueryBuilderV2 } from 'components/QueryBuilderV2/QueryBuilderV2';
diff --git a/frontend/src/container/FormAlertRules/RuleOptions.tsx b/frontend/src/container/FormAlertRules/RuleOptions.tsx
index 56796b5020..56a4668c79 100644
--- a/frontend/src/container/FormAlertRules/RuleOptions.tsx
+++ b/frontend/src/container/FormAlertRules/RuleOptions.tsx
@@ -8,8 +8,8 @@ import {
Select,
SelectProps,
Space,
- Typography,
} from 'antd';
+import { Typography } from '@signozhq/ui';
import type { DefaultOptionType } from 'antd/es/select';
import {
getCategoryByOptionId,
diff --git a/frontend/src/container/FormAlertRules/index.tsx b/frontend/src/container/FormAlertRules/index.tsx
index 82d3d714ef..9ed1a2194a 100644
--- a/frontend/src/container/FormAlertRules/index.tsx
+++ b/frontend/src/container/FormAlertRules/index.tsx
@@ -5,7 +5,8 @@ import { useQueryClient } from 'react-query';
import { useSelector } from 'react-redux';
import { useLocation } from 'react-router-dom';
import { ExclamationCircleOutlined, SaveOutlined } from '@ant-design/icons';
-import { Button, FormInstance, Modal, SelectProps, Typography } from 'antd';
+import { Button, FormInstance, Modal, SelectProps } from 'antd';
+import { Typography } from '@signozhq/ui';
import logEvent from 'api/common/logEvent';
import { convertToApiError } from 'api/ErrorResponseHandlerForGeneratedAPIs';
import {
diff --git a/frontend/src/container/FormAlertRules/styles.ts b/frontend/src/container/FormAlertRules/styles.ts
index d282a484a2..3459ab7158 100644
--- a/frontend/src/container/FormAlertRules/styles.ts
+++ b/frontend/src/container/FormAlertRules/styles.ts
@@ -1,4 +1,5 @@
-import { Button, Card, Col, Form, Input, Select, Typography } from 'antd';
+import { Button, Card, Col, Form, Input, Select } from 'antd';
+import { Typography } from '@signozhq/ui';
import styled from 'styled-components';
const { TextArea } = Input;
diff --git a/frontend/src/container/GantChart/Span/index.tsx b/frontend/src/container/GantChart/Span/index.tsx
index aaf7aca593..8a7c05d29e 100644
--- a/frontend/src/container/GantChart/Span/index.tsx
+++ b/frontend/src/container/GantChart/Span/index.tsx
@@ -1,5 +1,6 @@
import { useEffect } from 'react';
-import { Popover, Typography } from 'antd';
+import { Popover } from 'antd';
+import { Typography } from '@signozhq/ui';
import { DATE_TIME_FORMATS } from 'constants/dateTimeFormats';
import { convertTimeToRelevantUnit } from 'container/TraceDetail/utils';
import dayjs from 'dayjs';
diff --git a/frontend/src/container/GantChart/Span/styles.ts b/frontend/src/container/GantChart/Span/styles.ts
index e3d4be03a1..e28cf3b54d 100644
--- a/frontend/src/container/GantChart/Span/styles.ts
+++ b/frontend/src/container/GantChart/Span/styles.ts
@@ -1,4 +1,4 @@
-import { Typography } from 'antd';
+import { Typography } from '@signozhq/ui';
import styled from 'styled-components';
interface Props {
@@ -40,7 +40,7 @@ interface SpanTextProps extends Pick<Props, 'leftOffset'> {
isDarkMode: boolean;
}
-export const SpanText = styled(Typography.Paragraph)<SpanTextProps>`
+export const SpanText = styled(Typography.Text)<SpanTextProps>`
&&& {
left: ${({ leftOffset }): string => `${leftOffset}%`};
top: 65%;
diff --git a/frontend/src/container/GantChart/SpanName/index.tsx b/frontend/src/container/GantChart/SpanName/index.tsx
index 90c6ffa80d..e47609422d 100644
--- a/frontend/src/container/GantChart/SpanName/index.tsx
+++ b/frontend/src/container/GantChart/SpanName/index.tsx
@@ -7,8 +7,8 @@ function SpanNameComponent({
return (
<Container title={`${name} ${serviceName}`}>
<SpanWrapper>
- <Span ellipsis>{name}</Span>
- <Service ellipsis>{serviceName}</Service>
+ <Span truncate={1}>{name}</Span>
+ <Service truncate={1}>{serviceName}</Service>
</SpanWrapper>
</Container>
);
diff --git a/frontend/src/container/GantChart/SpanName/styles.ts b/frontend/src/container/GantChart/SpanName/styles.ts
index abd41dc54e..45e6a8f567 100644
--- a/frontend/src/container/GantChart/SpanName/styles.ts
+++ b/frontend/src/container/GantChart/SpanName/styles.ts
@@ -1,7 +1,7 @@
-import { Typography } from 'antd';
+import { Typography } from '@signozhq/ui';
import styled from 'styled-components';
-export const Span = styled(Typography.Paragraph)`
+export const Span = styled(Typography.Text)`
&&& {
font-size: 0.75rem;
margin: 0;
@@ -9,7 +9,7 @@ export const Span = styled(Typography.Paragraph)`
}
`;
-export const Service = styled(Typography.Paragraph)`
+export const Service = styled(Typography.Text)`
&&& {
color: #acacac;
font-size: 0.75rem;
diff --git a/frontend/src/container/GantChart/Trace/index.tsx b/frontend/src/container/GantChart/Trace/index.tsx
index 322ad9a673..e75d5bc78b 100644
--- a/frontend/src/container/GantChart/Trace/index.tsx
+++ b/frontend/src/container/GantChart/Trace/index.tsx
@@ -8,7 +8,8 @@ import {
useState,
} from 'react';
import { CaretDownFilled, CaretRightFilled } from '@ant-design/icons';
-import { Col, Typography } from 'antd';
+import { Col } from 'antd';
+import { Typography } from '@signozhq/ui';
import { StyledCol, StyledRow } from 'components/Styled';
import {
IIntervalUnit,
diff --git a/frontend/src/container/GeneralSettings/index.tsx b/frontend/src/container/GeneralSettings/index.tsx
index cae890baf2..d99116a714 100644
--- a/frontend/src/container/GeneralSettings/index.tsx
+++ b/frontend/src/container/GeneralSettings/index.tsx
@@ -1,6 +1,6 @@
import { useTranslation } from 'react-i18next';
import { useQueries } from 'react-query';
-import { Typography } from 'antd';
+import { Typography } from '@signozhq/ui';
import getDisks from 'api/disks/getDisks';
import getRetentionPeriodApi from 'api/settings/getRetention';
import getRetentionPeriodApiV2 from 'api/settings/getRetentionV2';
diff --git a/frontend/src/container/GeneralSettings/styles.ts b/frontend/src/container/GeneralSettings/styles.ts
index 62c79623ff..b201f16d89 100644
--- a/frontend/src/container/GeneralSettings/styles.ts
+++ b/frontend/src/container/GeneralSettings/styles.ts
@@ -2,8 +2,8 @@ import {
Col,
Dropdown as DropDownComponent,
Input as InputComponent,
- Typography as TypographyComponent,
} from 'antd';
+import { Typography as TypographyComponent } from '@signozhq/ui';
import styled from 'styled-components';
export const RetentionContainer = styled(Col)`
diff --git a/frontend/src/container/GeneralSettingsCloud/GeneralSettingsCloud.tsx b/frontend/src/container/GeneralSettingsCloud/GeneralSettingsCloud.tsx
index 53788ebfe8..3ee0a2b650 100644
--- a/frontend/src/container/GeneralSettingsCloud/GeneralSettingsCloud.tsx
+++ b/frontend/src/container/GeneralSettingsCloud/GeneralSettingsCloud.tsx
@@ -1,4 +1,5 @@
-import { Card, Typography } from 'antd';
+import { Card } from 'antd';
+import { Typography } from '@signozhq/ui';
import { Info } from 'lucide-react';
import './GeneralSettingsCloud.styles.scss';
diff --git a/frontend/src/container/GridCardLayout/DashboardEmptyState/DashboardEmptyState.tsx b/frontend/src/container/GridCardLayout/DashboardEmptyState/DashboardEmptyState.tsx
index 36451cfc60..e73cdefdfc 100644
--- a/frontend/src/container/GridCardLayout/DashboardEmptyState/DashboardEmptyState.tsx
+++ b/frontend/src/container/GridCardLayout/DashboardEmptyState/DashboardEmptyState.tsx
@@ -1,6 +1,7 @@
import { useCallback, useRef, useState } from 'react';
import { PlusOutlined } from '@ant-design/icons';
-import { Button, Typography } from 'antd';
+import { Button } from 'antd';
+import { Typography } from '@signozhq/ui';
import logEvent from 'api/common/logEvent';
import ConfigureIcon from 'assets/Integrations/ConfigureIcon';
import SettingsDrawer from 'container/DashboardContainer/DashboardDescription/SettingsDrawer';
diff --git a/frontend/src/container/GridCardLayout/EmptyWidget/index.tsx b/frontend/src/container/GridCardLayout/EmptyWidget/index.tsx
index 3137f662ac..8dee3dfe0c 100644
--- a/frontend/src/container/GridCardLayout/EmptyWidget/index.tsx
+++ b/frontend/src/container/GridCardLayout/EmptyWidget/index.tsx
@@ -1,13 +1,13 @@
-import { Typography } from 'antd';
+import { Typography } from '@signozhq/ui';
import { Container } from './styles';
function EmptyWidget(): JSX.Element {
return (
<Container>
- <Typography.Paragraph>
+ <Typography.Text>
Click one of the widget types above (Time Series / Value) to add here
- </Typography.Paragraph>
+ </Typography.Text>
</Container>
);
}
diff --git a/frontend/src/container/GridCardLayout/GridCard/FullView/PanelTypeSelector.tsx b/frontend/src/container/GridCardLayout/GridCard/FullView/PanelTypeSelector.tsx
index efa045ba05..a7d8d79bb9 100644
--- a/frontend/src/container/GridCardLayout/GridCard/FullView/PanelTypeSelector.tsx
+++ b/frontend/src/container/GridCardLayout/GridCard/FullView/PanelTypeSelector.tsx
@@ -1,5 +1,6 @@
import { useCallback } from 'react';
-import { Select, Typography } from 'antd';
+import { Select } from 'antd';
+import { Typography } from '@signozhq/ui';
import { QueryParams } from 'constants/query';
import { PANEL_TYPES } from 'constants/queryBuilder';
import { PanelTypesWithData } from 'container/DashboardContainer/PanelTypeSelectionModal/menuItems';
diff --git a/frontend/src/container/GridCardLayout/GridCard/WidgetGraphComponent.tsx b/frontend/src/container/GridCardLayout/GridCard/WidgetGraphComponent.tsx
index 6481716c0e..27dfc3958b 100644
--- a/frontend/src/container/GridCardLayout/GridCard/WidgetGraphComponent.tsx
+++ b/frontend/src/container/GridCardLayout/GridCard/WidgetGraphComponent.tsx
@@ -8,7 +8,8 @@ import {
useState,
} from 'react';
import { useLocation } from 'react-router-dom';
-import { Skeleton, Tooltip, Typography } from 'antd';
+import { Skeleton, Tooltip } from 'antd';
+import { Typography } from '@signozhq/ui';
import cx from 'classnames';
import { useNavigateToExplorer } from 'components/CeleryTask/useNavigateToExplorer';
import { ToggleGraphProps } from 'components/Graph/types';
@@ -397,7 +398,7 @@ function WidgetGraphComponent({
{queryResponse.error && customErrorMessage && (
<div className="error-message-container">
- <Typography.Text type="warning">{customErrorMessage}</Typography.Text>
+ <Typography.Text color="warning">{customErrorMessage}</Typography.Text>
</div>
)}
diff --git a/frontend/src/container/GridCardLayout/GridCardLayout.tsx b/frontend/src/container/GridCardLayout/GridCardLayout.tsx
index 450e595fbd..0f1fb406de 100644
--- a/frontend/src/container/GridCardLayout/GridCardLayout.tsx
+++ b/frontend/src/container/GridCardLayout/GridCardLayout.tsx
@@ -6,7 +6,8 @@ import { useIsFetching } from 'react-query';
import { useDispatch } from 'react-redux';
import { useLocation } from 'react-router-dom';
import { Color } from '@signozhq/design-tokens';
-import { Button, Form, Input, Modal, Typography } from 'antd';
+import { Button, Form, Input, Modal } from 'antd';
+import { Typography } from '@signozhq/ui';
import logEvent from 'api/common/logEvent';
import cx from 'classnames';
import { ENTITY_VERSION_V5 } from 'constants/app';
diff --git a/frontend/src/container/GridCardLayout/WidgetHeader/index.tsx b/frontend/src/container/GridCardLayout/WidgetHeader/index.tsx
index 9d3546c37e..5b6e99a742 100644
--- a/frontend/src/container/GridCardLayout/WidgetHeader/index.tsx
+++ b/frontend/src/container/GridCardLayout/WidgetHeader/index.tsx
@@ -12,7 +12,8 @@ import {
SearchOutlined,
} from '@ant-design/icons';
import { Color } from '@signozhq/design-tokens';
-import { Dropdown, Input, MenuProps, Tooltip, Typography } from 'antd';
+import { Dropdown, Input, MenuProps, Tooltip } from 'antd';
+import { Typography } from '@signozhq/ui';
import ErrorContent from 'components/ErrorModal/components/ErrorContent';
import ErrorPopover from 'components/ErrorPopover/ErrorPopover';
import Spinner from 'components/Spinner';
@@ -269,7 +270,7 @@ function WidgetHeader({
<div className="widget-header-title-container">
<Tooltip title={fullText} placement="top">
<Typography.Text
- ellipsis
+ truncate={1}
data-testid={title}
className="widget-header-title"
>
diff --git a/frontend/src/container/GridCardLayout/WidgetHeader/styles.ts b/frontend/src/container/GridCardLayout/WidgetHeader/styles.ts
index 3470cd657b..a25c51f798 100644
--- a/frontend/src/container/GridCardLayout/WidgetHeader/styles.ts
+++ b/frontend/src/container/GridCardLayout/WidgetHeader/styles.ts
@@ -1,5 +1,5 @@
import { grey } from '@ant-design/colors';
-import { Typography as TypographyComponent } from 'antd';
+import { Typography as TypographyComponent } from '@signozhq/ui';
import styled from 'styled-components';
export const HeaderContainer = styled.div<{ hover: boolean }>`
diff --git a/frontend/src/container/GridValueComponent/index.tsx b/frontend/src/container/GridValueComponent/index.tsx
index a39ce28884..8712bd29b7 100644
--- a/frontend/src/container/GridValueComponent/index.tsx
+++ b/frontend/src/container/GridValueComponent/index.tsx
@@ -1,6 +1,6 @@
import { memo, useMemo } from 'react';
import { useLocation } from 'react-router-dom';
-import { Typography } from 'antd';
+import { Typography } from '@signozhq/ui';
import { getYAxisFormattedValue } from 'components/Graph/yAxisConfig';
import ValueGraph from 'components/ValueGraph';
import { generateGridTitle } from 'container/GridPanelSwitch/utils';
diff --git a/frontend/src/container/InfraMonitoringHosts/Hosts.tsx b/frontend/src/container/InfraMonitoringHosts/Hosts.tsx
index 9dae95e8a5..2d2a2f2754 100644
--- a/frontend/src/container/InfraMonitoringHosts/Hosts.tsx
+++ b/frontend/src/container/InfraMonitoringHosts/Hosts.tsx
@@ -1,6 +1,7 @@
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
import { VerticalAlignTopOutlined } from '@ant-design/icons';
-import { Button, Tooltip, Typography } from 'antd';
+import { Button, Tooltip } from 'antd';
+import { Typography } from '@signozhq/ui';
import logEvent from 'api/common/logEvent';
import QuickFilters from 'components/QuickFilters/QuickFilters';
import { QuickFiltersSource } from 'components/QuickFilters/types';
diff --git a/frontend/src/container/InfraMonitoringHosts/constants.tsx b/frontend/src/container/InfraMonitoringHosts/constants.tsx
index 6dd72645a0..941733f120 100644
--- a/frontend/src/container/InfraMonitoringHosts/constants.tsx
+++ b/frontend/src/container/InfraMonitoringHosts/constants.tsx
@@ -1,6 +1,7 @@
import React from 'react';
import { Color } from '@signozhq/design-tokens';
-import { Progress, Tag, Typography } from 'antd';
+import { Progress, Tag } from 'antd';
+import { Typography } from '@signozhq/ui';
import {
getHostLists,
HostData,
diff --git a/frontend/src/container/InfraMonitoringHosts/utils.tsx b/frontend/src/container/InfraMonitoringHosts/utils.tsx
index ecb05b007d..1da693a277 100644
--- a/frontend/src/container/InfraMonitoringHosts/utils.tsx
+++ b/frontend/src/container/InfraMonitoringHosts/utils.tsx
@@ -1,6 +1,7 @@
import React from 'react';
import { Color } from '@signozhq/design-tokens';
-import { Tooltip, Typography } from 'antd';
+import { Tooltip } from 'antd';
+import { Typography } from '@signozhq/ui';
import { HostListPayload } from 'api/infraMonitoring/getHostLists';
import {
FiltersType,
@@ -24,7 +25,7 @@ export function HostnameCell({
}
return (
<div className="hostname-cell-missing">
- <Typography.Text type="secondary" className="hostname-cell-placeholder">
+ <Typography.Text color="muted" className="hostname-cell-placeholder">
-
</Typography.Text>
<Tooltip
diff --git a/frontend/src/container/InfraMonitoringK8s/Base/K8sBaseDetails.tsx b/frontend/src/container/InfraMonitoringK8s/Base/K8sBaseDetails.tsx
index 1262a2ea89..2b5dbad4fc 100644
--- a/frontend/src/container/InfraMonitoringK8s/Base/K8sBaseDetails.tsx
+++ b/frontend/src/container/InfraMonitoringK8s/Base/K8sBaseDetails.tsx
@@ -8,7 +8,8 @@ import React, {
import { useQuery } from 'react-query';
// eslint-disable-next-line no-restricted-imports
import { Color, Spacing } from '@signozhq/design-tokens';
-import { Button, Divider, Drawer, Radio, Tooltip, Typography } from 'antd';
+import { Button, Divider, Drawer, Radio, Tooltip } from 'antd';
+import { Typography } from '@signozhq/ui';
import type { RadioChangeEvent } from 'antd/lib';
import logEvent from 'api/common/logEvent';
import { InfraMonitoringEvents } from 'constants/events';
@@ -621,7 +622,7 @@ function K8sBaseDetails<T>({
>
{isEntityLoading && <LoadingContainer />}
{isEntityError && (
- <Typography.Text type="danger">
+ <Typography.Text color="danger">
{entityResponse?.error || 'Failed to load entity details'}
</Typography.Text>
)}
@@ -633,7 +634,7 @@ function K8sBaseDetails<T>({
{metadataConfig.map((config) => (
<Typography.Text
key={config.label}
- type="secondary"
+ color="muted"
className="entity-details-metadata-label"
>
{config.label}
diff --git a/frontend/src/container/InfraMonitoringK8s/Base/K8sBaseList.tsx b/frontend/src/container/InfraMonitoringK8s/Base/K8sBaseList.tsx
index aae02c9d4e..18c7179c7f 100644
--- a/frontend/src/container/InfraMonitoringK8s/Base/K8sBaseList.tsx
+++ b/frontend/src/container/InfraMonitoringK8s/Base/K8sBaseList.tsx
@@ -1,6 +1,6 @@
import { useCallback, useEffect, useMemo } from 'react';
import { useQuery } from 'react-query';
-import { Typography } from 'antd';
+import { Typography } from '@signozhq/ui';
import logEvent from 'api/common/logEvent';
import TanStackTable, {
TableColumnDef,
diff --git a/frontend/src/container/InfraMonitoringK8s/Base/K8sExpandedRow.tsx b/frontend/src/container/InfraMonitoringK8s/Base/K8sExpandedRow.tsx
index bdefb99f8a..31895e862d 100644
--- a/frontend/src/container/InfraMonitoringK8s/Base/K8sExpandedRow.tsx
+++ b/frontend/src/container/InfraMonitoringK8s/Base/K8sExpandedRow.tsx
@@ -1,7 +1,7 @@
import { useCallback, useEffect, useMemo } from 'react';
import { useQuery } from 'react-query';
import { Button } from '@signozhq/ui';
-import { Typography } from 'antd';
+import { Typography } from '@signozhq/ui';
import TanStackTable, {
SortState,
TableColumnDef,
diff --git a/frontend/src/container/InfraMonitoringK8s/EntityDetailsUtils/EntityContainers.tsx b/frontend/src/container/InfraMonitoringK8s/EntityDetailsUtils/EntityContainers.tsx
index e577c6aaf4..f7c72521f7 100644
--- a/frontend/src/container/InfraMonitoringK8s/EntityDetailsUtils/EntityContainers.tsx
+++ b/frontend/src/container/InfraMonitoringK8s/EntityDetailsUtils/EntityContainers.tsx
@@ -1,5 +1,6 @@
import { useTranslation } from 'react-i18next';
-import { Space, Typography } from 'antd';
+import { Space } from 'antd';
+import { Typography } from '@signozhq/ui';
import WaitlistFragment from 'components/HostMetricsDetail/WaitlistFragment/WaitlistFragment';
import broomUrl from '@/assets/Icons/broom.svg';
diff --git a/frontend/src/container/InfraMonitoringK8s/EntityDetailsUtils/EntityMetrics/EntityMetrics.tsx b/frontend/src/container/InfraMonitoringK8s/EntityDetailsUtils/EntityMetrics/EntityMetrics.tsx
index 812212c17e..da4410abeb 100644
--- a/frontend/src/container/InfraMonitoringK8s/EntityDetailsUtils/EntityMetrics/EntityMetrics.tsx
+++ b/frontend/src/container/InfraMonitoringK8s/EntityDetailsUtils/EntityMetrics/EntityMetrics.tsx
@@ -1,6 +1,7 @@
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
import { QueryFunctionContext, useQueries, UseQueryResult } from 'react-query';
-import { Card, Col, Row, Skeleton, Typography } from 'antd';
+import { Card, Col, Row, Skeleton } from 'antd';
+import { Typography } from '@signozhq/ui';
import cx from 'classnames';
import Uplot from 'components/Uplot';
import { ENTITY_VERSION_V4 } from 'constants/app';
diff --git a/frontend/src/container/InfraMonitoringK8s/EntityDetailsUtils/EntityProcesses.tsx b/frontend/src/container/InfraMonitoringK8s/EntityDetailsUtils/EntityProcesses.tsx
index 17ddfa5f7e..c15ac966c6 100644
--- a/frontend/src/container/InfraMonitoringK8s/EntityDetailsUtils/EntityProcesses.tsx
+++ b/frontend/src/container/InfraMonitoringK8s/EntityDetailsUtils/EntityProcesses.tsx
@@ -1,5 +1,6 @@
import { useTranslation } from 'react-i18next';
-import { Space, Typography } from 'antd';
+import { Space } from 'antd';
+import { Typography } from '@signozhq/ui';
import WaitlistFragment from 'components/HostMetricsDetail/WaitlistFragment/WaitlistFragment';
import broomUrl from '@/assets/Icons/broom.svg';
diff --git a/frontend/src/container/InfraMonitoringK8s/EntityDetailsUtils/EntityTraces/traceListColumns.tsx b/frontend/src/container/InfraMonitoringK8s/EntityDetailsUtils/EntityTraces/traceListColumns.tsx
index 3a54eefde4..f920703ea2 100644
--- a/frontend/src/container/InfraMonitoringK8s/EntityDetailsUtils/EntityTraces/traceListColumns.tsx
+++ b/frontend/src/container/InfraMonitoringK8s/EntityDetailsUtils/EntityTraces/traceListColumns.tsx
@@ -1,4 +1,5 @@
-import { TableColumnsType as ColumnsType, Tag, Typography } from 'antd';
+import { TableColumnsType as ColumnsType, Tag } from 'antd';
+import { Typography } from '@signozhq/ui';
import { DATE_TIME_FORMATS } from 'constants/dateTimeFormats';
import { getMs } from 'container/Trace/Filters/Panel/PanelBody/Duration/util';
import {
diff --git a/frontend/src/container/InfraMonitoringK8s/EntityDetailsUtils/utils.tsx b/frontend/src/container/InfraMonitoringK8s/EntityDetailsUtils/utils.tsx
index b73beb491f..3f00b841e1 100644
--- a/frontend/src/container/InfraMonitoringK8s/EntityDetailsUtils/utils.tsx
+++ b/frontend/src/container/InfraMonitoringK8s/EntityDetailsUtils/utils.tsx
@@ -1,5 +1,5 @@
import { Color } from '@signozhq/design-tokens';
-import { Typography } from 'antd';
+import { Typography } from '@signozhq/ui';
import { PANEL_TYPES } from 'constants/queryBuilder';
import { GetQueryResultsProps } from 'lib/dashboard/getQueryResults';
import { Ghost } from 'lucide-react';
@@ -103,7 +103,7 @@ export function EntityDetailsEmptyContainer({
return (
<div className="no-logs-found">
- <Typography.Text type="secondary">
+ <Typography.Text color="muted">
<Ghost size={24} color={Color.BG_AMBER_500} />
{`No ${view} found for this ${label}
in the selected time range.`}
diff --git a/frontend/src/container/InfraMonitoringK8s/InfraMonitoringK8s.tsx b/frontend/src/container/InfraMonitoringK8s/InfraMonitoringK8s.tsx
index 4011f972dc..72cb3dcb5e 100644
--- a/frontend/src/container/InfraMonitoringK8s/InfraMonitoringK8s.tsx
+++ b/frontend/src/container/InfraMonitoringK8s/InfraMonitoringK8s.tsx
@@ -2,7 +2,8 @@ import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
import { VerticalAlignTopOutlined } from '@ant-design/icons';
import * as Sentry from '@sentry/react';
import { Button, CollapseProps } from 'antd';
-import { Collapse, Tooltip, Typography } from 'antd';
+import { Collapse, Tooltip } from 'antd';
+import { Typography } from '@signozhq/ui';
import logEvent from 'api/common/logEvent';
import QuickFilters from 'components/QuickFilters/QuickFilters';
import { QuickFiltersSource } from 'components/QuickFilters/types';
diff --git a/frontend/src/container/IngestionSettings/IngestionSettings.tsx b/frontend/src/container/IngestionSettings/IngestionSettings.tsx
index ae98a29517..599e1f9707 100644
--- a/frontend/src/container/IngestionSettings/IngestionSettings.tsx
+++ b/frontend/src/container/IngestionSettings/IngestionSettings.tsx
@@ -1,10 +1,6 @@
import { useQuery } from 'react-query';
-import {
- Skeleton,
- Table,
- TableColumnsType as ColumnsType,
- Typography,
-} from 'antd';
+import { Skeleton, Table, TableColumnsType as ColumnsType } from 'antd';
+import { Typography } from '@signozhq/ui';
import getIngestionData from 'api/settings/getIngestionData';
import { useAppContext } from 'providers/App/App';
import { IngestionDataType } from 'types/api/settings/ingestion';
diff --git a/frontend/src/container/IngestionSettings/MultiIngestionSettings.tsx b/frontend/src/container/IngestionSettings/MultiIngestionSettings.tsx
index 9e54706c6f..0400b1a444 100644
--- a/frontend/src/container/IngestionSettings/MultiIngestionSettings.tsx
+++ b/frontend/src/container/IngestionSettings/MultiIngestionSettings.tsx
@@ -20,8 +20,8 @@ import {
TableProps as AntDTableProps,
Tag,
Tooltip,
- Typography,
} from 'antd';
+import { Typography } from '@signozhq/ui';
import type { NotificationInstance } from 'antd/es/notification/interface';
import type { CollapseProps } from 'antd/lib';
import {
diff --git a/frontend/src/container/IngestionSettings/__tests__/MultiIngestionSettings.test.tsx b/frontend/src/container/IngestionSettings/__tests__/MultiIngestionSettings.test.tsx
index 3d0e55f336..121958eda7 100644
--- a/frontend/src/container/IngestionSettings/__tests__/MultiIngestionSettings.test.tsx
+++ b/frontend/src/container/IngestionSettings/__tests__/MultiIngestionSettings.test.tsx
@@ -71,6 +71,8 @@ describe('MultiIngestionSettings Page', () => {
});
it('navigates to create alert with metrics count threshold', async () => {
+ // Increase timeout - test involves multiple user interactions and async waits
+ // that can exceed 5s default under heavy load (full test suite)
const user = userEvent.setup({ pointerEventsCheck: 0 });
// Arrange API response with a metrics daily count limit so the alert button is visible
@@ -157,7 +159,7 @@ describe('MultiIngestionSettings Page', () => {
expect(firstQueryData.aggregations[0].metricName).toBe(
'signoz.meter.metric.datapoint.count',
);
- });
+ }, 15000);
// skipping the flaky test
it.skip('navigates to create alert for logs with size threshold', async () => {
diff --git a/frontend/src/container/Integrations/IntegrationDetailPage/IntegrationDetailContent.tsx b/frontend/src/container/Integrations/IntegrationDetailPage/IntegrationDetailContent.tsx
index 6ae57c9461..c6d1b5110c 100644
--- a/frontend/src/container/Integrations/IntegrationDetailPage/IntegrationDetailContent.tsx
+++ b/frontend/src/container/Integrations/IntegrationDetailPage/IntegrationDetailContent.tsx
@@ -1,4 +1,5 @@
-import { Button, Tabs, TabsProps, Typography } from 'antd';
+import { Button, Tabs, TabsProps } from 'antd';
+import { Typography } from '@signozhq/ui';
import ConfigureIcon from 'assets/Integrations/ConfigureIcon';
import { CableCar, Group } from 'lucide-react';
import { IntegrationDetailedProps } from 'types/api/integrations/types';
diff --git a/frontend/src/container/Integrations/IntegrationDetailPage/IntegrationDetailContentTabs/Configure.tsx b/frontend/src/container/Integrations/IntegrationDetailPage/IntegrationDetailContentTabs/Configure.tsx
index e456e40916..0d6f07407f 100644
--- a/frontend/src/container/Integrations/IntegrationDetailPage/IntegrationDetailContentTabs/Configure.tsx
+++ b/frontend/src/container/Integrations/IntegrationDetailPage/IntegrationDetailContentTabs/Configure.tsx
@@ -1,5 +1,6 @@
import { useEffect, useState } from 'react';
-import { Button, Typography } from 'antd';
+import { Button } from 'antd';
+import { Typography } from '@signozhq/ui';
import logEvent from 'api/common/logEvent';
import cx from 'classnames';
import { MarkdownRenderer } from 'components/MarkdownRenderer/MarkdownRenderer';
diff --git a/frontend/src/container/Integrations/IntegrationDetailPage/IntegrationDetailContentTabs/DataCollected.tsx b/frontend/src/container/Integrations/IntegrationDetailPage/IntegrationDetailContentTabs/DataCollected.tsx
index ef5d14b4d4..1efc07b496 100644
--- a/frontend/src/container/Integrations/IntegrationDetailPage/IntegrationDetailContentTabs/DataCollected.tsx
+++ b/frontend/src/container/Integrations/IntegrationDetailPage/IntegrationDetailContentTabs/DataCollected.tsx
@@ -1,4 +1,5 @@
-import { Table, Typography } from 'antd';
+import { Table } from 'antd';
+import { Typography } from '@signozhq/ui';
import { BarChart2, ScrollText } from 'lucide-react';
import './IntegrationDetailContentTabs.styles.scss';
diff --git a/frontend/src/container/Integrations/IntegrationDetailPage/IntegrationDetailContentTabs/Overview.tsx b/frontend/src/container/Integrations/IntegrationDetailPage/IntegrationDetailContentTabs/Overview.tsx
index bb511a867b..a71c93ce5e 100644
--- a/frontend/src/container/Integrations/IntegrationDetailPage/IntegrationDetailContentTabs/Overview.tsx
+++ b/frontend/src/container/Integrations/IntegrationDetailPage/IntegrationDetailContentTabs/Overview.tsx
@@ -1,4 +1,4 @@
-import { Typography } from 'antd';
+import { Typography } from '@signozhq/ui';
import { MarkdownRenderer } from 'components/MarkdownRenderer/MarkdownRenderer';
import './IntegrationDetailContentTabs.styles.scss';
diff --git a/frontend/src/container/Integrations/IntegrationDetailPage/IntegrationDetailHeader.tsx b/frontend/src/container/Integrations/IntegrationDetailPage/IntegrationDetailHeader.tsx
index 96259b1450..9036b81798 100644
--- a/frontend/src/container/Integrations/IntegrationDetailPage/IntegrationDetailHeader.tsx
+++ b/frontend/src/container/Integrations/IntegrationDetailPage/IntegrationDetailHeader.tsx
@@ -1,6 +1,7 @@
import { useState } from 'react';
import { useMutation } from 'react-query';
-import { Button, Modal, Skeleton, Tooltip, Typography } from 'antd';
+import { Button, Modal, Skeleton, Tooltip } from 'antd';
+import { Typography } from '@signozhq/ui';
import logEvent from 'api/common/logEvent';
import installIntegration from 'api/Integrations/installIntegration';
import ConfigureIcon from 'assets/Integrations/ConfigureIcon';
@@ -250,7 +251,7 @@ function IntegrationDetailHeader(
key={latestData.last_received_from}
placement="right"
>
- <Typography.Text className="last-value" ellipsis>
+ <Typography.Text className="last-value" truncate={1}>
{latestData.last_received_from}
</Typography.Text>
</Tooltip>
@@ -277,7 +278,7 @@ function IntegrationDetailHeader(
}
placement="right"
>
- <Typography.Text className="last-value" ellipsis>
+ <Typography.Text className="last-value" truncate={1}>
{latestData.last_received_ts_ms
? dayjs(latestData.last_received_ts_ms).format(
DATE_TIME_FORMATS.MONTH_DATETIME_SHORT,
diff --git a/frontend/src/container/Integrations/IntegrationDetailPage/IntegrationDetailPage.tsx b/frontend/src/container/Integrations/IntegrationDetailPage/IntegrationDetailPage.tsx
index d43d2cc464..2d8879aa32 100644
--- a/frontend/src/container/Integrations/IntegrationDetailPage/IntegrationDetailPage.tsx
+++ b/frontend/src/container/Integrations/IntegrationDetailPage/IntegrationDetailPage.tsx
@@ -1,7 +1,8 @@
import { useState } from 'react';
import { useHistory, useParams } from 'react-router-dom';
import { Button } from '@signozhq/ui';
-import { Flex, Skeleton, Typography } from 'antd';
+import { Flex, Skeleton } from 'antd';
+import { Typography } from '@signozhq/ui';
import ROUTES from 'constants/routes';
import { useGetIntegration } from 'hooks/Integrations/useGetIntegration';
import { useGetIntegrationStatus } from 'hooks/Integrations/useGetIntegrationStatus';
diff --git a/frontend/src/container/Integrations/IntegrationDetailPage/IntegrationsUninstallBar.tsx b/frontend/src/container/Integrations/IntegrationDetailPage/IntegrationsUninstallBar.tsx
index 7cf937c53b..c8fbc5e0ae 100644
--- a/frontend/src/container/Integrations/IntegrationDetailPage/IntegrationsUninstallBar.tsx
+++ b/frontend/src/container/Integrations/IntegrationDetailPage/IntegrationsUninstallBar.tsx
@@ -1,6 +1,7 @@
import { useState } from 'react';
import { useMutation } from 'react-query';
-import { Button, Modal, Typography } from 'antd';
+import { Button, Modal } from 'antd';
+import { Typography } from '@signozhq/ui';
import logEvent from 'api/common/logEvent';
import unInstallIntegration from 'api/Integrations/uninstallIntegration';
import { SOMETHING_WENT_WRONG } from 'constants/api';
diff --git a/frontend/src/container/Integrations/IntegrationsHeader/IntegrationsHeader.tsx b/frontend/src/container/Integrations/IntegrationsHeader/IntegrationsHeader.tsx
index 6ed4f36705..4b602ea0f1 100644
--- a/frontend/src/container/Integrations/IntegrationsHeader/IntegrationsHeader.tsx
+++ b/frontend/src/container/Integrations/IntegrationsHeader/IntegrationsHeader.tsx
@@ -1,7 +1,8 @@
import { ChangeEvent, KeyboardEvent, useState } from 'react';
import { useHistory } from 'react-router-dom';
import { Button, DialogWrapper, Input, toast } from '@signozhq/ui';
-import { Flex, Typography } from 'antd';
+import { Flex } from 'antd';
+import { Typography } from '@signozhq/ui';
import logEvent from 'api/common/logEvent';
import ROUTES from 'constants/routes';
import { ArrowRight, Cable, Check } from 'lucide-react';
diff --git a/frontend/src/container/Integrations/IntegrationsList/IntegrationsList.tsx b/frontend/src/container/Integrations/IntegrationsList/IntegrationsList.tsx
index 57e04a7686..30c7c8fbfa 100644
--- a/frontend/src/container/Integrations/IntegrationsList/IntegrationsList.tsx
+++ b/frontend/src/container/Integrations/IntegrationsList/IntegrationsList.tsx
@@ -1,7 +1,8 @@
import { useMemo } from 'react';
import { Color } from '@signozhq/design-tokens';
import { Badge } from '@signozhq/ui';
-import { Button, Skeleton, Typography } from 'antd';
+import { Button, Skeleton } from 'antd';
+import { Typography } from '@signozhq/ui';
import { useGetAllIntegrations } from 'hooks/Integrations/useGetAllIntegrations';
import { useGetTenantLicense } from 'hooks/useGetTenantLicense';
import { MoveUpRight, RotateCw } from 'lucide-react';
diff --git a/frontend/src/container/ListAlertRules/AlertsEmptyState/AlertInfoCard.tsx b/frontend/src/container/ListAlertRules/AlertsEmptyState/AlertInfoCard.tsx
index 5a7f00f84e..1deb3f0389 100644
--- a/frontend/src/container/ListAlertRules/AlertsEmptyState/AlertInfoCard.tsx
+++ b/frontend/src/container/ListAlertRules/AlertsEmptyState/AlertInfoCard.tsx
@@ -1,5 +1,5 @@
import { ArrowRightOutlined } from '@ant-design/icons';
-import { Typography } from 'antd';
+import { Typography } from '@signozhq/ui';
import { openInNewTab } from 'utils/navigation';
interface AlertInfoCardProps {
diff --git a/frontend/src/container/ListAlertRules/AlertsEmptyState/AlertsEmptyState.tsx b/frontend/src/container/ListAlertRules/AlertsEmptyState/AlertsEmptyState.tsx
index f40f2b8792..e737801290 100644
--- a/frontend/src/container/ListAlertRules/AlertsEmptyState/AlertsEmptyState.tsx
+++ b/frontend/src/container/ListAlertRules/AlertsEmptyState/AlertsEmptyState.tsx
@@ -1,6 +1,7 @@
import React, { useCallback, useState } from 'react';
import { PlusOutlined } from '@ant-design/icons';
-import { Button, Divider, Typography } from 'antd';
+import { Button, Divider } from 'antd';
+import { Typography } from '@signozhq/ui';
import logEvent from 'api/common/logEvent';
import ROUTES from 'constants/routes';
import useComponentPermission from 'hooks/useComponentPermission';
diff --git a/frontend/src/container/ListAlertRules/AlertsEmptyState/InfoLinkText.tsx b/frontend/src/container/ListAlertRules/AlertsEmptyState/InfoLinkText.tsx
index 9a95271e1d..f009918a34 100644
--- a/frontend/src/container/ListAlertRules/AlertsEmptyState/InfoLinkText.tsx
+++ b/frontend/src/container/ListAlertRules/AlertsEmptyState/InfoLinkText.tsx
@@ -1,5 +1,6 @@
import { ArrowRightOutlined, PlayCircleFilled } from '@ant-design/icons';
-import { Flex, Typography } from 'antd';
+import { Flex } from 'antd';
+import { Typography } from '@signozhq/ui';
import { openInNewTab } from 'utils/navigation';
interface InfoLinkTextProps {
diff --git a/frontend/src/container/ListAlertRules/ListAlert.tsx b/frontend/src/container/ListAlertRules/ListAlert.tsx
index 83e3bc353e..3aa94198a4 100644
--- a/frontend/src/container/ListAlertRules/ListAlert.tsx
+++ b/frontend/src/container/ListAlertRules/ListAlert.tsx
@@ -2,7 +2,8 @@ import React, { useCallback, useState } from 'react';
import { useTranslation } from 'react-i18next';
import { UseQueryResult } from 'react-query';
import { PlusOutlined } from '@ant-design/icons';
-import { Button, Flex, Input, Typography } from 'antd';
+import { Button, Flex, Input } from 'antd';
+import { Typography } from '@signozhq/ui';
import type { ColumnsType } from 'antd/es/table/interface';
import logEvent from 'api/common/logEvent';
import { convertToApiError } from 'api/ErrorResponseHandlerForGeneratedAPIs';
diff --git a/frontend/src/container/ListOfDashboard/DashboardTemplates/DashboardTemplatesModal.tsx b/frontend/src/container/ListOfDashboard/DashboardTemplates/DashboardTemplatesModal.tsx
index 03e812f013..70cf113fb7 100644
--- a/frontend/src/container/ListOfDashboard/DashboardTemplates/DashboardTemplatesModal.tsx
+++ b/frontend/src/container/ListOfDashboard/DashboardTemplates/DashboardTemplatesModal.tsx
@@ -1,6 +1,7 @@
/* eslint-disable @typescript-eslint/explicit-function-return-type */
import { ChangeEvent, useState } from 'react';
-import { Button, Input, Modal, Typography } from 'antd';
+import { Button, Input, Modal } from 'antd';
+import { Typography } from '@signozhq/ui';
import ApacheIcon from 'assets/CustomIcons/ApacheIcon';
import DockerIcon from 'assets/CustomIcons/DockerIcon';
import ElasticSearchIcon from 'assets/CustomIcons/ElasticSearchIcon';
diff --git a/frontend/src/container/ListOfDashboard/DashboardsList.tsx b/frontend/src/container/ListOfDashboard/DashboardsList.tsx
index 81dc719378..b0768229c6 100644
--- a/frontend/src/container/ListOfDashboard/DashboardsList.tsx
+++ b/frontend/src/container/ListOfDashboard/DashboardsList.tsx
@@ -25,8 +25,8 @@ import {
Table,
Tag,
Tooltip,
- Typography,
} from 'antd';
+import { Typography } from '@signozhq/ui';
import type { TableProps } from 'antd/lib';
import getLocalStorageKey from 'api/browser/localstorage/get';
import setLocalStorageKey from 'api/browser/localstorage/set';
diff --git a/frontend/src/container/ListOfDashboard/ImportJSON/index.tsx b/frontend/src/container/ListOfDashboard/ImportJSON/index.tsx
index efafce4aff..a8519f6ba5 100644
--- a/frontend/src/container/ListOfDashboard/ImportJSON/index.tsx
+++ b/frontend/src/container/ListOfDashboard/ImportJSON/index.tsx
@@ -7,15 +7,8 @@ import { red } from '@ant-design/colors';
import { ExclamationCircleTwoTone } from '@ant-design/icons';
import MEditor, { Monaco } from '@monaco-editor/react';
import { Color } from '@signozhq/design-tokens';
-import {
- Button,
- Flex,
- Modal,
- Space,
- Typography,
- Upload,
- UploadProps,
-} from 'antd';
+import { Button, Flex, Modal, Space, Upload, UploadProps } from 'antd';
+import { Typography } from '@signozhq/ui';
import logEvent from 'api/common/logEvent';
import createDashboard from 'api/v1/dashboards/create';
import ROUTES from 'constants/routes';
diff --git a/frontend/src/container/ListOfDashboard/RequestDashboardBtn.tsx b/frontend/src/container/ListOfDashboard/RequestDashboardBtn.tsx
index da8b56dcae..c42b241b73 100644
--- a/frontend/src/container/ListOfDashboard/RequestDashboardBtn.tsx
+++ b/frontend/src/container/ListOfDashboard/RequestDashboardBtn.tsx
@@ -1,7 +1,8 @@
import { useState } from 'react';
import { useTranslation } from 'react-i18next';
import { LoadingOutlined } from '@ant-design/icons';
-import { Button, Input, Space, Typography } from 'antd';
+import { Button, Input, Space } from 'antd';
+import { Typography } from '@signozhq/ui';
import logEvent from 'api/common/logEvent';
import { useNotifications } from 'hooks/useNotifications';
import { Check } from 'lucide-react';
diff --git a/frontend/src/container/ListOfDashboard/TableComponents/DeleteButton.tsx b/frontend/src/container/ListOfDashboard/TableComponents/DeleteButton.tsx
index 8adb2f38c3..e23866c1f4 100644
--- a/frontend/src/container/ListOfDashboard/TableComponents/DeleteButton.tsx
+++ b/frontend/src/container/ListOfDashboard/TableComponents/DeleteButton.tsx
@@ -2,7 +2,8 @@ import { useCallback } from 'react';
import { useTranslation } from 'react-i18next';
import { useQueryClient } from 'react-query';
import { DeleteOutlined, ExclamationCircleOutlined } from '@ant-design/icons';
-import { Modal, Tooltip, Typography } from 'antd';
+import { Modal, Tooltip } from 'antd';
+import { Typography } from '@signozhq/ui';
import { REACT_QUERY_KEY } from 'constants/reactQueryKeys';
import ROUTES from 'constants/routes';
import { useDeleteDashboard } from 'hooks/dashboard/useDeleteDashboard';
@@ -109,7 +110,6 @@ export function DeleteButton({
<>
<Tooltip placement="left" title={getDeleteTooltipContent()}>
<TableLinkText
- type="danger"
onClick={(e): void => {
e.preventDefault();
e.stopPropagation();
diff --git a/frontend/src/container/ListOfDashboard/TableComponents/styles.ts b/frontend/src/container/ListOfDashboard/TableComponents/styles.ts
index 477da90004..bb29dcd1fb 100644
--- a/frontend/src/container/ListOfDashboard/TableComponents/styles.ts
+++ b/frontend/src/container/ListOfDashboard/TableComponents/styles.ts
@@ -1,7 +1,8 @@
-import { Typography } from 'antd';
import styled from 'styled-components';
-export const TableLinkText = styled(Typography.Text)`
- color: #4e74f8 !important;
- cursor: pointer;
+export const TableLinkText = styled.span<{ disabled: boolean }>`
+ color: var(--destructive);
+ cursor: ${({ disabled }): string => (disabled ? 'not-allowed' : 'pointer')};
+ ${({ disabled }): string => (disabled ? 'opacity: 0.5;' : '')}
+ padding: var(--spacing-3) var(--spacing-4);
`;
diff --git a/frontend/src/container/LiveLogs/LiveLogsContainer/index.tsx b/frontend/src/container/LiveLogs/LiveLogsContainer/index.tsx
index 3abc5c0055..ffabf8832a 100644
--- a/frontend/src/container/LiveLogs/LiveLogsContainer/index.tsx
+++ b/frontend/src/container/LiveLogs/LiveLogsContainer/index.tsx
@@ -1,6 +1,7 @@
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
import { useLocation } from 'react-router-dom';
-import { Switch, Typography } from 'antd';
+import { Switch } from 'antd';
+import { Typography } from '@signozhq/ui';
import LogsFormatOptionsMenu from 'components/LogsFormatOptionsMenu/LogsFormatOptionsMenu';
import { MAX_LOGS_LIST_SIZE } from 'constants/liveTail';
import { LOCALSTORAGE } from 'constants/localStorage';
diff --git a/frontend/src/container/LiveLogs/LiveLogsList/index.tsx b/frontend/src/container/LiveLogs/LiveLogsList/index.tsx
index f4a56d32f5..d7232ff668 100644
--- a/frontend/src/container/LiveLogs/LiveLogsList/index.tsx
+++ b/frontend/src/container/LiveLogs/LiveLogsList/index.tsx
@@ -3,7 +3,8 @@ import { memo, useCallback, useEffect, useMemo, useRef } from 'react';
import { useCopyToClipboard } from 'react-use';
import { Virtuoso, VirtuosoHandle } from 'react-virtuoso';
import { toast } from '@signozhq/ui';
-import { Card, Typography } from 'antd';
+import { Card } from 'antd';
+import { Typography } from '@signozhq/ui';
import LogDetail from 'components/LogDetail';
import { VIEW_TYPES } from 'components/LogDetail/constants';
import ListLogView from 'components/Logs/ListLogView';
diff --git a/frontend/src/container/LogDetailedView/FieldRenderer.tsx b/frontend/src/container/LogDetailedView/FieldRenderer.tsx
index 72db913006..5838e127c7 100644
--- a/frontend/src/container/LogDetailedView/FieldRenderer.tsx
+++ b/frontend/src/container/LogDetailedView/FieldRenderer.tsx
@@ -1,4 +1,5 @@
-import { Divider, Tooltip, Typography } from 'antd';
+import { Divider, Tooltip } from 'antd';
+import { Typography } from '@signozhq/ui';
import { TagContainer, TagLabel, TagValue } from './FieldRenderer.styles';
import { FieldRendererProps } from './LogDetailedView.types';
@@ -14,7 +15,7 @@ function FieldRenderer({ field }: FieldRendererProps): JSX.Element {
{dataType && newField && logType ? (
<>
<Tooltip placement="left" title={newField} mouseLeaveDelay={0}>
- <Typography.Text ellipsis className="label">
+ <Typography.Text truncate={1} className="label">
{newField}{' '}
</Typography.Text>
</Tooltip>
diff --git a/frontend/src/container/LogDetailedView/InfraMetrics/NodeMetrics.tsx b/frontend/src/container/LogDetailedView/InfraMetrics/NodeMetrics.tsx
index e1ca781b2c..1f95ce2b09 100644
--- a/frontend/src/container/LogDetailedView/InfraMetrics/NodeMetrics.tsx
+++ b/frontend/src/container/LogDetailedView/InfraMetrics/NodeMetrics.tsx
@@ -1,6 +1,7 @@
import { useMemo, useRef } from 'react';
import { useQueries, UseQueryResult } from 'react-query';
-import { Card, Skeleton, Typography } from 'antd';
+import { Card, Skeleton } from 'antd';
+import { Typography } from '@signozhq/ui';
import cx from 'classnames';
import Uplot from 'components/Uplot';
import { ENTITY_VERSION_V4 } from 'constants/app';
diff --git a/frontend/src/container/LogDetailedView/InfraMetrics/PodMetrics.tsx b/frontend/src/container/LogDetailedView/InfraMetrics/PodMetrics.tsx
index 19c028570b..516d6b87c9 100644
--- a/frontend/src/container/LogDetailedView/InfraMetrics/PodMetrics.tsx
+++ b/frontend/src/container/LogDetailedView/InfraMetrics/PodMetrics.tsx
@@ -1,6 +1,7 @@
import { useMemo, useRef } from 'react';
import { useQueries, UseQueryResult } from 'react-query';
-import { Card, Skeleton, Typography } from 'antd';
+import { Card, Skeleton } from 'antd';
+import { Typography } from '@signozhq/ui';
import cx from 'classnames';
import Uplot from 'components/Uplot';
import { ENTITY_VERSION_V4 } from 'constants/app';
diff --git a/frontend/src/container/LogDetailedView/JsonView.tsx b/frontend/src/container/LogDetailedView/JsonView.tsx
index 4d498b9fe5..bc80475d44 100644
--- a/frontend/src/container/LogDetailedView/JsonView.tsx
+++ b/frontend/src/container/LogDetailedView/JsonView.tsx
@@ -1,7 +1,8 @@
import { useMemo, useState } from 'react';
import MEditor, { EditorProps, Monaco } from '@monaco-editor/react';
import { Color } from '@signozhq/design-tokens';
-import { Switch, Typography } from 'antd';
+import { Switch } from 'antd';
+import { Typography } from '@signozhq/ui';
import { useIsDarkMode } from 'hooks/useDarkMode';
import { JSONViewProps } from './LogDetailedView.types';
diff --git a/frontend/src/container/LogDetailedView/Overview.tsx b/frontend/src/container/LogDetailedView/Overview.tsx
index 50581b2300..7577a3d5d6 100644
--- a/frontend/src/container/LogDetailedView/Overview.tsx
+++ b/frontend/src/container/LogDetailedView/Overview.tsx
@@ -2,7 +2,8 @@ import { ReactNode, useState } from 'react';
import MEditor, { EditorProps, Monaco } from '@monaco-editor/react';
import { Color } from '@signozhq/design-tokens';
import { Button } from '@signozhq/ui';
-import { Collapse, Divider, Input, Switch, Tag, Typography } from 'antd';
+import { Collapse, Divider, Input, Switch, Tag } from 'antd';
+import { Typography } from '@signozhq/ui';
import { AddToQueryHOCProps } from 'components/Logs/AddToQueryHOC';
import { ChangeViewFunctionType } from 'container/ExplorerOptions/types';
import { OptionsQuery } from 'container/OptionsMenu/types';
diff --git a/frontend/src/container/LogDetailedView/TableView.tsx b/frontend/src/container/LogDetailedView/TableView.tsx
index 55aae8bb76..2e2c9914c9 100644
--- a/frontend/src/container/LogDetailedView/TableView.tsx
+++ b/frontend/src/container/LogDetailedView/TableView.tsx
@@ -4,13 +4,8 @@ import { useDispatch } from 'react-redux';
import { generatePath } from 'react-router-dom';
import { LinkOutlined } from '@ant-design/icons';
import { Color } from '@signozhq/design-tokens';
-import {
- Button,
- Space,
- TableColumnsType as ColumnsType,
- Tooltip,
- Typography,
-} from 'antd';
+import { Button, Space, TableColumnsType as ColumnsType, Tooltip } from 'antd';
+import { Typography } from '@signozhq/ui';
import cx from 'classnames';
import AddToQueryHOC, {
AddToQueryHOCProps,
diff --git a/frontend/src/container/Login/index.tsx b/frontend/src/container/Login/index.tsx
index 29d4f7c68b..27ce130d93 100644
--- a/frontend/src/container/Login/index.tsx
+++ b/frontend/src/container/Login/index.tsx
@@ -1,7 +1,8 @@
import { useCallback, useEffect, useMemo, useState } from 'react';
import { useQuery } from 'react-query';
import { Button } from '@signozhq/ui';
-import { Form, Input, Select, Typography } from 'antd';
+import { Form, Input, Select } from 'antd';
+import { Typography } from '@signozhq/ui';
import getVersion from 'api/v1/version/get';
import get from 'api/v2/sessions/context/get';
import post from 'api/v2/sessions/email_password/post';
@@ -311,10 +312,10 @@ function Login(): JSX.Element {
<Typography.Title level={4} className="login-form-title">
Sign in to your workspace
</Typography.Title>
- <Typography.Paragraph className="login-form-description">
+ <Typography.Text className="login-form-description">
Sign in to monitor, trace, and troubleshoot your applications
effortlessly.
- </Typography.Paragraph>
+ </Typography.Text>
</div>
<div className="login-form-card">
@@ -361,7 +362,6 @@ function Login(): JSX.Element {
<Label htmlFor="Password">Password</Label>
<Typography.Link
className="forgot-password-link"
- href="#"
onClick={(event): void => {
event.preventDefault();
handleForgotPasswordClick();
diff --git a/frontend/src/container/LogsError/LogsError.tsx b/frontend/src/container/LogsError/LogsError.tsx
index bae3ab50ef..8a35f0cf80 100644
--- a/frontend/src/container/LogsError/LogsError.tsx
+++ b/frontend/src/container/LogsError/LogsError.tsx
@@ -1,4 +1,4 @@
-import { Typography } from 'antd';
+import { Typography } from '@signozhq/ui';
import { useGetTenantLicense } from 'hooks/useGetTenantLicense';
import history from 'lib/history';
import { ArrowRight } from 'lucide-react';
diff --git a/frontend/src/container/LogsExplorerViews/LogsActionsContainer.tsx b/frontend/src/container/LogsExplorerViews/LogsActionsContainer.tsx
index 7cb3ee1585..65c03cd84e 100644
--- a/frontend/src/container/LogsExplorerViews/LogsActionsContainer.tsx
+++ b/frontend/src/container/LogsExplorerViews/LogsActionsContainer.tsx
@@ -1,4 +1,5 @@
-import { Switch, Typography } from 'antd';
+import { Switch } from 'antd';
+import { Typography } from '@signozhq/ui';
import DownloadOptionsMenu from 'components/DownloadOptionsMenu/DownloadOptionsMenu';
import LogsFormatOptionsMenu from 'components/LogsFormatOptionsMenu/LogsFormatOptionsMenu';
import ListViewOrderBy from 'components/OrderBy/ListViewOrderBy';
diff --git a/frontend/src/container/LogsFilters/FieldItem.tsx b/frontend/src/container/LogsFilters/FieldItem.tsx
index 01146fe9ac..0e59fda919 100644
--- a/frontend/src/container/LogsFilters/FieldItem.tsx
+++ b/frontend/src/container/LogsFilters/FieldItem.tsx
@@ -1,6 +1,7 @@
import { ReactNode, useCallback, useMemo, useState } from 'react';
import { LoadingOutlined } from '@ant-design/icons';
-import { Button, Popover, Spin, Typography } from 'antd';
+import { Button, Popover, Spin } from 'antd';
+import { Typography } from '@signozhq/ui';
import { useIsDarkMode } from 'hooks/useDarkMode';
import {
IField,
diff --git a/frontend/src/container/LogsFilters/styles.ts b/frontend/src/container/LogsFilters/styles.ts
index f6e9e69bff..4ef9b1cb60 100644
--- a/frontend/src/container/LogsFilters/styles.ts
+++ b/frontend/src/container/LogsFilters/styles.ts
@@ -1,5 +1,5 @@
import { blue, grey } from '@ant-design/colors';
-import { Typography } from 'antd';
+import { Typography } from '@signozhq/ui';
import styled from 'styled-components';
export const CategoryContainer = styled.div`
diff --git a/frontend/src/container/LogsIndexToFields/index.tsx b/frontend/src/container/LogsIndexToFields/index.tsx
index cb12498ff4..2db6f26036 100644
--- a/frontend/src/container/LogsIndexToFields/index.tsx
+++ b/frontend/src/container/LogsIndexToFields/index.tsx
@@ -1,4 +1,4 @@
-import { Typography } from 'antd';
+import { Typography } from '@signozhq/ui';
function LogsIndexToFields(): JSX.Element {
return <Typography>LogsIndexToFields</Typography>;
diff --git a/frontend/src/container/LogsLoading/LogsLoading.tsx b/frontend/src/container/LogsLoading/LogsLoading.tsx
index edc7b6cd57..c352460a82 100644
--- a/frontend/src/container/LogsLoading/LogsLoading.tsx
+++ b/frontend/src/container/LogsLoading/LogsLoading.tsx
@@ -1,5 +1,5 @@
import { useTranslation } from 'react-i18next';
-import { Typography } from 'antd';
+import { Typography } from '@signozhq/ui';
import { DataSource } from 'types/common/queryBuilder';
import loadingPlaneUrl from '@/assets/Icons/loading-plane.gif';
diff --git a/frontend/src/container/LogsPanelTable/utils.tsx b/frontend/src/container/LogsPanelTable/utils.tsx
index fccd63b090..11c43a16e9 100644
--- a/frontend/src/container/LogsPanelTable/utils.tsx
+++ b/frontend/src/container/LogsPanelTable/utils.tsx
@@ -1,5 +1,6 @@
import { ReactNode } from 'react';
-import { TableColumnsType as ColumnsType, Typography } from 'antd';
+import { TableColumnsType as ColumnsType } from 'antd';
+import { Typography } from '@signozhq/ui';
import { TimestampInput } from 'hooks/useTimezoneFormatter/useTimezoneFormatter';
import { RowData } from 'lib/query/createTableColumnsFromQuery';
import { Widgets } from 'types/api/dashboard/getAll';
@@ -34,9 +35,9 @@ export const getLogPanelColumnsList = (
if (name === 'body') {
return (
- <Typography.Paragraph ellipsis={{ rows: 1 }} data-testid={name}>
+ <Typography.Text truncate={1} data-testid={name}>
{value}
- </Typography.Paragraph>
+ </Typography.Text>
);
}
diff --git a/frontend/src/container/LogsSearchFilter/SearchFields/FieldKey.tsx b/frontend/src/container/LogsSearchFilter/SearchFields/FieldKey.tsx
index eac4f1302d..b07741c1f6 100644
--- a/frontend/src/container/LogsSearchFilter/SearchFields/FieldKey.tsx
+++ b/frontend/src/container/LogsSearchFilter/SearchFields/FieldKey.tsx
@@ -1,4 +1,4 @@
-import { Typography } from 'antd';
+import { Typography } from '@signozhq/ui';
interface FieldKeyProps {
name: string;
@@ -9,7 +9,7 @@ function FieldKey({ name, type }: FieldKeyProps): JSX.Element {
return (
<span style={{ margin: '0.25rem 0', display: 'flex', gap: '0.5rem' }}>
<Typography.Text>{name}</Typography.Text>
- <Typography.Text type="secondary" italic>
+ <Typography.Text color="muted" italic>
{type}
</Typography.Text>
</span>
diff --git a/frontend/src/container/LogsTable/index.tsx b/frontend/src/container/LogsTable/index.tsx
index ec354ed8e6..a9de86601a 100644
--- a/frontend/src/container/LogsTable/index.tsx
+++ b/frontend/src/container/LogsTable/index.tsx
@@ -2,7 +2,8 @@ import { memo, useCallback, useMemo } from 'react';
// eslint-disable-next-line no-restricted-imports
import { useSelector } from 'react-redux';
import { Virtuoso } from 'react-virtuoso';
-import { Card, Typography } from 'antd';
+import { Card } from 'antd';
+import { Typography } from '@signozhq/ui';
import LogDetail from 'components/LogDetail';
import { VIEW_TYPES } from 'components/LogDetail/constants';
// components
diff --git a/frontend/src/container/MeterExplorer/Breakdown/BreakDown.tsx b/frontend/src/container/MeterExplorer/Breakdown/BreakDown.tsx
index 69e03b9c08..ec59ae5371 100644
--- a/frontend/src/container/MeterExplorer/Breakdown/BreakDown.tsx
+++ b/frontend/src/container/MeterExplorer/Breakdown/BreakDown.tsx
@@ -2,7 +2,8 @@ import { useCallback } from 'react';
// eslint-disable-next-line no-restricted-imports
import { useDispatch, useSelector } from 'react-redux';
import { useHistory, useLocation } from 'react-router-dom';
-import { Alert, Typography } from 'antd';
+import { Alert } from 'antd';
+import { Typography } from '@signozhq/ui';
import getLocalStorageApi from 'api/browser/localstorage/get';
import setLocalStorageApi from 'api/browser/localstorage/set';
import { LOCALSTORAGE } from 'constants/localStorage';
diff --git a/frontend/src/container/MetricsApplication/Tabs/Overview/ApDex/ApDexMetrics.tsx b/frontend/src/container/MetricsApplication/Tabs/Overview/ApDex/ApDexMetrics.tsx
index 22590d741d..7ad0ca144b 100644
--- a/frontend/src/container/MetricsApplication/Tabs/Overview/ApDex/ApDexMetrics.tsx
+++ b/frontend/src/container/MetricsApplication/Tabs/Overview/ApDex/ApDexMetrics.tsx
@@ -1,6 +1,7 @@
import { ReactNode, useMemo } from 'react';
import { useParams } from 'react-router-dom';
-import { Space, Typography } from 'antd';
+import { Space } from 'antd';
+import { Typography } from '@signozhq/ui';
import TextToolTip from 'components/TextToolTip';
import {
apDexToolTipText,
diff --git a/frontend/src/container/MetricsApplication/Tabs/Overview/TableRenderer/ColumnWithLink.tsx b/frontend/src/container/MetricsApplication/Tabs/Overview/TableRenderer/ColumnWithLink.tsx
index c872a61356..bec5eb1981 100644
--- a/frontend/src/container/MetricsApplication/Tabs/Overview/TableRenderer/ColumnWithLink.tsx
+++ b/frontend/src/container/MetricsApplication/Tabs/Overview/TableRenderer/ColumnWithLink.tsx
@@ -1,4 +1,5 @@
-import { Tooltip, Typography } from 'antd';
+import { Tooltip } from 'antd';
+import { Typography } from '@signozhq/ui';
import { navigateToTrace } from 'container/MetricsApplication/utils';
import { useSafeNavigate } from 'hooks/useSafeNavigate';
import { RowData } from 'lib/query/createTableColumnsFromQuery';
diff --git a/frontend/src/container/MetricsApplication/Tabs/Overview/TopLevelOperations.tsx b/frontend/src/container/MetricsApplication/Tabs/Overview/TopLevelOperations.tsx
index 9238e82231..65a9080487 100644
--- a/frontend/src/container/MetricsApplication/Tabs/Overview/TopLevelOperations.tsx
+++ b/frontend/src/container/MetricsApplication/Tabs/Overview/TopLevelOperations.tsx
@@ -1,4 +1,5 @@
-import { Skeleton, Typography } from 'antd';
+import { Skeleton } from 'antd';
+import { Typography } from '@signozhq/ui';
import axios from 'axios';
import { SOMETHING_WENT_WRONG } from 'constants/api';
import { ENTITY_VERSION_V4 } from 'constants/app';
diff --git a/frontend/src/container/MetricsApplication/TopOperationsTable.tsx b/frontend/src/container/MetricsApplication/TopOperationsTable.tsx
index 830a7509ee..81e1135cf1 100644
--- a/frontend/src/container/MetricsApplication/TopOperationsTable.tsx
+++ b/frontend/src/container/MetricsApplication/TopOperationsTable.tsx
@@ -9,8 +9,8 @@ import {
TableColumnsType as ColumnsType,
TableColumnType as ColumnType,
Tooltip,
- Typography,
} from 'antd';
+import { Typography } from '@signozhq/ui';
import { ResizeTable } from 'components/ResizeTable';
import TextToolTip from 'components/TextToolTip';
import Download from 'container/Download/Download';
diff --git a/frontend/src/container/MetricsApplication/styles.ts b/frontend/src/container/MetricsApplication/styles.ts
index 8e396891e7..750138fdd9 100644
--- a/frontend/src/container/MetricsApplication/styles.ts
+++ b/frontend/src/container/MetricsApplication/styles.ts
@@ -2,8 +2,8 @@ import {
Card as CardComponent,
Col as ColComponent,
Row as RowComponent,
- Typography,
} from 'antd';
+import { Typography } from '@signozhq/ui';
import styled from 'styled-components';
export const Card = styled(CardComponent)`
diff --git a/frontend/src/container/MetricsExplorer/Explorer/EmptyMetricsSearch.tsx b/frontend/src/container/MetricsExplorer/Explorer/EmptyMetricsSearch.tsx
index 47645bdbde..6f8f74df4a 100644
--- a/frontend/src/container/MetricsExplorer/Explorer/EmptyMetricsSearch.tsx
+++ b/frontend/src/container/MetricsExplorer/Explorer/EmptyMetricsSearch.tsx
@@ -1,4 +1,5 @@
-import { Empty, Typography } from 'antd';
+import { Empty } from 'antd';
+import { Typography } from '@signozhq/ui';
interface EmptyMetricsSearchProps {
hasQueryResult?: boolean;
diff --git a/frontend/src/container/MetricsExplorer/Explorer/TimeSeries.tsx b/frontend/src/container/MetricsExplorer/Explorer/TimeSeries.tsx
index 70f7fd38b7..28d1ca37b5 100644
--- a/frontend/src/container/MetricsExplorer/Explorer/TimeSeries.tsx
+++ b/frontend/src/container/MetricsExplorer/Explorer/TimeSeries.tsx
@@ -4,7 +4,8 @@ import { useQueries, useQueryClient } from 'react-query';
import { useSelector } from 'react-redux';
import { Color } from '@signozhq/design-tokens';
import { toast } from '@signozhq/ui';
-import { Button, Tooltip, Typography } from 'antd';
+import { Button, Tooltip } from 'antd';
+import { Typography } from '@signozhq/ui';
import {
invalidateGetMetricMetadata,
useUpdateMetricMetadata,
@@ -236,7 +237,7 @@ function TimeSeries({
disabled={isUpdatingMetricMetadata}
onClick={handleSaveUnit}
>
- <Typography.Paragraph>Yes</Typography.Paragraph>
+ <Typography.Text>Yes</Typography.Text>
</Button>
</div>
)}
diff --git a/frontend/src/container/MetricsExplorer/Inspect/ExpandedView.tsx b/frontend/src/container/MetricsExplorer/Inspect/ExpandedView.tsx
index eecc19affc..bdf8bc050f 100644
--- a/frontend/src/container/MetricsExplorer/Inspect/ExpandedView.tsx
+++ b/frontend/src/container/MetricsExplorer/Inspect/ExpandedView.tsx
@@ -2,7 +2,8 @@
import { useEffect, useMemo, useState } from 'react';
import { Color } from '@signozhq/design-tokens';
import type { TableColumnsType as ColumnsType } from 'antd';
-import { Card, Tooltip, Typography } from 'antd';
+import { Card, Tooltip } from 'antd';
+import { Typography } from '@signozhq/ui';
import logEvent from 'api/common/logEvent';
import classNames from 'classnames';
import ResizeTable from 'components/ResizeTable/ResizeTable';
diff --git a/frontend/src/container/MetricsExplorer/Inspect/GraphPopover.tsx b/frontend/src/container/MetricsExplorer/Inspect/GraphPopover.tsx
index 21a69c39e0..9567b8f8a6 100644
--- a/frontend/src/container/MetricsExplorer/Inspect/GraphPopover.tsx
+++ b/frontend/src/container/MetricsExplorer/Inspect/GraphPopover.tsx
@@ -1,5 +1,6 @@
import { useMemo } from 'react';
-import { Button, Card, Typography } from 'antd';
+import { Button, Card } from 'antd';
+import { Typography } from '@signozhq/ui';
import { ArrowRight } from 'lucide-react';
import { GraphPopoverProps } from './types';
@@ -52,7 +53,7 @@ function GraphPopover({
>
<Card className="inspect-graph-popover-content" size="small">
<div className="inspect-graph-popover-row">
- <Typography.Text type="secondary">
+ <Typography.Text color="muted">
{formatTimestampToFullDateTime(closestTimestamp)}
</Typography.Text>
<Typography.Text>{Number(closestValue).toFixed(2)}</Typography.Text>
diff --git a/frontend/src/container/MetricsExplorer/Inspect/GraphView.tsx b/frontend/src/container/MetricsExplorer/Inspect/GraphView.tsx
index 5040354d7f..2757ff8fd6 100644
--- a/frontend/src/container/MetricsExplorer/Inspect/GraphView.tsx
+++ b/frontend/src/container/MetricsExplorer/Inspect/GraphView.tsx
@@ -2,7 +2,8 @@ import { useEffect, useMemo, useRef, useState } from 'react';
// eslint-disable-next-line no-restricted-imports
import { useSelector } from 'react-redux';
import { Color } from '@signozhq/design-tokens';
-import { Button, Skeleton, Switch, Typography } from 'antd';
+import { Button, Skeleton, Switch } from 'antd';
+import { Typography } from '@signozhq/ui';
import logEvent from 'api/common/logEvent';
import Uplot from 'components/Uplot';
import { useIsDarkMode } from 'hooks/useDarkMode';
diff --git a/frontend/src/container/MetricsExplorer/Inspect/HoverPopover.tsx b/frontend/src/container/MetricsExplorer/Inspect/HoverPopover.tsx
index 4abd16c3be..7d117b125f 100644
--- a/frontend/src/container/MetricsExplorer/Inspect/HoverPopover.tsx
+++ b/frontend/src/container/MetricsExplorer/Inspect/HoverPopover.tsx
@@ -1,5 +1,6 @@
import { useMemo } from 'react';
-import { Card, Typography } from 'antd';
+import { Card } from 'antd';
+import { Typography } from '@signozhq/ui';
import {
GraphPopoverOptions,
diff --git a/frontend/src/container/MetricsExplorer/Inspect/Inspect.tsx b/frontend/src/container/MetricsExplorer/Inspect/Inspect.tsx
index 1593a06e24..8321c56fc5 100644
--- a/frontend/src/container/MetricsExplorer/Inspect/Inspect.tsx
+++ b/frontend/src/container/MetricsExplorer/Inspect/Inspect.tsx
@@ -2,7 +2,8 @@ import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
import { useQueryClient } from 'react-query';
import * as Sentry from '@sentry/react';
import { Color } from '@signozhq/design-tokens';
-import { Button, Drawer, Empty, Skeleton, Typography } from 'antd';
+import { Button, Drawer, Empty, Skeleton } from 'antd';
+import { Typography } from '@signozhq/ui';
import logEvent from 'api/common/logEvent';
import { useGetMetricMetadata } from 'api/generated/services/metrics';
import QueryCancelledPlaceholder from 'components/QueryCancelledPlaceholder';
diff --git a/frontend/src/container/MetricsExplorer/Inspect/MetricFilters.tsx b/frontend/src/container/MetricsExplorer/Inspect/MetricFilters.tsx
index 1c3954cb35..daa9be0cc8 100644
--- a/frontend/src/container/MetricsExplorer/Inspect/MetricFilters.tsx
+++ b/frontend/src/container/MetricsExplorer/Inspect/MetricFilters.tsx
@@ -1,5 +1,5 @@
import { useCallback } from 'react';
-import { Typography } from 'antd';
+import { Typography } from '@signozhq/ui';
import logEvent from 'api/common/logEvent';
import QuerySearch from 'components/QueryBuilderV2/QueryV2/QuerySearch/QuerySearch';
import { convertExpressionToFilters } from 'components/QueryBuilderV2/utils';
diff --git a/frontend/src/container/MetricsExplorer/Inspect/MetricNameSearch.tsx b/frontend/src/container/MetricsExplorer/Inspect/MetricNameSearch.tsx
index d6db3900c2..c3b453dbd4 100644
--- a/frontend/src/container/MetricsExplorer/Inspect/MetricNameSearch.tsx
+++ b/frontend/src/container/MetricsExplorer/Inspect/MetricNameSearch.tsx
@@ -1,5 +1,5 @@
import { useState } from 'react';
-import { Typography } from 'antd';
+import { Typography } from '@signozhq/ui';
import { initialQueriesMap } from 'constants/queryBuilder';
import { MetricNameSelector } from 'container/QueryBuilder/filters';
import { BaseAutocompleteData } from 'types/api/queryBuilder/queryAutocompleteResponse';
diff --git a/frontend/src/container/MetricsExplorer/Inspect/MetricSpaceAggregation.tsx b/frontend/src/container/MetricsExplorer/Inspect/MetricSpaceAggregation.tsx
index cc7e53de7b..b0cabb2203 100644
--- a/frontend/src/container/MetricsExplorer/Inspect/MetricSpaceAggregation.tsx
+++ b/frontend/src/container/MetricsExplorer/Inspect/MetricSpaceAggregation.tsx
@@ -1,4 +1,4 @@
-import { Typography } from 'antd';
+import { Typography } from '@signozhq/ui';
import { Select } from 'antd';
import classNames from 'classnames';
diff --git a/frontend/src/container/MetricsExplorer/Inspect/MetricTimeAggregation.tsx b/frontend/src/container/MetricsExplorer/Inspect/MetricTimeAggregation.tsx
index 7e8fb49e17..a94fc18f9e 100644
--- a/frontend/src/container/MetricsExplorer/Inspect/MetricTimeAggregation.tsx
+++ b/frontend/src/container/MetricsExplorer/Inspect/MetricTimeAggregation.tsx
@@ -1,4 +1,5 @@
-import { Input, Typography } from 'antd';
+import { Input } from 'antd';
+import { Typography } from '@signozhq/ui';
import { Select } from 'antd';
import classNames from 'classnames';
diff --git a/frontend/src/container/MetricsExplorer/Inspect/Stepper.tsx b/frontend/src/container/MetricsExplorer/Inspect/Stepper.tsx
index 57ba57fdbd..2c4e8275f7 100644
--- a/frontend/src/container/MetricsExplorer/Inspect/Stepper.tsx
+++ b/frontend/src/container/MetricsExplorer/Inspect/Stepper.tsx
@@ -1,5 +1,6 @@
import { Color } from '@signozhq/design-tokens';
-import { Button, Typography } from 'antd';
+import { Button } from 'antd';
+import { Typography } from '@signozhq/ui';
import classNames from 'classnames';
import { ArrowUpRightFromSquare, RefreshCcw } from 'lucide-react';
diff --git a/frontend/src/container/MetricsExplorer/Inspect/TableView.tsx b/frontend/src/container/MetricsExplorer/Inspect/TableView.tsx
index b91fb6af91..752d47974c 100644
--- a/frontend/src/container/MetricsExplorer/Inspect/TableView.tsx
+++ b/frontend/src/container/MetricsExplorer/Inspect/TableView.tsx
@@ -1,6 +1,7 @@
import { useCallback, useMemo } from 'react';
import type { TableColumnsType as ColumnsType } from 'antd';
-import { Card, Flex, Table, Typography } from 'antd';
+import { Card, Flex, Table } from 'antd';
+import { Typography } from '@signozhq/ui';
import { InspectMetricsSeries } from './types';
import { TableViewProps } from './types';
diff --git a/frontend/src/container/MetricsExplorer/MetricDetails/AllAttributes.tsx b/frontend/src/container/MetricsExplorer/MetricDetails/AllAttributes.tsx
index cce2031ae0..c0d4969141 100644
--- a/frontend/src/container/MetricsExplorer/MetricDetails/AllAttributes.tsx
+++ b/frontend/src/container/MetricsExplorer/MetricDetails/AllAttributes.tsx
@@ -1,15 +1,8 @@
import { useCallback, useMemo, useRef, useState } from 'react';
import { useCopyToClipboard } from 'react-use';
import type { TableColumnsType as ColumnsType } from 'antd';
-import {
- Button,
- Collapse,
- Input,
- Menu,
- Popover,
- Tooltip,
- Typography,
-} from 'antd';
+import { Button, Collapse, Input, Menu, Popover, Tooltip } from 'antd';
+import { Typography } from '@signozhq/ui';
import logEvent from 'api/common/logEvent';
import { useGetMetricAttributes } from 'api/generated/services/metrics';
import { ResizeTable } from 'components/ResizeTable';
diff --git a/frontend/src/container/MetricsExplorer/MetricDetails/AllAttributesValue.tsx b/frontend/src/container/MetricsExplorer/MetricDetails/AllAttributesValue.tsx
index 3bf49af721..4d9e62fef3 100644
--- a/frontend/src/container/MetricsExplorer/MetricDetails/AllAttributesValue.tsx
+++ b/frontend/src/container/MetricsExplorer/MetricDetails/AllAttributesValue.tsx
@@ -1,6 +1,7 @@
import { useCallback, useMemo, useRef, useState } from 'react';
import { useCopyToClipboard } from 'react-use';
-import { Button, Input, Menu, Popover, Tooltip, Typography } from 'antd';
+import { Button, Input, Menu, Popover, Tooltip } from 'antd';
+import { Typography } from '@signozhq/ui';
import { Check, Copy, Search, SquareArrowOutUpRight } from 'lucide-react';
import MetricDetailsErrorState from './MetricDetailsErrorState';
@@ -118,7 +119,7 @@ export function AllAttributesValue({
const isCopied = copiedValue === attribute;
return (
<div key={attribute} className="all-values-item">
- <Typography.Text ellipsis className="all-values-item-text">
+ <Typography.Text truncate={1} className="all-values-item-text">
{attribute}
</Typography.Text>
<div className="all-values-item-actions">
@@ -149,7 +150,7 @@ export function AllAttributesValue({
);
})}
{allValuesOpen && filteredAllValues.length === 0 && (
- <Typography.Text type="secondary" className="all-values-empty">
+ <Typography.Text color="muted" className="all-values-empty">
No values found
</Typography.Text>
)}
diff --git a/frontend/src/container/MetricsExplorer/MetricDetails/DashboardsAndAlertsPopover.tsx b/frontend/src/container/MetricsExplorer/MetricDetails/DashboardsAndAlertsPopover.tsx
index 01ff271ab2..52a45d7008 100644
--- a/frontend/src/container/MetricsExplorer/MetricDetails/DashboardsAndAlertsPopover.tsx
+++ b/frontend/src/container/MetricsExplorer/MetricDetails/DashboardsAndAlertsPopover.tsx
@@ -1,7 +1,8 @@
import { useMemo } from 'react';
import { generatePath } from 'react-router-dom';
import { Color } from '@signozhq/design-tokens';
-import { Dropdown, Skeleton, Typography } from 'antd';
+import { Dropdown, Skeleton } from 'antd';
+import { Typography } from '@signozhq/ui';
import {
useGetMetricAlerts,
useGetMetricDashboards,
diff --git a/frontend/src/container/MetricsExplorer/MetricDetails/Highlights.tsx b/frontend/src/container/MetricsExplorer/MetricDetails/Highlights.tsx
index f7a7b04acd..953a722259 100644
--- a/frontend/src/container/MetricsExplorer/MetricDetails/Highlights.tsx
+++ b/frontend/src/container/MetricsExplorer/MetricDetails/Highlights.tsx
@@ -1,5 +1,6 @@
import { Color } from '@signozhq/design-tokens';
-import { Button, Spin, Tooltip, Typography } from 'antd';
+import { Button, Spin, Tooltip } from 'antd';
+import { Typography } from '@signozhq/ui';
import { useGetMetricHighlights } from 'api/generated/services/metrics';
import { InfoIcon } from 'lucide-react';
@@ -67,13 +68,13 @@ function Highlights({ metricName }: HighlightsProps): JSX.Element {
return (
<div className="metric-details-content-grid">
<div className="labels-row">
- <Typography.Text type="secondary" className="metric-details-grid-label">
+ <Typography.Text color="muted" className="metric-details-grid-label">
SAMPLES
</Typography.Text>
- <Typography.Text type="secondary" className="metric-details-grid-label">
+ <Typography.Text color="muted" className="metric-details-grid-label">
TIME SERIES
</Typography.Text>
- <Typography.Text type="secondary" className="metric-details-grid-label">
+ <Typography.Text color="muted" className="metric-details-grid-label">
LAST RECEIVED
</Typography.Text>
</div>
@@ -81,7 +82,7 @@ function Highlights({ metricName }: HighlightsProps): JSX.Element {
{isLoadingMetricHighlights ? (
<div className="metric-highlights-loading-inline">
<Spin size="small" />
- <Typography.Text type="secondary">Loading metric stats</Typography.Text>
+ <Typography.Text color="muted">Loading metric stats</Typography.Text>
</div>
) : (
<>
diff --git a/frontend/src/container/MetricsExplorer/MetricDetails/Metadata.tsx b/frontend/src/container/MetricsExplorer/MetricDetails/Metadata.tsx
index 2cfb81f75b..0a9d7c43b7 100644
--- a/frontend/src/container/MetricsExplorer/MetricDetails/Metadata.tsx
+++ b/frontend/src/container/MetricsExplorer/MetricDetails/Metadata.tsx
@@ -1,7 +1,8 @@
import { useCallback, useEffect, useMemo, useState } from 'react';
import { useQueryClient } from 'react-query';
import type { TableColumnsType as ColumnsType } from 'antd';
-import { Button, Collapse, Input, Select, Spin, Typography } from 'antd';
+import { Button, Collapse, Input, Select, Spin } from 'antd';
+import { Typography } from '@signozhq/ui';
import logEvent from 'api/common/logEvent';
import {
invalidateGetMetricMetadata,
diff --git a/frontend/src/container/MetricsExplorer/MetricDetails/MetricDetails.tsx b/frontend/src/container/MetricsExplorer/MetricDetails/MetricDetails.tsx
index 8653a3e609..97ad32dc87 100644
--- a/frontend/src/container/MetricsExplorer/MetricDetails/MetricDetails.tsx
+++ b/frontend/src/container/MetricsExplorer/MetricDetails/MetricDetails.tsx
@@ -2,7 +2,8 @@ import { useCallback, useEffect, useMemo } from 'react';
// eslint-disable-next-line no-restricted-imports
import { useSelector } from 'react-redux';
import { Color } from '@signozhq/design-tokens';
-import { Button, Divider, Drawer, Typography } from 'antd';
+import { Button, Divider, Drawer } from 'antd';
+import { Typography } from '@signozhq/ui';
import logEvent from 'api/common/logEvent';
import { useGetMetricMetadata } from 'api/generated/services/metrics';
import { useIsDarkMode } from 'hooks/useDarkMode';
diff --git a/frontend/src/container/MetricsExplorer/MetricDetails/MetricDetailsErrorState.tsx b/frontend/src/container/MetricsExplorer/MetricDetails/MetricDetailsErrorState.tsx
index 4f11c2dac3..3713ee8512 100644
--- a/frontend/src/container/MetricsExplorer/MetricDetails/MetricDetailsErrorState.tsx
+++ b/frontend/src/container/MetricsExplorer/MetricDetails/MetricDetailsErrorState.tsx
@@ -1,5 +1,6 @@
import { Color } from '@signozhq/design-tokens';
-import { Button, Typography } from 'antd';
+import { Button } from 'antd';
+import { Typography } from '@signozhq/ui';
import { InfoIcon } from 'lucide-react';
import { MetricDetailsErrorStateProps } from './types';
diff --git a/frontend/src/container/MetricsExplorer/MetricsLoading/MetricsLoading.tsx b/frontend/src/container/MetricsExplorer/MetricsLoading/MetricsLoading.tsx
index 8ddfb8d178..5f8e9fb1f8 100644
--- a/frontend/src/container/MetricsExplorer/MetricsLoading/MetricsLoading.tsx
+++ b/frontend/src/container/MetricsExplorer/MetricsLoading/MetricsLoading.tsx
@@ -1,5 +1,5 @@
import { useTranslation } from 'react-i18next';
-import { Typography } from 'antd';
+import { Typography } from '@signozhq/ui';
import { DataSource } from 'types/common/queryBuilder';
import loadingPlaneUrl from '@/assets/Icons/loading-plane.gif';
diff --git a/frontend/src/container/MetricsExplorer/Summary/MetricTypeViewRenderer.tsx b/frontend/src/container/MetricsExplorer/Summary/MetricTypeViewRenderer.tsx
index 9db97d2d37..ac6f42c3e8 100644
--- a/frontend/src/container/MetricsExplorer/Summary/MetricTypeViewRenderer.tsx
+++ b/frontend/src/container/MetricsExplorer/Summary/MetricTypeViewRenderer.tsx
@@ -1,6 +1,6 @@
import { useMemo } from 'react';
import { Color } from '@signozhq/design-tokens';
-import { Typography } from 'antd';
+import { Typography } from '@signozhq/ui';
import { MetrictypesTypeDTO } from 'api/generated/services/sigNoz.schemas';
import {
BarChart,
diff --git a/frontend/src/container/MetricsExplorer/Summary/MetricsTable.tsx b/frontend/src/container/MetricsExplorer/Summary/MetricsTable.tsx
index 783fad9d86..baedb1cf25 100644
--- a/frontend/src/container/MetricsExplorer/Summary/MetricsTable.tsx
+++ b/frontend/src/container/MetricsExplorer/Summary/MetricsTable.tsx
@@ -1,13 +1,7 @@
import { useCallback } from 'react';
import { LoadingOutlined } from '@ant-design/icons';
-import {
- Spin,
- Table,
- TablePaginationConfig,
- TableProps,
- Tooltip,
- Typography,
-} from 'antd';
+import { Spin, Table, TablePaginationConfig, TableProps, Tooltip } from 'antd';
+import { Typography } from '@signozhq/ui';
import type { SorterResult } from 'antd/es/table/interface';
import { Querybuildertypesv5OrderDirectionDTO } from 'api/generated/services/sigNoz.schemas';
import ErrorInPlace from 'components/ErrorInPlace/ErrorInPlace';
diff --git a/frontend/src/container/MetricsExplorer/Summary/MetricsTreemap.tsx b/frontend/src/container/MetricsExplorer/Summary/MetricsTreemap.tsx
index 03e187a9e9..78de8fa6a5 100644
--- a/frontend/src/container/MetricsExplorer/Summary/MetricsTreemap.tsx
+++ b/frontend/src/container/MetricsExplorer/Summary/MetricsTreemap.tsx
@@ -2,7 +2,8 @@ import { useCallback, useMemo } from 'react';
import { useWindowSize } from 'react-use';
import { Group } from '@visx/group';
import { Treemap } from '@visx/hierarchy';
-import { Empty, Select, Skeleton, Tooltip, Typography } from 'antd';
+import { Empty, Select, Skeleton, Tooltip } from 'antd';
+import { Typography } from '@signozhq/ui';
import { MetricsexplorertypesTreemapModeDTO } from 'api/generated/services/sigNoz.schemas';
import ErrorInPlace from 'components/ErrorInPlace/ErrorInPlace';
import { HierarchyNode, stratify, treemapBinary } from 'd3-hierarchy';
diff --git a/frontend/src/container/MetricsExplorer/Summary/Summary.tsx b/frontend/src/container/MetricsExplorer/Summary/Summary.tsx
index 56f2335e3e..4011dcb02e 100644
--- a/frontend/src/container/MetricsExplorer/Summary/Summary.tsx
+++ b/frontend/src/container/MetricsExplorer/Summary/Summary.tsx
@@ -4,7 +4,7 @@ import React, { useCallback, useEffect, useMemo, useState } from 'react';
import { useSelector } from 'react-redux'; // old code, TODO: fix this correctly
import { useSearchParams } from 'react-router-dom-v5-compat';
import * as Sentry from '@sentry/react';
-import { Typography } from 'antd';
+import { Typography } from '@signozhq/ui';
import logEvent from 'api/common/logEvent';
import { convertToApiError } from 'api/ErrorResponseHandlerForGeneratedAPIs';
import {
diff --git a/frontend/src/container/MySettings/LicenseSection/LicenseSection.tsx b/frontend/src/container/MySettings/LicenseSection/LicenseSection.tsx
index a270d24d33..00cfa7bfa7 100644
--- a/frontend/src/container/MySettings/LicenseSection/LicenseSection.tsx
+++ b/frontend/src/container/MySettings/LicenseSection/LicenseSection.tsx
@@ -1,6 +1,6 @@
import { useCopyToClipboard } from 'react-use';
import { Button } from '@signozhq/ui';
-import { Typography } from 'antd';
+import { Typography } from '@signozhq/ui';
import { useNotifications } from 'hooks/useNotifications';
import { Copy } from 'lucide-react';
import { useAppContext } from 'providers/App/App';
diff --git a/frontend/src/container/MySettings/UserInfo/index.tsx b/frontend/src/container/MySettings/UserInfo/index.tsx
index 0db308c774..7e035c60d4 100644
--- a/frontend/src/container/MySettings/UserInfo/index.tsx
+++ b/frontend/src/container/MySettings/UserInfo/index.tsx
@@ -1,6 +1,7 @@
import { useState } from 'react';
import { useTranslation } from 'react-i18next';
-import { Button, Input, Modal, Typography } from 'antd';
+import { Button, Input, Modal } from 'antd';
+import { Typography } from '@signozhq/ui';
import logEvent from 'api/common/logEvent';
import {
updateMyPassword,
diff --git a/frontend/src/container/MySettings/__tests__/MySettings.test.tsx b/frontend/src/container/MySettings/__tests__/MySettings.test.tsx
index e2e9855b0d..c13ce2017a 100644
--- a/frontend/src/container/MySettings/__tests__/MySettings.test.tsx
+++ b/frontend/src/container/MySettings/__tests__/MySettings.test.tsx
@@ -130,15 +130,9 @@ describe('MySettings Flows', () => {
const updateNameButton = screen.getByText(UPDATE_NAME_BUTTON_TEXT);
fireEvent.click(updateNameButton);
- // Find the label with class 'ant-typography' and text 'Name'
- const nameLabels = screen.getAllByText('Name');
- const nameLabel = nameLabels.find((el) =>
- el.className.includes('ant-typography'),
- );
const nameTextbox = screen.getByPlaceholderText('e.g. John Doe');
const modalUpdateNameButton = screen.getByTestId(UPDATE_NAME_BUTTON_TEST_ID);
- expect(nameLabel).toBeInTheDocument();
expect(nameTextbox).toBeInTheDocument();
expect(modalUpdateNameButton).toBeInTheDocument();
});
diff --git a/frontend/src/container/NewWidget/LeftContainer/ExplorerColumnsRenderer.tsx b/frontend/src/container/NewWidget/LeftContainer/ExplorerColumnsRenderer.tsx
index c3e050b947..1c7e1dc8bb 100644
--- a/frontend/src/container/NewWidget/LeftContainer/ExplorerColumnsRenderer.tsx
+++ b/frontend/src/container/NewWidget/LeftContainer/ExplorerColumnsRenderer.tsx
@@ -7,15 +7,8 @@ import {
DropResult,
} from 'react-beautiful-dnd';
import { Color } from '@signozhq/design-tokens';
-import {
- Button,
- Divider,
- Dropdown,
- Input,
- MenuProps,
- Tooltip,
- Typography,
-} from 'antd';
+import { Button, Divider, Dropdown, Input, MenuProps, Tooltip } from 'antd';
+import { Typography } from '@signozhq/ui';
import { FieldDataType } from 'api/v5/v5';
import { SOMETHING_WENT_WRONG } from 'constants/api';
import { useQueryBuilder } from 'hooks/queryBuilder/useQueryBuilder';
diff --git a/frontend/src/container/NewWidget/LeftContainer/QuerySection/index.tsx b/frontend/src/container/NewWidget/LeftContainer/QuerySection/index.tsx
index c5fbdae738..791e3d9ecd 100644
--- a/frontend/src/container/NewWidget/LeftContainer/QuerySection/index.tsx
+++ b/frontend/src/container/NewWidget/LeftContainer/QuerySection/index.tsx
@@ -1,6 +1,7 @@
import { useCallback, useEffect, useMemo } from 'react';
import { Color } from '@signozhq/design-tokens';
-import { Button, Tabs, Typography } from 'antd';
+import { Button, Tabs } from 'antd';
+import { Typography } from '@signozhq/ui';
import logEvent from 'api/common/logEvent';
import PromQLIcon from 'assets/Dashboard/PromQl';
import { QueryBuilderV2 } from 'components/QueryBuilderV2/QueryBuilderV2';
diff --git a/frontend/src/container/NewWidget/LeftContainer/WidgetGraph/WidgetGraphContainer.tsx b/frontend/src/container/NewWidget/LeftContainer/WidgetGraph/WidgetGraphContainer.tsx
index 71cb2a2333..c670d1c06f 100644
--- a/frontend/src/container/NewWidget/LeftContainer/WidgetGraph/WidgetGraphContainer.tsx
+++ b/frontend/src/container/NewWidget/LeftContainer/WidgetGraph/WidgetGraphContainer.tsx
@@ -1,4 +1,5 @@
-import { Card, Typography } from 'antd';
+import { Card } from 'antd';
+import { Typography } from '@signozhq/ui';
import ErrorInPlace from 'components/ErrorInPlace/ErrorInPlace';
import Spinner from 'components/Spinner';
import { PANEL_TYPES } from 'constants/queryBuilder';
diff --git a/frontend/src/container/NewWidget/RightContainer/ColumnUnitSelector/ColumnUnitSelector.tsx b/frontend/src/container/NewWidget/RightContainer/ColumnUnitSelector/ColumnUnitSelector.tsx
index 4178171c67..d4191f22f5 100644
--- a/frontend/src/container/NewWidget/RightContainer/ColumnUnitSelector/ColumnUnitSelector.tsx
+++ b/frontend/src/container/NewWidget/RightContainer/ColumnUnitSelector/ColumnUnitSelector.tsx
@@ -1,5 +1,5 @@
import { Dispatch, SetStateAction, useCallback, useEffect } from 'react';
-import { Typography } from 'antd';
+import { Typography } from '@signozhq/ui';
import { useQueryBuilder } from 'hooks/queryBuilder/useQueryBuilder';
import { useGetQueryLabels } from 'hooks/useGetQueryLabels';
import { isEmpty } from 'lodash-es';
diff --git a/frontend/src/container/NewWidget/RightContainer/ContextLinks/UpdateContextLinks.tsx b/frontend/src/container/NewWidget/RightContainer/ContextLinks/UpdateContextLinks.tsx
index 7525aec561..1323f0ce30 100644
--- a/frontend/src/container/NewWidget/RightContainer/ContextLinks/UpdateContextLinks.tsx
+++ b/frontend/src/container/NewWidget/RightContainer/ContextLinks/UpdateContextLinks.tsx
@@ -1,13 +1,6 @@
import { useEffect, useMemo, useState } from 'react';
-import {
- Button,
- Col,
- Form,
- Input as AntInput,
- Input,
- Row,
- Typography,
-} from 'antd';
+import { Button, Col, Form, Input as AntInput, Input, Row } from 'antd';
+import { Typography } from '@signozhq/ui';
import { CONTEXT_LINK_FIELDS } from 'container/NewWidget/RightContainer/ContextLinks/constants';
import {
getInitialValues,
diff --git a/frontend/src/container/NewWidget/RightContainer/ContextLinks/VariablesDropdown.tsx b/frontend/src/container/NewWidget/RightContainer/ContextLinks/VariablesDropdown.tsx
index 0abc271f72..60bd77a2cf 100644
--- a/frontend/src/container/NewWidget/RightContainer/ContextLinks/VariablesDropdown.tsx
+++ b/frontend/src/container/NewWidget/RightContainer/ContextLinks/VariablesDropdown.tsx
@@ -1,5 +1,6 @@
import { ReactNode, useEffect, useMemo, useRef, useState } from 'react';
-import { Dropdown, Typography } from 'antd';
+import { Dropdown } from 'antd';
+import { Typography } from '@signozhq/ui';
import './VariablesDropdown.styles.scss';
diff --git a/frontend/src/container/NewWidget/RightContainer/DashboardYAxisUnitSelectorWrapper.tsx b/frontend/src/container/NewWidget/RightContainer/DashboardYAxisUnitSelectorWrapper.tsx
index 8551291e0f..984f80b2e7 100644
--- a/frontend/src/container/NewWidget/RightContainer/DashboardYAxisUnitSelectorWrapper.tsx
+++ b/frontend/src/container/NewWidget/RightContainer/DashboardYAxisUnitSelectorWrapper.tsx
@@ -1,5 +1,5 @@
import { Dispatch, SetStateAction, useEffect } from 'react';
-import { Typography } from 'antd';
+import { Typography } from '@signozhq/ui';
import YAxisUnitSelectorComponent from 'components/YAxisUnitSelector';
import { YAxisSource } from 'components/YAxisUnitSelector/types';
import useGetYAxisUnit from 'hooks/useGetYAxisUnit';
diff --git a/frontend/src/container/NewWidget/RightContainer/LegendColors/LegendColors.tsx b/frontend/src/container/NewWidget/RightContainer/LegendColors/LegendColors.tsx
index e4d76e393d..e2c3d0d293 100644
--- a/frontend/src/container/NewWidget/RightContainer/LegendColors/LegendColors.tsx
+++ b/frontend/src/container/NewWidget/RightContainer/LegendColors/LegendColors.tsx
@@ -7,7 +7,8 @@ import {
useState,
} from 'react';
import { UseQueryResult } from 'react-query';
-import { Button, Collapse, ColorPicker, Tooltip, Typography } from 'antd';
+import { Button, Collapse, ColorPicker, Tooltip } from 'antd';
+import { Typography } from '@signozhq/ui';
import { themeColors } from 'constants/theme';
import { useQueryBuilder } from 'hooks/queryBuilder/useQueryBuilder';
import { useIsDarkMode } from 'hooks/useDarkMode';
@@ -141,7 +142,7 @@ function LegendColors({
children: (
<div className="legend-colors-content">
{legendLabels.length === 0 ? (
- <Typography.Text type="secondary">
+ <Typography.Text color="muted">
No legends available. Run a query to see legend options.
</Typography.Text>
) : (
diff --git a/frontend/src/container/NewWidget/RightContainer/SettingSections/AlertsSection/AlertsSection.tsx b/frontend/src/container/NewWidget/RightContainer/SettingSections/AlertsSection/AlertsSection.tsx
index 9d9c733c3f..84a8a1b33d 100644
--- a/frontend/src/container/NewWidget/RightContainer/SettingSections/AlertsSection/AlertsSection.tsx
+++ b/frontend/src/container/NewWidget/RightContainer/SettingSections/AlertsSection/AlertsSection.tsx
@@ -1,4 +1,4 @@
-import { Typography } from 'antd';
+import { Typography } from '@signozhq/ui';
import { ConciergeBell, Plus, SquareArrowOutUpRight } from 'lucide-react';
import './AlertsSection.styles.scss';
diff --git a/frontend/src/container/NewWidget/RightContainer/SettingSections/AxesSection/AxesSection.tsx b/frontend/src/container/NewWidget/RightContainer/SettingSections/AxesSection/AxesSection.tsx
index 1a9c82c891..9ed1300c13 100644
--- a/frontend/src/container/NewWidget/RightContainer/SettingSections/AxesSection/AxesSection.tsx
+++ b/frontend/src/container/NewWidget/RightContainer/SettingSections/AxesSection/AxesSection.tsx
@@ -1,5 +1,6 @@
import { Dispatch, SetStateAction } from 'react';
-import { InputNumber, Select, Typography } from 'antd';
+import { InputNumber, Select } from 'antd';
+import { Typography } from '@signozhq/ui';
import { Axis3D, LineChart, Spline } from 'lucide-react';
import SettingsSection from '../../components/SettingsSection/SettingsSection';
diff --git a/frontend/src/container/NewWidget/RightContainer/SettingSections/ChartAppearanceSection/ChartAppearanceSection.tsx b/frontend/src/container/NewWidget/RightContainer/SettingSections/ChartAppearanceSection/ChartAppearanceSection.tsx
index 68a412d53f..61ff61c8b6 100644
--- a/frontend/src/container/NewWidget/RightContainer/SettingSections/ChartAppearanceSection/ChartAppearanceSection.tsx
+++ b/frontend/src/container/NewWidget/RightContainer/SettingSections/ChartAppearanceSection/ChartAppearanceSection.tsx
@@ -1,5 +1,6 @@
import { Dispatch, SetStateAction } from 'react';
-import { Switch, Typography } from 'antd';
+import { Switch } from 'antd';
+import { Typography } from '@signozhq/ui';
import {
FillMode,
LineInterpolation,
diff --git a/frontend/src/container/NewWidget/RightContainer/SettingSections/FormattingUnitsSection/FormattingUnitsSection.tsx b/frontend/src/container/NewWidget/RightContainer/SettingSections/FormattingUnitsSection/FormattingUnitsSection.tsx
index 456f678a4d..4186388ad4 100644
--- a/frontend/src/container/NewWidget/RightContainer/SettingSections/FormattingUnitsSection/FormattingUnitsSection.tsx
+++ b/frontend/src/container/NewWidget/RightContainer/SettingSections/FormattingUnitsSection/FormattingUnitsSection.tsx
@@ -1,5 +1,6 @@
import { Dispatch, SetStateAction } from 'react';
-import { Select, Typography } from 'antd';
+import { Select } from 'antd';
+import { Typography } from '@signozhq/ui';
import { PrecisionOption } from 'components/Graph/types';
import { PanelDisplay } from 'constants/queryBuilder';
import { SlidersHorizontal } from 'lucide-react';
diff --git a/frontend/src/container/NewWidget/RightContainer/SettingSections/GeneralSettingsSection/GeneralSettingsSection.tsx b/frontend/src/container/NewWidget/RightContainer/SettingSections/GeneralSettingsSection/GeneralSettingsSection.tsx
index 2ca4ccdc93..bcd4c1b75a 100644
--- a/frontend/src/container/NewWidget/RightContainer/SettingSections/GeneralSettingsSection/GeneralSettingsSection.tsx
+++ b/frontend/src/container/NewWidget/RightContainer/SettingSections/GeneralSettingsSection/GeneralSettingsSection.tsx
@@ -7,7 +7,8 @@ import {
useState,
} from 'react';
import type { InputRef } from 'antd';
-import { AutoComplete, Input, Typography } from 'antd';
+import { AutoComplete, Input } from 'antd';
+import { Typography } from '@signozhq/ui';
import { popupContainer } from 'utils/selectPopupContainer';
import SettingsSection from '../../components/SettingsSection/SettingsSection';
diff --git a/frontend/src/container/NewWidget/RightContainer/SettingSections/HistogramBucketsSection/HistogramBucketsSection.tsx b/frontend/src/container/NewWidget/RightContainer/SettingSections/HistogramBucketsSection/HistogramBucketsSection.tsx
index 8f24ddfb93..3b2357156d 100644
--- a/frontend/src/container/NewWidget/RightContainer/SettingSections/HistogramBucketsSection/HistogramBucketsSection.tsx
+++ b/frontend/src/container/NewWidget/RightContainer/SettingSections/HistogramBucketsSection/HistogramBucketsSection.tsx
@@ -1,5 +1,6 @@
import { Dispatch, SetStateAction } from 'react';
-import { InputNumber, Switch, Typography } from 'antd';
+import { InputNumber, Switch } from 'antd';
+import { Typography } from '@signozhq/ui';
import SettingsSection from '../../components/SettingsSection/SettingsSection';
diff --git a/frontend/src/container/NewWidget/RightContainer/SettingSections/LegendSection/LegendSection.tsx b/frontend/src/container/NewWidget/RightContainer/SettingSections/LegendSection/LegendSection.tsx
index d2490555fd..497b083453 100644
--- a/frontend/src/container/NewWidget/RightContainer/SettingSections/LegendSection/LegendSection.tsx
+++ b/frontend/src/container/NewWidget/RightContainer/SettingSections/LegendSection/LegendSection.tsx
@@ -1,6 +1,7 @@
import { Dispatch, SetStateAction } from 'react';
import type { UseQueryResult } from 'react-query';
-import { Select, Typography } from 'antd';
+import { Select } from 'antd';
+import { Typography } from '@signozhq/ui';
import { Layers } from 'lucide-react';
import { SuccessResponse } from 'types/api';
import { LegendPosition } from 'types/api/dashboard/getAll';
diff --git a/frontend/src/container/NewWidget/RightContainer/SettingSections/VisualizationSettingsSection/VisualizationSettingsSection.tsx b/frontend/src/container/NewWidget/RightContainer/SettingSections/VisualizationSettingsSection/VisualizationSettingsSection.tsx
index deb2a4a931..c327d74ecd 100644
--- a/frontend/src/container/NewWidget/RightContainer/SettingSections/VisualizationSettingsSection/VisualizationSettingsSection.tsx
+++ b/frontend/src/container/NewWidget/RightContainer/SettingSections/VisualizationSettingsSection/VisualizationSettingsSection.tsx
@@ -1,5 +1,6 @@
import { Dispatch, SetStateAction, useEffect, useState } from 'react';
-import { Select, Switch, Typography } from 'antd';
+import { Select, Switch } from 'antd';
+import { Typography } from '@signozhq/ui';
import TimePreference from 'components/TimePreferenceDropDown';
import { PANEL_TYPES } from 'constants/queryBuilder';
import {
diff --git a/frontend/src/container/NewWidget/RightContainer/Threshold/CustomColor.tsx b/frontend/src/container/NewWidget/RightContainer/Threshold/CustomColor.tsx
index 6053476b65..4fa72140af 100644
--- a/frontend/src/container/NewWidget/RightContainer/Threshold/CustomColor.tsx
+++ b/frontend/src/container/NewWidget/RightContainer/Threshold/CustomColor.tsx
@@ -1,4 +1,4 @@
-import { Typography } from 'antd';
+import { Typography } from '@signozhq/ui';
import { CustomColorProps } from './types';
diff --git a/frontend/src/container/NewWidget/RightContainer/Threshold/Threshold.tsx b/frontend/src/container/NewWidget/RightContainer/Threshold/Threshold.tsx
index b8ea777297..0347de82f4 100644
--- a/frontend/src/container/NewWidget/RightContainer/Threshold/Threshold.tsx
+++ b/frontend/src/container/NewWidget/RightContainer/Threshold/Threshold.tsx
@@ -1,7 +1,8 @@
/* eslint-disable sonarjs/cognitive-complexity */
import { useMemo, useRef, useState } from 'react';
import { useDrag, useDrop, XYCoord } from 'react-dnd';
-import { Button, Input, InputNumber, Select, Space, Typography } from 'antd';
+import { Button, Input, InputNumber, Select, Space } from 'antd';
+import { Typography } from '@signozhq/ui';
import YAxisUnitSelector from 'components/YAxisUnitSelector';
import { Y_AXIS_UNIT_NAMES } from 'components/YAxisUnitSelector/constants';
import { YAxisSource } from 'components/YAxisUnitSelector/types';
diff --git a/frontend/src/container/NewWidget/RightContainer/components/DisconnectValuesSelector/DisconnectValuesModeToggle.tsx b/frontend/src/container/NewWidget/RightContainer/components/DisconnectValuesSelector/DisconnectValuesModeToggle.tsx
index 42360e48ee..905fc2a81c 100644
--- a/frontend/src/container/NewWidget/RightContainer/components/DisconnectValuesSelector/DisconnectValuesModeToggle.tsx
+++ b/frontend/src/container/NewWidget/RightContainer/components/DisconnectValuesSelector/DisconnectValuesModeToggle.tsx
@@ -1,5 +1,4 @@
-import { ToggleGroup, ToggleGroupItem } from '@signozhq/ui';
-import { Typography } from 'antd';
+import { ToggleGroup, ToggleGroupItem, Typography } from '@signozhq/ui';
import { DisconnectedValuesMode } from 'lib/uPlotV2/config/types';
interface DisconnectValuesModeToggleProps {
diff --git a/frontend/src/container/NewWidget/RightContainer/components/DisconnectValuesSelector/DisconnectValuesSelector.tsx b/frontend/src/container/NewWidget/RightContainer/components/DisconnectValuesSelector/DisconnectValuesSelector.tsx
index f158e137e2..9c6ba569f4 100644
--- a/frontend/src/container/NewWidget/RightContainer/components/DisconnectValuesSelector/DisconnectValuesSelector.tsx
+++ b/frontend/src/container/NewWidget/RightContainer/components/DisconnectValuesSelector/DisconnectValuesSelector.tsx
@@ -1,5 +1,5 @@
import { useEffect, useState } from 'react';
-import { Typography } from 'antd';
+import { Typography } from '@signozhq/ui';
import { DisconnectedValuesMode } from 'lib/uPlotV2/config/types';
import DisconnectValuesModeToggle from './DisconnectValuesModeToggle';
diff --git a/frontend/src/container/NewWidget/RightContainer/components/FillModeSelector/FillModeSelector.tsx b/frontend/src/container/NewWidget/RightContainer/components/FillModeSelector/FillModeSelector.tsx
index 3e94e3afa4..ec4f8b4ba2 100644
--- a/frontend/src/container/NewWidget/RightContainer/components/FillModeSelector/FillModeSelector.tsx
+++ b/frontend/src/container/NewWidget/RightContainer/components/FillModeSelector/FillModeSelector.tsx
@@ -1,5 +1,5 @@
import { ToggleGroup, ToggleGroupItem } from '@signozhq/ui';
-import { Typography } from 'antd';
+import { Typography } from '@signozhq/ui';
import { FillMode } from 'lib/uPlotV2/config/types';
import './FillModeSelector.styles.scss';
diff --git a/frontend/src/container/NewWidget/RightContainer/components/LineInterpolationSelector/LineInterpolationSelector.tsx b/frontend/src/container/NewWidget/RightContainer/components/LineInterpolationSelector/LineInterpolationSelector.tsx
index ad582b0b72..53f550ed4e 100644
--- a/frontend/src/container/NewWidget/RightContainer/components/LineInterpolationSelector/LineInterpolationSelector.tsx
+++ b/frontend/src/container/NewWidget/RightContainer/components/LineInterpolationSelector/LineInterpolationSelector.tsx
@@ -1,5 +1,4 @@
-import { ToggleGroup, ToggleGroupItem } from '@signozhq/ui';
-import { Typography } from 'antd';
+import { ToggleGroup, ToggleGroupItem, Typography } from '@signozhq/ui';
import { LineInterpolation } from 'lib/uPlotV2/config/types';
import './LineInterpolationSelector.styles.scss';
diff --git a/frontend/src/container/NewWidget/RightContainer/components/LineStyleSelector/LineStyleSelector.tsx b/frontend/src/container/NewWidget/RightContainer/components/LineStyleSelector/LineStyleSelector.tsx
index 3d4d98933c..4aa5cf503b 100644
--- a/frontend/src/container/NewWidget/RightContainer/components/LineStyleSelector/LineStyleSelector.tsx
+++ b/frontend/src/container/NewWidget/RightContainer/components/LineStyleSelector/LineStyleSelector.tsx
@@ -1,5 +1,5 @@
import { ToggleGroup, ToggleGroupItem } from '@signozhq/ui';
-import { Typography } from 'antd';
+import { Typography } from '@signozhq/ui';
import { LineStyle } from 'lib/uPlotV2/config/types';
import './LineStyleSelector.styles.scss';
diff --git a/frontend/src/container/NewWidget/RightContainer/index.tsx b/frontend/src/container/NewWidget/RightContainer/index.tsx
index 149d5f559d..a31d2e7380 100644
--- a/frontend/src/container/NewWidget/RightContainer/index.tsx
+++ b/frontend/src/container/NewWidget/RightContainer/index.tsx
@@ -1,6 +1,6 @@
import { Dispatch, SetStateAction, useMemo } from 'react';
import { UseQueryResult } from 'react-query';
-import { Typography } from 'antd';
+import { Typography } from '@signozhq/ui';
import { ExecStats } from 'api/v5/v5';
import { PrecisionOption, PrecisionOptionsEnum } from 'components/Graph/types';
import { PANEL_TYPES, PanelDisplay } from 'constants/queryBuilder';
diff --git a/frontend/src/container/NewWidget/index.tsx b/frontend/src/container/NewWidget/index.tsx
index 7808d3a883..f8111e4856 100644
--- a/frontend/src/container/NewWidget/index.tsx
+++ b/frontend/src/container/NewWidget/index.tsx
@@ -12,7 +12,8 @@ import {
ResizablePanel,
ResizablePanelGroup,
} from '@signozhq/ui';
-import { Flex, Modal, Space, Typography } from 'antd';
+import { Flex, Modal, Space } from 'antd';
+import { Typography } from '@signozhq/ui';
import logEvent from 'api/common/logEvent';
import { PrecisionOption, PrecisionOptionsEnum } from 'components/Graph/types';
import OverlayScrollbar from 'components/OverlayScrollbar/OverlayScrollbar';
diff --git a/frontend/src/container/NoLogs/NoLogs.tsx b/frontend/src/container/NoLogs/NoLogs.tsx
index 6093f1627f..dde2bb1896 100644
--- a/frontend/src/container/NoLogs/NoLogs.tsx
+++ b/frontend/src/container/NoLogs/NoLogs.tsx
@@ -1,4 +1,4 @@
-import { Typography } from 'antd';
+import { Typography } from '@signozhq/ui';
import logEvent from 'api/common/logEvent';
import ROUTES from 'constants/routes';
import { useGetTenantLicense } from 'hooks/useGetTenantLicense';
diff --git a/frontend/src/container/OnboardingContainer/OnboardingContainer.tsx b/frontend/src/container/OnboardingContainer/OnboardingContainer.tsx
index f52438783c..97c170c34c 100644
--- a/frontend/src/container/OnboardingContainer/OnboardingContainer.tsx
+++ b/frontend/src/container/OnboardingContainer/OnboardingContainer.tsx
@@ -5,7 +5,8 @@ import { useTranslation } from 'react-i18next';
import { useQuery } from 'react-query';
import { useEffectOnce } from 'react-use';
import { ArrowRightOutlined } from '@ant-design/icons';
-import { Button, Card, Form, Typography } from 'antd';
+import { Button, Card, Form } from 'antd';
+import { Typography } from '@signozhq/ui';
import logEvent from 'api/common/logEvent';
import getIngestionData from 'api/settings/getIngestionData';
import cx from 'classnames';
@@ -349,9 +350,9 @@ export default function Onboarding(): JSX.Element {
<Typography.Title className="moduleTitleStyle" level={4}>
{selectedUseCase.title}
</Typography.Title>
- <Typography.Paragraph className="moduleDesc">
+ <Typography.Text className="moduleDesc">
{selectedUseCase.desc}
- </Typography.Paragraph>
+ </Typography.Text>
</Card>
);
})}
diff --git a/frontend/src/container/OnboardingContainer/Steps/DataSource/DataSource.tsx b/frontend/src/container/OnboardingContainer/Steps/DataSource/DataSource.tsx
index 117febcdce..4b2f2405d5 100644
--- a/frontend/src/container/OnboardingContainer/Steps/DataSource/DataSource.tsx
+++ b/frontend/src/container/OnboardingContainer/Steps/DataSource/DataSource.tsx
@@ -1,7 +1,8 @@
import React, { useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
import { LoadingOutlined } from '@ant-design/icons';
-import { Button, Card, Form, Input, Select, Space, Typography } from 'antd';
+import { Button, Card, Form, Input, Select, Space } from 'antd';
+import { Typography } from '@signozhq/ui';
import logEvent from 'api/common/logEvent';
import cx from 'classnames';
import { QueryParams } from 'constants/query';
diff --git a/frontend/src/container/OnboardingContainer/Steps/EnvironmentDetails/EnvironmentDetails.tsx b/frontend/src/container/OnboardingContainer/Steps/EnvironmentDetails/EnvironmentDetails.tsx
index 563aab096b..19905485a5 100644
--- a/frontend/src/container/OnboardingContainer/Steps/EnvironmentDetails/EnvironmentDetails.tsx
+++ b/frontend/src/container/OnboardingContainer/Steps/EnvironmentDetails/EnvironmentDetails.tsx
@@ -1,7 +1,8 @@
import { useState } from 'react';
import { useTranslation } from 'react-i18next';
import { LoadingOutlined } from '@ant-design/icons';
-import { Button, Card, Form, Input, Space, Typography } from 'antd';
+import { Button, Card, Form, Input, Space } from 'antd';
+import { Typography } from '@signozhq/ui';
import logEvent from 'api/common/logEvent';
import cx from 'classnames';
import { useOnboardingContext } from 'container/OnboardingContainer/context/OnboardingContext';
@@ -205,7 +206,7 @@ export default function EnvironmentDetails(): JSX.Element {
{errorDetails && (
<div className="error-container">
- <Typography.Text type="danger"> {errorDetails} </Typography.Text>
+ <Typography.Text color="danger"> {errorDetails} </Typography.Text>
</div>
)}
</Form>
diff --git a/frontend/src/container/OnboardingContainer/Steps/SelectMethod/SelectMethod.tsx b/frontend/src/container/OnboardingContainer/Steps/SelectMethod/SelectMethod.tsx
index cc1f29bdb0..d60a58f7cc 100644
--- a/frontend/src/container/OnboardingContainer/Steps/SelectMethod/SelectMethod.tsx
+++ b/frontend/src/container/OnboardingContainer/Steps/SelectMethod/SelectMethod.tsx
@@ -1,5 +1,6 @@
import { useState } from 'react';
-import { Radio, RadioChangeEvent, Space, Typography } from 'antd';
+import { Radio, RadioChangeEvent, Space } from 'antd';
+import { Typography } from '@signozhq/ui';
import {
OnboardingMethods,
useOnboardingContext,
diff --git a/frontend/src/container/OnboardingContainer/common/ModuleStepsContainer/ModuleStepsContainer.tsx b/frontend/src/container/OnboardingContainer/common/ModuleStepsContainer/ModuleStepsContainer.tsx
index 8ff1101b22..55fe88c29a 100644
--- a/frontend/src/container/OnboardingContainer/common/ModuleStepsContainer/ModuleStepsContainer.tsx
+++ b/frontend/src/container/OnboardingContainer/common/ModuleStepsContainer/ModuleStepsContainer.tsx
@@ -4,7 +4,8 @@ import {
ArrowRightOutlined,
LeftCircleOutlined,
} from '@ant-design/icons';
-import { Button, Space, Steps, Typography } from 'antd';
+import { Button, Space, Steps } from 'antd';
+import { Typography } from '@signozhq/ui';
import logEvent from 'api/common/logEvent';
import LaunchChatSupport from 'components/LaunchChatSupport/LaunchChatSupport';
import { onboardingHelpMessage } from 'components/LaunchChatSupport/util';
diff --git a/frontend/src/container/OnboardingQuestionaire/InviteTeamMembers/InviteTeamMembers.tsx b/frontend/src/container/OnboardingQuestionaire/InviteTeamMembers/InviteTeamMembers.tsx
index ce603edc01..8ca94a39e7 100644
--- a/frontend/src/container/OnboardingQuestionaire/InviteTeamMembers/InviteTeamMembers.tsx
+++ b/frontend/src/container/OnboardingQuestionaire/InviteTeamMembers/InviteTeamMembers.tsx
@@ -1,7 +1,8 @@
import { useCallback, useEffect, useState } from 'react';
import { useMutation } from 'react-query';
import { Button, Callout, Input } from '@signozhq/ui';
-import { Select, Typography } from 'antd';
+import { Select } from 'antd';
+import { Typography } from '@signozhq/ui';
import logEvent from 'api/common/logEvent';
import inviteUsers from 'api/v1/invite/bulk/create';
import AuthError from 'components/AuthError/AuthError';
diff --git a/frontend/src/container/OnboardingQuestionaire/OnboardingQuestionHeader/OnboardingQuestionHeader.tsx b/frontend/src/container/OnboardingQuestionaire/OnboardingQuestionHeader/OnboardingQuestionHeader.tsx
index 00b62640e4..1a874c5516 100644
--- a/frontend/src/container/OnboardingQuestionaire/OnboardingQuestionHeader/OnboardingQuestionHeader.tsx
+++ b/frontend/src/container/OnboardingQuestionaire/OnboardingQuestionHeader/OnboardingQuestionHeader.tsx
@@ -1,4 +1,4 @@
-import { Typography } from 'antd';
+import { Typography } from '@signozhq/ui';
import barberPoolUrl from '@/assets/svgs/barber-pool.svg';
@@ -19,9 +19,9 @@ export function OnboardingQuestionHeader({
<Typography.Title level={4} className="onboarding-header-title">
{title}
</Typography.Title>
- <Typography.Paragraph className="onboarding-header-subtitle">
+ <Typography.Text className="onboarding-header-subtitle">
{subtitle}
- </Typography.Paragraph>
+ </Typography.Text>
</div>
);
}
diff --git a/frontend/src/container/OnboardingQuestionaire/OptimiseSignozNeeds/OptimiseSignozNeeds.tsx b/frontend/src/container/OnboardingQuestionaire/OptimiseSignozNeeds/OptimiseSignozNeeds.tsx
index 87ee57b3c3..eec71d02b5 100644
--- a/frontend/src/container/OnboardingQuestionaire/OptimiseSignozNeeds/OptimiseSignozNeeds.tsx
+++ b/frontend/src/container/OnboardingQuestionaire/OptimiseSignozNeeds/OptimiseSignozNeeds.tsx
@@ -1,6 +1,7 @@
import { useEffect, useState } from 'react';
import { Button } from '@signozhq/ui';
-import { Slider, Typography } from 'antd';
+import { Slider } from 'antd';
+import { Typography } from '@signozhq/ui';
import logEvent from 'api/common/logEvent';
import { ArrowRight, Loader2, Minus } from 'lucide-react';
@@ -194,9 +195,9 @@ function OptimiseSignozNeeds({
<div className="questions-form-container">
<div className="questions-form">
<div className="form-group">
- <Typography.Paragraph className="question">
+ <Typography.Text className="question">
What does your scale approximately look like?
- </Typography.Paragraph>
+ </Typography.Text>
</div>
<div className="form-group">
diff --git a/frontend/src/container/OnboardingQuestionaire/OrgQuestions/OrgQuestions.tsx b/frontend/src/container/OnboardingQuestionaire/OrgQuestions/OrgQuestions.tsx
index 3aa3df91bf..487fe67ebf 100644
--- a/frontend/src/container/OnboardingQuestionaire/OrgQuestions/OrgQuestions.tsx
+++ b/frontend/src/container/OnboardingQuestionaire/OrgQuestions/OrgQuestions.tsx
@@ -6,7 +6,7 @@ import {
RadioGroupItem,
RadioGroupLabel,
} from '@signozhq/ui';
-import { Typography } from 'antd';
+import { Typography } from '@signozhq/ui';
import logEvent from 'api/common/logEvent';
import { ArrowRight } from 'lucide-react';
@@ -133,9 +133,9 @@ function OrgQuestions({ orgDetails, onNext }: OrgQuestionsProps): JSX.Element {
<Typography.Title level={4} className="onboarding-header-title">
Welcome to SigNoz Cloud
</Typography.Title>
- <Typography.Paragraph className="onboarding-header-subtitle">
+ <Typography.Text className="onboarding-header-subtitle">
Let&apos;s get you started
- </Typography.Paragraph>
+ </Typography.Text>
</div>
<div className="questions-form-container">
diff --git a/frontend/src/container/OnboardingV2Container/AddDataSource/AddDataSource.tsx b/frontend/src/container/OnboardingV2Container/AddDataSource/AddDataSource.tsx
index 6357fbdb94..a78c3bbd9f 100644
--- a/frontend/src/container/OnboardingV2Container/AddDataSource/AddDataSource.tsx
+++ b/frontend/src/container/OnboardingV2Container/AddDataSource/AddDataSource.tsx
@@ -9,8 +9,8 @@ import {
Skeleton,
Space,
Steps,
- Typography,
} from 'antd';
+import { Typography } from '@signozhq/ui';
import logEvent from 'api/common/logEvent';
import LaunchChatSupport from 'components/LaunchChatSupport/LaunchChatSupport';
import { DOCS_BASE_URL } from 'constants/app';
diff --git a/frontend/src/container/OnboardingV2Container/IngestionDetails/IngestionDetails.tsx b/frontend/src/container/OnboardingV2Container/IngestionDetails/IngestionDetails.tsx
index c956b70499..87d901a865 100644
--- a/frontend/src/container/OnboardingV2Container/IngestionDetails/IngestionDetails.tsx
+++ b/frontend/src/container/OnboardingV2Container/IngestionDetails/IngestionDetails.tsx
@@ -1,6 +1,7 @@
import { useEffect, useState } from 'react';
import { useCopyToClipboard } from 'react-use';
-import { Button, Skeleton, Tooltip, Typography } from 'antd';
+import { Button, Skeleton, Tooltip } from 'antd';
+import { Typography } from '@signozhq/ui';
import logEvent from 'api/common/logEvent';
import { useGetIngestionKeys } from 'api/generated/services/gateway';
import { GatewaytypesIngestionKeyDTO } from 'api/generated/services/sigNoz.schemas';
diff --git a/frontend/src/container/OnboardingV2Container/InviteTeamMembers/InviteTeamMembers.tsx b/frontend/src/container/OnboardingV2Container/InviteTeamMembers/InviteTeamMembers.tsx
index 2c70012c55..428b908f24 100644
--- a/frontend/src/container/OnboardingV2Container/InviteTeamMembers/InviteTeamMembers.tsx
+++ b/frontend/src/container/OnboardingV2Container/InviteTeamMembers/InviteTeamMembers.tsx
@@ -1,7 +1,8 @@
import { useCallback, useEffect, useState } from 'react';
import { useMutation } from 'react-query';
import { Color } from '@signozhq/design-tokens';
-import { Button, Input, Select, Typography } from 'antd';
+import { Button, Input, Select } from 'antd';
+import { Typography } from '@signozhq/ui';
import logEvent from 'api/common/logEvent';
import inviteUsers from 'api/v1/invite/bulk/create';
import { useNotifications } from 'hooks/useNotifications';
@@ -257,7 +258,7 @@ function InviteTeamMembers({
{hasInvalidEmails && (
<div className="error-message-container">
- <Typography.Text className="error-message" type="danger">
+ <Typography.Text className="error-message" color="danger">
<TriangleAlert size={14} /> Please enter valid emails for all team
members
</Typography.Text>
diff --git a/frontend/src/container/OptionsMenu/AddColumnField/index.tsx b/frontend/src/container/OptionsMenu/AddColumnField/index.tsx
index 8c0d2d963f..9a31154132 100644
--- a/frontend/src/container/OptionsMenu/AddColumnField/index.tsx
+++ b/frontend/src/container/OptionsMenu/AddColumnField/index.tsx
@@ -1,6 +1,7 @@
import { useTranslation } from 'react-i18next';
import { SearchOutlined } from '@ant-design/icons';
-import { Input, Spin, Typography } from 'antd';
+import { Input, Spin } from 'antd';
+import { Typography } from '@signozhq/ui';
import { useIsDarkMode } from 'hooks/useDarkMode';
import { FieldTitle } from '../styles';
diff --git a/frontend/src/container/OptionsMenu/styles.ts b/frontend/src/container/OptionsMenu/styles.ts
index 08530660b7..143a603d1a 100644
--- a/frontend/src/container/OptionsMenu/styles.ts
+++ b/frontend/src/container/OptionsMenu/styles.ts
@@ -1,4 +1,5 @@
-import { Card, Space, Typography } from 'antd';
+import { Card, Space } from 'antd';
+import { Typography } from '@signozhq/ui';
import styled from 'styled-components';
export const OptionsContainer = styled(Card)`
diff --git a/frontend/src/container/OrganizationSettings/AuthDomain/CreateEdit/AuthnProviderSelector.tsx b/frontend/src/container/OrganizationSettings/AuthDomain/CreateEdit/AuthnProviderSelector.tsx
index c85150db1c..2abc1afc61 100644
--- a/frontend/src/container/OrganizationSettings/AuthDomain/CreateEdit/AuthnProviderSelector.tsx
+++ b/frontend/src/container/OrganizationSettings/AuthDomain/CreateEdit/AuthnProviderSelector.tsx
@@ -1,5 +1,6 @@
import { GoogleSquareFilled, KeyOutlined } from '@ant-design/icons';
-import { Button, Typography } from 'antd';
+import { Button } from 'antd';
+import { Typography } from '@signozhq/ui';
import { AuthtypesAuthNProviderDTO } from 'api/generated/services/sigNoz.schemas';
import './CreateEdit.styles.scss';
@@ -57,10 +58,10 @@ function AuthnProviderSelector({
<Typography.Title level={4}>
Configure Authentication Method
</Typography.Title>
- <Typography.Paragraph italic>
+ <Typography.Text italic>
SigNoz supports the following single sign-on services (SSO). Get started
with setting your project’s SSO below
- </Typography.Paragraph>
+ </Typography.Text>
</section>
<section className="selector">
{authnProviders.map((provider) => {
@@ -70,9 +71,9 @@ function AuthnProviderSelector({
<span className="icon">{provider.icon}</span>
<div className="title-description">
<Typography.Text className="title">{provider.title}</Typography.Text>
- <Typography.Paragraph className="description">
+ <Typography.Text className="description">
{provider.description}
- </Typography.Paragraph>
+ </Typography.Text>
</div>
<Button
onClick={(): void => setAuthnProvider(provider.key)}
diff --git a/frontend/src/container/OrganizationSettings/InviteTeamMembers/index.tsx b/frontend/src/container/OrganizationSettings/InviteTeamMembers/index.tsx
index 4cfb849afa..ce4701eb6f 100644
--- a/frontend/src/container/OrganizationSettings/InviteTeamMembers/index.tsx
+++ b/frontend/src/container/OrganizationSettings/InviteTeamMembers/index.tsx
@@ -1,14 +1,7 @@
import { useTranslation } from 'react-i18next';
import { DeleteOutlined, PlusOutlined } from '@ant-design/icons';
-import {
- Button,
- Form,
- FormInstance,
- Input,
- Select,
- Space,
- Typography,
-} from 'antd';
+import { Button, Form, FormInstance, Input, Select, Space } from 'antd';
+import { Typography } from '@signozhq/ui';
import { requireErrorMessage } from 'utils/form/requireErrorMessage';
import { InviteMemberFormValues } from '../utils';
diff --git a/frontend/src/container/PaginatedTraceFlamegraph/PaginatedTraceFlamegraph.tsx b/frontend/src/container/PaginatedTraceFlamegraph/PaginatedTraceFlamegraph.tsx
index bb7e4a2bc4..41ed493a11 100644
--- a/frontend/src/container/PaginatedTraceFlamegraph/PaginatedTraceFlamegraph.tsx
+++ b/frontend/src/container/PaginatedTraceFlamegraph/PaginatedTraceFlamegraph.tsx
@@ -1,6 +1,7 @@
import { useEffect, useMemo, useState } from 'react';
import { useParams } from 'react-router-dom';
-import { Progress, Skeleton, Tooltip, Typography } from 'antd';
+import { Progress, Skeleton, Tooltip } from 'antd';
+import { Typography } from '@signozhq/ui';
import { AxiosError } from 'axios';
import Spinner from 'components/Spinner';
import { themeColors } from 'constants/theme';
@@ -151,7 +152,7 @@ function TraceFlamegraph(props: ITraceFlamegraphProps): JSX.Element {
<section className="service-name">
<div className="square-box" style={{ backgroundColor: color }} />
<Tooltip title={service}>
- <Typography.Text className="service-text" ellipsis>
+ <Typography.Text className="service-text" truncate={1}>
{service}
</Typography.Text>
</Tooltip>
diff --git a/frontend/src/container/PaginatedTraceFlamegraph/TraceFlamegraphStates/Error/Error.tsx b/frontend/src/container/PaginatedTraceFlamegraph/TraceFlamegraphStates/Error/Error.tsx
index 4b39556b6a..36302e4717 100644
--- a/frontend/src/container/PaginatedTraceFlamegraph/TraceFlamegraphStates/Error/Error.tsx
+++ b/frontend/src/container/PaginatedTraceFlamegraph/TraceFlamegraphStates/Error/Error.tsx
@@ -1,4 +1,5 @@
-import { Tooltip, Typography } from 'antd';
+import { Tooltip } from 'antd';
+import { Typography } from '@signozhq/ui';
import { AxiosError } from 'axios';
import noDataUrl from '@/assets/Icons/no-data.svg';
diff --git a/frontend/src/container/PaginatedTraceFlamegraph/TraceFlamegraphStates/NoData/NoData.tsx b/frontend/src/container/PaginatedTraceFlamegraph/TraceFlamegraphStates/NoData/NoData.tsx
index 0be04ffc23..1e0bddde97 100644
--- a/frontend/src/container/PaginatedTraceFlamegraph/TraceFlamegraphStates/NoData/NoData.tsx
+++ b/frontend/src/container/PaginatedTraceFlamegraph/TraceFlamegraphStates/NoData/NoData.tsx
@@ -1,4 +1,4 @@
-import { Typography } from 'antd';
+import { Typography } from '@signozhq/ui';
interface INoDataProps {
id: string;
diff --git a/frontend/src/container/PanelWrapper/__tests__/__snapshots__/ValuePanelWrapper.test.tsx.snap b/frontend/src/container/PanelWrapper/__tests__/__snapshots__/ValuePanelWrapper.test.tsx.snap
index 6b57e6fa89..c37afba341 100644
--- a/frontend/src/container/PanelWrapper/__tests__/__snapshots__/ValuePanelWrapper.test.tsx.snap
+++ b/frontend/src/container/PanelWrapper/__tests__/__snapshots__/ValuePanelWrapper.test.tsx.snap
@@ -34,8 +34,10 @@ exports[`Value panel wrappper tests should render tooltip when there are conflic
<div
class="c0"
>
- <article
- class="ant-typography css-dev-only-do-not-override-2i2tap"
+ <p
+ class="_typography_ulrzs_1"
+ data-slot="typography"
+ data-variant="text"
/>
</div>
<div
@@ -47,20 +49,24 @@ exports[`Value panel wrappper tests should render tooltip when there are conflic
<div
class="value-text-container"
>
- <span
- class="ant-typography value-graph-text css-dev-only-do-not-override-2i2tap"
+ <p
+ class="_typography_ulrzs_1 value-graph-text"
+ data-slot="typography"
data-testid="value-graph-text"
+ data-variant="text"
style="color: Blue; font-size: 16px;"
>
295.43
- </span>
- <span
- class="ant-typography value-graph-unit css-dev-only-do-not-override-2i2tap"
+ </p>
+ <p
+ class="_typography_ulrzs_1 value-graph-unit"
+ data-slot="typography"
data-testid="value-graph-suffix-unit"
+ data-variant="text"
style="color: Blue; font-size: calc(16px * 0.7);"
>
ms
- </span>
+ </p>
</div>
<div
class="value-graph-textconflict"
diff --git a/frontend/src/container/PipelinePage/PipelineListsView/PipelineListsView.tsx b/frontend/src/container/PipelinePage/PipelineListsView/PipelineListsView.tsx
index 24265ae2ee..e922671b55 100644
--- a/frontend/src/container/PipelinePage/PipelineListsView/PipelineListsView.tsx
+++ b/frontend/src/container/PipelinePage/PipelineListsView/PipelineListsView.tsx
@@ -9,7 +9,8 @@ import { DndProvider } from 'react-dnd';
import { HTML5Backend } from 'react-dnd-html5-backend';
import { useTranslation } from 'react-i18next';
import { ExclamationCircleOutlined, PlusOutlined } from '@ant-design/icons';
-import { Card, Form, Modal, Table, Typography } from 'antd';
+import { Card, Form, Modal, Table } from 'antd';
+import { Typography } from '@signozhq/ui';
import type { ExpandableConfig } from 'antd/es/table/interface';
import logEvent from 'api/common/logEvent';
import savePipeline from 'api/pipeline/post';
diff --git a/frontend/src/container/PipelinePage/PipelineListsView/styles.ts b/frontend/src/container/PipelinePage/PipelineListsView/styles.ts
index 2206bcdb1b..0bbd277ef1 100644
--- a/frontend/src/container/PipelinePage/PipelineListsView/styles.ts
+++ b/frontend/src/container/PipelinePage/PipelineListsView/styles.ts
@@ -1,4 +1,5 @@
-import { Avatar, Button, Table, TableProps, Typography } from 'antd';
+import { Avatar, Button, Table, TableProps } from 'antd';
+import { Typography } from '@signozhq/ui';
import { themeColors } from 'constants/theme';
import { StyledCSS } from 'container/GantChart/Trace/styles';
import styled from 'styled-components';
diff --git a/frontend/src/container/PipelinePage/tests/__snapshots__/PipelinePageLayout.test.tsx.snap b/frontend/src/container/PipelinePage/tests/__snapshots__/PipelinePageLayout.test.tsx.snap
index 4bb38ff4a4..f06c93a9d7 100644
--- a/frontend/src/container/PipelinePage/tests/__snapshots__/PipelinePageLayout.test.tsx.snap
+++ b/frontend/src/container/PipelinePage/tests/__snapshots__/PipelinePageLayout.test.tsx.snap
@@ -112,8 +112,10 @@ exports[`PipelinePage container test should render PipelinePageLayout section 1`
title="learn_more"
/>
<div>
- <article
- class="ant-typography css-dev-only-do-not-override-2i2tap"
+ <p
+ class="_typography_ulrzs_1"
+ data-slot="typography"
+ data-variant="text"
>
learn_more 
<a
@@ -123,7 +125,7 @@ exports[`PipelinePage container test should render PipelinePageLayout section 1`
>
here
</a>
- </article>
+ </p>
</div>
</div>
</div>
diff --git a/frontend/src/container/PlannedDowntime/PlannedDowntime.tsx b/frontend/src/container/PlannedDowntime/PlannedDowntime.tsx
index 133a4a6efa..8028844f7c 100644
--- a/frontend/src/container/PlannedDowntime/PlannedDowntime.tsx
+++ b/frontend/src/container/PlannedDowntime/PlannedDowntime.tsx
@@ -2,7 +2,8 @@ import React, { ChangeEvent, useEffect, useState } from 'react';
import { useHistory } from 'react-router-dom';
import { PlusOutlined } from '@ant-design/icons';
import { Color } from '@signozhq/design-tokens';
-import { Button, Flex, Form, Input, Tooltip, Typography } from 'antd';
+import { Button, Flex, Form, Input, Tooltip } from 'antd';
+import { Typography } from '@signozhq/ui';
import {
useDeleteDowntimeScheduleByID,
useListDowntimeSchedules,
diff --git a/frontend/src/container/PlannedDowntime/PlannedDowntimeDeleteModal.tsx b/frontend/src/container/PlannedDowntime/PlannedDowntimeDeleteModal.tsx
index 1be5b8fa48..7ce9af4ce0 100644
--- a/frontend/src/container/PlannedDowntime/PlannedDowntimeDeleteModal.tsx
+++ b/frontend/src/container/PlannedDowntime/PlannedDowntimeDeleteModal.tsx
@@ -1,5 +1,6 @@
import { SetStateAction } from 'react';
-import { Button, Modal, Typography } from 'antd';
+import { Button, Modal } from 'antd';
+import { Typography } from '@signozhq/ui';
import { Trash2, X } from 'lucide-react';
import './PlannedDowntime.styles.scss';
diff --git a/frontend/src/container/PlannedDowntime/PlannedDowntimeForm.tsx b/frontend/src/container/PlannedDowntime/PlannedDowntimeForm.tsx
index f4384ed4d4..2489577c53 100644
--- a/frontend/src/container/PlannedDowntime/PlannedDowntimeForm.tsx
+++ b/frontend/src/container/PlannedDowntime/PlannedDowntimeForm.tsx
@@ -10,8 +10,8 @@ import {
Select,
SelectProps,
Spin,
- Typography,
} from 'antd';
+import { Typography } from '@signozhq/ui';
import type { DefaultOptionType } from 'antd/es/select';
import { convertToApiError } from 'api/ErrorResponseHandlerForGeneratedAPIs';
import {
diff --git a/frontend/src/container/PlannedDowntime/PlannedDowntimeList.tsx b/frontend/src/container/PlannedDowntime/PlannedDowntimeList.tsx
index 992087c0f3..31fc527ff6 100644
--- a/frontend/src/container/PlannedDowntime/PlannedDowntimeList.tsx
+++ b/frontend/src/container/PlannedDowntime/PlannedDowntimeList.tsx
@@ -1,16 +1,8 @@
import { ReactNode, useEffect } from 'react';
import { UseQueryResult } from 'react-query';
import { Color } from '@signozhq/design-tokens';
-import {
- Collapse,
- Flex,
- Space,
- Table,
- TableProps,
- Tag,
- Tooltip,
- Typography,
-} from 'antd';
+import { Collapse, Flex, Space, Table, TableProps, Tag, Tooltip } from 'antd';
+import { Typography } from '@signozhq/ui';
import type { DefaultOptionType } from 'antd/es/select';
import type {
ListDowntimeSchedules200,
diff --git a/frontend/src/container/PublicDashboardContainer/PublicDashboardContainer.tsx b/frontend/src/container/PublicDashboardContainer/PublicDashboardContainer.tsx
index 3e7d4d54b0..93c3caf606 100644
--- a/frontend/src/container/PublicDashboardContainer/PublicDashboardContainer.tsx
+++ b/frontend/src/container/PublicDashboardContainer/PublicDashboardContainer.tsx
@@ -1,6 +1,6 @@
import { useMemo, useState } from 'react';
import RGL, { WidthProvider } from 'react-grid-layout';
-import { Typography } from 'antd';
+import { Typography } from '@signozhq/ui';
import cx from 'classnames';
import { PANEL_GROUP_TYPES, PANEL_TYPES } from 'constants/queryBuilder';
import { themeColors } from 'constants/theme';
diff --git a/frontend/src/container/QueryBuilder/components/AdditionalFiltersToggler/AdditionalFiltersToggler.styled.ts b/frontend/src/container/QueryBuilder/components/AdditionalFiltersToggler/AdditionalFiltersToggler.styled.ts
index cbc5f16d56..624ba9f64b 100644
--- a/frontend/src/container/QueryBuilder/components/AdditionalFiltersToggler/AdditionalFiltersToggler.styled.ts
+++ b/frontend/src/container/QueryBuilder/components/AdditionalFiltersToggler/AdditionalFiltersToggler.styled.ts
@@ -1,6 +1,7 @@
import { MinusSquareOutlined, PlusSquareOutlined } from '@ant-design/icons';
import { Color } from '@signozhq/design-tokens';
-import { Col, Typography } from 'antd';
+import { Col } from 'antd';
+import { Typography } from '@signozhq/ui';
import styled, { css } from 'styled-components';
const IconCss = css`
diff --git a/frontend/src/container/QueryBuilder/components/AdditionalFiltersToggler/AdditionalFiltersToggler.tsx b/frontend/src/container/QueryBuilder/components/AdditionalFiltersToggler/AdditionalFiltersToggler.tsx
index ae84c52027..820a56760e 100644
--- a/frontend/src/container/QueryBuilder/components/AdditionalFiltersToggler/AdditionalFiltersToggler.tsx
+++ b/frontend/src/container/QueryBuilder/components/AdditionalFiltersToggler/AdditionalFiltersToggler.tsx
@@ -1,6 +1,7 @@
import { Fragment, memo, ReactNode, useState } from 'react';
import { Color } from '@signozhq/design-tokens';
-import { Col, Row, Typography } from 'antd';
+import { Col, Row } from 'antd';
+import { Typography } from '@signozhq/ui';
import { Minus, Plus } from 'lucide-react';
// ** Types
diff --git a/frontend/src/container/QueryBuilder/components/FilterLabel/FilterLabel.tsx b/frontend/src/container/QueryBuilder/components/FilterLabel/FilterLabel.tsx
index 5c7f3a53e3..83ba9ea383 100644
--- a/frontend/src/container/QueryBuilder/components/FilterLabel/FilterLabel.tsx
+++ b/frontend/src/container/QueryBuilder/components/FilterLabel/FilterLabel.tsx
@@ -1,5 +1,5 @@
import { memo } from 'react';
-import { Typography } from 'antd';
+import { Typography } from '@signozhq/ui';
import { useIsDarkMode } from 'hooks/useDarkMode';
// ** Types
diff --git a/frontend/src/container/QueryBuilder/components/HavingFilterTag/HavingFilterTag.styled.ts b/frontend/src/container/QueryBuilder/components/HavingFilterTag/HavingFilterTag.styled.ts
index e733133cc7..1ef2b4dd36 100644
--- a/frontend/src/container/QueryBuilder/components/HavingFilterTag/HavingFilterTag.styled.ts
+++ b/frontend/src/container/QueryBuilder/components/HavingFilterTag/HavingFilterTag.styled.ts
@@ -1,7 +1,7 @@
-import { Tag, Typography } from 'antd';
+import { Tag } from 'antd';
import styled from 'styled-components';
-export const StyledText = styled(Typography.Text)`
+export const StyledText = styled.span`
cursor: pointer;
`;
diff --git a/frontend/src/container/QueryBuilder/components/HavingFilterTag/HavingFilterTag.tsx b/frontend/src/container/QueryBuilder/components/HavingFilterTag/HavingFilterTag.tsx
index 1b8ceeaaf0..03314c38af 100644
--- a/frontend/src/container/QueryBuilder/components/HavingFilterTag/HavingFilterTag.tsx
+++ b/frontend/src/container/QueryBuilder/components/HavingFilterTag/HavingFilterTag.tsx
@@ -13,9 +13,9 @@ export function HavingFilterTag({
return (
<StyledTag closable={closable} onClose={onClose}>
- <StyledText ellipsis onClick={handleClick}>
- {value}
- </StyledText>
+ <span role="button" tabIndex={0} onClick={handleClick}>
+ <StyledText>{value}</StyledText>
+ </span>
</StyledTag>
);
}
diff --git a/frontend/src/container/QueryBuilder/components/Query/Query.tsx b/frontend/src/container/QueryBuilder/components/Query/Query.tsx
index 84a64571f8..843b3d8901 100644
--- a/frontend/src/container/QueryBuilder/components/Query/Query.tsx
+++ b/frontend/src/container/QueryBuilder/components/Query/Query.tsx
@@ -9,7 +9,8 @@ import {
useState,
} from 'react';
import { useLocation } from 'react-use';
-import { Col, Input, Row, Tooltip, Typography } from 'antd';
+import { Col, Input, Row, Tooltip } from 'antd';
+import { Typography } from '@signozhq/ui';
import { ENTITY_VERSION_V4 } from 'constants/app';
// ** Constants
import { ATTRIBUTE_TYPES, PANEL_TYPES } from 'constants/queryBuilder';
diff --git a/frontend/src/container/QueryBuilder/components/QueryFunctions/QueryFunctions.tsx b/frontend/src/container/QueryBuilder/components/QueryFunctions/QueryFunctions.tsx
index c5ebb2078f..6493e233ef 100644
--- a/frontend/src/container/QueryBuilder/components/QueryFunctions/QueryFunctions.tsx
+++ b/frontend/src/container/QueryBuilder/components/QueryFunctions/QueryFunctions.tsx
@@ -1,5 +1,6 @@
import { useState } from 'react';
-import { Button, Tooltip, Typography } from 'antd';
+import { Button, Tooltip } from 'antd';
+import { Typography } from '@signozhq/ui';
import cx from 'classnames';
import { cloneDeep, pullAt } from 'lodash-es';
import { Plus } from 'lucide-react';
diff --git a/frontend/src/container/QueryBuilder/filters/BuilderUnitsFilter/BuilderUnits.tsx b/frontend/src/container/QueryBuilder/filters/BuilderUnitsFilter/BuilderUnits.tsx
index 82de59689b..8722f0c090 100644
--- a/frontend/src/container/QueryBuilder/filters/BuilderUnitsFilter/BuilderUnits.tsx
+++ b/frontend/src/container/QueryBuilder/filters/BuilderUnitsFilter/BuilderUnits.tsx
@@ -1,4 +1,5 @@
-import { Select, SelectProps, Space, Typography } from 'antd';
+import { Select, SelectProps, Space } from 'antd';
+import { Typography } from '@signozhq/ui';
import { getCategorySelectOptionByName } from 'container/NewWidget/RightContainer/alertFomatCategories';
import { useQueryBuilder } from 'hooks/queryBuilder/useQueryBuilder';
import { popupContainer } from 'utils/selectPopupContainer';
diff --git a/frontend/src/container/QueryBuilder/filters/MetricNameSelector/MetricNameSelector.tsx b/frontend/src/container/QueryBuilder/filters/MetricNameSelector/MetricNameSelector.tsx
index 2ec3c1316d..faa5def69b 100644
--- a/frontend/src/container/QueryBuilder/filters/MetricNameSelector/MetricNameSelector.tsx
+++ b/frontend/src/container/QueryBuilder/filters/MetricNameSelector/MetricNameSelector.tsx
@@ -1,6 +1,7 @@
import { memo, useCallback, useEffect, useMemo, useRef, useState } from 'react';
import { flushSync } from 'react-dom';
-import { AutoComplete, Spin, Typography } from 'antd';
+import { AutoComplete, Spin } from 'antd';
+import { Typography } from '@signozhq/ui';
import { useListMetrics } from 'api/generated/services/metrics';
import { MetricsexplorertypesListMetricDTO } from 'api/generated/services/sigNoz.schemas';
import { ATTRIBUTE_TYPES, toAttributeType } from 'constants/queryBuilder';
@@ -281,7 +282,7 @@ export const MetricNameSelector = memo(function MetricNameSelector({
isFetching ? (
<Spin size="small" />
) : isError ? (
- <Typography.Text type="danger" style={{ fontSize: 12 }}>
+ <Typography.Text color="danger" style={{ fontSize: 12 }}>
Failed to load metrics
</Typography.Text>
) : null
diff --git a/frontend/src/container/QueryBuilder/filters/QueryBuilderSearch/OptionRendererForLogs.tsx b/frontend/src/container/QueryBuilder/filters/QueryBuilderSearch/OptionRendererForLogs.tsx
index 417b199fa8..4f13e96de2 100644
--- a/frontend/src/container/QueryBuilder/filters/QueryBuilderSearch/OptionRendererForLogs.tsx
+++ b/frontend/src/container/QueryBuilder/filters/QueryBuilderSearch/OptionRendererForLogs.tsx
@@ -1,6 +1,6 @@
-import { useState } from 'react';
import { Color } from '@signozhq/design-tokens';
-import { Tooltip, Typography } from 'antd';
+import { Tooltip } from 'antd';
+import { Typography } from '@signozhq/ui';
import cx from 'classnames';
import { Zap } from 'lucide-react';
@@ -15,7 +15,6 @@ function OptionRendererForLogs({
isIndexed,
setDynamicPlaceholder,
}: OptionRendererProps): JSX.Element {
- const [truncated, setTruncated] = useState<boolean>(false);
const optionType = getOptionType(label);
return (
@@ -25,7 +24,7 @@ function OptionRendererForLogs({
onFocus={(): void => setDynamicPlaceholder(value)}
>
{optionType ? (
- <Tooltip title={truncated ? `${value}` : ''} placement="topLeft">
+ <Tooltip title={value} placement="topLeft">
<div className="logs-options-select">
<section className="left-section">
{isIndexed ? (
@@ -33,10 +32,7 @@ function OptionRendererForLogs({
) : (
<div className="dot" />
)}
- <Typography.Text
- className="text value"
- ellipsis={{ onEllipsis: (ellipsis): void => setTruncated(ellipsis) }}
- >
+ <Typography.Text className="text value" truncate={1}>
{value}
</Typography.Text>
</section>
@@ -50,13 +46,10 @@ function OptionRendererForLogs({
</div>
</Tooltip>
) : (
- <Tooltip title={truncated ? `${label}` : ''} placement="topLeft">
+ <Tooltip title={label} placement="topLeft">
<div className="without-option-type">
<div className="dot" />
- <Typography.Text
- className="text"
- ellipsis={{ onEllipsis: (ellipsis): void => setTruncated(ellipsis) }}
- >
+ <Typography.Text className="text" truncate={1}>
{label}
</Typography.Text>
</div>
diff --git a/frontend/src/container/QueryBuilder/filters/QueryBuilderSearch/index.tsx b/frontend/src/container/QueryBuilder/filters/QueryBuilderSearch/index.tsx
index 063d1f9944..8d3c342acd 100644
--- a/frontend/src/container/QueryBuilder/filters/QueryBuilderSearch/index.tsx
+++ b/frontend/src/container/QueryBuilder/filters/QueryBuilderSearch/index.tsx
@@ -9,7 +9,8 @@ import {
useState,
} from 'react';
import { useLocation } from 'react-router-dom';
-import { Button, Select, Spin, Tag, Tooltip, Typography } from 'antd';
+import { Button, Select, Spin, Tag, Tooltip } from 'antd';
+import { Typography } from '@signozhq/ui';
import cx from 'classnames';
import { OPERATORS } from 'constants/queryBuilder';
import ROUTES from 'constants/routes';
@@ -187,9 +188,7 @@ function QueryBuilderSearch({
<Tag closable={!searchValue && closable} onClose={onCloseHandler}>
<Tooltip title={chipValue}>
<TypographyText
- ellipsis
$isInNin={isInNin}
- disabled={isDisabled}
$isEnabled={!!searchValue}
onClick={(): void => {
if (!isDisabled) {
diff --git a/frontend/src/container/QueryBuilder/filters/QueryBuilderSearch/style.ts b/frontend/src/container/QueryBuilder/filters/QueryBuilderSearch/style.ts
index 5e010ff34a..5ba3b98f76 100644
--- a/frontend/src/container/QueryBuilder/filters/QueryBuilderSearch/style.ts
+++ b/frontend/src/container/QueryBuilder/filters/QueryBuilderSearch/style.ts
@@ -1,15 +1,21 @@
import { CheckOutlined } from '@ant-design/icons';
-import { Tag, Typography } from 'antd';
+import { Tag } from 'antd';
import styled from 'styled-components';
-export const TypographyText = styled(Typography.Text)<{
+export const TypographyText = styled.span<{
$isInNin: boolean;
$isEnabled: boolean;
+ $disabled?: boolean;
}>`
width: ${({ $isInNin }): string => ($isInNin ? '10rem' : 'auto')};
cursor: ${({ $isEnabled }): string =>
$isEnabled ? 'not-allowed' : 'pointer'};
pointer-events: ${({ $isEnabled }): string => ($isEnabled ? 'none' : 'auto')};
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ padding-left: 8px;
+ ${({ $disabled }): string => ($disabled ? 'opacity: 0.6' : '')}
`;
export const StyledCheckOutlined = styled(CheckOutlined)`
diff --git a/frontend/src/container/QueryBuilder/filters/QueryBuilderSearchV2/QueryBuilderSearchDropdown.tsx b/frontend/src/container/QueryBuilder/filters/QueryBuilderSearchV2/QueryBuilderSearchDropdown.tsx
index cbbc67841a..99baf8589a 100644
--- a/frontend/src/container/QueryBuilder/filters/QueryBuilderSearchV2/QueryBuilderSearchDropdown.tsx
+++ b/frontend/src/container/QueryBuilder/filters/QueryBuilderSearchV2/QueryBuilderSearchDropdown.tsx
@@ -1,4 +1,4 @@
-import { Typography } from 'antd';
+import { Typography } from '@signozhq/ui';
import cx from 'classnames';
import {
ArrowDown,
diff --git a/frontend/src/container/QueryBuilder/filters/QueryBuilderSearchV2/QueryBuilderSearchV2.tsx b/frontend/src/container/QueryBuilder/filters/QueryBuilderSearchV2/QueryBuilderSearchV2.tsx
index 11d34db9a6..80bf87eb9c 100644
--- a/frontend/src/container/QueryBuilder/filters/QueryBuilderSearchV2/QueryBuilderSearchV2.tsx
+++ b/frontend/src/container/QueryBuilder/filters/QueryBuilderSearchV2/QueryBuilderSearchV2.tsx
@@ -961,9 +961,7 @@ function QueryBuilderSearchV2(
>
<Tooltip title={chipValue}>
<TypographyText
- ellipsis
$isInNin={isInNin}
- disabled={isDisabled}
$isEnabled={!!searchValue}
onClick={(): void => {
if (!isDisabled) {
diff --git a/frontend/src/container/QueryBuilder/filters/QueryBuilderSearchV2/Suggestions.tsx b/frontend/src/container/QueryBuilder/filters/QueryBuilderSearchV2/Suggestions.tsx
index a480aa2330..f9b0d1001e 100644
--- a/frontend/src/container/QueryBuilder/filters/QueryBuilderSearchV2/Suggestions.tsx
+++ b/frontend/src/container/QueryBuilder/filters/QueryBuilderSearchV2/Suggestions.tsx
@@ -1,6 +1,7 @@
-import { useMemo, useState } from 'react';
+import { useMemo } from 'react';
import { Color } from '@signozhq/design-tokens';
-import { Tooltip, Typography } from 'antd';
+import { Tooltip } from 'antd';
+import { Typography } from '@signozhq/ui';
import cx from 'classnames';
import { isEmpty, isObject } from 'lodash-es';
import { Check, Zap } from 'lucide-react';
@@ -37,12 +38,10 @@ function Suggestions(props: ISuggestionsProps): React.ReactElement {
const { tagValue } = getTagToken(searchValue);
- const [truncated, setTruncated] = useState<boolean>(false);
-
return (
<div className="option">
{!isEmpty(optionType) && isObject(value) ? (
- <Tooltip title={truncated ? `${value.key}` : ''} placement="topLeft">
+ <Tooltip title={value.key} placement="topLeft">
<div className="container">
<section className="left-section">
{value.isIndexed ? (
@@ -50,10 +49,7 @@ function Suggestions(props: ISuggestionsProps): React.ReactElement {
) : (
<div className="dot" />
)}
- <Typography.Text
- className="text value"
- ellipsis={{ onEllipsis: (ellipsis): void => setTruncated(ellipsis) }}
- >
+ <Typography.Text className="text value" truncate={1}>
{label}
</Typography.Text>
</section>
@@ -67,14 +63,11 @@ function Suggestions(props: ISuggestionsProps): React.ReactElement {
</div>
</Tooltip>
) : (
- <Tooltip title={truncated ? label : ''} placement="topLeft">
+ <Tooltip title={label} placement="topLeft">
<div className="container-without-tag">
<section className="left">
<div className="dot" />
- <Typography.Text
- className={cx('text value', option)}
- ellipsis={{ onEllipsis: (ellipsis): void => setTruncated(ellipsis) }}
- >
+ <Typography.Text className={cx('text value', option)} truncate={1}>
{`${label}`}
</Typography.Text>
</section>
diff --git a/frontend/src/container/ResetPassword/index.tsx b/frontend/src/container/ResetPassword/index.tsx
index c270a3fd9d..cd872b4314 100644
--- a/frontend/src/container/ResetPassword/index.tsx
+++ b/frontend/src/container/ResetPassword/index.tsx
@@ -2,7 +2,8 @@ import { useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
import { useLocation } from 'react-use';
import { Button, Callout } from '@signozhq/ui';
-import { Form, Input as AntdInput, Typography } from 'antd';
+import { Form, Input as AntdInput } from 'antd';
+import { Typography } from '@signozhq/ui';
import { Logout } from 'api/utils';
import resetPasswordApi from 'api/v1/factor_password/resetPassword';
import AuthError from 'components/AuthError/AuthError';
@@ -152,9 +153,9 @@ function ResetPassword({ version }: ResetPasswordProps): JSX.Element {
<Typography.Title level={4} className="reset-password-header-title">
Reset Your Password
</Typography.Title>
- <Typography.Paragraph className="reset-password-header-subtitle">
+ <Typography.Text className="reset-password-header-subtitle">
Monitor your applications. Find what is causing issues.
- </Typography.Paragraph>
+ </Typography.Text>
{version && (
<div className="reset-password-version-badge">SigNoz {version}</div>
)}
diff --git a/frontend/src/container/RoutingPolicies/DeleteRoutingPolicy.tsx b/frontend/src/container/RoutingPolicies/DeleteRoutingPolicy.tsx
index 59b2cafd71..cfdd41aa52 100644
--- a/frontend/src/container/RoutingPolicies/DeleteRoutingPolicy.tsx
+++ b/frontend/src/container/RoutingPolicies/DeleteRoutingPolicy.tsx
@@ -1,4 +1,5 @@
-import { Button, Modal, Typography } from 'antd';
+import { Button, Modal } from 'antd';
+import { Typography } from '@signozhq/ui';
import { Loader, Trash2, X } from 'lucide-react';
import { DeleteRoutingPolicyProps } from './types';
diff --git a/frontend/src/container/RoutingPolicies/RoutingPolicies.tsx b/frontend/src/container/RoutingPolicies/RoutingPolicies.tsx
index 79db0a42cf..1ad7e09c88 100644
--- a/frontend/src/container/RoutingPolicies/RoutingPolicies.tsx
+++ b/frontend/src/container/RoutingPolicies/RoutingPolicies.tsx
@@ -1,7 +1,8 @@
import { ChangeEvent, useMemo } from 'react';
import { PlusOutlined } from '@ant-design/icons';
import { Color } from '@signozhq/design-tokens';
-import { Button, Flex, Input, Tooltip, Typography } from 'antd';
+import { Button, Flex, Input, Tooltip } from 'antd';
+import { Typography } from '@signozhq/ui';
import { Search } from 'lucide-react';
import { useAppContext } from 'providers/App/App';
import { USER_ROLES } from 'types/roles';
diff --git a/frontend/src/container/RoutingPolicies/RoutingPolicyDetails.tsx b/frontend/src/container/RoutingPolicies/RoutingPolicyDetails.tsx
index 1b203ede4b..72ce7f9be3 100644
--- a/frontend/src/container/RoutingPolicies/RoutingPolicyDetails.tsx
+++ b/frontend/src/container/RoutingPolicies/RoutingPolicyDetails.tsx
@@ -1,14 +1,6 @@
import { useMemo } from 'react';
-import {
- Button,
- Divider,
- Flex,
- Form,
- Input,
- Modal,
- Select,
- Typography,
-} from 'antd';
+import { Button, Divider, Flex, Form, Input, Modal, Select } from 'antd';
+import { Typography } from '@signozhq/ui';
import ROUTES from 'constants/routes';
import { ModalTitle } from 'container/PipelinePage/PipelineListsView/styles';
import { Check, Loader, X } from 'lucide-react';
diff --git a/frontend/src/container/RoutingPolicies/RoutingPolicyList.tsx b/frontend/src/container/RoutingPolicies/RoutingPolicyList.tsx
index 00fef615ff..4071ee50c4 100644
--- a/frontend/src/container/RoutingPolicies/RoutingPolicyList.tsx
+++ b/frontend/src/container/RoutingPolicies/RoutingPolicyList.tsx
@@ -1,5 +1,6 @@
import { useMemo } from 'react';
-import { Button, Table, TableProps, Typography } from 'antd';
+import { Button, Table, TableProps } from 'antd';
+import { Typography } from '@signozhq/ui';
import { RotateCw } from 'lucide-react';
import awwSnapUrl from '@/assets/Icons/awwSnap.svg';
diff --git a/frontend/src/container/RoutingPolicies/RoutingPolicyListItem.tsx b/frontend/src/container/RoutingPolicies/RoutingPolicyListItem.tsx
index 2b9e4e2d61..67c3b26719 100644
--- a/frontend/src/container/RoutingPolicies/RoutingPolicyListItem.tsx
+++ b/frontend/src/container/RoutingPolicies/RoutingPolicyListItem.tsx
@@ -1,5 +1,6 @@
import { Color } from '@signozhq/design-tokens';
-import { Button, Collapse, Flex, Tag, Typography } from 'antd';
+import { Button, Collapse, Flex, Tag } from 'antd';
+import { Typography } from '@signozhq/ui';
import { DATE_TIME_FORMATS } from 'constants/dateTimeFormats';
import { PenLine, Trash2 } from 'lucide-react';
import { useAppContext } from 'providers/App/App';
@@ -27,10 +28,7 @@ function PolicyListItemHeader({
justify="space-between"
align="center"
>
- <Typography.Text
- className="policy-list-item-header-title"
- ellipsis={{ tooltip: name }}
- >
+ <Typography.Text className="policy-list-item-header-title" truncate={1}>
{name}
</Typography.Text>
{isEditEnabled && (
@@ -106,13 +104,13 @@ function PolicyListItemContent({
</div>
<div className="policy-list-item-content-row">
<Typography>Expression</Typography>
- <Typography.Text ellipsis={{ tooltip: routingPolicy.expression || '-' }}>
+ <Typography.Text truncate={1}>
{routingPolicy.expression || '-'}
</Typography.Text>
</div>
<div className="policy-list-item-content-row">
<Typography>Description</Typography>
- <Typography.Text ellipsis={{ tooltip: routingPolicy.description || '-' }}>
+ <Typography.Text truncate={1}>
{routingPolicy.description || '-'}
</Typography.Text>
</div>
diff --git a/frontend/src/container/ServiceApplication/ServiceMetrics/ServiceMetricTable.tsx b/frontend/src/container/ServiceApplication/ServiceMetrics/ServiceMetricTable.tsx
index 22543564c5..9d9358fcb6 100644
--- a/frontend/src/container/ServiceApplication/ServiceMetrics/ServiceMetricTable.tsx
+++ b/frontend/src/container/ServiceApplication/ServiceMetrics/ServiceMetricTable.tsx
@@ -4,7 +4,8 @@ import { useTranslation } from 'react-i18next';
import { useSelector } from 'react-redux';
import { useLocation } from 'react-router-dom';
import { WarningFilled } from '@ant-design/icons';
-import { Flex, Typography } from 'antd';
+import { Flex } from 'antd';
+import { Typography } from '@signozhq/ui';
import { ResizeTable } from 'components/ResizeTable';
import { ENTITY_VERSION_V4 } from 'constants/app';
import { MAX_RPS_LIMIT } from 'constants/global';
@@ -101,7 +102,7 @@ function ServiceMetricTable({
<div className="service-metric-table-container">
{RPS > MAX_RPS_LIMIT && (
<Flex justify="left">
- <Typography.Title level={5} type="warning" style={{ marginTop: 0 }}>
+ <Typography.Title level={5} color="warning" style={{ marginTop: 0 }}>
<WarningFilled /> {getText('rps_over_100')}
<a href="mailto:[email protected]">email</a>
</Typography.Title>
diff --git a/frontend/src/container/ServiceApplication/ServiceTraces/ServiceTracesTable.tsx b/frontend/src/container/ServiceApplication/ServiceTraces/ServiceTracesTable.tsx
index f18879842d..8df6e52ee8 100644
--- a/frontend/src/container/ServiceApplication/ServiceTraces/ServiceTracesTable.tsx
+++ b/frontend/src/container/ServiceApplication/ServiceTraces/ServiceTracesTable.tsx
@@ -2,7 +2,8 @@ import { useEffect, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
import { useLocation } from 'react-router-dom';
import { WarningFilled } from '@ant-design/icons';
-import { Flex, Typography } from 'antd';
+import { Flex } from 'antd';
+import { Typography } from '@signozhq/ui';
import { ResizeTable } from 'components/ResizeTable';
import { MAX_RPS_LIMIT } from 'constants/global';
import ResourceAttributesFilter from 'container/ResourceAttributesFilter';
@@ -56,7 +57,7 @@ function ServiceTraceTable({
<div className="service-traces-table-container">
{RPS > MAX_RPS_LIMIT && (
<Flex justify="left">
- <Typography.Title level={5} type="warning" style={{ marginTop: 0 }}>
+ <Typography.Title level={5} color="warning" style={{ marginTop: 0 }}>
<WarningFilled /> {getText('rps_over_100')}
<a href="mailto:[email protected]">email</a>
</Typography.Title>
diff --git a/frontend/src/container/ServiceApplication/SkipOnBoardModal/index.tsx b/frontend/src/container/ServiceApplication/SkipOnBoardModal/index.tsx
index aedc3d4e43..89831dd86e 100644
--- a/frontend/src/container/ServiceApplication/SkipOnBoardModal/index.tsx
+++ b/frontend/src/container/ServiceApplication/SkipOnBoardModal/index.tsx
@@ -1,4 +1,5 @@
-import { Button, Typography } from 'antd';
+import { Button } from 'antd';
+import { Typography } from '@signozhq/ui';
import Modal from 'components/Modal';
function SkipOnBoardingModal({ onContinueClick }: Props): JSX.Element {
diff --git a/frontend/src/container/ServiceApplication/styles.ts b/frontend/src/container/ServiceApplication/styles.ts
index 0bf860bb9a..92b1822bbd 100644
--- a/frontend/src/container/ServiceApplication/styles.ts
+++ b/frontend/src/container/ServiceApplication/styles.ts
@@ -1,4 +1,4 @@
-import { Typography } from 'antd';
+import { Typography } from '@signozhq/ui';
import styled from 'styled-components';
export const Container = styled.div`
diff --git a/frontend/src/container/ServiceTable/styles.ts b/frontend/src/container/ServiceTable/styles.ts
index 0bf860bb9a..92b1822bbd 100644
--- a/frontend/src/container/ServiceTable/styles.ts
+++ b/frontend/src/container/ServiceTable/styles.ts
@@ -1,4 +1,4 @@
-import { Typography } from 'antd';
+import { Typography } from '@signozhq/ui';
import styled from 'styled-components';
export const Container = styled.div`
diff --git a/frontend/src/container/SpanDetailsDrawer/Attributes/Attributes.tsx b/frontend/src/container/SpanDetailsDrawer/Attributes/Attributes.tsx
index 63ff75906a..3dd9dd3532 100644
--- a/frontend/src/container/SpanDetailsDrawer/Attributes/Attributes.tsx
+++ b/frontend/src/container/SpanDetailsDrawer/Attributes/Attributes.tsx
@@ -1,5 +1,6 @@
import { useCallback, useMemo, useState } from 'react';
-import { Input, Typography } from 'antd';
+import { Input } from 'antd';
+import { Typography } from '@signozhq/ui';
import cx from 'classnames';
import CopyClipboardHOC from 'components/Logs/CopyClipboardHOC';
import { flattenObject } from 'container/LogDetailedView/utils';
@@ -95,7 +96,7 @@ function Attributes(props: IAttributesProps): JSX.Element {
key={`${item.field} + ${item.value}`}
>
<div className="item-key-wrapper">
- <Typography.Text className="item-key" ellipsis>
+ <Typography.Text className="item-key" truncate={1}>
{item.field}
</Typography.Text>
{pinnedAttributes[item.field] && (
@@ -109,7 +110,7 @@ function Attributes(props: IAttributesProps): JSX.Element {
textToCopy={item.value}
tooltipText={item.value}
>
- <Typography.Text className="item-value" ellipsis>
+ <Typography.Text className="item-value" truncate={1}>
{item.value}
</Typography.Text>
</CopyClipboardHOC>
diff --git a/frontend/src/container/SpanDetailsDrawer/Events/Events.tsx b/frontend/src/container/SpanDetailsDrawer/Events/Events.tsx
index ed1f4a67ef..c73aca5ba5 100644
--- a/frontend/src/container/SpanDetailsDrawer/Events/Events.tsx
+++ b/frontend/src/container/SpanDetailsDrawer/Events/Events.tsx
@@ -1,5 +1,6 @@
import { useState } from 'react';
-import { Collapse, Input, Modal, Typography } from 'antd';
+import { Collapse, Input, Modal } from 'antd';
+import { Typography } from '@signozhq/ui';
import { getYAxisFormattedValue } from 'components/Graph/yAxisConfig';
import { Diamond } from 'lucide-react';
import { Span } from 'types/api/trace/getTraceV2';
diff --git a/frontend/src/container/SpanDetailsDrawer/Events/components/AttributeWithExpandablePopover.tsx b/frontend/src/container/SpanDetailsDrawer/Events/components/AttributeWithExpandablePopover.tsx
index 0f37db3c2f..d1811d6b4c 100644
--- a/frontend/src/container/SpanDetailsDrawer/Events/components/AttributeWithExpandablePopover.tsx
+++ b/frontend/src/container/SpanDetailsDrawer/Events/components/AttributeWithExpandablePopover.tsx
@@ -1,4 +1,5 @@
-import { Button, Popover, Tooltip, Typography } from 'antd';
+import { Button, Popover, Tooltip } from 'antd';
+import { Typography } from '@signozhq/ui';
import { Fullscreen } from 'lucide-react';
import './AttributeWithExpandablePopover.styles.scss';
@@ -33,14 +34,14 @@ function AttributeWithExpandablePopover({
return (
<div className="attribute-container" key={attributeKey}>
<Tooltip title={attributeKey}>
- <Typography.Text className="attribute-key" ellipsis>
+ <Typography.Text className="attribute-key" truncate={1}>
{attributeKey}
</Typography.Text>
</Tooltip>
<div className="wrapper">
<Popover content={popoverContent} trigger="hover" placement="topRight">
- <Typography.Text className="attribute-value" ellipsis>
+ <Typography.Text className="attribute-value" truncate={1}>
{attributeValue}
</Typography.Text>
</Popover>
diff --git a/frontend/src/container/SpanDetailsDrawer/Events/components/EventAttribute.tsx b/frontend/src/container/SpanDetailsDrawer/Events/components/EventAttribute.tsx
index 6f8a40b4f8..7e900ac056 100644
--- a/frontend/src/container/SpanDetailsDrawer/Events/components/EventAttribute.tsx
+++ b/frontend/src/container/SpanDetailsDrawer/Events/components/EventAttribute.tsx
@@ -1,4 +1,5 @@
-import { Tooltip, Typography } from 'antd';
+import { Tooltip } from 'antd';
+import { Typography } from '@signozhq/ui';
import AttributeWithExpandablePopover from './AttributeWithExpandablePopover';
@@ -33,13 +34,13 @@ function EventAttribute({
return (
<div className="attribute-container" key={attributeKey}>
<Tooltip title={attributeKey}>
- <Typography.Text className="attribute-key" ellipsis>
+ <Typography.Text className="attribute-key" truncate={1}>
{attributeKey}
</Typography.Text>
</Tooltip>
<div className="wrapper">
<Tooltip title={attributeValue}>
- <Typography.Text className="attribute-value" ellipsis>
+ <Typography.Text className="attribute-value" truncate={1}>
{attributeValue}
</Typography.Text>
</Tooltip>
diff --git a/frontend/src/container/SpanDetailsDrawer/LinkedSpans/LinkedSpans.tsx b/frontend/src/container/SpanDetailsDrawer/LinkedSpans/LinkedSpans.tsx
index c9ee48c30f..990a436c55 100644
--- a/frontend/src/container/SpanDetailsDrawer/LinkedSpans/LinkedSpans.tsx
+++ b/frontend/src/container/SpanDetailsDrawer/LinkedSpans/LinkedSpans.tsx
@@ -1,5 +1,6 @@
import { useCallback } from 'react';
-import { Button, Tooltip, Typography } from 'antd';
+import { Button, Tooltip } from 'antd';
+import { Typography } from '@signozhq/ui';
import ROUTES from 'constants/routes';
import { formUrlParams } from 'container/TraceDetail/utils';
import { Span } from 'types/api/trace/getTraceV2';
@@ -51,13 +52,13 @@ function LinkedSpans(props: LinkedSpansProps): JSX.Element {
const link = getLink(item);
return (
<div className="item" key={item.spanId}>
- <Typography.Text className="item-key" ellipsis>
+ <Typography.Text className="item-key" truncate={1}>
Linked Span ID
</Typography.Text>
<div className="value-wrapper">
<Tooltip title={item.spanId}>
{link ? (
- <Typography.Link href={link} className="item-value" ellipsis>
+ <Typography.Link href={link} className="item-value" truncate={1}>
{item.spanId}
</Typography.Link>
) : (
diff --git a/frontend/src/container/SpanDetailsDrawer/NoData/NoData.tsx b/frontend/src/container/SpanDetailsDrawer/NoData/NoData.tsx
index c34b2588a5..104aee0004 100644
--- a/frontend/src/container/SpanDetailsDrawer/NoData/NoData.tsx
+++ b/frontend/src/container/SpanDetailsDrawer/NoData/NoData.tsx
@@ -1,4 +1,4 @@
-import { Typography } from 'antd';
+import { Typography } from '@signozhq/ui';
import noDataUrl from '@/assets/Icons/no-data.svg';
diff --git a/frontend/src/container/SpanDetailsDrawer/SpanDetailsDrawer.tsx b/frontend/src/container/SpanDetailsDrawer/SpanDetailsDrawer.tsx
index a0c5f0a855..ccdfbf4e85 100644
--- a/frontend/src/container/SpanDetailsDrawer/SpanDetailsDrawer.tsx
+++ b/frontend/src/container/SpanDetailsDrawer/SpanDetailsDrawer.tsx
@@ -1,3 +1,4 @@
+import { Typography } from '@signozhq/ui';
import {
Dispatch,
SetStateAction,
@@ -18,7 +19,6 @@ import {
Tabs,
TabsProps,
Tooltip,
- Typography,
} from 'antd';
import getSpanPercentiles from 'api/trace/getSpanPercentiles';
import getUserPreference from 'api/v1/user/preferences/name/get';
@@ -585,7 +585,7 @@ function SpanDetailsDrawer(props: ISpanDetailsDrawerProps): JSX.Element {
<div className="value-wrapper span-name-wrapper">
<Tooltip title={selectedSpan.name}>
- <Typography.Text className="attribute-value" ellipsis>
+ <Typography.Text className="attribute-value" truncate={1}>
{selectedSpan.name}
</Typography.Text>
</Tooltip>
@@ -613,7 +613,6 @@ function SpanDetailsDrawer(props: ISpanDetailsDrawerProps): JSX.Element {
<Typography.Text
className="span-percentile-value"
onClick={(): void => setIsSpanPercentilesOpen((prev) => !prev)}
- disabled={loadingSpanPercentilesData}
>
<span className="span-percentile-value-text">
p{spanPercentileValue}
@@ -861,7 +860,7 @@ function SpanDetailsDrawer(props: ISpanDetailsDrawerProps): JSX.Element {
<div className="dot" style={{ backgroundColor: color }} />
<div className="value-wrapper">
<Tooltip title={selectedSpan.serviceName}>
- <Typography.Text className="service-value" ellipsis>
+ <Typography.Text className="service-value" truncate={1}>
{selectedSpan.serviceName}
</Typography.Text>
</Tooltip>
diff --git a/frontend/src/container/SpanDetailsDrawer/SpanLogs/SpanLogs.tsx b/frontend/src/container/SpanDetailsDrawer/SpanLogs/SpanLogs.tsx
index 1eb750ff68..819b403f10 100644
--- a/frontend/src/container/SpanDetailsDrawer/SpanLogs/SpanLogs.tsx
+++ b/frontend/src/container/SpanDetailsDrawer/SpanLogs/SpanLogs.tsx
@@ -1,7 +1,7 @@
import { useCallback, useMemo } from 'react';
import { Virtuoso } from 'react-virtuoso';
import { Button } from '@signozhq/ui';
-import { Typography } from 'antd';
+import { Typography } from '@signozhq/ui';
import cx from 'classnames';
import RawLogView from 'components/Logs/RawLogView';
import OverlayScrollbar from 'components/OverlayScrollbar/OverlayScrollbar';
diff --git a/frontend/src/container/SpanDetailsDrawer/SpanRelatedSignals/SpanRelatedSignals.tsx b/frontend/src/container/SpanDetailsDrawer/SpanRelatedSignals/SpanRelatedSignals.tsx
index aea027b4b0..c5180a80c0 100644
--- a/frontend/src/container/SpanDetailsDrawer/SpanRelatedSignals/SpanRelatedSignals.tsx
+++ b/frontend/src/container/SpanDetailsDrawer/SpanRelatedSignals/SpanRelatedSignals.tsx
@@ -1,6 +1,7 @@
import { useCallback, useMemo, useState } from 'react';
import { Color, Spacing } from '@signozhq/design-tokens';
-import { Button, Divider, Drawer, RadioChangeEvent, Typography } from 'antd';
+import { Button, Divider, Drawer, RadioChangeEvent } from 'antd';
+import { Typography } from '@signozhq/ui';
import LogsIcon from 'assets/AlertHistory/LogsIcon';
import SignozRadioGroup from 'components/SignozRadioGroup/SignozRadioGroup';
import { QueryParams } from 'constants/query';
diff --git a/frontend/src/container/TimeSeriesView/styles.ts b/frontend/src/container/TimeSeriesView/styles.ts
index 41a730161d..0f8116f934 100644
--- a/frontend/src/container/TimeSeriesView/styles.ts
+++ b/frontend/src/container/TimeSeriesView/styles.ts
@@ -1,4 +1,5 @@
-import { Card, Typography } from 'antd';
+import { Card } from 'antd';
+import { Typography } from '@signozhq/ui';
import styled from 'styled-components';
export const Container = styled(Card)`
diff --git a/frontend/src/container/TopNav/AutoRefreshV2/index.tsx b/frontend/src/container/TopNav/AutoRefreshV2/index.tsx
index d298eab29e..37097d7f1f 100644
--- a/frontend/src/container/TopNav/AutoRefreshV2/index.tsx
+++ b/frontend/src/container/TopNav/AutoRefreshV2/index.tsx
@@ -4,7 +4,8 @@ import { useDispatch, useSelector } from 'react-redux';
import { useLocation } from 'react-router-dom';
import { useInterval } from 'react-use';
import { CaretDownFilled } from '@ant-design/icons';
-import { Button, Checkbox, Popover, Typography } from 'antd';
+import { Button, Checkbox, Popover } from 'antd';
+import { Typography } from '@signozhq/ui';
import type { CheckboxChangeEvent } from 'antd/lib/checkbox';
import get from 'api/browser/localstorage/get';
import set from 'api/browser/localstorage/set';
@@ -174,12 +175,9 @@ function AutoRefresh({
>
Auto Refresh
</Checkbox>
- <Typography.Paragraph
- disabled={isDisabled}
- className="refresh-interval-text"
- >
+ <Typography.Text disabled={isDisabled} className="refresh-interval-text">
Refresh Interval
- </Typography.Paragraph>
+ </Typography.Text>
{refreshIntervalOptions
.filter((e) => e.label !== 'off')
.map((option) => (
diff --git a/frontend/src/container/TopNav/DateTimeSelectionV2/styles.ts b/frontend/src/container/TopNav/DateTimeSelectionV2/styles.ts
index d35d5e764d..dbd8911470 100644
--- a/frontend/src/container/TopNav/DateTimeSelectionV2/styles.ts
+++ b/frontend/src/container/TopNav/DateTimeSelectionV2/styles.ts
@@ -1,4 +1,5 @@
-import { Form as FormComponent, Typography as TypographyComponent } from 'antd';
+import { Form as FormComponent } from 'antd';
+import { Typography as TypographyComponent } from '@signozhq/ui';
import styled from 'styled-components';
export const Form = styled(FormComponent)`
diff --git a/frontend/src/container/Trace/Filters/Panel/PanelBody/Common/Checkbox.tsx b/frontend/src/container/Trace/Filters/Panel/PanelBody/Common/Checkbox.tsx
index 68990531cd..332ce13db5 100644
--- a/frontend/src/container/Trace/Filters/Panel/PanelBody/Common/Checkbox.tsx
+++ b/frontend/src/container/Trace/Filters/Panel/PanelBody/Common/Checkbox.tsx
@@ -1,7 +1,8 @@
import { useMemo, useState } from 'react';
// eslint-disable-next-line no-restricted-imports
import { useDispatch, useSelector } from 'react-redux';
-import { Checkbox, Tooltip, Typography } from 'antd';
+import { Checkbox, Tooltip } from 'antd';
+import { Typography } from '@signozhq/ui';
import getFilters from 'api/trace/getFilters';
import { AxiosError } from 'axios';
import { useNotifications } from 'hooks/useNotifications';
@@ -178,7 +179,7 @@ function CheckBoxComponent(props: CheckBoxProps): JSX.Element {
key={keyValue}
>
<Tooltip overlay={TooTipOverLay}>
- <ParaGraph ellipsis>{keyValue}</ParaGraph>
+ <ParaGraph truncate={1}>{keyValue}</ParaGraph>
</Tooltip>
</Checkbox>
{isCheckBoxSelected ? (
diff --git a/frontend/src/container/Trace/Filters/Panel/PanelBody/Common/styles.ts b/frontend/src/container/Trace/Filters/Panel/PanelBody/Common/styles.ts
index 4678f74ec3..16c11be1e4 100644
--- a/frontend/src/container/Trace/Filters/Panel/PanelBody/Common/styles.ts
+++ b/frontend/src/container/Trace/Filters/Panel/PanelBody/Common/styles.ts
@@ -1,4 +1,4 @@
-import { Typography } from 'antd';
+import { Typography } from '@signozhq/ui';
import styled from 'styled-components';
export const CheckBoxContainer = styled.div`
@@ -11,7 +11,7 @@ export const CheckBoxContainer = styled.div`
margin-bottom: 0.5rem;
`;
-export const ParaGraph = styled(Typography.Paragraph)`
+export const ParaGraph = styled(Typography.Text)`
&&& {
margin: 0;
max-width: 8rem;
diff --git a/frontend/src/container/Trace/Filters/Panel/PanelBody/Duration/styles.ts b/frontend/src/container/Trace/Filters/Panel/PanelBody/Duration/styles.ts
index 1cab3f8954..75ec48ae36 100644
--- a/frontend/src/container/Trace/Filters/Panel/PanelBody/Duration/styles.ts
+++ b/frontend/src/container/Trace/Filters/Panel/PanelBody/Duration/styles.ts
@@ -1,4 +1,5 @@
-import { Input, Typography } from 'antd';
+import { Input } from 'antd';
+import { Typography } from '@signozhq/ui';
import styled from 'styled-components';
export const DurationText = styled.div`
diff --git a/frontend/src/container/Trace/Filters/Panel/PanelHeading/index.tsx b/frontend/src/container/Trace/Filters/Panel/PanelHeading/index.tsx
index 260feba13d..ff0b499b59 100644
--- a/frontend/src/container/Trace/Filters/Panel/PanelHeading/index.tsx
+++ b/frontend/src/container/Trace/Filters/Panel/PanelHeading/index.tsx
@@ -2,7 +2,8 @@ import { MouseEventHandler, useState } from 'react';
// eslint-disable-next-line no-restricted-imports
import { useDispatch, useSelector } from 'react-redux';
import { DownOutlined, RightOutlined } from '@ant-design/icons';
-import { Card, Divider, Typography } from 'antd';
+import { Card, Divider } from 'antd';
+import { Typography } from '@signozhq/ui';
import getFilters from 'api/trace/getFilters';
import { AxiosError } from 'axios';
import { useNotifications } from 'hooks/useNotifications';
@@ -318,7 +319,7 @@ function PanelHeading(props: PanelHeadingProps): JSX.Element {
{!IsPanelOpen ? <RightOutlined /> : <DownOutlined />}
</IconContainer>
- <Text style={{ textTransform: 'capitalize' }} ellipsis>
+ <Text style={{ textTransform: 'capitalize' }} truncate={1}>
{AllPanelHeading.find((e) => e.key === PanelName)?.displayValue || ''}
</Text>
</TextContainer>
diff --git a/frontend/src/container/Trace/Graph/index.tsx b/frontend/src/container/Trace/Graph/index.tsx
index 76068c0b08..da52773085 100644
--- a/frontend/src/container/Trace/Graph/index.tsx
+++ b/frontend/src/container/Trace/Graph/index.tsx
@@ -2,7 +2,7 @@ import { useMemo } from 'react';
// eslint-disable-next-line no-restricted-imports
import { useSelector } from 'react-redux';
import { useMeasure } from 'react-use';
-import { Typography } from 'antd';
+import { Typography } from '@signozhq/ui';
import Graph from 'components/Graph';
import Spinner from 'components/Spinner';
import { AppState } from 'store/reducers';
diff --git a/frontend/src/container/Trace/Search/AllTags/index.tsx b/frontend/src/container/Trace/Search/AllTags/index.tsx
index 1af05c4972..2fc8442ef4 100644
--- a/frontend/src/container/Trace/Search/AllTags/index.tsx
+++ b/frontend/src/container/Trace/Search/AllTags/index.tsx
@@ -2,7 +2,8 @@ import { useState } from 'react';
// eslint-disable-next-line no-restricted-imports
import { connect, useSelector } from 'react-redux';
import { CaretRightFilled, PlusOutlined } from '@ant-design/icons';
-import { Button, Space, Typography } from 'antd';
+import { Button, Space } from 'antd';
+import { Typography } from '@signozhq/ui';
// eslint-disable-next-line no-restricted-imports
import { bindActionCreators } from 'redux';
import { ThunkDispatch } from 'redux-thunk';
@@ -23,8 +24,6 @@ import Tags from './Tag';
const { Text } = Typography;
-const { Paragraph } = Typography;
-
function AllTags({
updateTagIsError,
onChangeHandler,
@@ -77,14 +76,14 @@ function AllTags({
if (traces.isTagModalError) {
return (
<ErrorContainer>
- <Paragraph style={{ color: 'var(--warning-background)' }}>
+ <Text style={{ color: 'var(--warning-background)' }}>
Unrecognized query format. Please reset your query by clicking `X` in the
search bar above.
- </Paragraph>
+ </Text>
- <Paragraph style={{ color: 'var(--warning-background)' }}>
+ <Text style={{ color: 'var(--warning-background)' }}>
Please click on the search bar to get a drop down to select relevant tags
- </Paragraph>
+ </Text>
</ErrorContainer>
);
}
@@ -111,7 +110,7 @@ function AllTags({
Add Tags Filter
</Button>
- <Text ellipsis>
+ <Text truncate={1}>
Results will include spans with ALL the specified tags ( Rows are `ANDed` )
</Text>
</Space>
diff --git a/frontend/src/container/Trace/TraceTable/index.tsx b/frontend/src/container/Trace/TraceTable/index.tsx
index 66b3d37889..41bca2edd1 100644
--- a/frontend/src/container/Trace/TraceTable/index.tsx
+++ b/frontend/src/container/Trace/TraceTable/index.tsx
@@ -1,12 +1,8 @@
import { HTMLAttributes } from 'react';
// eslint-disable-next-line no-restricted-imports
import { useDispatch, useSelector } from 'react-redux';
-import {
- TableColumnsType as ColumnsType,
- TableProps,
- Tag,
- Typography,
-} from 'antd';
+import { TableColumnsType as ColumnsType, TableProps, Tag } from 'antd';
+import { Typography } from '@signozhq/ui';
import { ResizeTable } from 'components/ResizeTable';
import { DATE_TIME_FORMATS } from 'constants/dateTimeFormats';
import ROUTES from 'constants/routes';
diff --git a/frontend/src/container/TraceMetadata/TraceMetadata.tsx b/frontend/src/container/TraceMetadata/TraceMetadata.tsx
index c2cde70fde..d646d8539d 100644
--- a/frontend/src/container/TraceMetadata/TraceMetadata.tsx
+++ b/frontend/src/container/TraceMetadata/TraceMetadata.tsx
@@ -1,5 +1,6 @@
import { useMemo } from 'react';
-import { Button, Skeleton, Tooltip, Typography } from 'antd';
+import { Button, Skeleton, Tooltip } from 'antd';
+import { Typography } from '@signozhq/ui';
import { getYAxisFormattedValue } from 'components/Graph/yAxisConfig';
import { DATE_TIME_FORMATS } from 'constants/dateTimeFormats';
import ROUTES from 'constants/routes';
diff --git a/frontend/src/container/TraceWaterfall/TraceWaterfallStates/Error/Error.tsx b/frontend/src/container/TraceWaterfall/TraceWaterfallStates/Error/Error.tsx
index bcbd0c3717..c2ddbd1a3c 100644
--- a/frontend/src/container/TraceWaterfall/TraceWaterfallStates/Error/Error.tsx
+++ b/frontend/src/container/TraceWaterfall/TraceWaterfallStates/Error/Error.tsx
@@ -1,4 +1,5 @@
-import { Tooltip, Typography } from 'antd';
+import { Tooltip } from 'antd';
+import { Typography } from '@signozhq/ui';
import { AxiosError } from 'axios';
import './Error.styles.scss';
@@ -14,7 +15,7 @@ function Error(props: IErrorProps): JSX.Element {
<div className="error-waterfall">
<Typography.Text className="text">Something went wrong!</Typography.Text>
<Tooltip title={error?.message}>
- <Typography.Text className="value" ellipsis>
+ <Typography.Text className="value" truncate={1}>
{error?.message}
</Typography.Text>
</Tooltip>
diff --git a/frontend/src/container/TraceWaterfall/TraceWaterfallStates/NoData/NoData.tsx b/frontend/src/container/TraceWaterfall/TraceWaterfallStates/NoData/NoData.tsx
index 0be04ffc23..1e0bddde97 100644
--- a/frontend/src/container/TraceWaterfall/TraceWaterfallStates/NoData/NoData.tsx
+++ b/frontend/src/container/TraceWaterfall/TraceWaterfallStates/NoData/NoData.tsx
@@ -1,4 +1,4 @@
-import { Typography } from 'antd';
+import { Typography } from '@signozhq/ui';
interface INoDataProps {
id: string;
diff --git a/frontend/src/container/TraceWaterfall/TraceWaterfallStates/Success/Filters/Filters.tsx b/frontend/src/container/TraceWaterfall/TraceWaterfallStates/Success/Filters/Filters.tsx
index 0b39da469e..e59069507b 100644
--- a/frontend/src/container/TraceWaterfall/TraceWaterfallStates/Success/Filters/Filters.tsx
+++ b/frontend/src/container/TraceWaterfall/TraceWaterfallStates/Success/Filters/Filters.tsx
@@ -1,7 +1,8 @@
import { useCallback, useState } from 'react';
import { useHistory, useLocation } from 'react-router-dom';
import { InfoCircleOutlined, LoadingOutlined } from '@ant-design/icons';
-import { Button, Spin, Tooltip, Typography } from 'antd';
+import { Button, Spin, Tooltip } from 'antd';
+import { Typography } from '@signozhq/ui';
import { AxiosError } from 'axios';
import { DEFAULT_ENTITY_VERSION } from 'constants/app';
import { initialQueriesMap, PANEL_TYPES } from 'constants/queryBuilder';
diff --git a/frontend/src/container/TraceWaterfall/TraceWaterfallStates/Success/Success.tsx b/frontend/src/container/TraceWaterfall/TraceWaterfallStates/Success/Success.tsx
index 499a5c0ef1..6e13a7f16d 100644
--- a/frontend/src/container/TraceWaterfall/TraceWaterfallStates/Success/Success.tsx
+++ b/frontend/src/container/TraceWaterfall/TraceWaterfallStates/Success/Success.tsx
@@ -9,7 +9,8 @@ import {
} from 'react';
import { ColumnDef, createColumnHelper } from '@tanstack/react-table';
import { Virtualizer } from '@tanstack/react-virtual';
-import { Button, Tooltip, Typography } from 'antd';
+import { Button, Tooltip } from 'antd';
+import { Typography } from '@signozhq/ui';
import cx from 'classnames';
import HttpStatusBadge from 'components/HttpStatusBadge/HttpStatusBadge';
import SpanHoverCard from 'components/SpanHoverCard/SpanHoverCard';
@@ -322,7 +323,7 @@ export function SpanDuration({
{hasActionButtons && <SpanLineActionButtons span={span} />}
<Typography.Text
className="span-line-text"
- ellipsis
+ truncate={1}
style={textStyle}
>{`${toFixed(time, 2)} ${timeUnitName}`}</Typography.Text>
</div>
diff --git a/frontend/src/container/TracesExplorer/ListView/styles.ts b/frontend/src/container/TracesExplorer/ListView/styles.ts
index c543706be3..3fbc587bc2 100644
--- a/frontend/src/container/TracesExplorer/ListView/styles.ts
+++ b/frontend/src/container/TracesExplorer/ListView/styles.ts
@@ -1,5 +1,5 @@
import { CSSProperties } from 'react';
-import { Typography } from 'antd';
+import { Typography } from '@signozhq/ui';
import styled from 'styled-components';
export const tableStyles: CSSProperties = {
@@ -9,6 +9,7 @@ export const tableStyles: CSSProperties = {
export const Container = styled.div`
display: flex;
flex-direction: column;
+ --typography-color: var(--l1-foreground);
`;
export const ErrorText = styled(Typography)`
diff --git a/frontend/src/container/TracesExplorer/ListView/utils.tsx b/frontend/src/container/TracesExplorer/ListView/utils.tsx
index 1dc3cf7db8..d9fda36cc6 100644
--- a/frontend/src/container/TracesExplorer/ListView/utils.tsx
+++ b/frontend/src/container/TracesExplorer/ListView/utils.tsx
@@ -1,6 +1,7 @@
import { Link } from 'react-router-dom';
import type { TableColumnsType as ColumnsType } from 'antd';
-import { Tag, Typography } from 'antd';
+import { Tag } from 'antd';
+import { Typography } from '@signozhq/ui';
import { TelemetryFieldKey } from 'api/v5/v5';
import { DATE_TIME_FORMATS } from 'constants/dateTimeFormats';
import ROUTES from 'constants/routes';
diff --git a/frontend/src/container/TracesExplorer/TraceLoading/TraceLoading.tsx b/frontend/src/container/TracesExplorer/TraceLoading/TraceLoading.tsx
index 71e8460c2d..295d86694f 100644
--- a/frontend/src/container/TracesExplorer/TraceLoading/TraceLoading.tsx
+++ b/frontend/src/container/TracesExplorer/TraceLoading/TraceLoading.tsx
@@ -1,5 +1,5 @@
import { useTranslation } from 'react-i18next';
-import { Typography } from 'antd';
+import { Typography } from '@signozhq/ui';
import { DataSource } from 'types/common/queryBuilder';
import loadingPlaneUrl from '@/assets/Icons/loading-plane.gif';
diff --git a/frontend/src/container/TracesExplorer/TracesView/configs.tsx b/frontend/src/container/TracesExplorer/TracesView/configs.tsx
index d93eca8206..4981238482 100644
--- a/frontend/src/container/TracesExplorer/TracesView/configs.tsx
+++ b/frontend/src/container/TracesExplorer/TracesView/configs.tsx
@@ -1,6 +1,6 @@
import { generatePath, Link } from 'react-router-dom';
import type { TableColumnsType as ColumnsType } from 'antd';
-import { Typography } from 'antd';
+import { Typography } from '@signozhq/ui';
import ROUTES from 'constants/routes';
import { getMs } from 'container/Trace/Filters/Panel/PanelBody/Duration/util';
import { DEFAULT_PER_PAGE_OPTIONS } from 'hooks/queryPagination';
diff --git a/frontend/src/container/TracesExplorer/TracesView/index.tsx b/frontend/src/container/TracesExplorer/TracesView/index.tsx
index a694e07702..af6e693824 100644
--- a/frontend/src/container/TracesExplorer/TracesView/index.tsx
+++ b/frontend/src/container/TracesExplorer/TracesView/index.tsx
@@ -9,7 +9,7 @@ import {
} from 'react';
// eslint-disable-next-line no-restricted-imports
import { useSelector } from 'react-redux';
-import { Typography } from 'antd';
+import { Typography } from '@signozhq/ui';
import logEvent from 'api/common/logEvent';
import ErrorInPlace from 'components/ErrorInPlace/ErrorInPlace';
import { ResizeTable } from 'components/ResizeTable';
diff --git a/frontend/src/container/TriggeredAlerts/FilteredTable/ExapandableRow.tsx b/frontend/src/container/TriggeredAlerts/FilteredTable/ExapandableRow.tsx
index e9cede92ec..ab74bbdee3 100644
--- a/frontend/src/container/TriggeredAlerts/FilteredTable/ExapandableRow.tsx
+++ b/frontend/src/container/TriggeredAlerts/FilteredTable/ExapandableRow.tsx
@@ -1,4 +1,5 @@
-import { Tag, Typography } from 'antd';
+import { Tag } from 'antd';
+import { Typography } from '@signozhq/ui';
import { DATE_TIME_FORMATS } from 'constants/dateTimeFormats';
import { useTimezone } from 'providers/Timezone';
import { Alerts } from 'types/api/alerts/getTriggered';
diff --git a/frontend/src/container/TriggeredAlerts/NoFilterTable.tsx b/frontend/src/container/TriggeredAlerts/NoFilterTable.tsx
index 0fbfd3b1f9..488bffb4fc 100644
--- a/frontend/src/container/TriggeredAlerts/NoFilterTable.tsx
+++ b/frontend/src/container/TriggeredAlerts/NoFilterTable.tsx
@@ -1,4 +1,5 @@
-import { TableColumnsType as ColumnsType, Typography } from 'antd';
+import { TableColumnsType as ColumnsType } from 'antd';
+import { Typography } from '@signozhq/ui';
import { ResizeTable } from 'components/ResizeTable';
import LabelColumn from 'components/TableRenderer/LabelColumn';
import { DATE_TIME_FORMATS } from 'constants/dateTimeFormats';
diff --git a/frontend/src/lib/uPlotV2/components/UPlotChart/UPlotChart.tsx b/frontend/src/lib/uPlotV2/components/UPlotChart/UPlotChart.tsx
index 1588317f09..8296410f92 100644
--- a/frontend/src/lib/uPlotV2/components/UPlotChart/UPlotChart.tsx
+++ b/frontend/src/lib/uPlotV2/components/UPlotChart/UPlotChart.tsx
@@ -1,6 +1,6 @@
import { useCallback, useEffect, useMemo, useRef } from 'react';
import * as Sentry from '@sentry/react';
-import { Typography } from 'antd';
+import { Typography } from '@signozhq/ui';
import { isEqual } from 'lodash-es';
import { LineChart } from 'lucide-react';
import ErrorBoundaryFallback from 'pages/ErrorBoundaryFallback/ErrorBoundaryFallback';
diff --git a/frontend/src/modules/Usage/UsageExplorer.tsx b/frontend/src/modules/Usage/UsageExplorer.tsx
index c19539f373..c7be2d19cb 100644
--- a/frontend/src/modules/Usage/UsageExplorer.tsx
+++ b/frontend/src/modules/Usage/UsageExplorer.tsx
@@ -4,7 +4,8 @@ import { useEffect, useState } from 'react';
// eslint-disable-next-line no-restricted-imports
import { connect, useSelector } from 'react-redux';
import { withRouter } from 'react-router-dom';
-import { Select, Space, Typography } from 'antd';
+import { Select, Space } from 'antd';
+import { Typography } from '@signozhq/ui';
import Graph from 'components/Graph';
import { GetService, getUsageData, UsageDataItem } from 'store/actions';
import { AppState } from 'store/reducers';
diff --git a/frontend/src/pages/AlertDetails/AlertHeader/ActionButtons/RenameModal.tsx b/frontend/src/pages/AlertDetails/AlertHeader/ActionButtons/RenameModal.tsx
index 666452f619..3ba62f1028 100644
--- a/frontend/src/pages/AlertDetails/AlertHeader/ActionButtons/RenameModal.tsx
+++ b/frontend/src/pages/AlertDetails/AlertHeader/ActionButtons/RenameModal.tsx
@@ -1,5 +1,6 @@
import { useCallback, useEffect, useRef } from 'react';
-import { Button, Input, InputRef, Modal, Typography } from 'antd';
+import { Button, Input, InputRef, Modal } from 'antd';
+import { Typography } from '@signozhq/ui';
import { Check, X } from 'lucide-react';
import './RenameModal.styles.scss';
diff --git a/frontend/src/pages/AlertDetails/AlertNotFound/AlertNotFound.tsx b/frontend/src/pages/AlertDetails/AlertNotFound/AlertNotFound.tsx
index 7008931b34..9cad03f180 100644
--- a/frontend/src/pages/AlertDetails/AlertNotFound/AlertNotFound.tsx
+++ b/frontend/src/pages/AlertDetails/AlertNotFound/AlertNotFound.tsx
@@ -1,5 +1,6 @@
import React from 'react';
-import { Button, Typography } from 'antd';
+import { Button } from 'antd';
+import { Typography } from '@signozhq/ui';
import ROUTES from 'constants/routes';
import { handleContactSupport } from 'container/Integrations/utils';
import { useGetTenantLicense } from 'hooks/useGetTenantLicense';
diff --git a/frontend/src/pages/Celery/CeleryOverview/CeleryOverviewDetail/CeleryOverviewDetails.tsx b/frontend/src/pages/Celery/CeleryOverview/CeleryOverviewDetail/CeleryOverviewDetails.tsx
index 6fb9487682..79c8bfb9f3 100644
--- a/frontend/src/pages/Celery/CeleryOverview/CeleryOverviewDetail/CeleryOverviewDetails.tsx
+++ b/frontend/src/pages/Celery/CeleryOverview/CeleryOverviewDetail/CeleryOverviewDetails.tsx
@@ -1,6 +1,7 @@
import { useMemo } from 'react';
import { Color, Spacing } from '@signozhq/design-tokens';
-import { Divider, Drawer, Typography } from 'antd';
+import { Divider, Drawer } from 'antd';
+import { Typography } from '@signozhq/ui';
import { RowData } from 'components/CeleryOverview/CeleryOverviewTable/CeleryOverviewTable';
import { useIsDarkMode } from 'hooks/useDarkMode';
import { X } from 'lucide-react';
diff --git a/frontend/src/pages/ChannelsEdit/index.tsx b/frontend/src/pages/ChannelsEdit/index.tsx
index 5c4df7d5ee..c686368c9a 100644
--- a/frontend/src/pages/ChannelsEdit/index.tsx
+++ b/frontend/src/pages/ChannelsEdit/index.tsx
@@ -2,7 +2,7 @@
import { useTranslation } from 'react-i18next';
import { useQuery } from 'react-query';
-import { Typography } from 'antd';
+import { Typography } from '@signozhq/ui';
import get from 'api/channels/get';
import Spinner from 'components/Spinner';
import {
diff --git a/frontend/src/pages/DashboardPage/index.tsx b/frontend/src/pages/DashboardPage/index.tsx
index 65ed31ee28..f5525707e0 100644
--- a/frontend/src/pages/DashboardPage/index.tsx
+++ b/frontend/src/pages/DashboardPage/index.tsx
@@ -1,6 +1,7 @@
import { useEffect } from 'react';
import { useParams } from 'react-router-dom';
-import { Modal, Typography } from 'antd';
+import { Modal } from 'antd';
+import { Typography } from '@signozhq/ui';
import { AxiosError } from 'axios';
import NotFound from 'components/NotFound';
import Spinner from 'components/Spinner';
diff --git a/frontend/src/pages/DashboardWidget/index.tsx b/frontend/src/pages/DashboardWidget/index.tsx
index 6298909280..83df220069 100644
--- a/frontend/src/pages/DashboardWidget/index.tsx
+++ b/frontend/src/pages/DashboardWidget/index.tsx
@@ -1,7 +1,8 @@
import { useEffect, useMemo, useState } from 'react';
import { useQuery } from 'react-query';
import { generatePath, useParams } from 'react-router-dom';
-import { Card, Typography } from 'antd';
+import { Card } from 'antd';
+import { Typography } from '@signozhq/ui';
import getDashboard from 'api/v1/dashboards/id/get';
import Spinner from 'components/Spinner';
import { SOMETHING_WENT_WRONG } from 'constants/api';
diff --git a/frontend/src/pages/DashboardsListPage/DashboardsListPage.tsx b/frontend/src/pages/DashboardsListPage/DashboardsListPage.tsx
index f172768a06..424600f8c1 100644
--- a/frontend/src/pages/DashboardsListPage/DashboardsListPage.tsx
+++ b/frontend/src/pages/DashboardsListPage/DashboardsListPage.tsx
@@ -1,4 +1,5 @@
-import { Space, Typography } from 'antd';
+import { Space } from 'antd';
+import { Typography } from '@signozhq/ui';
import HeaderRightSection from 'components/HeaderRightSection/HeaderRightSection';
import ListOfAllDashboard from 'container/ListOfDashboard';
import { LayoutGrid } from 'lucide-react';
diff --git a/frontend/src/pages/ErrorDetails/index.tsx b/frontend/src/pages/ErrorDetails/index.tsx
index 112c31ed39..57efb5c2c4 100644
--- a/frontend/src/pages/ErrorDetails/index.tsx
+++ b/frontend/src/pages/ErrorDetails/index.tsx
@@ -4,7 +4,7 @@ import { useQuery } from 'react-query';
// eslint-disable-next-line no-restricted-imports
import { useSelector } from 'react-redux';
import { Redirect, useLocation } from 'react-router-dom';
-import { Typography } from 'antd';
+import { Typography } from '@signozhq/ui';
import getByErrorType from 'api/errors/getByErrorTypeAndService';
import getById from 'api/errors/getById';
import Spinner from 'components/Spinner';
diff --git a/frontend/src/pages/GettingStarted/DocCard.tsx b/frontend/src/pages/GettingStarted/DocCard.tsx
index 2af4b524c0..68f1784755 100644
--- a/frontend/src/pages/GettingStarted/DocCard.tsx
+++ b/frontend/src/pages/GettingStarted/DocCard.tsx
@@ -1,5 +1,5 @@
import { Link } from 'react-router-dom';
-import { Typography } from 'antd';
+import { Typography } from '@signozhq/ui';
import { useIsDarkMode } from 'hooks/useDarkMode';
import { DocCardContainer } from './styles';
diff --git a/frontend/src/pages/GettingStarted/Section.tsx b/frontend/src/pages/GettingStarted/Section.tsx
index cbddde9783..dcf33c3767 100644
--- a/frontend/src/pages/GettingStarted/Section.tsx
+++ b/frontend/src/pages/GettingStarted/Section.tsx
@@ -1,4 +1,5 @@
-import { Col, Row, Typography } from 'antd';
+import { Col, Row } from 'antd';
+import { Typography } from '@signozhq/ui';
import { map } from 'lodash-es';
import DocCard from './DocCard';
diff --git a/frontend/src/pages/GettingStarted/index.tsx b/frontend/src/pages/GettingStarted/index.tsx
index 909a221bd4..b6bf3fd5bf 100644
--- a/frontend/src/pages/GettingStarted/index.tsx
+++ b/frontend/src/pages/GettingStarted/index.tsx
@@ -1,4 +1,4 @@
-import { Typography } from 'antd';
+import { Typography } from '@signozhq/ui';
import { GetStartedContent } from './renderConfig';
import DocSection from './Section';
diff --git a/frontend/src/pages/GettingStarted/renderConfig.tsx b/frontend/src/pages/GettingStarted/renderConfig.tsx
index 8abf4ef96c..f64a863ac9 100644
--- a/frontend/src/pages/GettingStarted/renderConfig.tsx
+++ b/frontend/src/pages/GettingStarted/renderConfig.tsx
@@ -6,7 +6,7 @@ import {
DashboardFilled,
SoundFilled,
} from '@ant-design/icons';
-import { Typography } from 'antd';
+import { Typography } from '@signozhq/ui';
import Slack from 'container/SideNav/Slack';
import store from 'store';
diff --git a/frontend/src/pages/GettingStarted/styles.ts b/frontend/src/pages/GettingStarted/styles.ts
index 6e1ec7ad44..8e58ec9ef1 100644
--- a/frontend/src/pages/GettingStarted/styles.ts
+++ b/frontend/src/pages/GettingStarted/styles.ts
@@ -1,4 +1,5 @@
-import { Card, Row, Typography } from 'antd';
+import { Card, Row } from 'antd';
+import { Typography } from '@signozhq/ui';
import styled from 'styled-components';
interface Props {
diff --git a/frontend/src/pages/Logs/PopoverContent.tsx b/frontend/src/pages/Logs/PopoverContent.tsx
index 9f0214ad64..f3e3716fae 100644
--- a/frontend/src/pages/Logs/PopoverContent.tsx
+++ b/frontend/src/pages/Logs/PopoverContent.tsx
@@ -1,4 +1,5 @@
-import { InputNumber, Row, Space, Typography } from 'antd';
+import { InputNumber, Row, Space } from 'antd';
+import { Typography } from '@signozhq/ui';
interface PopoverContentProps {
linesPerRow: number;
diff --git a/frontend/src/pages/LogsSettings/components/TabLabel.tsx b/frontend/src/pages/LogsSettings/components/TabLabel.tsx
index 7594c515f7..2cc73e2ebd 100644
--- a/frontend/src/pages/LogsSettings/components/TabLabel.tsx
+++ b/frontend/src/pages/LogsSettings/components/TabLabel.tsx
@@ -1,5 +1,5 @@
import { useLocation } from 'react-router-dom';
-import { Typography } from 'antd';
+import { Typography } from '@signozhq/ui';
import { TableLabel } from '../types';
diff --git a/frontend/src/pages/MessagingQueues/MQDetails/DropRateView/DropRateView.tsx b/frontend/src/pages/MessagingQueues/MQDetails/DropRateView/DropRateView.tsx
index bab5f8e863..be3ab1199d 100644
--- a/frontend/src/pages/MessagingQueues/MQDetails/DropRateView/DropRateView.tsx
+++ b/frontend/src/pages/MessagingQueues/MQDetails/DropRateView/DropRateView.tsx
@@ -2,7 +2,8 @@ import { useEffect, useMemo, useRef, useState } from 'react';
import { useMutation } from 'react-query';
// eslint-disable-next-line no-restricted-imports
import { useSelector } from 'react-redux';
-import { Table, Typography } from 'antd';
+import { Table } from 'antd';
+import { Typography } from '@signozhq/ui';
import logEvent from 'api/common/logEvent';
import { MessagingQueueServicePayload } from 'api/messagingQueues/getConsumerLagDetails';
import { getKafkaSpanEval } from 'api/messagingQueues/getKafkaSpanEval';
@@ -103,12 +104,12 @@ export function getColumns(
{item}
</Typography.Text>
{shouldShowMore && (
- <Typography
+ <Typography.Text
onClick={(): void => handleShowMore(index)}
className="remaing-count"
>
+ {remainingCount} more
- </Typography>
+ </Typography.Text>
)}
</div>
);
diff --git a/frontend/src/pages/MessagingQueues/MQDetails/DropRateView/EvaluationTimeSelector.tsx b/frontend/src/pages/MessagingQueues/MQDetails/DropRateView/EvaluationTimeSelector.tsx
index a20df99490..04e98dd480 100644
--- a/frontend/src/pages/MessagingQueues/MQDetails/DropRateView/EvaluationTimeSelector.tsx
+++ b/frontend/src/pages/MessagingQueues/MQDetails/DropRateView/EvaluationTimeSelector.tsx
@@ -1,5 +1,6 @@
import { Dispatch, SetStateAction, useEffect, useState } from 'react';
-import { Input, Select, Typography } from 'antd';
+import { Input, Select } from 'antd';
+import { Typography } from '@signozhq/ui';
import './DropRateView.styles.scss';
diff --git a/frontend/src/pages/MessagingQueues/MQDetails/MQTables/MQTables.tsx b/frontend/src/pages/MessagingQueues/MQDetails/MQTables/MQTables.tsx
index 4d2d15809d..63c9d7f2e5 100644
--- a/frontend/src/pages/MessagingQueues/MQDetails/MQTables/MQTables.tsx
+++ b/frontend/src/pages/MessagingQueues/MQDetails/MQTables/MQTables.tsx
@@ -1,7 +1,8 @@
import { useEffect, useMemo, useRef, useState } from 'react';
import { useMutation } from 'react-query';
import { useHistory, useLocation } from 'react-router-dom';
-import { Skeleton, Table, Typography } from 'antd';
+import { Skeleton, Table } from 'antd';
+import { Typography } from '@signozhq/ui';
import logEvent from 'api/common/logEvent';
import {
MessagingQueueServicePayload,
@@ -81,7 +82,7 @@ export function getColumns(
e.preventDefault();
e.stopPropagation();
const path = `/services/${encodeURIComponent(text)}`;
- if (isModifierKeyPressed(e)) {
+ if (isModifierKeyPressed(e as React.MouseEvent)) {
openInNewTab(path);
} else {
history.push(path);
diff --git a/frontend/src/pages/MessagingQueues/MQDetails/MetricPage/MetricColumnGraphs.tsx b/frontend/src/pages/MessagingQueues/MQDetails/MetricPage/MetricColumnGraphs.tsx
index d2e27220e6..40b0478981 100644
--- a/frontend/src/pages/MessagingQueues/MQDetails/MetricPage/MetricColumnGraphs.tsx
+++ b/frontend/src/pages/MessagingQueues/MQDetails/MetricPage/MetricColumnGraphs.tsx
@@ -1,5 +1,5 @@
import { useTranslation } from 'react-i18next';
-import { Typography } from 'antd';
+import { Typography } from '@signozhq/ui';
import { CardContainer } from 'container/GridCardLayout/styles';
import { useIsDarkMode } from 'hooks/useDarkMode';
import { Widgets } from 'types/api/dashboard/getAll';
diff --git a/frontend/src/pages/MessagingQueues/MQDetails/MetricPage/MetricPage.tsx b/frontend/src/pages/MessagingQueues/MQDetails/MetricPage/MetricPage.tsx
index 6a2051b79f..06a07e31e0 100644
--- a/frontend/src/pages/MessagingQueues/MQDetails/MetricPage/MetricPage.tsx
+++ b/frontend/src/pages/MessagingQueues/MQDetails/MetricPage/MetricPage.tsx
@@ -1,6 +1,6 @@
import { useCallback, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
-import { Typography } from 'antd';
+import { Typography } from '@signozhq/ui';
import logEvent from 'api/common/logEvent';
import cx from 'classnames';
import { CardContainer } from 'container/GridCardLayout/styles';
diff --git a/frontend/src/pages/MetricsApplication/styles.ts b/frontend/src/pages/MetricsApplication/styles.ts
index 9582095707..080543fad3 100644
--- a/frontend/src/pages/MetricsApplication/styles.ts
+++ b/frontend/src/pages/MetricsApplication/styles.ts
@@ -1,7 +1,5 @@
-import {
- Button as ButtonComponent,
- Typography as TypographyComponent,
-} from 'antd';
+import { Button as ButtonComponent } from 'antd';
+import { Typography as TypographyComponent } from '@signozhq/ui';
import styled from 'styled-components';
export const Button = styled(ButtonComponent)`
diff --git a/frontend/src/pages/PublicDashboard/index.tsx b/frontend/src/pages/PublicDashboard/index.tsx
index a71ebbea49..4319fa4a30 100644
--- a/frontend/src/pages/PublicDashboard/index.tsx
+++ b/frontend/src/pages/PublicDashboard/index.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'react-router-dom';
-import { Typography } from 'antd';
+import { Typography } from '@signozhq/ui';
import { useGetPublicDashboardData } from 'hooks/dashboard/useGetPublicDashboardData';
import { FrownIcon } from 'lucide-react';
diff --git a/frontend/src/pages/SaveView/index.tsx b/frontend/src/pages/SaveView/index.tsx
index 3e14bf73af..6d9f2dac8c 100644
--- a/frontend/src/pages/SaveView/index.tsx
+++ b/frontend/src/pages/SaveView/index.tsx
@@ -3,7 +3,8 @@ import { useTranslation } from 'react-i18next';
import { useLocation } from 'react-router-dom';
import { Color } from '@signozhq/design-tokens';
import { Button } from '@signozhq/ui';
-import { ColorPicker, Input, Modal, Table, TableProps, Typography } from 'antd';
+import { ColorPicker, Input, Modal, Table, TableProps } from 'antd';
+import { Typography } from '@signozhq/ui';
import logEvent from 'api/common/logEvent';
import {
getViewDetailsUsingViewKey,
diff --git a/frontend/src/pages/ServiceTopLevelOperations/index.tsx b/frontend/src/pages/ServiceTopLevelOperations/index.tsx
index 17ad6117d8..322dee3283 100644
--- a/frontend/src/pages/ServiceTopLevelOperations/index.tsx
+++ b/frontend/src/pages/ServiceTopLevelOperations/index.tsx
@@ -3,7 +3,8 @@ import { ReactNode, useEffect, useMemo, useState } from 'react';
import { useSelector } from 'react-redux';
import { Link, useParams } from 'react-router-dom';
import { SyncOutlined } from '@ant-design/icons';
-import { Alert, Table, Typography } from 'antd';
+import { Alert, Table } from 'antd';
+import { Typography } from '@signozhq/ui';
import ROUTES from 'constants/routes';
import { IServiceName } from 'container/MetricsApplication/Tabs/types';
import useErrorNotification from 'hooks/useErrorNotification';
diff --git a/frontend/src/pages/Shortcuts/Shortcuts.tsx b/frontend/src/pages/Shortcuts/Shortcuts.tsx
index 5c782fbc2b..5872bb8aaf 100644
--- a/frontend/src/pages/Shortcuts/Shortcuts.tsx
+++ b/frontend/src/pages/Shortcuts/Shortcuts.tsx
@@ -1,4 +1,5 @@
-import { Table, Typography } from 'antd';
+import { Table } from 'antd';
+import { Typography } from '@signozhq/ui';
import { ALL_SHORTCUTS, generateTableData, shortcutColumns } from './utils';
diff --git a/frontend/src/pages/SignUp/SignUp.tsx b/frontend/src/pages/SignUp/SignUp.tsx
index 4675f357af..c79ca671ea 100644
--- a/frontend/src/pages/SignUp/SignUp.tsx
+++ b/frontend/src/pages/SignUp/SignUp.tsx
@@ -1,6 +1,7 @@
import { useMemo, useState } from 'react';
import { Button, Callout, Input } from '@signozhq/ui';
-import { Form, Input as AntdInput, Typography } from 'antd';
+import { Form, Input as AntdInput } from 'antd';
+import { Typography } from '@signozhq/ui';
import logEvent from 'api/common/logEvent';
import signUpApi from 'api/v1/register/post';
import passwordAuthNContext from 'api/v2/sessions/email_password/post';
@@ -108,10 +109,10 @@ function SignUp(): JSX.Element {
<Typography.Title level={4} className="signup-header-title">
Create your account
</Typography.Title>
- <Typography.Paragraph className="signup-header-subtitle">
+ <Typography.Text className="signup-header-subtitle">
You&apos;re almost in. Create a password to start monitoring your
applications with SigNoz.
- </Typography.Paragraph>
+ </Typography.Text>
</div>
<FormContainer onFinish={handleSubmit} form={form} className="signup-form">
diff --git a/frontend/src/pages/Support/Support.tsx b/frontend/src/pages/Support/Support.tsx
index 94efe55a36..c564e6a6b3 100644
--- a/frontend/src/pages/Support/Support.tsx
+++ b/frontend/src/pages/Support/Support.tsx
@@ -1,7 +1,8 @@
import { useEffect, useState } from 'react';
import { useMutation } from 'react-query';
import { useHistory, useLocation } from 'react-router-dom';
-import { Button, Card, Modal, Typography } from 'antd';
+import { Button, Card, Modal } from 'antd';
+import { Typography } from '@signozhq/ui';
import logEvent from 'api/common/logEvent';
import updateCreditCardApi from 'api/v1/checkout/create';
import { FeatureKeys } from 'constants/features';
@@ -205,7 +206,7 @@ export default function Support(): JSX.Element {
(channel): JSX.Element => (
<Card className="support-channel" key={channel.key}>
<div className="support-channel-content">
- <Title ellipsis level={5} className="support-channel-title">
+ <Title truncate={1} level={5} className="support-channel-title">
{channel.icon}
{channel.name}{' '}
</Title>
@@ -218,7 +219,7 @@ export default function Support(): JSX.Element {
type="default"
onClick={(): void => handleChannelClick(channel)}
>
- <Text ellipsis>{channel.btnText} </Text>
+ <Text truncate={1}>{channel.btnText} </Text>
{channel.isExternal && <ArrowUpRight size={14} />}
</Button>
</div>
diff --git a/frontend/src/pages/TraceDetailV2/NoData/NoData.tsx b/frontend/src/pages/TraceDetailV2/NoData/NoData.tsx
index dfe216637d..ed4481b3bf 100644
--- a/frontend/src/pages/TraceDetailV2/NoData/NoData.tsx
+++ b/frontend/src/pages/TraceDetailV2/NoData/NoData.tsx
@@ -1,4 +1,5 @@
-import { Button, Typography } from 'antd';
+import { Button } from 'antd';
+import { Typography } from '@signozhq/ui';
import { handleContactSupport } from 'container/Integrations/utils';
import { useGetTenantLicense } from 'hooks/useGetTenantLicense';
import { LifeBuoy, RefreshCw } from 'lucide-react';
diff --git a/frontend/src/pages/TraceDetailsV3/SpanDetailsPanel/SpanPercentile/SpanPercentilePanel.tsx b/frontend/src/pages/TraceDetailsV3/SpanDetailsPanel/SpanPercentile/SpanPercentilePanel.tsx
index 7b9feaba0d..9782e9cf7a 100644
--- a/frontend/src/pages/TraceDetailsV3/SpanDetailsPanel/SpanPercentile/SpanPercentilePanel.tsx
+++ b/frontend/src/pages/TraceDetailsV3/SpanDetailsPanel/SpanPercentile/SpanPercentilePanel.tsx
@@ -1,4 +1,5 @@
-import { Checkbox, Input, Select, Skeleton, Typography } from 'antd';
+import { Checkbox, Input, Select, Skeleton } from 'antd';
+import { Typography } from '@signozhq/ui';
import { getYAxisFormattedValue } from 'components/Graph/yAxisConfig';
import { DATE_TIME_FORMATS } from 'constants/dateTimeFormats';
import dayjs from 'dayjs';
diff --git a/frontend/src/pages/TraceDetailsV3/TraceWaterfall/TraceWaterfallStates/Error/Error.tsx b/frontend/src/pages/TraceDetailsV3/TraceWaterfall/TraceWaterfallStates/Error/Error.tsx
index bcbd0c3717..3f73d94e20 100644
--- a/frontend/src/pages/TraceDetailsV3/TraceWaterfall/TraceWaterfallStates/Error/Error.tsx
+++ b/frontend/src/pages/TraceDetailsV3/TraceWaterfall/TraceWaterfallStates/Error/Error.tsx
@@ -1,4 +1,5 @@
-import { Tooltip, Typography } from 'antd';
+import { Tooltip } from 'antd';
+import { Typography } from '@signozhq/ui';
import { AxiosError } from 'axios';
import './Error.styles.scss';
@@ -14,7 +15,7 @@ function Error(props: IErrorProps): JSX.Element {
<div className="error-waterfall">
<Typography.Text className="text">Something went wrong!</Typography.Text>
<Tooltip title={error?.message}>
- <Typography.Text className="value" ellipsis>
+ <Typography.Text className="value" title={error?.message} truncate={1}>
{error?.message}
</Typography.Text>
</Tooltip>
diff --git a/frontend/src/pages/TraceDetailsV3/TraceWaterfall/TraceWaterfallStates/NoData/NoData.tsx b/frontend/src/pages/TraceDetailsV3/TraceWaterfall/TraceWaterfallStates/NoData/NoData.tsx
index 0be04ffc23..1e0bddde97 100644
--- a/frontend/src/pages/TraceDetailsV3/TraceWaterfall/TraceWaterfallStates/NoData/NoData.tsx
+++ b/frontend/src/pages/TraceDetailsV3/TraceWaterfall/TraceWaterfallStates/NoData/NoData.tsx
@@ -1,4 +1,4 @@
-import { Typography } from 'antd';
+import { Typography } from '@signozhq/ui';
interface INoDataProps {
id: string;
diff --git a/frontend/src/pages/TraceDetailsV3/TraceWaterfall/TraceWaterfallStates/Success/Filters/Filters.tsx b/frontend/src/pages/TraceDetailsV3/TraceWaterfall/TraceWaterfallStates/Success/Filters/Filters.tsx
index 6d4db56b96..5605a8ba69 100644
--- a/frontend/src/pages/TraceDetailsV3/TraceWaterfall/TraceWaterfallStates/Success/Filters/Filters.tsx
+++ b/frontend/src/pages/TraceDetailsV3/TraceWaterfall/TraceWaterfallStates/Success/Filters/Filters.tsx
@@ -1,7 +1,8 @@
import { useCallback, useState } from 'react';
import { useHistory, useLocation } from 'react-router-dom';
import { InfoCircleOutlined, LoadingOutlined } from '@ant-design/icons';
-import { Button, Spin, Tooltip, Typography } from 'antd';
+import { Button, Spin, Tooltip } from 'antd';
+import { Typography } from '@signozhq/ui';
import { AxiosError } from 'axios';
import { DEFAULT_ENTITY_VERSION } from 'constants/app';
import { initialQueriesMap, PANEL_TYPES } from 'constants/queryBuilder';
diff --git a/frontend/src/pages/TraceDetailsV3/TraceWaterfall/TraceWaterfallStates/Success/__tests__/SpanDuration.test.tsx b/frontend/src/pages/TraceDetailsV3/TraceWaterfall/TraceWaterfallStates/Success/__tests__/SpanDuration.test.tsx
index ba6a170523..7600c668ec 100644
--- a/frontend/src/pages/TraceDetailsV3/TraceWaterfall/TraceWaterfallStates/Success/__tests__/SpanDuration.test.tsx
+++ b/frontend/src/pages/TraceDetailsV3/TraceWaterfall/TraceWaterfallStates/Success/__tests__/SpanDuration.test.tsx
@@ -19,9 +19,6 @@ jest.mock('components/TimelineV3/TimelineV3', () => ({
// Mock the hooks
jest.mock('hooks/useUrlQuery');
-jest.mock('@signozhq/ui', () => ({
- Badge: jest.fn(),
-}));
const mockSpan: SpanV3 = {
span_id: 'test-span-id',
diff --git a/frontend/src/pages/TracesExplorer/Filter/Filter.tsx b/frontend/src/pages/TracesExplorer/Filter/Filter.tsx
index ff09fdd1a6..3c5bef3908 100644
--- a/frontend/src/pages/TracesExplorer/Filter/Filter.tsx
+++ b/frontend/src/pages/TracesExplorer/Filter/Filter.tsx
@@ -11,7 +11,8 @@ import {
SyncOutlined,
VerticalAlignTopOutlined,
} from '@ant-design/icons';
-import { Button, Flex, Tooltip, Typography } from 'antd';
+import { Button, Flex, Tooltip } from 'antd';
+import { Typography } from '@signozhq/ui';
import logEvent from 'api/common/logEvent';
import { getMs } from 'container/Trace/Filters/Panel/PanelBody/Duration/util';
import { useGetCompositeQueryParam } from 'hooks/queryBuilder/useGetCompositeQueryParam';
diff --git a/frontend/src/pages/TracesExplorer/Filter/SectionContent.tsx b/frontend/src/pages/TracesExplorer/Filter/SectionContent.tsx
index ec56017026..ae0eb5934a 100644
--- a/frontend/src/pages/TracesExplorer/Filter/SectionContent.tsx
+++ b/frontend/src/pages/TracesExplorer/Filter/SectionContent.tsx
@@ -154,7 +154,7 @@ export function SectionBody(props: SectionBodyProps): JSX.Element {
<div className="checkbox-label">
<div className={labelClassname(item)} />
<Tooltip overlay={<div>{item}</div>} placement="rightTop">
- <ParaGraph ellipsis style={{ maxWidth: 200 }}>
+ <ParaGraph truncate={1} style={{ maxWidth: 200 }}>
{item}
</ParaGraph>
</Tooltip>
diff --git a/frontend/src/pages/TracesFunnelDetails/TracesFunnelDetails.tsx b/frontend/src/pages/TracesFunnelDetails/TracesFunnelDetails.tsx
index 0faab9aaab..2f70e9ee2a 100644
--- a/frontend/src/pages/TracesFunnelDetails/TracesFunnelDetails.tsx
+++ b/frontend/src/pages/TracesFunnelDetails/TracesFunnelDetails.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'react-router-dom';
-import { Typography } from 'antd';
+import { Typography } from '@signozhq/ui';
import Spinner from 'components/Spinner';
import { NotFoundContainer } from 'container/GridCardLayout/GridCard/FullView/styles';
import { useFunnelDetails } from 'hooks/TracesFunnels/useFunnels';
diff --git a/frontend/src/pages/TracesFunnels/components/SearchBar/SearchBar.tsx b/frontend/src/pages/TracesFunnels/components/SearchBar/SearchBar.tsx
index 1eb6d6f3b7..18c840b959 100644
--- a/frontend/src/pages/TracesFunnels/components/SearchBar/SearchBar.tsx
+++ b/frontend/src/pages/TracesFunnels/components/SearchBar/SearchBar.tsx
@@ -1,6 +1,7 @@
import { ChangeEvent } from 'react';
import { Color } from '@signozhq/design-tokens';
-import { Button, Input, Popover, Tooltip, Typography } from 'antd';
+import { Button, Input, Popover, Tooltip } from 'antd';
+import { Typography } from '@signozhq/ui';
import { ArrowDownWideNarrow, Check, Plus, Search } from 'lucide-react';
import { useAppContext } from 'providers/App/App';
diff --git a/frontend/src/pages/UnAuthorized/index.tsx b/frontend/src/pages/UnAuthorized/index.tsx
index 4d44287029..7376fd9657 100644
--- a/frontend/src/pages/UnAuthorized/index.tsx
+++ b/frontend/src/pages/UnAuthorized/index.tsx
@@ -1,5 +1,6 @@
import { useCallback } from 'react';
-import { Space, Typography } from 'antd';
+import { Space } from 'antd';
+import { Typography } from '@signozhq/ui';
import UnAuthorized from 'assets/UnAuthorized';
import { Container } from 'components/NotFound/styles';
import { handleContactSupport } from 'container/Integrations/utils';
diff --git a/frontend/src/pages/WorkspaceAccessRestricted/WorkspaceAccessRestricted.tsx b/frontend/src/pages/WorkspaceAccessRestricted/WorkspaceAccessRestricted.tsx
index 16c7d9b6a9..038db0e27d 100644
--- a/frontend/src/pages/WorkspaceAccessRestricted/WorkspaceAccessRestricted.tsx
+++ b/frontend/src/pages/WorkspaceAccessRestricted/WorkspaceAccessRestricted.tsx
@@ -1,5 +1,6 @@
import { useEffect } from 'react';
-import { Button, Col, Modal, Row, Skeleton, Space, Typography } from 'antd';
+import { Button, Col, Modal, Row, Skeleton, Space } from 'antd';
+import { Typography } from '@signozhq/ui';
import ROUTES from 'constants/routes';
import history from 'lib/history';
import { useAppContext } from 'providers/App/App';
diff --git a/frontend/src/pages/WorkspaceLocked/InfoBlocks.tsx b/frontend/src/pages/WorkspaceLocked/InfoBlocks.tsx
index 90bec521d7..5caaf9ac5c 100644
--- a/frontend/src/pages/WorkspaceLocked/InfoBlocks.tsx
+++ b/frontend/src/pages/WorkspaceLocked/InfoBlocks.tsx
@@ -1,4 +1,5 @@
-import { Col, Row, Space, Typography } from 'antd';
+import { Col, Row, Space } from 'antd';
+import { Typography } from '@signozhq/ui';
interface InfoItem {
title: string;
diff --git a/frontend/src/pages/WorkspaceLocked/WorkspaceLocked.tsx b/frontend/src/pages/WorkspaceLocked/WorkspaceLocked.tsx
index d468deef68..8edd6abe48 100644
--- a/frontend/src/pages/WorkspaceLocked/WorkspaceLocked.tsx
+++ b/frontend/src/pages/WorkspaceLocked/WorkspaceLocked.tsx
@@ -15,8 +15,8 @@ import {
Skeleton,
Space,
Tabs,
- Typography,
} from 'antd';
+import { Typography } from '@signozhq/ui';
import logEvent from 'api/common/logEvent';
import updateCreditCardApi from 'api/v1/checkout/create';
import RefreshPaymentStatus from 'components/RefreshPaymentStatus/RefreshPaymentStatus';
@@ -334,7 +334,7 @@ export default function WorkspaceBlocked(): JSX.Element {
<Typography.Title level={2}>
<div className="workspace-locked__title">Upgrade to Continue</div>
</Typography.Title>
- <Typography.Paragraph className="workspace-locked__details">
+ <Typography.Text className="workspace-locked__details">
{t('upgradeNow')}
<br />
{t('yourDataIsSafe')}{' '}
@@ -342,7 +342,7 @@ export default function WorkspaceBlocked(): JSX.Element {
{getFormattedDate(trialInfo?.gracePeriodEnd || Date.now())}
</span>{' '}
{t('actNow')}
- </Typography.Paragraph>
+ </Typography.Text>
</Space>
</Col>
</Row>
diff --git a/frontend/src/pages/WorkspaceSuspended/WorkspaceSuspended.tsx b/frontend/src/pages/WorkspaceSuspended/WorkspaceSuspended.tsx
index cb68a5f14c..93ef65e94e 100644
--- a/frontend/src/pages/WorkspaceSuspended/WorkspaceSuspended.tsx
+++ b/frontend/src/pages/WorkspaceSuspended/WorkspaceSuspended.tsx
@@ -1,17 +1,8 @@
import { useCallback, useEffect } from 'react';
import { useTranslation } from 'react-i18next';
import { useMutation } from 'react-query';
-import {
- Alert,
- Button,
- Col,
- Flex,
- Modal,
- Row,
- Skeleton,
- Space,
- Typography,
-} from 'antd';
+import { Alert, Button, Col, Flex, Modal, Row, Skeleton, Space } from 'antd';
+import { Typography } from '@signozhq/ui';
import manageCreditCardApi from 'api/v1/portal/create';
import RefreshPaymentStatus from 'components/RefreshPaymentStatus/RefreshPaymentStatus';
import ROUTES from 'constants/routes';
@@ -116,7 +107,7 @@ function WorkspaceSuspended(): JSX.Element {
<Typography.Title level={2}>
<div className="workspace-suspended__title">{t('actionHeader')}</div>
</Typography.Title>
- <Typography.Paragraph className="workspace-suspended__details">
+ <Typography.Text className="workspace-suspended__details">
{t('actionDescription')}
<br />
{t('yourDataIsSafe')}{' '}
@@ -127,7 +118,7 @@ function WorkspaceSuspended(): JSX.Element {
)}
</span>{' '}
{t('actNow')}
- </Typography.Paragraph>
+ </Typography.Text>
</Space>
</Col>
</Row>
diff --git a/frontend/src/periscope/components/JsonView/JsonView.tsx b/frontend/src/periscope/components/JsonView/JsonView.tsx
index 78724af5ab..e077fd0091 100644
--- a/frontend/src/periscope/components/JsonView/JsonView.tsx
+++ b/frontend/src/periscope/components/JsonView/JsonView.tsx
@@ -1,7 +1,8 @@
import { useState } from 'react';
import MEditor, { EditorProps, Monaco } from '@monaco-editor/react';
import { Color } from '@signozhq/design-tokens';
-import { Switch, Typography } from 'antd';
+import { Switch } from 'antd';
+import { Typography } from '@signozhq/ui';
import { useIsDarkMode } from 'hooks/useDarkMode';
import './JsonView.styles.scss';
diff --git a/frontend/src/periscope/components/PaginationInfoText/PaginationInfoText.tsx b/frontend/src/periscope/components/PaginationInfoText/PaginationInfoText.tsx
index 205e1d3db8..370e844735 100644
--- a/frontend/src/periscope/components/PaginationInfoText/PaginationInfoText.tsx
+++ b/frontend/src/periscope/components/PaginationInfoText/PaginationInfoText.tsx
@@ -1,4 +1,4 @@
-import { Typography } from 'antd';
+import { Typography } from '@signozhq/ui';
function PaginationInfoText(
total: number,
diff --git a/frontend/yarn.lock b/frontend/yarn.lock
index 4c29938ca9..9a36d5b5ba 100644
--- a/frontend/yarn.lock
+++ b/frontend/yarn.lock
@@ -4636,6 +4636,11 @@
resolved "https://registry.npmjs.org/@radix-ui/react-context/-/react-context-1.1.2.tgz"
integrity sha512-jCi/QKUM2r1Ju5a3J64TH2A5SpKAgh0LpknyqdQ4m6DCV0xJ2HG1xARRwNGPQfi1SLdLWZ1OJz6F4OMBBNiGJA==
+"@radix-ui/[email protected]":
+ version "1.1.3"
+ resolved "https://registry.yarnpkg.com/@radix-ui/react-context/-/react-context-1.1.3.tgz#81286f643b310d040eaac13b18e223130861d839"
+ integrity sha512-ieIFACdMpYfMEjF0rEf5KLvfVyIkOz6PDGyNnP+u+4xQ6jny3VCgA4OgXOwNx2aUkxn8zx9fiVcM8CfFYv9Lxw==
+
"@radix-ui/react-dialog@^1.1.11", "@radix-ui/react-dialog@^1.1.6":
version "1.1.15"
resolved "https://registry.npmjs.org/@radix-ui/react-dialog/-/react-dialog-1.1.15.tgz"
@@ -4864,13 +4869,21 @@
dependencies:
"@radix-ui/react-slot" "1.2.3"
-"@radix-ui/react-primitive@^2.0.2":
+"@radix-ui/[email protected]", "@radix-ui/react-primitive@^2.0.2":
version "2.1.4"
resolved "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.1.4.tgz"
integrity sha512-9hQc4+GNVtJAIEPEqlYqW5RiYdrr8ea5XQ0ZOnD6fgru+83kqT15mq2OCcbe8KnjRZl5vF3ks69AKz3kh1jrhg==
dependencies:
"@radix-ui/react-slot" "1.2.4"
+"@radix-ui/react-progress@^1.1.8":
+ version "1.1.8"
+ resolved "https://registry.yarnpkg.com/@radix-ui/react-progress/-/react-progress-1.1.8.tgz#9f9a68d75bf763f9c64808724a83d2de804bd061"
+ integrity sha512-+gISHcSPUJ7ktBy9RnTqbdKW78bcGke3t6taawyZ71pio1JewwGSJizycs7rLhGTvMJYCQB1DBK4KQsxs7U8dA==
+ dependencies:
+ "@radix-ui/react-context" "1.1.3"
+ "@radix-ui/react-primitive" "2.1.4"
+
"@radix-ui/react-radio-group@^1.3.4":
version "1.3.8"
resolved "https://registry.npmjs.org/@radix-ui/react-radio-group/-/react-radio-group-1.3.8.tgz"
@@ -4945,6 +4958,23 @@
aria-hidden "^1.2.4"
react-remove-scroll "^2.6.3"
+"@radix-ui/react-slider@^1.3.6":
+ version "1.3.6"
+ resolved "https://registry.yarnpkg.com/@radix-ui/react-slider/-/react-slider-1.3.6.tgz#409453110b8f34ca00972750b80cd792f0b23a8c"
+ integrity sha512-JPYb1GuM1bxfjMRlNLE+BcmBC8onfCi60Blk7OBqi2MLTFdS+8401U4uFjnwkOr49BLmXxLC6JHkvAsx5OJvHw==
+ dependencies:
+ "@radix-ui/number" "1.1.1"
+ "@radix-ui/primitive" "1.1.3"
+ "@radix-ui/react-collection" "1.1.7"
+ "@radix-ui/react-compose-refs" "1.1.2"
+ "@radix-ui/react-context" "1.1.2"
+ "@radix-ui/react-direction" "1.1.1"
+ "@radix-ui/react-primitive" "2.1.3"
+ "@radix-ui/react-use-controllable-state" "1.2.2"
+ "@radix-ui/react-use-layout-effect" "1.1.1"
+ "@radix-ui/react-use-previous" "1.1.1"
+ "@radix-ui/react-use-size" "1.1.1"
+
"@radix-ui/[email protected]":
version "1.0.2"
resolved "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.0.2.tgz"
@@ -5584,10 +5614,10 @@
tailwind-merge "^2.5.2"
tailwindcss-animate "^1.0.7"
-"@signozhq/[email protected]":
- version "0.0.12"
- resolved "https://registry.yarnpkg.com/@signozhq/ui/-/ui-0.0.12.tgz#b623c1729a0d85532d555fe7e756f3a4207e8e5d"
- integrity sha512-69XS/j9R+uTNMdupyjki/WK1j0d5K5j0/pJrINGiteQRRrPg/AOMue7v/W6dkLICRhXcz/mgI6tLeT2FAuzKFw==
+"@signozhq/[email protected]":
+ version "0.0.17"
+ resolved "https://registry.yarnpkg.com/@signozhq/ui/-/ui-0.0.17.tgz#ac14bd973fd718a869d365089ab2e6534987e2c0"
+ integrity sha512-LJDX6HvgNfTIybqWFOP+BtEXIJvQJQGZ0IFgXoMwO37wGf6CZRxRgh0Xuyw+LAS6zMTyqRCw5ghrW7UT9q/Oag==
dependencies:
"@chenglou/pretext" "^0.0.5"
"@radix-ui/react-checkbox" "^1.2.3"
@@ -5595,8 +5625,10 @@
"@radix-ui/react-dropdown-menu" "^2.1.16"
"@radix-ui/react-icons" "^1.3.0"
"@radix-ui/react-popover" "^1.1.15"
+ "@radix-ui/react-progress" "^1.1.8"
"@radix-ui/react-radio-group" "^1.3.4"
"@radix-ui/react-select" "^2.2.6"
+ "@radix-ui/react-slider" "^1.3.6"
"@radix-ui/react-slot" "^1.2.3"
"@radix-ui/react-switch" "^1.1.4"
"@radix-ui/react-tabs" "^1.1.3"
@@ -5608,6 +5640,7 @@
"@types/lodash-es" "^4.17.12"
clsx "^2.1.1"
cmdk "^1.1.1"
+ copy-text-to-clipboard "^3.2.2"
dayjs "^1.11.10"
lodash-es "^4.18.1"
motion "^11.11.17"
@@ -8768,6 +8801,11 @@ copy-anything@^2.0.1:
dependencies:
is-what "^3.14.1"
+copy-text-to-clipboard@^3.2.2:
+ version "3.2.2"
+ resolved "https://registry.yarnpkg.com/copy-text-to-clipboard/-/copy-text-to-clipboard-3.2.2.tgz#99bc79db3f2d355ec33a08d573aff6804491ddb9"
+ integrity sha512-T6SqyLd1iLuqPA90J5N4cTalrtovCySh58iiZDGJ6FGznbclKh4UI+FGacQSgFzwKG77W7XT5gwbVEbd9cIH1A==
+
copy-to-clipboard@^3.3.1, copy-to-clipboard@^3.3.3:
version "3.3.3"
resolved "https://registry.npmjs.org/copy-to-clipboard/-/copy-to-clipboard-3.3.3.tgz"