From 17c57f6d756e171679e370fd07e95955dcbd5ed7 Mon Sep 17 00:00:00 2001 From: Nate Kelley Date: Thu, 30 Jan 2025 16:53:57 -0700 Subject: [PATCH] metric interfaces in correct place --- web/src/api/asset_interfaces/index.ts | 1 + web/src/api/{buster_rest => asset_interfaces}/metric/index.ts | 0 .../api/{buster_rest => asset_interfaces}/metric/interfaces.ts | 0 web/src/api/buster_socket/chats/chatAssetInterfaces/index.ts | 2 +- .../app/app/_components/Buttons/SaveMetricToDashboardButton.tsx | 2 +- .../app/app/_components/Dropdowns/SaveToDashboardDropdown.tsx | 2 +- 6 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 web/src/api/asset_interfaces/index.ts rename web/src/api/{buster_rest => asset_interfaces}/metric/index.ts (100%) rename web/src/api/{buster_rest => asset_interfaces}/metric/interfaces.ts (100%) diff --git a/web/src/api/asset_interfaces/index.ts b/web/src/api/asset_interfaces/index.ts new file mode 100644 index 000000000..c40852a3f --- /dev/null +++ b/web/src/api/asset_interfaces/index.ts @@ -0,0 +1 @@ +export type * from './metric'; diff --git a/web/src/api/buster_rest/metric/index.ts b/web/src/api/asset_interfaces/metric/index.ts similarity index 100% rename from web/src/api/buster_rest/metric/index.ts rename to web/src/api/asset_interfaces/metric/index.ts diff --git a/web/src/api/buster_rest/metric/interfaces.ts b/web/src/api/asset_interfaces/metric/interfaces.ts similarity index 100% rename from web/src/api/buster_rest/metric/interfaces.ts rename to web/src/api/asset_interfaces/metric/interfaces.ts diff --git a/web/src/api/buster_socket/chats/chatAssetInterfaces/index.ts b/web/src/api/buster_socket/chats/chatAssetInterfaces/index.ts index 17db2e091..758c60028 100644 --- a/web/src/api/buster_socket/chats/chatAssetInterfaces/index.ts +++ b/web/src/api/buster_socket/chats/chatAssetInterfaces/index.ts @@ -3,7 +3,7 @@ import type { BusterDashboardAsset } from './chatAssetDashboardInterfaces'; import type { BusterDatasetAsset } from './chatAssetDatasetInterfaces'; import type { BusterTermAsset } from './chatAssetTermInterfaces'; import type { BusterValueAsset } from './chatAssetValueInterfaces'; -import { BusterMetricAsset } from '@/api/buster_rest/metric'; +import type { BusterMetricAsset } from '@/api/asset_interfaces'; export * from '../../share/shareInterfaces'; export type BusterChatAsset = diff --git a/web/src/app/app/_components/Buttons/SaveMetricToDashboardButton.tsx b/web/src/app/app/_components/Buttons/SaveMetricToDashboardButton.tsx index 3de6cf910..9d5c90dc8 100644 --- a/web/src/app/app/_components/Buttons/SaveMetricToDashboardButton.tsx +++ b/web/src/app/app/_components/Buttons/SaveMetricToDashboardButton.tsx @@ -5,7 +5,7 @@ import React from 'react'; import { SaveToDashboardDropdown } from '../Dropdowns/SaveToDashboardDropdown'; import { Button } from 'antd'; import { AppMaterialIcons } from '@/components/icons'; -import { BusterMetricAsset } from '@/api/buster_rest/metric'; +import type { BusterMetricAsset } from '@/api/asset_interfaces'; const EMPTY_SELECTED_DASHBOARDS: BusterMetricAsset['dashboards'] = []; diff --git a/web/src/app/app/_components/Dropdowns/SaveToDashboardDropdown.tsx b/web/src/app/app/_components/Dropdowns/SaveToDashboardDropdown.tsx index 06d49d5b6..e4fc51596 100644 --- a/web/src/app/app/_components/Dropdowns/SaveToDashboardDropdown.tsx +++ b/web/src/app/app/_components/Dropdowns/SaveToDashboardDropdown.tsx @@ -8,7 +8,7 @@ import { Button } from 'antd'; import { AppDropdownSelect } from '@/components/dropdown'; import { AppTooltip } from '@/components/tooltip'; import { AppMaterialIcons } from '@/components/icons'; -import type { BusterMetricAsset } from '@/api/buster_rest/metric'; +import type { BusterMetricAsset } from '@/api/asset_interfaces'; import type { BusterDashboardListItem } from '@/api/buster_rest/dashboards'; export const SaveToDashboardDropdown: React.FC<{