-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: fix the failing test by moving QuickFilters types to types.tsx
- Loading branch information
1 parent
c5512d2
commit c5b2d8b
Showing
7 changed files
with
49 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
frontend/src/components/QuickFilters/FilterRenderers/Slider/Slider.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import { BaseAutocompleteData } from 'types/api/queryBuilder/queryAutocompleteResponse'; | ||
import { Query } from 'types/api/queryBuilder/queryBuilderData'; | ||
import { DataSource } from 'types/common/queryBuilder'; | ||
|
||
export enum FiltersType { | ||
SLIDER = 'SLIDER', | ||
CHECKBOX = 'CHECKBOX', | ||
} | ||
|
||
export enum MinMax { | ||
MIN = 'MIN', | ||
MAX = 'MAX', | ||
} | ||
|
||
export enum SpecficFilterOperations { | ||
ALL = 'ALL', | ||
ONLY = 'ONLY', | ||
} | ||
|
||
export interface IQuickFiltersConfig { | ||
type: FiltersType; | ||
title: string; | ||
attributeKey: BaseAutocompleteData; | ||
aggregateOperator?: string; | ||
aggregateAttribute?: string; | ||
dataSource?: DataSource; | ||
customRendererForValue?: (value: string) => JSX.Element; | ||
defaultOpen: boolean; | ||
} | ||
|
||
export interface IQuickFiltersProps { | ||
config: IQuickFiltersConfig[]; | ||
handleFilterVisibilityChange: () => void; | ||
source: QuickFiltersSource; | ||
onFilterChange?: (query: Query) => void; | ||
} | ||
|
||
export enum QuickFiltersSource { | ||
LOGS_EXPLORER = 'logs-explorer', | ||
INFRA_MONITORING = 'infra-monitoring', | ||
TRACES_EXPLORER = 'traces-explorer', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters