Skip to content

feat(plugin-form): section navigation for stacked sectioned forms - #34642

Merged
objectstack-fleet[bot] merged 8 commits into
mainfrom
claude/project-thread-a9r6j4
Nov 17, 2026
Merged

objectstack-fleet[bot] merged 8 commits into
mainfrom
claude/project-thread-a9r6j4

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Yibo Wang · project thread

repo:objectstack#3 · os-support-ai · session_01WGufzgTZ8JB6JZFffVhT7R

Fixes #34605
Clause-②: yes (widening — one @object-ui/components export + new @object-ui/i18n locale keys; no FormSchema or spec key)
Metadata-protocol: none

维护者速读

  • 改了什么:分组(stacked)表单在对话框里,标题和滚动区之间多了一条分组导航;整页表单在分组上方显示同一条导航(吸顶)。点分组名滚到该分组,折叠的分组先展开;滚动时高亮当前分组;提交被拒后,有错误或必填未填的分组显示数量,填好后数量消失。
  • 为什么改:长的分组表单(如 HotCRM 商机,四五个分组)提交失败时用户不知道错在哪一组,只能来回滚动找;导航让分组可直达、错误可定位。
  • 风险与回滚:只改 @object-ui/components(表单渲染器上报分组列表、分组标题行加稳定 id)和 @object-ui/plugin-form(导航组件,接入 ModalForm / ObjectForm),外加两个 i18n 键;不动元数据、契约和服务端,也没有作者配置。只有 2 个及以上可见分组才显示;tab 布局与向导不受影响。回滚即 revert 本 PR。
  • 先看:① ui/packages/plugin-form/src/FormSectionNav.tsx(导航、滚动高亮、点击跳转);② ui/packages/components/src/renderers/form/form.tsx 中 sectionNavItems 与 SectionNavReporter(哪些分组上报、错误怎么按分组计数);③ ModalForm.tsx 与 ObjectForm.tsx 的接入点。
  • 两分钟验证:在仓根执行 pnpm --dir ui exec vitest run packages/plugin-form/src/FormSectionNav.test.tsx packages/components/src/renderers/form/__tests__/form-section-nav-34605.test.tsx,预期 14 个测试全部通过。
  • 需要你做的:无,席位落地。注意:Studio 表单视图的「预览」现在也会显示这条导航(预览复用运行时对话框,这是有意的镜像)。

What changes

@object-ui/components (ui/packages/components/src/renderers/form/):

  • New section-nav-context.ts: FormSectionNavContext (a sink, null by default) and the FormSectionNavItem / FormSectionNavSink types, exported from the package index beside SuggestedFieldsContext.
  • form.tsx: each drawn section heading row (section-divider) now carries a stable id (scoped to the form instance) and data-form-section="<divider name>", with scroll-mt-2. When a sink is provided, the renderer reports the headings it actually draws in the stacked layout: key, label, anchor id, collapsed state, an expand() that goes through the row's own toggle, and the count of fields in that section holding a react-hook-form error. Membership reads each divider's fields claim, falling back to position as splitAtUntitledRuns does; a headingless run counts for no entry. A heading its visibleWhen hides is not drawn, so not reported. A tabbed form reports nothing. The renderer provides null to its own descendants, so a nested form never reports into the host's sink. Unmounting reports null. No sink: nothing changes, and formState.errors is not subscribed.

@object-ui/plugin-form:

  • New FormSectionNav.tsx: useFormSectionNav() (a sink plus the reported items) and <FormSectionNav items>, which renders nothing below two items. Otherwise a <nav aria-label="Form sections"> strip of buttons; the current entry carries aria-current="true", an entry with errors carries data-error and · N (with screen-reader text "Fields to fix: N"). Click: expand if collapsed, then scrollIntoView the heading row on the next frame; the clicked entry turns current and the scroll spy is held off briefly so it does not flicker through the sections in between. Scroll spy: the nearest scrolling ancestor, rAF-throttled; at the bottom the last entry is current. In a narrow dialog the strip scrolls horizontally and keeps the current entry in view.
  • ModalForm.tsx: the plain (non-subform) dialog provides the sink and draws the strip between DialogHeader and the scrolling body (the header drops its bottom border while the strip is drawn). ObjectForm.tsx (sectioned simple form): the strip sits above the form, sticky top-0.

@object-ui/i18n: form.sectionNav and form.sectionNavErrors in all 11 locales.

No FormSchema, view or spec key; nothing is configured.

Why

The card: a long sectioned form refuses a submit and the user cannot tell which section holds the problem. The navigation makes each section one click away and marks the sections that need fixing.

Acceptance notes

  • Acceptance 1–3 are pinned in FormSectionNav.test.tsx (four entries under the dialog title, the third scrolls to the third section's heading row; an empty required field in section two shows 1 after submit; one section draws no strip), and read in a browser (below).
  • Footer missing-required hint: not implemented. Triage comment 6937255202 says the card "carries the footer hint for missing required fields", but the card's acceptance does not include it; the seat agreed to leave it out. It can be a follow-up card.
  • The Studio form-view Preview renders the runtime dialog, so it now shows the strip too. Intended: the preview mirrors the runtime form.
  • Six existing tests read a section name with an unscoped getByText, which now finds two matches (the strip repeats the names). Each is scoped to the form (within(form)), test-only; one of them is in @object-ui/app-shell (DataPillar.formViewLayout-30057.test.tsx), widened by the seat.
  • Out of scope per the card: the tabbed and wizard layouts.

Verification

Readings against head 3e9036363c (base 8dd8192c, merged forward with origin/main at 31096af8).

Before / after (browser)

A throwaway probe page served by the console's Vite dev server (not committed) mounting ModalForm and ObjectForm with an in-memory data source: a five-section create dialog "New Deal" (Overview / Forecast / Qualification / Description / Sales Strategy, the last collapsed; forecast required). Chromium 1280×800, driven with Playwright.

  • Before: not measured in a browser. At base 8dd8192c no section strip exists in the code; the dialog header sits directly over the scrolling body, and a refused submit marks the field only inside its section.
  • After:
    • Five entries under the title; Overview current.
    • Click Qualification (third) → its heading row lands 8px below the scroller top, Qualification current.
    • Scrolling by hand: the highlight follows Overview → Forecast → …, and the last entry is current at the bottom.
    • Click the collapsed Sales Strategy → it unfolds (0 → 4 fields) and is scrolled to.
    • Submit with forecast empty → the Forecast entry shows · 1; filling the field clears it.
    • At 375px width: no page overflow; the strip scrolls sideways and keeps the current entry in view.
    • Full-page sectioned form: the strip stays at the top while the page scrolls.
Tests

Run from the repository root with ui/ as vitest root, under scripts/pm/os-verify-lock.sh.

  • pnpm --dir ui exec vitest run --maxWorkers=2 packages/plugin-form/ packages/components/src/renderers/form/ packages/i18n/ packages/app-shell/src/views/studio-design/DataPillar.formViewLayout-30057.test.tsx → Test Files 424 passed (424), Tests 5113 passed | 31 skipped (5144), lock VERDICT command-exit 0.
  • New: packages/plugin-form/src/FormSectionNav.test.tsx (7: acceptance 1–3, visibleWhen, collapsed unfold, tabbed none, ObjectForm) and packages/components/src/renderers/form/__tests__/form-section-nav-34605.test.tsx (7: report order and DOM ids, predicate-admitted heading, per-section error counts with a headingless run, collapsed + expand, tabbed none, nested form kept out, unmount → null).
  • Type-check: @object-ui/components, @object-ui/plugin-form, @object-ui/i18n → lock VERDICT command-exit 0.
  • eslint on the touched files → 0 errors.
Ablation

Through node scripts/ablation-replace.mjs, each restored with an empty git diff HEAD:

  1. Dropping the drawn-node check (nodes[j] != null), so hidden headings are reported → 2 tests red.
  2. Dropping the error count → 2 tests red.
  3. Providing the sink (not null) to the renderer's descendants → the nested-form test red.
Derived gates

node scripts/pm/dispatch-gates.mjs --commands (26 paths vs merge base 31096af83), then --ran → 40 derived famil(ies) accounted for — 40 run, 0 NOT-MEASURED. check:test-source-alias was red on the first run (the new components test reached @object-ui/react-runtime through a dynamic import); fixed with a module-top import and re-run green.

node scripts/check-adr-0087-registration.mjs --base origin/main :: exit 0
node scripts/check-adr-0087-registration.mjs --self-test :: exit 0
node scripts/check-changeset-no-major.mjs --base origin/main :: exit 0
node scripts/check-closing-keyword-parity.mjs :: exit 0
node scripts/check-closing-keyword-parity.mjs --self-test :: exit 0
node scripts/check-comment-mask-corpus.mjs :: exit 0
node scripts/check-empty-changeset.mjs --base origin/main :: exit 0
node scripts/check-empty-changeset.mjs --self-test :: exit 0
node scripts/check-sdui-manifest.mjs :: exit 0
node scripts/check-sdui-manifest.mjs --self-test :: exit 0
node scripts/ci/snapshot-next.mjs --self-test :: exit 0
node scripts/pm/check-governed-queue-guard.mjs --self-test :: exit 0
node scripts/pm/release-rehearsal-clone.mjs --self-test :: exit 0
node scripts/release-pending-publish.mjs --self-test :: exit 0
pnpm --dir ui exec vitest run scripts/ :: exit 0
pnpm --filter @objectstack/spec run check:duration-unit-keys :: exit 0
pnpm check:adr-anchors :: exit 0
pnpm check:changeset-gate-self-tests :: exit 0
pnpm check:closed-ceremony-text :: exit 0
pnpm check:cross-package-test-inputs :: exit 0
pnpm check:dispatcher-error-vocabulary :: exit 0
pnpm check:driver-memory-census :: exit 0
pnpm check:engine-double-contract :: exit 0
pnpm check:gitlink-declared :: exit 0
pnpm check:merge-driver :: exit 0
pnpm check:nul-bytes :: exit 0
pnpm check:published-files :: exit 0
pnpm check:query-options-erasure :: exit 0
pnpm check:refd-timer-probe :: exit 0
pnpm check:registry-log-declared :: exit 0
pnpm check:rest-log-spy-declared :: exit 0
pnpm check:role-word :: exit 0
pnpm check:skill-identifier-liveness :: exit 0
pnpm check:test-source-alias :: exit 0
pnpm check:tier-file-adoption :: exit 0
pnpm check:type-check-coverage :: exit 0
pnpm check:type-check-debt :: exit 0
pnpm check:undeclared-dep-imports :: exit 0
pnpm check:watch-hint-literal :: exit 0
pnpm check:where-matcher :: exit 0

node scripts/pm/check-governed-merges.mjs --branch HEAD → 0 of 26 path(s) hit the register, NOT governed; size +867 / −24.

Human Minimum

  • 1. Schemas start as Zod; packages/spec holds no runtime logic. (packages/spec untouched.)
  • 2. Every name I added uses the casing for its kind.
  • 3. No formatter ran; pnpm lint passes. (eslint on the touched files: 0 errors.)
  • 4. One issue, one branch off an up-to-date main, one pull request.
  • 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset.
  • 6. packages/spec touched: n/a.
  • 7. No hand edits to content/docs/references/, packages/*/CHANGELOG.md or content/docs/releases/.
  • 8. Title, body and comments are in English.
  • The Before Submitting list in CONTRIBUTING.md is done.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WGufzgTZ8JB6JZFffVhT7R

The form renderer reports the section headings it draws (anchor id,
per-section error count, collapsed state) through a new host-slot
context; ModalForm draws the strip between the header and the body,
ObjectForm above the sections. Shown with two or more visible
sections only; tabbed forms keep their tab strip.

Claude-Session: https://claude.ai/code/session_01WGufzgTZ8JB6JZFffVhT7R
Co-authored-by: Claude <noreply@anthropic.com>
…ion navigation repeats above it

Claude-Session: https://claude.ai/code/session_01WGufzgTZ8JB6JZFffVhT7R
Co-authored-by: Claude <noreply@anthropic.com>
…m, which the section navigation repeats above it

Claude-Session: https://claude.ai/code/session_01WGufzgTZ8JB6JZFffVhT7R
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/l documentation Improvements or additions to documentation tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 17, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzhshTXCAmv9KJXRZkB

席位核对 · L1 (seat 3, L1-a) · 2026-11-17T05:08Z

L1: REWORK
Head-sha: 3e90363
Card: #34605 (triage 6937255202) · claim 6937400927 · os-dev-report 6938585401

The code, tests, changeset and CI all hold. The one must-fix is paper only, the same kind as #34624's and #34641's: one changed file is outside the claim's file surface. No push is needed for it. Separately, the Clause-② widening includes a new @object-ui/components export, which is more than locale keys, so I am handing that face to the seat for L2 (see Notes 1). Once the amendment is posted, I post the L1 ACCEPT on this same head, or on the merged-forward head if #34599 lands first.

Must-fix (paper only, no code change)

  1. ui/packages/app-shell/src/views/studio-design/DataPillar.formViewLayout-30057.test.tsx (an existing test, +4/−1) is outside the claim's file surface. Claim 6937400927 covers components/src/renderers/form/**, components/src/index.ts, plugin-form/src/**, the locale files and .changeset/. The os-dev report (deviation 1) and the PR body call this file "seat-approved", but no claim amendment naming it is on the card or the PR. The edit itself is right; see the readings. The seat posts a claim amendment adding the file. The PR body already names it.

Should-fix

None.

Readings that hold

Item Reading
PR shape Draft, base main, Fixes #34605; no other closing verb in the body. No !, no (narrowing): no dogfood battery owed.
Scope 26 files; 25 inside the claim surface: section-nav-context.ts (new), form.tsx (+140/−4), the new components test, components/src/index.ts (+5: a 3-line comment, one value export, one type export), FormSectionNav.tsx (+ test, new), ModalForm.tsx / ObjectForm.tsx (mounts only), five existing plugin-form tests, 11 locale files, the changeset.
Clause-② / Metadata-protocol Body, changeset and claim carry the same lines: yes (widening — one @object-ui/components export + new @object-ui/i18n locale keys; no FormSchema or spec key), Metadata-protocol: none. Published faces that move: @object-ui/components (not private) gains FormSectionNavContext plus the FormSectionNavItem / FormSectionNavSink types from its index; @object-ui/i18n gains form.sectionNav and form.sectionNavErrors, add-only, +2 lines in each of the 10 non-en packs and +5 in en (2 keys plus a comment). FormSectionNav / useFormSectionNav are not re-exported from the plugin-form index, so plugin-form's published face does not move. No spec, FormSchema or view key is touched. Nothing is renamed or removed.
Changeset Names @object-ui/components, @object-ui/plugin-form and @object-ui/i18n, the three published packages whose src moved (@object-ui/app-shell is private and only its test moved). Sentences read against the diff:
• "one entry per visible section between the title and the scrolling body" = ModalForm draws <FormSectionNav> between DialogHeader and the overflow-y-auto body.
• "full-page sectioned form … above its sections, sticky" = ObjectForm sticky top-0 z-10.
• "only with two or more visible sections" = the nav returns nothing below two items; visibleWhen-hidden headings are not drawn, so not reported (the drawn-node check, ablation 1).
• "A tabbed form keeps its tab strip and gets no section strip" = the renderer reports only in the stacked layout.
• "Nothing is configured" = no schema key; the sink is a host slot.
• "each heading row now carries a stable id and a data-form-section attribute" = SectionDivider id={anchorId} data-form-section={sectionKey}, with anchorId from sectionAnchorId(React.useId(), name), so two forms on one page do not collide.
All true.
Nested forms The renderer provides null to its own descendants (FormSectionNavContext.Provider value={null}), so an inner form never reports into the outer sink; pinned, and ablation 3 turns that pin red. Unmount reports null.
Existing-test edits Six tests now read section names within(form) because the strip repeats the names. Each edit narrows where a name is looked up and keeps every assertion; none is loosened. The app-shell one (the must-fix file) waits for the <form> inside the preview frame and then asserts the same three names.
UI strings The two new strings come from t('form.sectionNav') and t('form.sectionNavErrors', { number }), with en fallbacks in the component; present in all 11 packs. zh-Hans: 表单分组, 待修正字段:{{number}}. No hardcoded user text otherwise (the · N count is aria-hidden; the sr-only text is translated).
Docs Searched content/docs and skills for statements about the stacked layout, section headings, navigation and long forms. layout-dsl.mdx:238 and :1086 recommend tabbed for collecting a long form "in stages", which stays true. views.mdx:470-474 ("simple — Single-page form") stays true. Nothing is made false.
Acceptance 1–3 pinned in FormSectionNav.test.tsx and read in a browser (PR body). The footer missing-required hint is not in the card's acceptance; see Notes 2.
Tests Real commands with output: 424 files / 5113 tests passed on this head under the verify lock; 7 + 7 new pins; three ablations, each restored to an empty git diff HEAD. 40 derived gates run, one red then fixed and re-run.
Tier check-governed-merges --pr 34642: NOT governed, 0 of 26 paths, 891 lines. Tier S, lands through o3-B.
CI on this head 58 check-runs: all success or skipped. Test UI 16/16 shards plus the aggregate, Type Check UI, Lint UI, Build & E2E UI, Live E2E UI, Check Changeset, Lint & Repo Gates and TypeScript Type Check are all success.

Notes

  1. L2 for the components export (seat). The seat delegated locale-keys-only Clause-②: yes (widening) declarations to L1-a. This one also adds a value export (FormSectionNavContext) and two types to published @object-ui/components, so per contract-review.md the export face goes to the seat for L2 at TIER_DEFAULT. My reading, for what it's worth: add-only, null default, and no existing caller changes behaviour without a provider (the renderer does not subscribe to formState.errors when no sink is provided). The locale keys I have read and they hold.
  2. Footer missing-required hint. Triage 6937255202 says the card "carries" it, but the acceptance does not list it; the seat agreed to leave it out. A follow-up card would stop it being lost.
  3. Studio form-view Preview now shows the strip too, because it renders the runtime dialog. Declared as intended in the PR body.
  4. Serial with 带内嵌子表的表单弹窗:取消 / 保存不固定在底部,长表单要滚到最下面才看得到 #34599 (ModalForm.tsx): the requester will merge main and re-send the head after 带内嵌子表的表单弹窗:取消 / 保存不固定在底部,长表单要滚到最下面才看得到 #34599 lands. That head owes a delta read of the ModalForm.tsx hunks and CI on the new sha.
  5. One react-refresh/only-export-components warning for useFormSectionNav exported beside the component (declared). Not an L1 bar.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG

Contract review

Served-tier: TIER_DEFAULT
Head-sha: 3e9036363ca17068d84c6420e77db3adb8918205
Local-runs: none
Scope: declaration face (Clause-②: yes (widening)), net diff vs merge-base 31096af83d05c28462001d7cb5e3b58e57830cb4, all 26 files: .changeset/34605-form-section-nav.md, ui/packages/components/src/index.ts, ui/packages/components/src/renderers/form/section-nav-context.ts, ui/packages/components/src/renderers/form/form.tsx, ui/packages/i18n/src/locales/* (11), ui/packages/plugin-form/src/FormSectionNav.tsx, ModalForm.tsx, ObjectForm.tsx, the two new test files and the seven re-scoped existing tests; read against card #34605 (body plus comments 6937255202, 6937400927, 6938585401, 6939145003) and the 58 check-runs on the head
Security-touching: no

① Derived judgments

Public-surface changes the diff publishes, each judged:

  • @object-ui/components: FormSectionNavContext (value) plus types FormSectionNavItem and FormSectionNavSink. Right. They are exported from src/index.ts, next to SuggestedFieldsContext. The package's exports map has "." pointing at dist/index.{js,d.ts,umd.cjs}, and its publishConfig.access is public, so all three are published and reachable. The change is add-only: no export is removed or renamed, and SectionDivider, sectionKeyByFieldName, sectionAnchorId and SectionNavReporter stay module-private.

  • The default is safe. Right. The context is created with a null default value, typed FormSectionNavSink | null. Without a provider the renderer:

    • does not mount SectionNavReporter;
    • leaves sectionNavItems as null and never reads form.formState.errors, so it adds no RHF subscription and no extra re-renders.

    The stacked field list is now rendered before the return, as stackedFieldBlocks, instead of inline. I checked that this is equivalent:

    • drawsStackedFields = !schema.children && !fieldTabGroups && !fieldPaneGroups matches the ternary's last arm. visibleFieldTabGroups is non-null exactly when fieldTabGroups is, so the arm fieldTabGroups && visibleFieldTabGroups adds no gap.
    • renderFormField reads nothing that is declared later (the props destructure), so the move has no TDZ hazard.
  • Heading rows gain id, data-form-section and scroll-mt-2 on every form, with or without a provider. Right (additive DOM). The id comes from useId plus the URI-encoded section key, so it is unique per form instance and always a valid id. It is a host-readable attribute, not authorable metadata. See N2 for how the PR body describes it.

  • The renderer provides null to its own descendants. Right. A nested sub-form cannot write into the host's sink. This is pinned by "keeps a form nested in another out of the host sink", and the PR's ablation 3 turns that test red.

  • Reporting semantics match the type's jsdoc. Right.

    • It reports only the headings it actually drew (nodes[j] != null), so a visibleWhen-hidden section is absent (ablation 1).
    • It reports null for flat, tabbed or paned layouts, and on unmount.
    • The report is deduplicated by a signature, and setItems is stable, so the effect cannot loop.
    • expand reads the latest row state through a ref.
  • Error counts. Right for the card's acceptance. They map top-level formState.errors keys through the divider membership, which is the same reading as splitAtUntitledRuns. A headingless run counts toward no entry.

  • @object-ui/i18n: new keys form.sectionNav and form.sectionNavErrors in all 11 locales (ar, de, en, es, fr, ja, ko, pt-BR, ru, zh-Hans, zh-Hant). Right. They are add-only, and no existing key changes. {{number}} rather than {{count}} avoids i18next plural resolution. The fallback table in FormSectionNav.tsx matches the en values byte for byte.

  • @object-ui/plugin-form: no new export. FormSectionNav and useFormSectionNav are not re-exported from src/index.tsx. The change is behaviour only: ModalForm (the plain dialog branch, not the subform branch, which returns earlier) and SimpleObjectForm now provide the sink and draw the strip. Right. It matches the claim's surface, the card's "Reader" line, and card items 1–5.

  • Accept-set (metadata). Unchanged. Right. No packages/spec, FormSchema, view or section key is touched, and nothing is configurable, as card item 5 requires. Leaving out the paned layout is consistent with the card's tab and wizard exclusion: paned has its own group switcher.

  • The re-scoped existing tests do not weaken any assertion. Right. Each getByText on a section name is narrowed to within(form). That form reading is still the readiness signal, and the hidden-heading control still asserts absence inside the form.

  • Gates: 45 success, 13 skipped (path-filtered or opt-in), 0 failure, 0 pending check-runs on the head. The skipped runs include "Check Changeset", which is green, "Type Check UI", "Test UI" (16/16 shards), "Lint UI" and "Live E2E UI".

② Semver level

  • The changeset is patch on @object-ui/components, @object-ui/plugin-form and @object-ui/i18n. Correct. Under AGENTS.md (Working rules, changeset item), the level follows the Metadata-protocol kind alone: none takes patch, and a non-protocol widening ships patch. Metadata-protocol: none is right, because the diff adds nothing a metadata author can write. All three packages publish a change, so all three need the entry. plugin-form changes behaviour only, but it still needs one. No package is left out.
  • The Clause-②: line reads yes (widening — one @object-ui/components export + new @object-ui/i18n locale keys; no FormSchema or spec key) in both the PR body and the changeset, and the two are identical. The arm (widening) is correct: the diff is add-only, with nothing narrowed. The changeset body names all three symbols and both keys, and says "Nothing that worked before is refused". The card's claim amendment 6939145003 names the same three symbols.
  • N1 (nit): "one @object-ui/components export" undercounts. The diff exports one value and two types. The changeset body and the amendment name all three, so no reader is misled. Spelling it as "one context export plus its two types" would read exactly.

③ Boundary flags

The os-dev-report's open_questions is []. Each of its deviations is answered here:

  1. Surface widened to components/src/index.ts and the app-shell DataPillar test. Answered. index.ts was already in claim 6937400927. The DataPillar test is added by claim amendment 6939145003 on the card. The edit is test-only and scoped correctly.
  2. Footer missing-required hint not implemented. Answered, no finding against this PR. The card body (要做的 1–5, 验收 1–3) asks for the per-section count on the strip and nothing in a footer. Only triage comment 6937255202 mentions a footer hint, and the claim's Premise: line records it as out of scope. Escalated to the seat: if the footer hint is still wanted, it needs its own card. That is not a defect of this head.
  3. Six existing tests re-scoped. Answered. I verified it in ①: no assertion is weakened, and the counts match. The six are ObjectForm, formViewTabKeys-26843, sectionLabelI18n, sectionVisibleWhen-6111, sectionedFormValues and DataPillar-30057.
  4. The Studio form-view Preview now shows the strip. Answered. The preview renders the runtime dialog, so the strip mirroring the runtime is the intended result. It changes nothing in metadata or the contract.
  5. Draft PR, no reviewer requested. Process only, not a contract question. n/a.
  6. One react-refresh/only-export-components warning. It is a warning, not an error, and "Lint UI" and "Lint · ESLint" are green. N3 (nit): moving useFormSectionNav into its own module would clear the warning. It is optional.

Other checks:

  • SQL push-down (AGENTS.md Prime Directive 5): n/a. This is client-side UI only. The diff adds no query, no id materialisation and no in-app join.
  • Security: none. No hunk touches permission, sharing, credential, token or auth behaviour. The neighbouring deniedDescription i18n key is unchanged context.
  • N2 (nit): The PR body's "No sink: nothing changes, and formState.errors is not subscribed" is true of the report path. However, every section heading row now carries id, data-form-section and scroll-mt-2 whether or not a sink is provided. The same paragraph and the changeset ("each heading row now carries a stable id and a data-form-section attribute") already say so, so this is wording only. It is additive, and no existing selector is affected.

No must-fix, no should-fix. Nits: N1, N2, N3.

Implemented-by: claude/project-thread-a9r6j4
Reviewed-by: session_01WGufzgh1zkZzDXL36ckWAG

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzhshTXCAmv9KJXRZkB

席位核对 · L1 delta (seat 3, L1-a) · 2026-11-17T07:02Z

L1: ACCEPT
Head-sha: 367f481
Card: #34605 · claim 6937400927 (amended 6939145003) · prior L1 REWORK 6939117084 (head 3e90363) · Contract review PASS 6939278689

The one must-fix from 6939117084 was paper only and is now closed, and the L2 face I handed to the seat has passed. This head comes from two merges of origin/main into the reviewed head. The first, c9778f0 (main 8bc0808, which carries #34599 / PR #34657), resolved one conflict, an import line in ModalForm.tsx. The second, 367f481 (main fecd2e9, which carries #34607 / PR #34645), merged clean. The PR's own patch is unchanged. CI on this head is green.

Must-fix

None.

Should-fix

None.

Readings that hold

Item Reading
Must-fix 1 (DataPillar test outside the claim) Closed. Claim amendment 6939145003 on #34605 adds ui/packages/app-shell/src/views/studio-design/DataPillar.formViewLayout-30057.test.tsx to the file surface. The PR body already named it.
L2 for the @object-ui/components export Closed. The seat's ## Contract review 6939278689 (TIER_DEFAULT, head 3e90363) is VERDICT: PASS, with no must-fix or should-fix. Its nits N1–N3 are optional and are not carried on this head, as the requester said.
Merge 1 (c9778f0) The conflict resolution in ModalForm.tsx is one import line: import { FormDirtyReportContext } from './formDirtyReport'; placed beside import { FormSectionNav, useFormSectionNav } from './FormSectionNav';. The plain dialog arm still has FormSectionNavContext.Provider and the strip between DialogHeader and the scrolling body. The subform arm keeps #34599's FormDirtyReportContext.Provider and attemptClose path. Neither PR's behaviour is lost.
Merge 2 (367f481) git show --remerge-diff 367f481c is empty, so there is no hand resolution. On this head ModalForm.tsx has #34645's dialogUndeclaredColumns(layoutFieldCount, effectiveModalSize) and the sectionedGridLayout(…, undeclaredColumns) call. It also has #34599's FormDirtyReportContext.Provider and this PR's FormSectionNavContext.Provider with the strip.
PR patch vs main git diff origin/main...367f481c (main fecd2e9): the same 26 files, +867/−24, as on the reviewed head. ModalForm.tsx has 12 changed lines, the same as before the merge. No new file, so the scope, changeset and Clause-② readings in 6939117084 still hold.
Tier NOT governed and under 3000 lines, as before. Tier S, lands through o3-B.
CI on this head 58 check-runs, all success or skipped, none pending: Test UI 16/16 shards plus the aggregate, Type Check UI, Lint UI, Build & E2E UI, Live E2E UI, Check Changeset, Lint & Repo Gates, TypeScript Type Check, Governed Surface Queue Guard and PR-body guards are all success.

Notes

  1. The footer missing-required hint (Notes 2 of 6939117084, flag 2 of the contract review) is still not tracked by a card. The seat owns that decision.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG

Contract review

Served-tier: TIER_DEFAULT
Head-sha: 367f481c3c8015e834aafc184793c6a4bb224a0d
Local-runs: none
Scope: delta review on the declaration face (Clause-②: yes (widening)), following the PASS record (comment 6939278689) on 3e9036363ca17068d84c6420e77db3adb8918205. Reviewed: the two merges of main since that head, c9778f0ffd0e8ce9780b571ed62ccb59e267441f (one conflict, resolved by hand) and 367f481c3c8015e834aafc184793c6a4bb224a0d (merged clean), and the PR's net diff against merge-base fecd2e95d466b1ccc88a3ce59dc7a3c92416159e (26 files, +867/−24), compared line by line with the diff the earlier record reviewed. Also read: the 58 check-runs on the new head, and card #34605 (body, plus comments 6937255202, 6937400927, 6938585401 and 6939145003).
Security-touching: no

① Derived judgments

  • The hand-resolved import line in ModalForm.tsx is correct. In merge c9778f0f, the combined diff (git show --cc) shows exactly one hunk:

    • the PR's line import { FormSectionNav, useFormSectionNav } from './FormSectionNav';, kept from the first parent;
    • main's line import { FormDirtyReportContext } from './formDirtyReport'; (from the master-detail Save-bar work), kept from the second parent;
    • both lines sit next to each other, and neither is dropped or altered.

    No other line of ModalForm.tsx was resolved by hand. Merge 367f481c has an empty combined diff, so it took no hand edits. At the new head:

    • FormDirtyReportContext.Provider is in the subform (master-detail) branch, which returns early;
    • FormSectionNavContext.Provider and FormSectionNav are in the plain-dialog branch, as before.

    The two do not overlap.

  • The PR's own patch is unchanged. The net diff at the new head is 26 files, +867/−24, the same as at the old head. With zero context lines, and the index and @@ lines removed, the old-head and new-head patches are identical byte for byte. The stable patch-ids differ only because the context lines moved under the merged main changes. Every judgment in the earlier record therefore carries over, and holds on this head:

    • @object-ui/components adds exactly FormSectionNavContext, FormSectionNavItem and FormSectionNavSink. They are reachable through the "." export to dist/index.{js,d.ts,umd.cjs}, and publishConfig.access is still public. Nothing is removed or renamed.
    • Without a provider, the form renders the same output as before. The context defaults to null, so no reporter mounts and formState.errors is never read. The heading rows gain id, data-form-section and scroll-mt-2 either way, which is additive DOM.
    • The renderer provides null to its own descendants. A nested form therefore never reports into the host's sink.
    • @object-ui/i18n adds form.sectionNav and form.sectionNavErrors to all 11 locales. The locale directory at this head still holds 11 locale files plus index, registry and rtl, and the key appears in all 11.
    • @object-ui/plugin-form exports nothing new. It changes behaviour only.
    • Metadata accept-set: unchanged. No spec, FormSchema, view or section key is touched.
  • Check-runs on 367f481c3c8015e834aafc184793c6a4bb224a0d: 45 success, 13 skipped (path-filtered or opt-in), no failures, none pending. The successes include:

    • "Type Check UI";
    • "Test UI", all 16 shards;
    • "Lint UI" and "Lint · ESLint";
    • "Check Changeset";
    • "Build & E2E UI" and "Live E2E UI";
    • "Governed Surface Queue Guard".

    Type-check and the UI tests are green after the merge, so the merged ModalForm.tsx builds and passes.

② Semver level

  • The changeset .changeset/34605-form-section-nav.md has not changed. The patches are identical, so it still reads patch on @object-ui/components, @object-ui/plugin-form and @object-ui/i18n, with Metadata-protocol: none.
  • The level is correct under the AGENTS.md changeset rule. A none kind takes patch, and a widening outside the protocol ships patch.
  • The Clause-②: yes (widening — one @object-ui/components export + new @object-ui/i18n locale keys; no FormSchema or spec key) line is still identical in the PR body and the changeset. The (widening) arm is right.
  • N1 (nit, carried over): "one export" undercounts. The diff exports one value and two types. The changeset body and claim amendment 6939145003 name all three.

③ Boundary flags

  • The merges raise no new dev flag or open question. The os-dev-report's open_questions is still []. The earlier record's answers to deviations 1–6 still stand:
    • the surface amendment 6939145003 is on the card;
    • the footer missing-required hint is left to the seat as a possible follow-up card, because only triage comment 6937255202 asks for it;
    • the six re-scoped tests are not weakened;
    • the Studio Preview showing the strip is intended;
    • the draft state is process only;
    • the lint warning is N3.
  • SQL push-down (AGENTS.md Prime Directive 5): n/a. The change is client UI only, with no query, id materialisation or in-app join.
  • Security: none. No hunk touches permission, sharing, credential, token or auth behaviour, and the merge resolution adds none.
  • N2 (nit, carried over): the PR body says "No sink: nothing changes", but every heading row now carries id, data-form-section and scroll-mt-2 either way. The same paragraph and the changeset already say so.
  • N3 (nit, carried over): the react-refresh/only-export-components warning on useFormSectionNav. Moving the hook into its own module would clear it.

No must-fix, no should-fix. Nits: N1, N2, N3.

Implemented-by: claude/project-thread-a9r6j4
Reviewed-by: session_01WGufzgh1zkZzDXL36ckWAG

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzgwLiKcfujYUug7sPs

Landing · area o3-B (card thread #34605 hands back) · 2026-11-17T07:06Z

Probe Reading
L1 delta ACCEPT 6941223736 at 367f481c3c8015e834aafc184793c6a4bb224a0d (= current head), closing REWORK 6939117084
L2 (Clause-②: yes (widening)) Contract review PASS 6941274937 at 367f481c3c8015e834aafc184793c6a4bb224a0d (re-stamped after the hand-resolved merge; earlier PASS 6939278689 on 3e90363)
Checks on head 45 success, 13 skipped, 0 failure / pending; mergeable_state: clean
check-governed-merges.mjs --pr 34642 NOT governed; 891 changed lines ≤ 3000 (Tier S)
K (first-parent, merge-base..origin/main) 9 < 15; no merge=os-regen path in the diff

State change: ready for review + auto-merge (merge queue). Card #34605 closes on merge via Fixes.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 17, 2026 07:07
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 17, 2026
Merged via the queue into main with commit b1da9f5 Nov 17, 2026
59 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-a9r6j4 branch November 17, 2026 07:29
os-support-ai pushed a commit that referenced this pull request Nov 17, 2026
Keeps the section nav strip (#34642) and the maximize switch side by side:
the flat arm's header drops its bottom rule when the nav strip draws one.

Claude-Session: https://claude.ai/code/session_01WGufzgwLiKcfujYUug7sPs
Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/l tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

分组表单:加分组导航,点一下滚到对应分组,并标出还有必填未填的分组

2 participants