From 9bb9bf95e10dffb8abcf5fdc51c55cb7292e1e33 Mon Sep 17 00:00:00 2001 From: Nate Kelley Date: Sat, 12 Apr 2025 08:59:09 -0600 Subject: [PATCH] update imports --- .../features/buttons/FilterDashboardButton.tsx | 8 +------- .../hooks/useSeriesOptions/barSeriesBuilder.ts | 12 ++++++------ .../useDatasetOptions/datasetHelpers_BarLinePie.ts | 8 ++++---- .../useDatasetOptions/useDatasetOptions.tsx | 8 ++++---- web/src/components/ui/color-picker/ColorPicker.tsx | 4 +--- .../ChatResponseMessage_Text.tsx | 2 +- 6 files changed, 17 insertions(+), 25 deletions(-) diff --git a/web/src/components/features/buttons/FilterDashboardButton.tsx b/web/src/components/features/buttons/FilterDashboardButton.tsx index f4c93a3c9..d38dd20c6 100644 --- a/web/src/components/features/buttons/FilterDashboardButton.tsx +++ b/web/src/components/features/buttons/FilterDashboardButton.tsx @@ -4,18 +4,12 @@ import { ArrowUpRight, BarsFilter } from '@/components/ui/icons'; import { Dropdown } from '@/components/ui/dropdown'; import { MagnifierSparkle } from '@/components/ui/icons'; import { Text } from '@/components/ui/typography'; -import { faker } from '@faker-js/faker'; import { cn } from '@/lib/classMerge'; import { DropdownMenuHeaderSearch } from '@/components/ui/dropdown/DropdownMenuHeaderSearch'; import { useDebounceSearch, useMemoizedFn } from '@/hooks'; const items = Array.from({ length: 100 }, (_, index) => { - const randomWord = - faker.commerce.productAdjective() + - ' ' + - faker.commerce.productMaterial() + - ' ' + - faker.airline.airline().name; + const randomWord = 'Filter ' + index; return { label: randomWord, value: randomWord + index diff --git a/web/src/components/ui/charts/BusterChartJS/hooks/useSeriesOptions/barSeriesBuilder.ts b/web/src/components/ui/charts/BusterChartJS/hooks/useSeriesOptions/barSeriesBuilder.ts index fb1498d02..c2de6d46c 100644 --- a/web/src/components/ui/charts/BusterChartJS/hooks/useSeriesOptions/barSeriesBuilder.ts +++ b/web/src/components/ui/charts/BusterChartJS/hooks/useSeriesOptions/barSeriesBuilder.ts @@ -1,18 +1,18 @@ import type { ChartProps } from '../../core'; -import { SeriesBuilderProps } from './interfaces'; -import { LabelBuilderProps } from './useSeriesOptions'; +import type { SeriesBuilderProps } from './interfaces'; +import type { LabelBuilderProps } from './useSeriesOptions'; import { formatChartLabelDelimiter, formatYAxisLabel, yAxisSimilar } from '../../../commonHelpers'; import { dataLabelFontColorContrast, formatBarAndLineDataLabel } from '../../helpers'; -import { BarElement } from 'chart.js'; -import { Context } from 'chartjs-plugin-datalabels'; +import type { BarElement } from 'chart.js'; +import type { Context } from 'chartjs-plugin-datalabels'; import { defaultLabelOptionConfig } from '../useChartSpecificOptions/labelOptionConfig'; import type { Options } from 'chartjs-plugin-datalabels/types/options'; import { DEFAULT_CHART_LAYOUT } from '../../ChartJSTheme'; import { extractFieldsFromChain } from '../../../chartHooks'; import { - BusterChartProps, + type BusterChartProps, DEFAULT_COLUMN_LABEL_FORMAT, - IColumnLabelFormat + type IColumnLabelFormat } from '@/api/asset_interfaces/metric'; export const barSeriesBuilder = ({ diff --git a/web/src/components/ui/charts/chartHooks/useDatasetOptions/datasetHelpers_BarLinePie.ts b/web/src/components/ui/charts/chartHooks/useDatasetOptions/datasetHelpers_BarLinePie.ts index 7d38ccb3f..436127f2d 100644 --- a/web/src/components/ui/charts/chartHooks/useDatasetOptions/datasetHelpers_BarLinePie.ts +++ b/web/src/components/ui/charts/chartHooks/useDatasetOptions/datasetHelpers_BarLinePie.ts @@ -4,16 +4,16 @@ import { type BusterChartProps, type ChartType, type BarSortBy, - PieSortBy + type PieSortBy } from '@/api/asset_interfaces/metric/charts'; import { createDayjsDate } from '@/lib/date'; import { extractFieldsFromChain, appendToKeyValueChain } from './groupingHelpers'; import { DATASET_IDS, GROUPING_SEPARATOR } from './config'; -import { DatasetOption } from './interfaces'; +import type { DatasetOption } from './interfaces'; import { - ColumnMetaData, + type ColumnMetaData, DEFAULT_COLUMN_LABEL_FORMAT, - SimplifiedColumnType + type SimplifiedColumnType } from '@/api/asset_interfaces/metric'; type DataItem = NonNullable[number]; diff --git a/web/src/components/ui/charts/chartHooks/useDatasetOptions/useDatasetOptions.tsx b/web/src/components/ui/charts/chartHooks/useDatasetOptions/useDatasetOptions.tsx index 483a31004..78cf4189d 100644 --- a/web/src/components/ui/charts/chartHooks/useDatasetOptions/useDatasetOptions.tsx +++ b/web/src/components/ui/charts/chartHooks/useDatasetOptions/useDatasetOptions.tsx @@ -1,7 +1,7 @@ 'use client'; import { useMemo } from 'react'; -import { +import type { BusterChartConfigProps, BusterChartProps, ChartType, @@ -10,7 +10,7 @@ import { ScatterAxis, Trendline, ComboChartAxis, - type IColumnLabelFormat, + IColumnLabelFormat, PieSortBy } from '@/api/asset_interfaces/metric/charts'; import uniq from 'lodash/uniq'; @@ -31,8 +31,8 @@ import { mapScatterData, processScatterData } from './datasetHelpers_Scatter'; -import { TrendlineDataset, useDataTrendlineOptions } from './useDataTrendlineOptions'; -import { DatasetOption } from './interfaces'; +import { type TrendlineDataset, useDataTrendlineOptions } from './useDataTrendlineOptions'; +import type { DatasetOption } from './interfaces'; import { DEFAULT_COLUMN_LABEL_FORMAT } from '@/api/asset_interfaces/metric'; type DatasetHookResult = { diff --git a/web/src/components/ui/color-picker/ColorPicker.tsx b/web/src/components/ui/color-picker/ColorPicker.tsx index 3410c057b..0e50b32fd 100644 --- a/web/src/components/ui/color-picker/ColorPicker.tsx +++ b/web/src/components/ui/color-picker/ColorPicker.tsx @@ -2,9 +2,7 @@ import { forwardRef, useCallback, useMemo, useState } from 'react'; import { HexColorPicker } from 'react-colorful'; -import { cn } from '@/lib/utils'; -import { Button, ButtonProps } from '@/components/ui/buttons'; -import { Popover, PopoverRoot, PopoverContent, PopoverTrigger } from '@/components/ui/popover'; +import { PopoverRoot, PopoverContent, PopoverTrigger } from '@/components/ui/popover'; import { Input } from '@/components/ui/inputs'; import { useDebounceFn } from '@/hooks'; import { cva } from 'class-variance-authority'; diff --git a/web/src/layouts/ChatLayout/ChatContainer/ChatContent/ChatResponseMessages/ChatResponseMessage_Text.tsx b/web/src/layouts/ChatLayout/ChatContainer/ChatContent/ChatResponseMessages/ChatResponseMessage_Text.tsx index 53a4ed01a..a97c17925 100644 --- a/web/src/layouts/ChatLayout/ChatContainer/ChatContent/ChatResponseMessages/ChatResponseMessage_Text.tsx +++ b/web/src/layouts/ChatLayout/ChatContainer/ChatContent/ChatResponseMessages/ChatResponseMessage_Text.tsx @@ -2,7 +2,7 @@ import React from 'react'; import { ChatResponseMessageProps } from './ChatResponseMessageSelector'; import { BusterChatResponseMessage_text } from '@/api/asset_interfaces'; import { useGetChatMessage } from '@/api/buster_rest/chats'; -import { AppMarkdown } from '@/components/ui/typography/AppMarkdown'; +import { AppMarkdownDynamic as AppMarkdown } from '@/components/ui/typography/AppMarkdown/AppMarkdownDynamic'; export const ChatResponseMessage_Text: React.FC = React.memo( ({ responseMessageId, messageId, isCompletedStream }) => {