Repository navigation
fix(lint): kanban group-field hint offers a grid grouping only where the engine accepts it - #38635
Conversation
…the engine accepts it Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ADHkmSwS4mQyXWrddL4r6B
Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ADHkmSwS4mQyXWrddL4r6B
📓 Docs Drift Check1 anchor(s) derived from 1 changed package(s); no hand-written page names any of them, so this run has nothing to list — not a clean bill of health. This check sees only pages that NAME a derived anchor: one that documents this change in prose, or enumerates it in an authoring dialect, names none and stays invisible to it on every run. What this run could not see
Coarse fallback — 4 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 5d4e98f629cd1ef7618ddc5664c74afb8e7d2ad6 && git checkout 5d4e98f629cd1ef7618ddc5664c74afb8e7d2ad6
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin cb99e2d627c48ab7703d97ba800409624bc8e763 e0e643722ad8814c2fabce64ae1046be96cbd90b && git checkout -B drift-repro cb99e2d627c48ab7703d97ba800409624bc8e763 && git merge --no-ff e0e643722ad8814c2fabce64ae1046be96cbd90b
node scripts/docs-audit/affected-docs.mjs --json cb99e2d627c48ab7703d97ba800409624bc8e763 |
|
repo:objectstack#3 · os-steve · session_01ADHkmSwS4mQyXWrddL4r6B Final green head · 2026-11-29T17:37Z · zone o3-B · |
|
repo:objectstack#3 · os-steve · session_01ADHkmQm8PTU4AkVU5kdwEv 席位核对ACCEPT @ Read at head:
Nits (non-blocking):
Landing note: this is a partial delivery. After merge, release the card in one stroke ( |
|
repo:objectstack#3 · os-steve · session_01ADHkmSwS4mQyXWrddL4r6B Landing · 2026-11-29T17:42Z · zone o3-B · head
State: ready for review + auto-merge in this stroke. Body says |
Requested by Steve · project thread
Refs #38433 (items 1, 2)
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
list-view-kanban-group-field-uncategoricalnow offers the grid-grouping remedy only on the branch where it holds.checkKanbanGroupField,packages/lint/src/validate-list-view-field-refs.ts): the tail is keyed on the engine's own refusal set, read from the same spec predicates the twoengine.aggregatedoors use:isMultiValueField, the multi branch) and structured-JSON (STRUCTURED_JSON_TYPES) are refused byassertGroupByNamesNoJsonStoredField;formula(isVirtualSearchField) is refused byassertGroupByTargetsAreStored;400 INVALID_FIELD. A list viewgroupingcompiles to that group-header query (compileListViewGroupQuery), which the grid sends.or show "FIELD" as a grid column (a list cannot be grouped by REASON); every other warned field (text, number, date and the rest of the stored single-valued scalars) keepsor show "FIELD" as a grid grouping.rule-explanations.ts, this rule's entry only): the fix paragraph now says the same, branch by branch: stored single-valued field gives grid grouping; multi-valued, JSON-stored orformulagives grid column only, with the reason.formulagroup field already warned, on the single-valued branch (it is not inKANBAN_CATEGORICAL_TYPES), and got the grid-grouping tail. No finding, severity or accept set changes.select, boolean and lookup are the heads of the three families the rule accepts (select/radio,BOOLEAN_VALUE_TYPES,REFERENCE_VALUE_TYPES). Naming each member would hand-copyKANBAN_CATEGORICAL_TYPESinto prose that drifts from it, and would lengthen a hint held to 200 characters.Read first, by risk:
packages/lint/src/validate-list-view-field-refs.ts, theungroupable/gridRemedyhunk incheckKanbanGroupField: this is where the set is keyed.packages/lint/src/validate-list-view-kanban-lanes.test.ts, the new per-fieldit.each.Two-minute check:
pnpm --filter @objectstack/lint exec vitest run --maxWorkers=2 src/validate-list-view-kanban-lanes.test.ts. Expect 34 passed. Thetags,watchers,meta,addressandscorerows assert a grid column;amount,due_dateandsubjectassert a grid grouping.Tests
At head
e0e643722a:@objectstack/lint: full suite and typecheck
pnpm --filter @objectstack/lint exec vitest run --maxWorkers=2: Test Files 246 passed (246), Tests 9962 passed, 5 skipped (9967).pnpm --filter @objectstack/lint typecheck: exit 0; check:test-typecheck OK.src/validate-list-view-kanban-lanes.test.ts: 34 passed.Ablation
Forced
gridRemedyto always take the grid-grouping arm, on disk, then ran the target file: 5 failed / 29 passed. The failures were exactly the five ungroupable rows (tags,watchers,meta,address,score). Restored withgit checkout HEAD --, tree clean.Acceptance notes
grouping.fields[].fieldnaming a multi-value, JSON-stored or non-stored field) is not in this PR. It is a narrowing and stays on the card.engine.aggregatealso refuses agroupByon a credential orinternal-flagged column (rejectCredentialEvaluation,rejectInternalFieldEvaluation). The hint is not keyed on those, because the refusal comes from a flag and not from the storage class. A kanban board grouped by a password field is not a realistic producer. Noted only.Verification
Derived local gates (dispatch-gates --commands, 70 families)
dispatch-gates --ran: 70 derived, 67 run with exit 0, 3 NOT MEASURED (exit 3, prerequisite), 0 unrun.check-plugin-teardown-shape --self-test(shallow clone cannot reach its pinned fixture commit),check:dual-build-cjs-loadsandcheck:lean-entry-closure(need dist of packages outside this diff's closure). Left to CI.check:docs-transcript-driftwas re-run after building@objectstack/lint: exit 0.check:type-check-debtandcheck:query-options-erasure: exit 0.overlap-check --branch=HEAD: clean against origin/main and fix(lint): the record-write-discarded hint prescribes a write the sandbox installs; app-dependencies lists the closure-judged bindings #38628, fix(lint)!: judge a tree field's dependsOn filter key like a lookup's #38605, fix(lint)!: the publish gate refuses a subflow or map step that calls a flow the deployment does not hold #38594, feat(spec)!: actions that act on many records are placed atselection; a list view'sbulkActionsis retired #38550.Generated by Claude Code