1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

feat: global search by flag type (#7346)

This commit is contained in:
Mateusz Kwasniewski 2024-06-11 10:14:29 +02:00 committed by GitHub
parent 24c0976d56
commit 76c8cbad0c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 15 additions and 0 deletions

View File

@ -104,6 +104,20 @@ export const FeatureToggleFilters: VFC<IFeatureToggleFiltersProps> = ({
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);

View File

@ -106,6 +106,7 @@ export const FeatureToggleListTable: VFC = () => {
state: FilterItemParam,
segment: FilterItemParam,
createdAt: FilterItemParam,
type: FilterItemParam,
};
const [tableState, setTableState] = usePersistentTableState(
'features-list-table',