You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(DataTable): add case-sensitivity control for string filters (#229)
* feat(DataTable): add case-insensitive option to string filters
Add a "Case insensitive" checkbox to StringFilterEditor in DataTable.Filters.
When enabled, the filter is internally converted to a regex operator with
(?i) prefix for case-insensitive matching on the Tailor Platform API.
Changes:
- Add caseInsensitive?: boolean to Filter type
- Add regex to OPERATORS_BY_FILTER_TYPE.string
- Extend addFilter with filterOptions parameter
- Add toCaseInsensitiveRegex helper that converts operator+value to regex
- Add checkbox UI in StringFilterEditor
- Show (Aa) suffix on filter chip when case-insensitive is active
- Add i18n labels (en/ja) for filterCaseInsensitive
- Add tests for UI checkbox and regex conversion logic
* fix: add case-insensitive checkbox to AddFilterPopover
The checkbox was only in the edit popover (StringFilterEditor).
Now also shown in the add-new-filter popover for string type filters.
* refactor: flip to caseSensitive (default is case-insensitive)
- Rename caseInsensitive -> caseSensitive on Filter type and options
- Default behavior (caseSensitive=false or unset via UI) uses regex (?i)
- Checkbox now labeled 'Case sensitive'; checking it opts into exact match
- Only triggers regex when caseSensitive is explicitly false (backward compat)
* fix(example): handle regex operator and case-sensitivity in mock-data
- Add regex operator support (parses (?i) prefix for case-insensitive)
- Remove unconditional toLowerCase in matchStringOperator so that
case-sensitive mode (original operators) works correctly
* Format
* Add changeset
* Format
Add case-sensitivity control for string filters in `DataTable.Filters`. String filters are now case-insensitive by default (using Tailor Platform's `regex` operator with `(?i)` prefix). A "Case sensitive" checkbox allows users to opt into exact-case matching.
6
+
7
+
The `Filter` type and `CollectionControl.addFilter` now accept an optional `caseSensitive` property to control this behavior programmatically.
0 commit comments