diff --git a/desktop/flipper-plugin/src/ui/data-table/DataTableDefaultPowerSearchOperators.tsx b/desktop/flipper-plugin/src/ui/data-table/DataTableDefaultPowerSearchOperators.tsx index 4fd186b37..08ba6f668 100644 --- a/desktop/flipper-plugin/src/ui/data-table/DataTableDefaultPowerSearchOperators.tsx +++ b/desktop/flipper-plugin/src/ui/data-table/DataTableDefaultPowerSearchOperators.tsx @@ -36,6 +36,11 @@ export const dataTablePowerSearchOperators = { key: 'string_not_matches_exactly', valueType: 'STRING', }), + string_set_contains_any_of: () => ({ + label: 'contains any of', + key: 'string_set_contains_any_of', + valueType: 'STRING_SET', + }), } satisfies { [key: string]: (...args: any[]) => OperatorConfig; }; @@ -57,4 +62,7 @@ export const dataTablePowerSearchOperatorProcessorConfig = { value === searchValue, string_not_matches_exactly: (operator, searchValue, value) => value !== searchValue, + // See PowerSearchStringSetTerm + string_set_contains_any_of: (operator, searchValue: string[], value) => + searchValue.some((item) => (value as string).toLowerCase().includes(item)), } satisfies PowerSearchOperatorProcessorConfig;