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.
TypeScript apmapplication-monitoringdistributed-tracinggogood-first-issuejaegerloglogsmetricsmonitoringnextjsobservabilityopen-sourceopentelemetryprometheusreactreactjsself-hostedtracingtypescript
refactor(dashboard): group panel type picker into components and hooks (#13170)
Abhi kumar1e052cbc6493
diff --git a/frontend/src/pages/DashboardPage/DashboardContainer/PanelEditor/ConfigPane/PanelTypeSwitcher/PanelTypeSwitcher.tsx b/frontend/src/pages/DashboardPage/DashboardContainer/PanelEditor/ConfigPane/PanelTypeSwitcher/PanelTypeSwitcher.tsxindex e8e4558246..c60a97032d 100644--- a/frontend/src/pages/DashboardPage/DashboardContainer/PanelEditor/ConfigPane/PanelTypeSwitcher/PanelTypeSwitcher.tsx+++ b/frontend/src/pages/DashboardPage/DashboardContainer/PanelEditor/ConfigPane/PanelTypeSwitcher/PanelTypeSwitcher.tsx@@ -5,7 +5,7 @@ import { DrawerWrapper } from '@signozhq/ui/drawer';import type { TelemetrytypesSignalDTO } from 'api/generated/services/sigNoz.schemas';import type { EQueryType } from 'types/common/dashboard';-import PanelTypeBrowser from '../../../PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/PanelTypeBrowser';+import PanelTypeBrowser from '../../../PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/components/PanelTypeBrowser/PanelTypeBrowser';import { getPanelDefinition } from '../../../Panels/registry';import type { PanelKind } from '../../../Panels/types/panelKind';import { JS_DRIVEN_SLIDE } from '../../../utils/drawerSlide';diff --git a/frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/PanelTypeSelectionModal.tsx b/frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/PanelTypeSelectionModal.tsxindex 31fa3038ef..ab822ec0a0 100644--- a/frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/PanelTypeSelectionModal.tsx+++ b/frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/PanelTypeSelectionModal.tsx@@ -7,11 +7,11 @@ import { releasePanelPickerTarget } from '../../../store/usePanelPickerTargetStoimport type { NewPanelTarget } from '../../../patchOps';import type { PanelKind } from '../../../Panels/types/panelKind';import { JS_DRIVEN_SLIDE } from '../../../utils/drawerSlide';-import AddPanelSplitButton from './AddPanelSplitButton';-import NewSectionNameInput from './NewSectionNameInput';-import PanelTypeBrowser from './PanelTypeBrowser';-import { usePanelPickerDraftSection } from './usePanelPickerDraftSection';-import { usePanelPickerTarget } from './usePanelPickerTarget';+import AddPanelSplitButton from './components/AddPanelSplitButton/AddPanelSplitButton';+import NewSectionNameInput from './components/NewSectionNameInput/NewSectionNameInput';+import PanelTypeBrowser from './components/PanelTypeBrowser/PanelTypeBrowser';+import { usePanelPickerDraftSection } from './hooks/usePanelPickerDraftSection';+import { usePanelPickerTarget } from './hooks/usePanelPickerTarget';import { buildSectionOptions, resolveDefaultSectionValue } from './utils';import styles from './PanelTypeSelectionModal.module.scss';diff --git a/frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/AddPanelSplitButton.module.scss b/frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/components/AddPanelSplitButton/AddPanelSplitButton.module.scsssimilarity index 100%rename from frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/AddPanelSplitButton.module.scssrename to frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/components/AddPanelSplitButton/AddPanelSplitButton.module.scssdiff --git a/frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/AddPanelSplitButton.tsx b/frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/components/AddPanelSplitButton/AddPanelSplitButton.tsxsimilarity index 97%rename from frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/AddPanelSplitButton.tsxrename to frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/components/AddPanelSplitButton/AddPanelSplitButton.tsxindex 2a81f4050b..c00d9fed53 100644--- a/frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/AddPanelSplitButton.tsx+++ b/frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/components/AddPanelSplitButton/AddPanelSplitButton.tsx@@ -3,7 +3,7 @@ import { ChevronUp, Plus } from '@signozhq/icons';import { Button } from '@signozhq/ui/button';import { Dropdown, type DropdownItemType } from '@signozhq/ui/dropdown';-import type { SectionOption } from './types';+import type { SectionOption } from '../../types';import styles from './AddPanelSplitButton.module.scss';diff --git a/frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/NewSectionNameInput.module.scss b/frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/components/NewSectionNameInput/NewSectionNameInput.module.scsssimilarity index 100%rename from frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/NewSectionNameInput.module.scssrename to frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/components/NewSectionNameInput/NewSectionNameInput.module.scssdiff --git a/frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/NewSectionNameInput.tsx b/frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/components/NewSectionNameInput/NewSectionNameInput.tsxsimilarity index 100%rename from frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/NewSectionNameInput.tsxrename to frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/components/NewSectionNameInput/NewSectionNameInput.tsxdiff --git a/frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/PanelTypeBrowser.module.scss b/frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/components/PanelTypeBrowser/PanelTypeBrowser.module.scsssimilarity index 59%rename from frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/PanelTypeBrowser.module.scssrename to frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/components/PanelTypeBrowser/PanelTypeBrowser.module.scssindex aed056005e..66465c6531 100644--- a/frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/PanelTypeBrowser.module.scss+++ b/frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/components/PanelTypeBrowser/PanelTypeBrowser.module.scss@@ -88,76 +88,6 @@gap: 12px;}-.tile {- display: flex;- flex-direction: column;- gap: 12px;- padding: 12px;- border: 1px solid var(--l1-border);- border-radius: 6px;- background: var(--l2-background);- font: inherit;- text-align: left;- cursor: pointer;- transition:- background-color 200ms cubic-bezier(0.08, 0.52, 0.52, 1),- border-color 200ms cubic-bezier(0.08, 0.52, 0.52, 1);-- &:hover {- background: var(--l3-background);- }-}--.tileSelected {- border-color: var(--bg-robin-500);- box-shadow: inset 0 0 0 1px var(--bg-robin-500);- background: var(--l3-background);-}--.tileDisabled {- opacity: 0.45;- cursor: not-allowed;-- &:hover {- background: var(--l2-background);- }-}--.tileText {- display: flex;- flex-direction: column;- gap: 3px;-}--.tileTitle {- display: flex;- align-items: center;- gap: 7px;-}--.tileName {- color: var(--l1-foreground);- font-size: 13.5px;- font-weight: 500;-}--.newBadge {- padding: 2px 6px;- border: 1px solid var(--bg-sienna-400);- border-radius: 3px;- color: var(--bg-sienna-400);- font-size: 9.5px;- font-weight: 500;- letter-spacing: 0.6px;- text-transform: uppercase;-}--.tileDescription {- color: var(--l2-foreground);- font-size: 12px;- line-height: 1.45;-}-.empty {display: flex;flex-direction: column;diff --git a/frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/PanelTypeBrowser.tsx b/frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/components/PanelTypeBrowser/PanelTypeBrowser.tsxsimilarity index 95%rename from frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/PanelTypeBrowser.tsxrename to frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/components/PanelTypeBrowser/PanelTypeBrowser.tsxindex e109a95d2c..92b90a8e50 100644--- a/frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/PanelTypeBrowser.tsx+++ b/frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/components/PanelTypeBrowser/PanelTypeBrowser.tsx@@ -4,12 +4,12 @@ import { Button } from '@signozhq/ui/button';import { Input } from '@signozhq/ui/input';import cx from 'classnames';-import type { PanelKind } from '../../../Panels/types/panelKind';+import type { PanelKind } from '../../../../../Panels/types/panelKind';import {filterPanelTypeGroups,type PanelTypeGroupId,} from './panelTypeCatalog';-import PanelTypeTile from './PanelTypeTile';+import PanelTypeTile from '../PanelTypeTile/PanelTypeTile';import styles from './PanelTypeBrowser.module.scss';diff --git a/frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/panelTypeCatalog.ts b/frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/components/PanelTypeBrowser/panelTypeCatalog.tssimilarity index 94%rename from frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/panelTypeCatalog.tsrename to frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/components/PanelTypeBrowser/panelTypeCatalog.tsindex 4c293e8e65..2410706905 100644--- a/frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/panelTypeCatalog.ts+++ b/frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/components/PanelTypeBrowser/panelTypeCatalog.ts@@ -1,5 +1,8 @@-import { PANEL_OPTIONS, type PanelOption } from '../../../Panels/registry';-import type { PanelKind } from '../../../Panels/types/panelKind';+import {+ PANEL_OPTIONS,+ type PanelOption,+} from '../../../../../Panels/registry';+import type { PanelKind } from '../../../../../Panels/types/panelKind';export type PanelTypeGroupId =| 'trends'diff --git a/frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/PanelTypePreview.module.scss b/frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/components/PanelTypePreview/PanelTypePreview.module.scsssimilarity index 100%rename from frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/PanelTypePreview.module.scssrename to frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/components/PanelTypePreview/PanelTypePreview.module.scssdiff --git a/frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/PanelTypePreview.tsx b/frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/components/PanelTypePreview/PanelTypePreview.tsxsimilarity index 81%rename from frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/PanelTypePreview.tsxrename to frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/components/PanelTypePreview/PanelTypePreview.tsxindex ba00b6d6c9..3bffe8b737 100644--- a/frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/PanelTypePreview.tsx+++ b/frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/components/PanelTypePreview/PanelTypePreview.tsx@@ -1,4 +1,4 @@-import type { PanelKind } from '../../../Panels/types/panelKind';+import type { PanelKind } from '../../../../../Panels/types/panelKind';import { PANEL_TYPE_PREVIEWS } from './panelTypePreviews';import styles from './PanelTypePreview.module.scss';diff --git a/frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/PreviewBars.tsx b/frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/components/PanelTypePreview/PreviewBars.tsxsimilarity index 100%rename from frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/PreviewBars.tsxrename to frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/components/PanelTypePreview/PreviewBars.tsxdiff --git a/frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/PreviewRows.tsx b/frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/components/PanelTypePreview/PreviewRows.tsxsimilarity index 100%rename from frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/PreviewRows.tsxrename to frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/components/PanelTypePreview/PreviewRows.tsxdiff --git a/frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/panelTypePreviews.tsx b/frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/components/PanelTypePreview/panelTypePreviews.tsxsimilarity index 98%rename from frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/panelTypePreviews.tsxrename to frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/components/PanelTypePreview/panelTypePreviews.tsxindex 1763d40891..5d6c261dcb 100644--- a/frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/panelTypePreviews.tsx+++ b/frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/components/PanelTypePreview/panelTypePreviews.tsx@@ -1,4 +1,4 @@-import type { PanelKind } from '../../../Panels/types/panelKind';+import type { PanelKind } from '../../../../../Panels/types/panelKind';import PreviewBars from './PreviewBars';import PreviewRows, { type PreviewCell } from './PreviewRows';diff --git a/frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/components/PanelTypeTile/PanelTypeTile.module.scss b/frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/components/PanelTypeTile/PanelTypeTile.module.scssnew file mode 100644index 0000000000..faa976e155--- /dev/null+++ b/frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/components/PanelTypeTile/PanelTypeTile.module.scss@@ -0,0 +1,69 @@+.tile {+ display: flex;+ flex-direction: column;+ gap: 12px;+ padding: 12px;+ border: 1px solid var(--l1-border);+ border-radius: 6px;+ background: var(--l2-background);+ font: inherit;+ text-align: left;+ cursor: pointer;+ transition:+ background-color 200ms cubic-bezier(0.08, 0.52, 0.52, 1),+ border-color 200ms cubic-bezier(0.08, 0.52, 0.52, 1);++ &:hover {+ background: var(--l3-background);+ }+}++.tileSelected {+ border-color: var(--bg-robin-500);+ box-shadow: inset 0 0 0 1px var(--bg-robin-500);+ background: var(--l3-background);+}++.tileDisabled {+ opacity: 0.45;+ cursor: not-allowed;++ &:hover {+ background: var(--l2-background);+ }+}++.tileText {+ display: flex;+ flex-direction: column;+ gap: 3px;+}++.tileTitle {+ display: flex;+ align-items: center;+ gap: 7px;+}++.tileName {+ color: var(--l1-foreground);+ font-size: 13.5px;+ font-weight: 500;+}++.newBadge {+ padding: 2px 6px;+ border: 1px solid var(--bg-sienna-400);+ border-radius: 3px;+ color: var(--bg-sienna-400);+ font-size: 9.5px;+ font-weight: 500;+ letter-spacing: 0.6px;+ text-transform: uppercase;+}++.tileDescription {+ color: var(--l2-foreground);+ font-size: 12px;+ line-height: 1.45;+}diff --git a/frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/PanelTypeTile.tsx b/frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/components/PanelTypeTile/PanelTypeTile.tsxsimilarity index 86%rename from frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/PanelTypeTile.tsxrename to frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/components/PanelTypeTile/PanelTypeTile.tsxindex 1a66b43347..53874b2bf9 100644--- a/frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/PanelTypeTile.tsx+++ b/frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/components/PanelTypeTile/PanelTypeTile.tsx@@ -1,10 +1,10 @@import { Tooltip } from '@signozhq/ui/tooltip';import cx from 'classnames';-import type { PanelTypeItem } from './panelTypeCatalog';-import PanelTypePreview from './PanelTypePreview';+import type { PanelTypeItem } from '../PanelTypeBrowser/panelTypeCatalog';+import PanelTypePreview from '../PanelTypePreview/PanelTypePreview';-import styles from './PanelTypeBrowser.module.scss';+import styles from './PanelTypeTile.module.scss';interface PanelTypeTileProps {item: PanelTypeItem;diff --git a/frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/usePanelPickerDraftSection.ts b/frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/hooks/usePanelPickerDraftSection.tssimilarity index 79%rename from frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/usePanelPickerDraftSection.tsrename to frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/hooks/usePanelPickerDraftSection.tsindex eed2b8392a..daeeb47a39 100644--- a/frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/usePanelPickerDraftSection.ts+++ b/frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/hooks/usePanelPickerDraftSection.ts@@ -1,7 +1,7 @@import { useEffect } from 'react';-import type { PanelKind } from '../../../Panels/types/panelKind';-import { usePanelPickerTargetStore } from '../../../store/usePanelPickerTargetStore';+import type { PanelKind } from '../../../../Panels/types/panelKind';+import { usePanelPickerTargetStore } from '../../../../store/usePanelPickerTargetStore';export function usePanelPickerDraftSection(title: string | null,diff --git a/frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/usePanelPickerTarget.ts b/frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/hooks/usePanelPickerTarget.tssimilarity index 84%rename from frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/usePanelPickerTarget.tsrename to frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/hooks/usePanelPickerTarget.tsindex c4fd4f0615..d0c5fa099e 100644--- a/frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/usePanelPickerTarget.ts+++ b/frontend/src/pages/DashboardPage/DashboardContainer/PanelsAndSectionsLayout/Panel/PanelTypeSelectionModal/hooks/usePanelPickerTarget.ts@@ -1,7 +1,7 @@import { useEffect } from 'react';-import type { PanelKind } from '../../../Panels/types/panelKind';-import { usePanelPickerTargetStore } from '../../../store/usePanelPickerTargetStore';+import type { PanelKind } from '../../../../Panels/types/panelKind';+import { usePanelPickerTargetStore } from '../../../../store/usePanelPickerTargetStore';interface UsePanelPickerTargetArgs {open: boolean;