mirror of https://github.com/buster-so/buster.git
update imports
This commit is contained in:
parent
958dcaad68
commit
9bb9bf95e1
|
@ -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
|
||||
|
|
|
@ -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 = ({
|
||||
|
|
|
@ -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];
|
||||
|
|
|
@ -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 = {
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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 }) => {
|
||||
|
|
Loading…
Reference in New Issue