Repository navigation
fix(lint): field/embedded-sub-fields fix names the field group that inlines the child - #36307
Conversation
…nlines the child The fix line taught `inlineEdit: 'grid'` as what inlines a child; a parent field group's `relatedList` places it, and `inlineEdit` only picks the form factor. Pins the hint in the shared harness and updates the exact-text pin. Claude-Session: https://claude.ai/code/session_01FEkQ5kDGa1ViantgrfH797 Co-authored-by: Claude <noreply@anthropic.com>
📓 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 1d68b5939b773f7a31d7754adda6b982015c8666 && git checkout 1d68b5939b773f7a31d7754adda6b982015c8666
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 4ab1218901d7c3c757217c099f06d377e04ae452 bc156e73996c44f371ccb100c99db291befea100 && git checkout -B drift-repro 4ab1218901d7c3c757217c099f06d377e04ae452 && git merge --no-ff bc156e73996c44f371ccb100c99db291befea100
node scripts/docs-audit/affected-docs.mjs --json 4ab1218901d7c3c757217c099f06d377e04ae452 |
|
repo:objectstack#4 · os-project-manager · session_01FEkQ5kDGa1ViantgrfH797 Final green head · area a4-I · 2026-11-22T05:44Z |
|
repo:objectstack#4 · os-project-manager · session_01FEkQ5oVqoTJkrRZcyZS4xd 席位核对 — ACCEPT · head bc156e7
|
|
repo:objectstack#4 · os-project-manager · session_01FEkQ5kDGa1ViantgrfH797 Landing (area a4-I, non-governed self-land) at head
L1-b ACCEPT 7074982572 is at this head, and there is no spec or contract face. State: ready for review and auto-merge armed; #36281 closes on merge ( |
|
repo:objectstack#4 · os-project-manager · session_01FEkQ5kDGa1ViantgrfH797 Landing (area a4-I, non-governed self-land) at head
L1-b ACCEPT 7074982572 is at this head, and there is no spec or contract face. State: ready for review and auto-merge armed; #36281 closes on merge ( |
Requested by Leehom · project thread
Fixes #36281
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
State at head
bc156e739(one commit).packages/lint/src/data-model-rules.ts: thefield/embedded-sub-fieldsfix line. It said the child object plus "inlineEdit: 'grid'edits it inline". Since the parent-field-group rule (主从子表默认只是页签,不再自动放进概览和表单;只有字段分组指定时才放进去 #35889, with feat(spec, ui): a master_detail child is a tab by default; a field group puts it in the overview and the form #35921), a child is inlined in the parent's form only when a field group of the parent names it inrelatedList; the FK'sinlineEditonly picks grid or form. The line now reads: "Make the typed list a child object whosemaster_detailfield points back here, name it in afieldGroups[].relatedListhere (inlineEditonly picks how rows are edited), and remove the key." (193 characters, under the 200 cap.) This follows the spec textEMBEDDED_JSON_TYPED_LISTand the rule'sos explainparagraph, which already name the field group.packages/lint/src/data-model-rules.fix-lines.test.ts: the exact-text pin of this fix line is updated to the new text (it asserts the hint text, nothing else).packages/lint/src/data-model-rules.embedded-sub-fields.test.ts: new top-leveldescribein the rule's existing harness file: the fix namesmaster_detail,fieldGroups[].relatedListand "inlineEditonly picks how rows are edited", and no longer carriesinlineEdit: 'grid'..changeset/36281-embedded-sub-fields-hint.md:@objectstack/lintpatch.Read first:
packages/lint/src/data-model-rules.ts(the one changed string, R14), then the newdescribeat the end ofdata-model-rules.embedded-sub-fields.test.ts.Two-minute check:
pnpm --filter @objectstack/lint exec vitest run src/data-model-rules.embedded-sub-fields.test.ts src/data-model-rules.fix-lines.test.tsshows 2 files, 26 tests passed.Tests
All readings at head
bc156e739.Targeted tests, typecheck, whole lint package
pnpm --filter @objectstack/lint exec vitest run --maxWorkers=2 src/data-model-rules.embedded-sub-fields.test.ts src/data-model-rules.fix-lines.test.ts: Test Files 2 passed (2), Tests 26 passed (26).pnpm --filter @objectstack/lint typecheck: exit 0 (tsc --noEmit, then check:test-typecheck OK).pnpm --filter @objectstack/lint exec vitest run --maxWorkers=2: Test Files 224 passed (224), Tests 9409 passed, 5 skipped (9414).Ablation (one-time, not kept)
node scripts/ablation-replace.mjsswapped the new second half of the fix back to "inlineEdit: 'grid'edits it inline": anchor 1 to 0, blob f16e42de7f96 to 1f785d0f961a. Both pins went red: "routes tofieldGroups[].relatedListand givesinlineEditonly the form factor" and "field/embedded-sub-fields: one line, whatever the type, the keys or the names" (2 failed, 24 passed). Restored: blob equals HEAD (f16e42de7f96),git diff HEADempty. Vitest readssrc/through the relative import, so no rebuild was needed.Gates run locally
node scripts/pm/dispatch-gates.mjs --commandsderived 63 commands for this diff. 61 exit 0 (check:docs-transcript-driftandcheck:lean-entry-closureafter building lint and objectql; first run exit 3, prerequisite). 2 NOT MEASURED, exit 3 prerequisite:check:dual-build-cjs-loads(needs a fullpnpm build; CI runs it) andcheck-plugin-teardown-shape.mjs --self-test(checker health only; needs an unshallowed clone).--ranreconciliation: 63 derived, 61 run, 2 NOT-MEASURED, 0 UNRUN, exit 0.Acceptance notes
inlineEdithits inpackages/lint/src(non-test), left as they are:data-model-rules.tsdoc comments near the bulk rule, the group map and R5 already say the field group, notinlineEdit, inlines the child;validate-field-consumers.tsreadsinlineEditonly as the form factor (grid or form);showcase-shape.fixtures.tssetsinlineEdit: trueon a list view, a different key.packages/lint,content/docs/data-modeling/field-types.mdxsays "inlineEdit: 'grid'edits the rows as an inline grid on the parent's form (where a field group of the parent names the child)". It states the group condition, so it is not wrong, only ordered the old way. Not changed here (not on this card's file surface).describe, not a new card-named file (AGENTS.md: a new pin for a component with a shared harness goes into that file).Verification
Local only; CI runs the full farm. Net added lines: +28 / -4 (net +24) against merge base 76cb366.
Generated by Claude Code