move fonts around

This commit is contained in:
Nate Kelley 2025-02-18 13:14:17 -07:00
parent 30006a2cd9
commit 82f7765060
No known key found for this signature in database
GPG Key ID: FD90372AB8D98B4F
36 changed files with 26 additions and 43 deletions

View File

@ -1,4 +1,4 @@
import type { DataSourceTypes } from '../datasources'; import type { DataSourceTypes } from '../datasources/interfaces';
export interface BusterDatasetListItem { export interface BusterDatasetListItem {
id: string; id: string;

View File

@ -1,5 +1,5 @@
import type { BusterChartConfigProps } from '@/components/charts'; import type { BusterChartConfigProps } from '@/components/charts';
import { BusterShare, VerificationStatus } from '../share'; import { type BusterShare, type VerificationStatus } from '../share';
export type BusterMetric = { export type BusterMetric = {
id: string; id: string;

View File

@ -1,8 +1,4 @@
import { import { useCreateReactMutation, useCreateReactQuery } from '@/api/createReactQuery';
PREFETCH_STALE_TIME,
useCreateReactMutation,
useCreateReactQuery
} from '@/api/createReactQuery';
import { import {
createDataset, createDataset,
deployDataset, deployDataset,
@ -17,6 +13,10 @@ import {
import { useMemoizedFn } from 'ahooks'; import { useMemoizedFn } from 'ahooks';
import { QueryClient, useQueryClient } from '@tanstack/react-query'; import { QueryClient, useQueryClient } from '@tanstack/react-query';
import { queryKeys } from '@/api/query_keys'; import { queryKeys } from '@/api/query_keys';
import { datasetQueryKeys } from '@/api/query_keys/datasets';
const options = datasetQueryKeys.datasetsListQueryOptions();
const baseDatasetQueryKey = options.queryKey;
export const useGetDatasets = (params?: Parameters<typeof getDatasets>[0]) => { export const useGetDatasets = (params?: Parameters<typeof getDatasets>[0]) => {
const queryFn = useMemoizedFn(() => { const queryFn = useMemoizedFn(() => {
@ -24,7 +24,7 @@ export const useGetDatasets = (params?: Parameters<typeof getDatasets>[0]) => {
}); });
const res = useCreateReactQuery({ const res = useCreateReactQuery({
...queryKeys.datasetsList(params), ...queryKeys.datasetsListQueryOptions(params),
queryFn queryFn
}); });
@ -41,7 +41,7 @@ export const prefetchGetDatasets = async (
const queryClient = queryClientProp || new QueryClient(); const queryClient = queryClientProp || new QueryClient();
await queryClient.prefetchQuery({ await queryClient.prefetchQuery({
...queryKeys.datasetsList(params), ...queryKeys.datasetsListQueryOptions(params),
queryFn: () => getDatasets_server(params) queryFn: () => getDatasets_server(params)
}); });
@ -84,7 +84,7 @@ export const useCreateDataset = () => {
const queryClient = useQueryClient(); const queryClient = useQueryClient();
const onSuccess = useMemoizedFn(() => { const onSuccess = useMemoizedFn(() => {
queryClient.invalidateQueries({ queryKey: queryKeys.datasetsList().queryKey, exact: true }); queryClient.invalidateQueries({ queryKey: baseDatasetQueryKey, exact: true });
}); });
return useCreateReactMutation({ return useCreateReactMutation({
@ -102,7 +102,7 @@ export const useDeployDataset = () => {
return useCreateReactMutation({ return useCreateReactMutation({
mutationFn, mutationFn,
onSuccess: (data, variables, context) => { onSuccess: (data, variables, context) => {
queryClient.invalidateQueries({ queryKey: queryKeys.datasetsList().queryKey, exact: true }); queryClient.invalidateQueries({ queryKey: baseDatasetQueryKey, exact: true });
} }
}); });
}; };
@ -116,7 +116,7 @@ export const useUpdateDataset = () => {
export const useDeleteDataset = () => { export const useDeleteDataset = () => {
const queryClient = useQueryClient(); const queryClient = useQueryClient();
const onSuccess = useMemoizedFn(() => { const onSuccess = useMemoizedFn(() => {
queryClient.invalidateQueries({ queryKey: queryKeys.datasetsList().queryKey, exact: true }); queryClient.invalidateQueries({ queryKey: baseDatasetQueryKey, exact: true });
}); });
return useCreateReactMutation({ return useCreateReactMutation({
mutationFn: deleteDataset, mutationFn: deleteDataset,

View File

@ -1,10 +1,9 @@
'use client';
import { queryOptions } from '@tanstack/react-query'; import { queryOptions } from '@tanstack/react-query';
import type { BusterDataset, BusterDatasetListItem, IDataResult } from '../asset_interfaces'; import type { BusterDataset, BusterDatasetListItem } from '../asset_interfaces/datasets/interfaces';
import type { GetDatasetsParams } from '../request_interfaces/dataset'; import type { IDataResult } from '../asset_interfaces/metric/interfaces';
import type { GetDatasetsParams } from '../request_interfaces/dataset/interfaces';
const datasetsList = (params?: GetDatasetsParams) => const datasetsListQueryOptions = (params?: GetDatasetsParams) =>
queryOptions<BusterDatasetListItem[]>({ queryOptions<BusterDatasetListItem[]>({
queryKey: ['datasets', params] queryKey: ['datasets', params]
}); });
@ -21,7 +20,7 @@ const datasetMetadata = (datasetId: string) =>
}); });
export const datasetQueryKeys = { export const datasetQueryKeys = {
datasetsList, datasetsListQueryOptions,
datasetData, datasetData,
datasetMetadata datasetMetadata
}; };

View File

@ -11,6 +11,7 @@ import { datasetQueryKeys } from './datasets';
import { permissionGroupQueryKeys } from './permission_groups'; import { permissionGroupQueryKeys } from './permission_groups';
export const queryKeys = { export const queryKeys = {
...datasetQueryKeys,
...chatQueryKeys, ...chatQueryKeys,
...collectionQueryKeys, ...collectionQueryKeys,
...userQueryKeys, ...userQueryKeys,
@ -20,6 +21,5 @@ export const queryKeys = {
...termsQueryKeys, ...termsQueryKeys,
...datasourceQueryKeys, ...datasourceQueryKeys,
...datasetGroupQueryKeys, ...datasetGroupQueryKeys,
...datasetQueryKeys,
...permissionGroupQueryKeys ...permissionGroupQueryKeys
}; };

View File

@ -1,13 +1,12 @@
@import './base/_fonts'; @import './tailwind';
@import './base/_tailwind'; @import './fonts';
@import './base/_antd'; @import './antd';
@import './base/_reset'; @import './reset';
@import './base/_sql'; @import './sql';
@import './loaders'; @import './loaders';
@import './transitions.scss'; @import './animations';
@import './animations.scss'; @import './monaco';
@import './monaco.scss'; @import '../components/layout/AppSplitter/SplitPane/themes/default';
@import '../components/layout/AppSplitter/SplitPane/themes/default.scss';
@import 'react-data-grid/lib/styles.css'; @import 'react-data-grid/lib/styles.css';
h1, h1,

View File

@ -1,9 +1,3 @@
@tailwind base; @tailwind base;
@tailwind components; @tailwind components;
@tailwind utilities; @tailwind utilities;
@layer base {
img {
@apply inline-block;
}
}

View File

@ -1,9 +0,0 @@
@keyframes pop {
0% {
transform: translate3d(var(--translate-x, 0), var(--translate-y, 0), 0) scale(1);
}
100% {
transform: translate3d(var(--translate-x, 0), var(--translate-y, 0), 0) scale(var(--scale));
box-shadow: var(--box-shadow);
}
}