-
-
-
-
-
+ const showReduceTo = useMemo(
+ () =>
+ dataSource === DataSource.METRICS &&
+ (panelType === PANEL_TYPES.TABLE ||
+ panelType === PANEL_TYPES.PIE ||
+ panelType === PANEL_TYPES.VALUE),
+ [dataSource, panelType],
+ );
-
,
- onClick: handleCloneEntity,
- },
- {
- label: 'Delete',
- key: 'delete-query',
- icon:
,
- onClick: handleDeleteQuery,
- },
- ],
- }}
- placement="bottomRight"
- >
-
-
+ return (
+
+
+ {!showOnlyWhereClause && (
+
+
+
+
+
+
+
,
+ onClick: handleCloneEntity,
+ },
+ {
+ label: 'Delete',
+ key: 'delete-query',
+ icon:
,
+ onClick: handleDeleteQuery,
+ },
+ ],
+ }}
+ placement="bottomRight"
+ >
+
+
+
-
+ )}
@@ -136,13 +147,20 @@ export const QueryV2 = memo(function QueryV2({
-
+ {!showOnlyWhereClause &&
}
- {dataSource === DataSource.METRICS && (
+ {!showOnlyWhereClause && dataSource === DataSource.METRICS && (
)}
-
+ {!showOnlyWhereClause && (
+
+ )}
diff --git a/frontend/src/container/DownloadV2/DownloadV2.tsx b/frontend/src/container/DownloadV2/DownloadV2.tsx
index 95630efcb992..c1dc9182dd63 100644
--- a/frontend/src/container/DownloadV2/DownloadV2.tsx
+++ b/frontend/src/container/DownloadV2/DownloadV2.tsx
@@ -69,7 +69,7 @@ function Download({ data, isLoading, fileName }: DownloadProps): JSX.Element {
}
>
}
/>
diff --git a/frontend/src/container/ExplorerOptions/ExplorerOptions.styles.scss b/frontend/src/container/ExplorerOptions/ExplorerOptions.styles.scss
index 179003da452b..20dcf2833d57 100644
--- a/frontend/src/container/ExplorerOptions/ExplorerOptions.styles.scss
+++ b/frontend/src/container/ExplorerOptions/ExplorerOptions.styles.scss
@@ -1,12 +1,15 @@
.explorer-options-container {
position: fixed;
- bottom: 24px;
+ bottom: 8px;
left: calc(50% + 240px);
transform: translate(calc(-50% - 120px), 0);
transition: left 0.2s linear;
+ border-radius: 6px;
+ border: 1px solid var(--Slate-500, #161922);
+ background: var(--Ink-300, #16181d);
+
display: flex;
- gap: 16px;
background-color: transparent;
.multi-alert-button,
@@ -32,19 +35,15 @@
.explorer-update {
display: inline-flex;
align-items: center;
- gap: 12px;
- padding: 10px 10px;
- border-radius: 50px;
- border: 1px solid var(--bg-slate-400);
- background: rgba(22, 24, 29, 0.6);
- backdrop-filter: blur(20px);
+ gap: 4px;
+ padding: 8px;
+ background: var(--Ink-300, #16181d);
.action-icon {
display: flex;
justify-content: center;
align-items: center;
- padding: 8px;
- border-radius: 50px;
+ padding: 6px;
border: 1px solid var(--bg-slate-400);
background: var(--bg-slate-500);
cursor: pointer;
@@ -64,10 +63,7 @@
.explorer-options {
padding: 10px 12px;
- border: 1px solid var(--bg-slate-400);
- border-radius: 50px;
- background: rgba(22, 24, 29, 0.6);
- backdrop-filter: blur(20px);
+ background: var(--Ink-300, #16181d);
cursor: default;
display: flex;
@@ -96,27 +92,6 @@
align-items: center;
gap: 8px;
- button {
- display: flex;
- justify-content: center;
- align-items: center;
- border: none;
-
- border: 1px solid #1d2023;
-
- box-shadow: none !important;
-
- &.ant-btn-round {
- padding: 8px 12px 8px 10px;
- font-weight: 500;
- }
-
- &.ant-btn-round:disabled {
- background-color: rgba(209, 209, 209, 0.074);
- color: #5f5f5f;
- }
- }
-
.ant-select-focused {
border-color: transparent !important;
diff --git a/frontend/src/container/ExplorerOptions/ExplorerOptions.tsx b/frontend/src/container/ExplorerOptions/ExplorerOptions.tsx
index cb74b1bb5dbd..8d8a9b63b28b 100644
--- a/frontend/src/container/ExplorerOptions/ExplorerOptions.tsx
+++ b/frontend/src/container/ExplorerOptions/ExplorerOptions.tsx
@@ -1,12 +1,10 @@
/* eslint-disable react/jsx-props-no-spreading */
import './ExplorerOptions.styles.scss';
-import { InfoCircleOutlined } from '@ant-design/icons';
import { Color } from '@signozhq/design-tokens';
import {
Button,
ColorPicker,
- Divider,
Input,
Modal,
RefSelectProps,
@@ -45,14 +43,7 @@ import { useHandleExplorerTabChange } from 'hooks/useHandleExplorerTabChange';
import { useNotifications } from 'hooks/useNotifications';
import { mapCompositeQueryFromQuery } from 'lib/newQueryBuilder/queryBuilderMappers/mapCompositeQueryFromQuery';
import { cloneDeep, isEqual, omit } from 'lodash-es';
-import {
- Check,
- ConciergeBell,
- Disc3,
- PanelBottomClose,
- Plus,
- X,
-} from 'lucide-react';
+import { Check, ConciergeBell, Disc3, Plus, X } from 'lucide-react';
import { useAppContext } from 'providers/App/App';
import { FormattingOptions } from 'providers/preferences/types';
import {
@@ -78,10 +69,8 @@ import ExplorerOptionsHideArea from './ExplorerOptionsHideArea';
import { PreservedViewsInLocalStorage } from './types';
import {
DATASOURCE_VS_ROUTES,
- generateRGBAFromHex,
getRandomColor,
saveNewViewHandler,
- setExplorerToolBarVisibility,
} from './utils';
const allowedRoles = [USER_ROLES.ADMIN, USER_ROLES.AUTHOR, USER_ROLES.EDITOR];
@@ -253,12 +242,6 @@ function ExplorerOptions({
const extraData = viewsData?.data?.data?.find((view) => view.id === viewKey)
?.extraData;
- const extraDataColor = extraData ? JSON.parse(extraData).color : '';
- const rgbaColor = generateRGBAFromHex(
- extraDataColor || Color.BG_SIENNA_500,
- 0.08,
- );
-
const { options, handleOptionsChange } = useOptionsMenu({
storageKey:
sourcepage === DataSource.TRACES
@@ -589,13 +572,6 @@ function ExplorerOptions({
[isDarkMode],
);
- const hideToolbar = (): void => {
- setExplorerToolBarVisibility(false, sourcepage);
- if (setIsExplorerOptionHidden) {
- setIsExplorerOptionHidden(true);
- }
- };
-
const isEditDeleteSupported = allowedRoles.includes(user.role as string);
const [
@@ -647,27 +623,6 @@ function ExplorerOptions({
viewsData?.data?.data,
]);
- const infoIconText = useMemo(() => {
- if (isLogsExplorer) {
- return 'Learn more about Logs explorer';
- }
- if (isMetricsExplorer) {
- return 'Learn more about Metrics explorer';
- }
- return 'Learn more about Traces explorer';
- }, [isLogsExplorer, isMetricsExplorer]);
-
- const infoIconLink = useMemo(() => {
- if (isLogsExplorer) {
- return 'https://signoz.io/docs/product-features/logs-explorer/?utm_source=product&utm_medium=logs-explorer-toolbar';
- }
- // TODO: Add metrics explorer info icon link
- if (isMetricsExplorer) {
- return '';
- }
- return 'https://signoz.io/docs/product-features/trace-explorer/?utm_source=product&utm_medium=trace-explorer-toolbar';
- }, [isLogsExplorer, isMetricsExplorer]);
-
const getQueryName = (query: Query): string => {
if (query.builder.queryFormulas.length > 0) {
return `Formula ${query.builder.queryFormulas[0].queryName}`;
@@ -680,11 +635,10 @@ function ExplorerOptions({
const selectLabel = (
}
- >
- Create an Alert
-
+ />
);
return (