Commit dab0fda
fix(spec): enforce ViewFilterRuleSchema operator enum + typed sort
- `operator`: z.string() → z.enum([equals, not_equals, contains,
not_contains, starts_with, ends_with, greater_than, less_than,
greater_than_or_equal, less_than_or_equal, in, not_in, is_empty,
is_not_empty, is_null, is_not_null, before, after, between])
so the SchemaForm renderer auto-generates a Select dropdown instead
of a generic text input.
- `sort`: z.union([z.string(), z.array(...)]) → z.array(...) only.
The union form confused the RepeaterField, causing it to render no
UI at all for the sort sub-field.
- Updated a test fixture (task.view.ts) and share-link object
(sys-share-link.object.ts) to use valid operators / array sort.
- Fixed spec tests to match the new enum (this_quarter → is_empty,
gte → greater_than_or_equal, string sort → array sort).
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent d02a1b4 commit dab0fda
4 files changed
Lines changed: 24 additions & 22 deletions
File tree
- examples/app-showcase/src/ui/views
- packages
- plugins/plugin-sharing/src/objects
- spec/src/ui
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
| 101 | + | |
107 | 102 | | |
108 | 103 | | |
109 | 104 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
295 | | - | |
| 295 | + | |
296 | 296 | | |
297 | 297 | | |
298 | | - | |
| 298 | + | |
299 | 299 | | |
300 | 300 | | |
301 | 301 | | |
| |||
734 | 734 | | |
735 | 735 | | |
736 | 736 | | |
737 | | - | |
| 737 | + | |
738 | 738 | | |
739 | 739 | | |
740 | 740 | | |
| |||
2478 | 2478 | | |
2479 | 2479 | | |
2480 | 2480 | | |
2481 | | - | |
| 2481 | + | |
2482 | 2482 | | |
2483 | 2483 | | |
2484 | 2484 | | |
2485 | 2485 | | |
2486 | 2486 | | |
2487 | 2487 | | |
2488 | | - | |
| 2488 | + | |
2489 | 2489 | | |
2490 | 2490 | | |
2491 | 2491 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
76 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
77 | 87 | | |
78 | 88 | | |
79 | 89 | | |
| |||
551 | 561 | | |
552 | 562 | | |
553 | 563 | | |
554 | | - | |
555 | | - | |
556 | | - | |
| 564 | + | |
557 | 565 | | |
558 | | - | |
559 | | - | |
560 | | - | |
| 566 | + | |
| 567 | + | |
561 | 568 | | |
562 | 569 | | |
563 | 570 | | |
| |||
0 commit comments