update imports

This commit is contained in:
Nate Kelley 2025-04-12 08:59:09 -06:00
parent 958dcaad68
commit 9bb9bf95e1
No known key found for this signature in database
GPG Key ID: FD90372AB8D98B4F
6 changed files with 17 additions and 25 deletions

View File

@ -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

View File

@ -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 = ({

View File

@ -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<BusterChartProps['data']>[number];

View File

@ -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 = {

View File

@ -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';

View File

@ -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<ChatResponseMessageProps> = React.memo(
({ responseMessageId, messageId, isCompletedStream }) => {