…e (objectui#10061)
Ruling batch #146 item 5 letter A (objectstack#18012) declares a between pair with
one blank bound incomplete: not emitted, AND shown as incomplete. The first half
has held since objectui#5025 — every write path folds the row through the
builder's arity-aware isFilterValueComplete — but the drop was silent: the author
saw a bound they had typed while the row counted for nothing.
The blank bound now carries aria-invalid, an aria-describedby description naming
the missing side, and a destructive border. A diagnostic, never a refusal: the
completeness rule is untouched, nothing gates on the marker, and the group's other
rows keep applying.
Only the asymmetric state is marked. Both bounds blank is the untouched row
Add filter draws; both filled is a complete range; a non-pair operator never
renders it. isValueUnset, never !bound (objectui#4873): [0, ''] is marked on its
upper bound and [0, 10] is complete.
The description reuses the shared validation.required key rather than declaring a
new one, mirrored verbatim in this file's createSafeTranslation defaults table as
form.tsx already does, so no locale pack has to move.
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xr7APep6jm1Zta3KUzPzZf
Fixes #10061
Clause-②: no — an accessibility diagnostic on an input this component already
accepts. No new exported prop, no new published key, no widening of any accepted set.
Ruling batch #146 item 5 letter A (objectstack#18012, maintainer 「146 同意」) declares a
betweenpair with one blank bound incomplete: not emitted, AND shown as incomplete.What was already true, measured before writing anything
The 「not emitted」 half has held since objectui#5025. Every write path reachable from this
builder folds the row through the builder's own arity-aware
isFilterValueComplete, andeach one has its own pin — all five files below are green on this branch, unchanged:
foldFilterGroupToSpecRules(app-shell/src/views/viewFilterFold.ts)FilterBuilderField, which folds through itviewFilterFold.pairValue.test.ts,viewFilterFold.builderSetOperators.test.tsxsanitizeViewOverride(app-shell/src/views/ObjectView.tsx)ObjectView.overlayPairValue.test.tsconvertFilterGroupToAST(plugin-list/src/ListView.tsx)convertFilterGroupToAST.test.ts,convertFilterGroupToAST.canonicalSpelling.test.tsgroupToCondition(app-shell/.../inspectors/datasetFilterCondition.ts)filterdatasetFilterCondition.unmappedInert-9372.test.tsThe fourth is the dataset-filter bridge, which drops
betweenwholesale — mapped bynothing, inert by objectui#9372, and its own card. Firing control for that census: a tree
grep for the predicate also lands on
packages/fields'FilterConditionField, which onlymentions it in prose while keeping a second rule of its own (objectui#9914, landed).
So the deliverable here is the other half only, and it was entirely unbuilt: the file
carried zero
aria-invalid(control: fouraria-labelhits in the same file). An authorwho typed one bound saw their value sitting on screen while every write path discarded the
whole row, with nothing anywhere saying so.
What this adds
The blank bound of a half-filled pair now carries
aria-invalid, anaria-describedbydescription naming the missing side (「To is required」), and a destructive border — the
shadcn
Inputthis file renders carries noaria-invalidstyling of its own, so theattribute alone would show a sighted author nothing.
⛔ A diagnostic, never a refusal. The completeness rule is untouched,
reshapeFilterValueand
toPairBoundsare untouched (the render-side padding is inert draft state and stays),nothing gates on the marker — the only non-test reader of
aria-invalidin this tree is aCSS
has-[]selector inplugin-chatbot— and the group's other rows keep applying.Only the asymmetric state is marked. Both bounds blank is the untouched row
Add filterdraws, and is no more half-written than an
equalsrow with no value yet; both filled is acomplete range; a non-pair operator never renders it.
isValueUnset, never!bound(objectui#4873):[0, '']is marked on its upper bound and[0, 10]is complete and marked nowhere. Atruthiness reading would mark the
0the author had just typed and leave the blank sideclean — exactly backwards, and the way this fix goes wrong.
Why
aria-invalidand not a new spellingAsked, not assumed. This tree has one structural spelling for 「the editor will not take
what is in this control」 —
aria-invalid, pinned that way inCelPredicateField,ConditionWidget,ConditionalFormattingEditorandConditionBuilder— and no separate「not finished yet」 idiom exists to use instead.
LocationFieldis the precedent for awidget computing its own, rather than receiving a host's error slot.
The one caveat found while checking:
celAuthoring.tstiesaria-invalidto a severity thesave gates count, so the attribute reads as 「refused」 in that region. It is defensible here
because the gate half does not exist on this surface — nothing reads the attribute — and
because the marked value genuinely fails validation: objectstack#18012's spec half, merged,
now refuses
{$between: [1, '']}at parse. Firing only on the asymmetric state is whatkeeps it off the 「invalid while the user is still typing」 anti-pattern.
i18n
No locale pack moves. The description reuses the shared
validation.requiredkey(
{{field}} is required, already in all ten packs) with the bound's own label filled intothe hole, mirrored verbatim in this file's
createSafeTranslationdefaults table exactly asthis package's
form.tsxalready mirrors that same row. Declaring a privatefilterBuilder.*sentence would have been a new string for ten translators and a secondauthority on the wording.
Ablation — two legs, each discriminating
The two halves are pinned in two files on purpose, so a single mutation cannot red both and
prove neither. Both legs: anchor matched exactly once, the write verified on disk in both
directions, restore by
git checkout HEAD -- pathverified by blob hash.missingBoundforced tonull): the new affordance filegoes 7 failed,
filter-builder-pair-completeness.test.tsxstays green.Test Files 1 failed | 1 passed (2).reading):
filter-builder-pair-completeness.test.tsxgoes 5 failed, the new affordancefile stays green.
Test Files 1 failed | 1 passed (2).Verification
pnpm exec vitest run packages/components/src/__tests__/—Test Files 169 passed,Tests 1656 passed(run from the repo root, with the twoviewFilterFoldfold tests).Test Files 5 passed,Tests 103 passed.packages/components' owntype-check, both legs:tsc --noEmitexit 0 andtsc -p tsconfig.test.jsonexit 0, after building the dependency closure(
pnpm --filter '@object-ui/components^...' build) — without ittsccannot resolve theworkspace
.d.tsand reports a prerequisite failure, not a type error.pnpm check:i18n-keys·check:i18n-drift·check:i18n-dead-keys·check:control-bytes·
check:test-path-roots·check:changeset-claims·check:new-line-citations·node scripts/check-changeset-presence.mjs— all exit 0, each captured to a file and readback rather than judged through a pipe.
eslint packages/components --format jsonselected 501 files by eslint's own config resolution and reported 0 errors (962
pre-existing warnings; this repo deliberately sets no
--max-warnings). The narrowing issafe to state because no type-aware linting is configured —
eslint.config.jsdeclares noprojectServiceand noparserOptions.project— so this diff cannot move the verdict onany file it did not touch. The repo-wide run is CI's.
All readings above are from the tree at
d31d17177.Acceptance notes
plugin-list'sUserFiltersis a second range surface with adifferent answer. An authored
date-rangeuser filter lowers a half-filled pair to aone-sided query in
emitFilters(only the bound that is filled becomes a>=or<=), so nothing is dropped and nobetweenis emitted — a different mechanism, not thisdefect, and arguably correct on its own terms. What is left is an inconsistency between two
surfaces: half-typing a range means 「open-ended」 in one and 「nothing yet」 in the other.
Not a reproducible defect, no declared contract broken, no trap that makes an AI author
refused metadata ⇒ outside the three filing classes. Carrier: none named — no open PR or
queued card touches that file.
session_01Xr7APep6jm1Zta3KUzPzZfis the seat session behind this branch.Generated by Claude Code