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(dashboard): enable cmd+click for dashboard name in list (#3947)

Joe Miltond8a8430a5be0
diff --git a/frontend/src/container/ListOfDashboard/TableComponents/Name.tsx b/frontend/src/container/ListOfDashboard/TableComponents/Name.tsx
index 6a85e7e136..a3f3427b6c 100644
--- a/frontend/src/container/ListOfDashboard/TableComponents/Name.tsx
+++ b/frontend/src/container/ListOfDashboard/TableComponents/Name.tsx
@@ -1,7 +1,6 @@
import { LockFilled } from '@ant-design/icons';
import ROUTES from 'constants/routes';
import history from 'lib/history';
-import { generatePath } from 'react-router-dom';
import { Data } from '..';
import { TableLinkText } from './styles';
@@ -9,12 +8,14 @@ import { TableLinkText } from './styles';
function Name(name: Data['name'], data: Data): JSX.Element {
const { id: DashboardId, isLocked } = data;
- const onClickHandler = (): void => {
- history.push(
- generatePath(ROUTES.DASHBOARD, {
- dashboardId: DashboardId,
- }),
- );
+ const getLink = (): string => `${ROUTES.ALL_DASHBOARD}/${DashboardId}`;
+
+ const onClickHandler = (event: React.MouseEvent<HTMLElement>): void => {
+ if (event.metaKey || event.ctrlKey) {
+ window.open(getLink(), '_blank');
+ } else {
+ history.push(getLink());
+ }
};
return (