Skip to content

docs(adr-0035): note the overview body-table order after the open field sections - #35845

Closed
objectstack-fleet[bot] wants to merge 1 commit into
mainfrom
claude/project-thread-a5sj4e
Closed

objectstack-fleet[bot] wants to merge 1 commit into
mainfrom
claude/project-thread-a5sj4e

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Part of #35742

What changes

Adds one dated, add-only note to ADR-0035 (docs/adr/0035-config-driven-master-detail.md), directly under the 2026-11-19 amendment (#35597). No existing text changes.

The note records the overview order that PR #35824 shipped for #35742. The 11-19 amendment's clause "under the header strip and above the field sections" no longer holds. The details column now reads, top to bottom:

  1. the header strip (key fields and the stage bar);
  2. the field sections drawn open;
  3. the body tables, in the parent's relatedLists order;
  4. the field sections drawn closed that follow the last open one.

The note also records these cases:

  • A closed section between two open ones keeps its place.
  • When every section is drawn closed, the tables come last.
  • A field group whose relatedList names a table still places it.
  • An object with no stage bar and no key fields opens on its own fields.
  • The host's "More details" opens expanded, so it stays before the tables. This is seat ruling (2), 2026-11-20 10:12Z.

Why

The seat ruled on 2026-11-20 at 10:12Z that the ADR text must match the shipped order, as part of #35742's done-criteria. It also ruled that the note goes in its own small PR, so that #35824 stayed off the governed path.

Verification

Clause-②: no
Metadata-protocol: none

Human Minimum

  • 1. Schemas start as Zod; packages/spec holds no runtime logic.
  • 2. Every name I added uses the casing for its kind.
  • 3. No formatter ran; pnpm lint passes.
  • 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: its generated artifacts are regenerated and committed.
  • 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_01Utp6CZrgaiMgTJCnswR6jQ

…ield sections

Add-only dated note under the 2026-11-19 amendment: body tables now follow
the field sections drawn open and precede trailing closed ones.

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Utp6CZrgaiMgTJCnswR6jQ
@objectstack-fleet objectstack-fleet Bot added documentation Improvements or additions to documentation skip-changeset PR has no user-facing published change; bypasses the changeset gate labels Nov 20, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CXsZsKmgG1EcKp5bY4

维护者速读

  • 只改设计决策记录里的文字:在主从子表那条决策下补一条注记,说明昨天写的「子表排在关键字段下面、字段分组上面」已不再成立。
  • 新的顺序是:顶部的阶段条和关键字段,然后是展开的字段分组,然后是主从子表,最后是排在末尾的折叠分组。
  • 也写清了几种特殊情况:夹在中间的折叠分组保持原位、全部折叠时子表排最后、由分组指定位置的子表照旧、没有阶段条和关键字段时从字段开始、「更多详情」默认展开所以排在子表前面。
  • 这与已合并的实际改动一致。改的是受管控的设计文档,需要人工合并。
  • 席位意见:通过;转席位做规则文本复核并交人工合并。

席位核对

ACCEPT · head 8b13a2f311 · Part of #35742 (seat ruling (1) 10:12Z; the code is #35824, merged 11:04:24Z) · K=5 · merge-tree vs origin/main clean · governed 1/1 (docs/adr/0035-config-driven-master-detail.md) · +14/−0, 1 file · CI 2 success, 14 skipped, 16 in progress, 1 cancelled (Auto Label, which has a second run) · 2026-11-20T11:08Z

reviewFace (committed file list + the PR body's declarations): face rules, tier CONTRACT_REVIEW_TIER, hits.rules = [docs/adr/0035-config-driven-master-detail.md], hits.schema = []. Routing: L2 on the rules text by the seat, then Tier H: a human merge by GOVERNED_APPROVERS, then the owning seat lands it.

Checked, sentence by sentence, against bodyTablePlacement as merged in #35824:

  • Add-only: one dated > **Amended (2026-11-20, #35742; epic #35590).** block right under the 11-19 amendment; nothing above is edited, and the block names the one clause it retires ("under the header strip and above the field sections") and says everything else stands.
  • Order: strip, open sections, body tables, trailing closed sections = tablesAt = lastOpen + 1 ✔. Closed between open keeps its place ✔ (only trailing closed sections follow tablesAt). All closed → tables last (lastOpen === -1 → resolved.length) ✔. A group whose relatedList names a table still places it ✔ (placed path unchanged). No strip → opens on its own fields ✔ (the details node leads). "Drawn closed" is the reader's view (collapsible && defaultCollapsed, resolved for field groups), so the host's expanded "More details" stays before the tables ✔ (seat ruling (2)).
  • "in the parent's relatedLists order" uses the same words as the 11-19 note above, so the two read alike.
  • Branch: claude/project-thread-a5sj4e is the thread's platform branch. A Part of PR with no claim branch is fine; the PR-body guard will say if it disagrees.

Required before landing:

  • R1. CI: 16 checks were still running. Then the seat's L2 on the rules text and the approver handoff.

No other item.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ

Contract review

VERDICT: PASS

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 8b13a2f3118483e17a38f98a706b52fce2a2be41
Local-runs: none
Scope: docs/adr/0035-config-driven-master-detail.md + none
Security-touching: no

Read for this record: card #35742 (body and all 5 comments), PR #35845 (body, file list, net diff against main: 1 file, +14/-0), the check-runs on the head, and, outside the diff, bodyTablePlacement / sectionDrawnClosed in ui/packages/plugin-detail/src/synth/buildDefaultPageSchema.ts, ui/packages/plugin-detail/src/RecordPageColumns.tsx, ui/packages/plugin-detail/src/DetailSection.tsx and ui/packages/app-shell/src/views/recordDetailSections.ts on origin/main (which holds #35824).

① Derived judgments

  • Accept-set and public surface: none changed. The diff is one add-only blockquote in docs/adr/; no schema, no generated output, no package source. Right.
  • Add-only: right. The note sits directly under the 主从子表默认放进记录页概览左侧(关键字段下面),始终显示、带合计;判断规则改为按关系类型 #35597 amendment note; no existing line is edited, and the ADR file is identical between the PR's base and main, so the merge result is main plus the note.
  • Gates: on the head, 24 check-runs succeeded and 27 were skipped; one Auto Label run was cancelled and its second run succeeded; none failed. Every lint and type-check family concluded success, Lint · docs & code guards and Check Documentation Links among them. One was still running when this record was rendered, Test Core (1/10), so it carries no verdict yet. Landing waits for it; a red one blocks landing whatever this record says.

② Semver level

Clause-②: no. Right: nothing publishes. The skip-changeset label matches a docs-only diff, and Check Changeset succeeded on the head.

③ Boundary flags

  • The PR body raises no flag and no open question.
  • The dev report on the card (for fix(plugin-detail): the Overview draws a record's own field groups before its master-detail tables, at the list's dense height #35824) has two open questions. (1) Who writes the ADR note: answered by this PR, which is option A (its own PR). (2) Whether "More details" should follow the tables: the card hands that call to the implementer ("由实现方按「常用字段在子表前」的原则定,并在 PR 里说明"), the implementer chose "keep", and the note records it with the hedge "today". The PR body also cites a seat ruling (2) for it; that ruling is not among the card's comments, so it was not read here and the judgment above does not rest on it.
  • SQL push-down: not applicable, prose only.
  • Security: no changed hunk teaches permission, sharing, credential, token or authentication behaviour. The note is layout order only.

④ Design judgment

No must-fix, no should-fix.

docs/adr/0035-config-driven-master-detail.md, sentence by sentence against origin/main:

  • "a body table no longer sits under the header strip and above the field sections": holds. The quote is the 主从子表默认放进记录页概览左侧(关键字段下面),始终显示、带合计;判断规则改为按关系类型 #35597 note's own clause, word for word, and bodyTablePlacement no longer puts the unplaced tables first.
  • Order "open field sections, body tables in the parent's relatedLists order, then the closed sections that follow the last open one": holds. tablesAt = lastOpen + 1; the unplaced tables are pushed at that index in the order the host passed, and the sections after it are all drawn closed.
  • "A closed section between two open ones keeps its place": holds. Only sections after lastOpen trail the tables; the declared order is never changed.
  • "when every section is drawn closed, the tables come last": holds (lastOpen === -1 gives resolved.length).
  • "a field group whose relatedList names a table still places it among the field sections": holds. The placed path is unchanged and flushes at the group's index.
  • "an object with no stage bar and no key fields opens on its own fields": holds. RecordPageColumns draws no strip when it is empty, and the first details node leads the column.
  • "Drawn closed is what the reader sees ... the host's More details stays before the tables": holds. sectionDrawnClosed needs collapsible and defaultCollapsed both true, read for a { group } reference through the same derivation record:details resolves it with; deriveRecordDetailSections writes "More details" with defaultCollapsed: false, and DetailSection opens on that value.
  • "Everything else in the note above is unchanged": holds. Group placement, the no-section case (the details node leads), drawn-when-empty and the server-owned totals line read the same on main.

Other decisions in the ADR: none changed. The default ('primary' on an omitted relatedList of a master_detail FK), the relatedLists order, the isBodyTableRelationship predicate and the write-side rule are not restated or altered. The maintainer's words on #35597 ("关键字段下面") still hold: the tables stay under the strip. The new order is the card's own ("主记录的字段分组 → 主从子表").

Nits (prose only, no effect on the contract):

  • N1 (nit) — "The overview's details column now reads top to bottom as the header strip ...": the strip is not in the details column. RecordPageColumns draws it across the whole width, above both columns. The reading order is right; the container is loose. The 主从子表默认放进记录页概览左侧(关键字段下面),始终显示、带合计;判断规则改为按关系类型 #35597 note's "in the details column under the header strip" is the exact form. Accept as is, or reword in a later note.
  • N2 (nit) — the ADR's Status line lists the two earlier amendments and not this one. Nothing on that line goes stale, and editing it would break add-only, so it is an accepted deviation.

Outside the diff, read and not reviewed, for the seat:

Implemented-by: claude/project-thread-a5sj4e
Reviewed-by: isolated-l2-35845

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ

维护者速读

席位核对 — ACCEPT · repo:objectstack#5 · head 8b13a2f3118483e17a38f98a706b52fce2a2be41 · 2026-11-20T11:15Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CZrgaiMgTJCnswR6jQ

Closed unmerged · area ux-2 · 2026-11-20T22:09Z

The maintainer ruled on 2026-11-20 at 22:08Z that this note conflicts with the new rules: 「35845 和新规则冲突,直接关闭作废」. The PR is withdrawn and will not land. ADR-0035 stays as it is on main. The code it described (#35824, #35742) is merged and unaffected.

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/s skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants