Commit 110e3ae
committed
feat: advanced filter redesign with enhanced operators and nested groups
Major UX redesign and feature enhancements for the Advanced Filter modal:
Filter Enhancements:
- Add $in/$notIn operator with tag-based multi-value input
- Add $between operator with dual-input (field-type-aware)
- Add $not negation checkbox per filter row
- Add case-insensitive operators ($eqi, $containsi, $startsWithi, etc.)
- Align operator sets with native Strapi Content Manager filters
UI/UX Improvements:
- Redesign modal layout: card-style rows, improved spacing
- Increase modal size (720px width, 90vh height) for better usability
- Add "Enter value" labels with context-aware text
- Fix DatePicker z-index overlap issue
- Fix CustomSelect dark mode (text colors, backgrounds)
- Standardize input heights to 32px for visual consistency
- Split filter row into two lines: field+operator on top, value below
- Add value type badges and better visual hierarchy
Nested Groups (Premium Feature):
- Add FilterGroup interface for hierarchical filter structure
- Implement color-coded group containers (blue=AND, orange=OR)
- Add group management: add/remove groups, toggle AND/OR logic
- Support unlimited nesting depth
- Auto-populate relations from nested structures
- Enable via license check (Premium/Advanced tiers only)
Technical:
- Extend FilterRow with valueTo and negate fields
- Add generateFromGroup() for nested query generation
- Update buildFilterFromPath() to handle new operators
- Add recursive group rendering and state management
- Improve error handling for validation
Breaking Changes: None - backward compatible with flat mode1 parent 634590e commit 110e3ae
5 files changed
Lines changed: 1203 additions & 169 deletions
File tree
- admin/src
- components
- utils
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
90 | 91 | | |
91 | 92 | | |
92 | 93 | | |
| 94 | + | |
93 | 95 | | |
94 | 96 | | |
95 | 97 | | |
| |||
290 | 292 | | |
291 | 293 | | |
292 | 294 | | |
293 | | - | |
| 295 | + | |
294 | 296 | | |
295 | 297 | | |
296 | 298 | | |
| |||
310 | 312 | | |
311 | 313 | | |
312 | 314 | | |
| 315 | + | |
313 | 316 | | |
314 | 317 | | |
315 | 318 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
37 | | - | |
| 38 | + | |
| 39 | + | |
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
43 | | - | |
| 45 | + | |
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
| |||
63 | 65 | | |
64 | 66 | | |
65 | 67 | | |
66 | | - | |
| 68 | + | |
67 | 69 | | |
68 | 70 | | |
69 | 71 | | |
| |||
73 | 75 | | |
74 | 76 | | |
75 | 77 | | |
76 | | - | |
| 78 | + | |
77 | 79 | | |
78 | 80 | | |
79 | 81 | | |
80 | 82 | | |
81 | 83 | | |
82 | 84 | | |
83 | 85 | | |
84 | | - | |
| 86 | + | |
85 | 87 | | |
86 | 88 | | |
87 | 89 | | |
| |||
109 | 111 | | |
110 | 112 | | |
111 | 113 | | |
| 114 | + | |
| 115 | + | |
112 | 116 | | |
113 | 117 | | |
114 | 118 | | |
| |||
0 commit comments