+
+
+ onTextChange(target),
+ }}
+ css={noBottomMargin}
+ label={t('Rule Name')}
+ data-test="rule-name-test"
+ />
+
+
+
+
+ {t('Filter Type')}{' '}
+
+
+
+
+
+
+
+
+
+ {t('Tables')} *
+
+
+
+
+
+
+
+ {t('Roles')}{' '}
+
+
+
+
+
+
+ onTextChange(target),
+ }}
+ css={noBottomMargin}
+ label={t('Group Key')}
+ hasTooltip
+ tooltipText={t(
+ `Filters with the same group key will be ORed together within the group, while different filter groups will be ANDed together. Undefined group keys are treated as unique groups, i.e. are not grouped together. For example, if a table has three filters, of which two are for departments Finance and Marketing (group key = 'department'), and one refers to the region Europe (group key = 'region'), the filter clause would apply the filter (department = 'Finance' OR department = 'Marketing') AND (region = 'Europe').`,
+ )}
+ data-test="group-key-test"
+ />
+
+
+
+
+
+ onTextChange(target),
+ }}
+ css={noBottomMargin}
+ label={t('Clause')}
+ hasTooltip
+ tooltipText={t(
+ 'This is the condition that will be added to the WHERE clause. For example, to only return rows for a particular client, you might define a regular filter with the clause `client_id = 9`. To display no rows unless a user belongs to a RLS filter role, a base filter can be created with the clause `1 = 0` (always false).',
+ )}
+ data-test="clause-test"
+ />
+
+
+
+
+ {t('Description')}
+
+
+
+
+