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
{{ message }}
Repository navigation
Commit 9ddbf39
Browse filesBrowse the repository at this point in the historyBrowse files
docs(spec): describe the view filter any-of group as live, not planned
The console half landed (toFilterNode lowers a group to one or node
inside the list's AND, and the builder edits a one-group filter), so
ViewFilterOrGroupSchema's PLANNED docblock and describe, the $or refusal
prose in filter-rule-array.ts and the view liveness note now state the
live behaviour. Tests that pinned the old wording are updated.
Claude-Session: https://claude.ai/code/session_01JQwxbYCMdGp2Cju6A39cTB
Co-authored-by: Claude <noreply@anthropic.com>
docs(spec): the view filter any-of group is described as live, not planned
6
+
7
+
Clause-②: no
8
+
Metadata-protocol: none
9
+
10
+
The console now applies a view filter's any-of group `{ or: [rule, ...] }`: the list query lowers it to one `or` node ANDed with the filter's other elements, and the filter builder edits a filter that is exactly one group. Two author-facing texts still said otherwise and are corrected:
11
+
12
+
-`ViewFilterOrGroupSchema`'s description (what `/meta/types` and the generated reference show) no longer starts with `[PLANNED — not yet rendered]` and no longer says a view that stores a group is refused when it loads.
13
+
- The refusal for a MongoDB-style `$or` on a rule-array `filter` still prescribes the any-of group element, and no longer adds that no console applies it.
14
+
15
+
Nothing an author can write changes: the schema accepts and refuses exactly what it did.
Copy file name to clipboardExpand all lines: packages/spec/liveness/view.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -49,7 +49,7 @@
49
49
},
50
50
"filter": {
51
51
"status": "live",
52
-
"note": "objectui: ListView.tsx client-side filter shaping (audit L15); no list-render prop reaches the server query (audit data-flow note). The console's filter rows carry a React list key that the wire door removes before the parse (packages/spec/src/ui/view.zod.ts, the VIEW_CONSOLE_ROW_DECORATIONS header and the ViewFilterRule docblock; moved out of spec source, #23434): `id: crypto.randomUUID()` is stamped on each new row by objectui @b9814b334 packages/components/src/custom/filter-builder.tsx#FilterBuilder (its `addCondition`), and again on a stored filter read back into the builder by objectui @b9814b334 packages/plugin-view/src/config/view-config-utils.ts#parseTriplet and objectui @b9814b334 packages/plugin-view/src/config/view-config-utils.ts#parseSingleOrNested (both reached from that file's parseSpecFilter); re-read 2026-10-15, first cited by line, sha-less. One element kind rides this live verdict at PLANNED strength (#28020, 2026-10-31): the any-of group `{ or: [rule, ...] }` (ViewFilterOrGroupSchema, its describe marked `[PLANNED — not yet rendered]`) has no console reader yet — the list query build (ui/packages/plugin-list/src/ListView.tsx, buildEffectiveFilter; ui/packages/core/src/utils/filter-converter.ts, convertFiltersToAST) and the builder save fold (ui/packages/app-shell/src/views/viewFilterFold.ts, which refuses an OR group) read flat rules only, read on this tree at 22ce3d13fe. The console half is #28370; amend this note, citing the group read, when it lands."
52
+
"note": "objectui: ListView.tsx client-side filter shaping (audit L15); no list-render prop reaches the server query (audit data-flow note). The console's filter rows carry a React list key that the wire door removes before the parse (packages/spec/src/ui/view.zod.ts, the VIEW_CONSOLE_ROW_DECORATIONS header and the ViewFilterRule docblock; moved out of spec source, #23434): `id: crypto.randomUUID()` is stamped on each new row by objectui @b9814b334 packages/components/src/custom/filter-builder.tsx#FilterBuilder (its `addCondition`), and again on a stored filter read back into the builder by objectui @b9814b334 packages/plugin-view/src/config/view-config-utils.ts#parseTriplet and objectui @b9814b334 packages/plugin-view/src/config/view-config-utils.ts#parseSingleOrNested (both reached from that file's parseSpecFilter); re-read 2026-10-15, first cited by line, sha-less. The any-of group element `{ or: [rule, ...] }` (ViewFilterOrGroupSchema, #28020, 2026-10-31) rides this live verdict at full strength since its console half landed (#28370, PR #28475): the list query build lowers it to one `or` node inside the list's AND (ui/packages/core/src/utils/filter-converter.ts, toFilterNode via viewFilterOrGroupToNode, reached from ui/packages/plugin-list/src/ListView.tsx buildEffectiveFilter through mergeFilterNodes and ui/packages/plugin-view/src/ObjectView.tsx), the builder save fold writes an OR group over two or more rules as one group (ui/packages/app-shell/src/views/viewFilterFold.ts) and builderRulesOfSpecFilter reads exactly-one-group back as the builder's OR logic; read on this tree at 94d3e254, 2026-11-02. Its describe lost the `[PLANNED — not yet rendered]` marker in the same change (#28522)."
0 commit comments