From 76c8cbad0cf894fbfdddb4133026b6d381539af8 Mon Sep 17 00:00:00 2001 From: Mateusz Kwasniewski Date: Tue, 11 Jun 2024 10:14:29 +0200 Subject: [PATCH] feat: global search by flag type (#7346) --- .../FeatureToggleFilters/FeatureToggleFilters.tsx | 14 ++++++++++++++ .../FeatureToggleList/FeatureToggleListTable.tsx | 1 + 2 files changed, 15 insertions(+) diff --git a/frontend/src/component/feature/FeatureToggleList/FeatureToggleFilters/FeatureToggleFilters.tsx b/frontend/src/component/feature/FeatureToggleList/FeatureToggleFilters/FeatureToggleFilters.tsx index 9b1c4731cb..833722b782 100644 --- a/frontend/src/component/feature/FeatureToggleList/FeatureToggleFilters/FeatureToggleFilters.tsx +++ b/frontend/src/component/feature/FeatureToggleList/FeatureToggleFilters/FeatureToggleFilters.tsx @@ -104,6 +104,20 @@ export const FeatureToggleFilters: VFC = ({ filterKey: 'createdAt', dateOperators: ['IS_ON_OR_AFTER', 'IS_BEFORE'], }, + { + label: 'Flag type', + icon: 'flag', + options: [ + { label: 'Release', value: 'release' }, + { label: 'Experiment', value: 'experiment' }, + { label: 'Operational', value: 'operational' }, + { label: 'Kill switch', value: 'kill-switch' }, + { label: 'Permission', value: 'permission' }, + ], + filterKey: 'type', + singularOperators: ['IS', 'IS_NOT'], + pluralOperators: ['IS_ANY_OF', 'IS_NONE_OF'], + }, ]; setAvailableFilters(availableFilters); diff --git a/frontend/src/component/feature/FeatureToggleList/FeatureToggleListTable.tsx b/frontend/src/component/feature/FeatureToggleList/FeatureToggleListTable.tsx index 34525ae5e5..41b856daea 100644 --- a/frontend/src/component/feature/FeatureToggleList/FeatureToggleListTable.tsx +++ b/frontend/src/component/feature/FeatureToggleList/FeatureToggleListTable.tsx @@ -106,6 +106,7 @@ export const FeatureToggleListTable: VFC = () => { state: FilterItemParam, segment: FilterItemParam, createdAt: FilterItemParam, + type: FilterItemParam, }; const [tableState, setTableState] = usePersistentTableState( 'features-list-table',