Repository navigation
Commit 337f435
<!-- claude-projects-attribution: {"github_login":"os-sales"} -->
_Requested by **Sales** · [project
thread](https://claude.ai/code/project/chan_01D5bWFY3rFzgJcytD5gD4Uu?thread=cmsg_01D5bWFY3rFzgJcytD5gD4UuVUBehQPXWLrrSjKtHkXE93)_
repo:objectstack#1 · os-sales · session_01L6bhgWCfqdb19A74hDYnKp
Part of #35902
Fixes #35942
Part of #36188
Clause-②: no
Metadata-protocol: none
Skills-docs: updated here
Security-touching: no
Area: b1-RS. Claims: #35902 7072867188 (slice 2; it redoes slice 1,
whose branch never reached GitHub), #35942 7072873584 (folded), #36188
7072882981 (this PR is its skills half; the seven platform-checklist
JSON items are PR B, `Fixes #36188`, after this merges, because a
checklist JSON beside skills paths takes a PR off the low-risk skills
arm).
## 维护者速读
- AI 按技能搭建记录页时,现在知道页签由父对象的 `relatedLists`
决定:没写就照旧全部显示;写了就只显示列出的,按列的顺序;附件、审批、动态用对象名
`sys_attachment`、`sys_approval_request`、`sys_activity` 列进来;一项可写 `{ list,
label, columns }` 给这张子表自己的标题和列。
- 以前技能教「把任务排第一」写 `relatedLists:
['task']`,按现在的规则这会把其他页签全藏掉。技能和评测改成「列出要保留的全部页签,任务排第一」。
- 主从子表默认是页签(#35921 之后),技能不再说「默认是正文表」;父对象分组指向子表才进字段区,而且只在使用者明确要求时才写。
- 第 1 片(分组用 `fields` 列成员、不再有阶段条和关键字段条、阶段在名字旁的状态标签里)当时没推上来,这次一起补上,关掉
#35942。
- 右栏、⊟ 开关的文字删掉,改成今天的布局:宽的整页把字段钉在左栏,其余页签在右边。
- 新增三条评测:「去掉附件页签」「税号排在行业后面」「报价单的明细放在金额上面」;指南文档记录页一节加了父单的完整报价单例子。
- 代价:只改技能文字、评测、指南和一个 changeset,不动运行时;四个技能文件都没超上限,上限一个没动(同文件删过期文字来付)。
## What changes
**`skills/objectstack-ui/rules/record-page.md`** (3954 → 3951 B, 988 /
991 tokens)
- Step 1: the stage is the status tag beside the title, whose menu moves
it; no stage bar or key-field strip (`highlightFields` feed hover cards,
pickers, related-list columns) (#35938, #35942). `fieldGroups` are the
Details sections, each listing its members in `fields`; absent, the
fields whose `group` names it (#35925). Layout: a full page fitting 320
px of details beside 400 px of tabs pins the details left, the other
tabs right; unless the details hold a child table or there is no other
tab; otherwise one column, Details first (#36136,
`recordPagePinsDetails`). The old 760 / 1120 px two- and three-column
text, the right column and the Overview tab are gone.
- Step 2 is now "The parent's `relatedLists` is the tab list" (#35923):
without it nothing changes; declared, only the named lists show, in
order (unlisted approvals and the stream still follow); the built-ins by
object name; "tasks first" lists every tab to keep; leaving out
`'sys_attachment'` drops attachments; `{ list, label, columns }`; a
built-in is a bare name; a child list another package adds is hidden by
a `relatedLists` that does not name it. Kept from the old step 2:
`relatedList: false`, `relatedListFilter`, the default list view `sort`.
A parent group `{ key, label, relatedList: 'quote_line' }` (no `fields`)
places a child table among the fields, written only when asked (#35902's
open question); its tab stays unless a declared `relatedLists` omits it
(#35889's note, seat reading 7048340194, as shipped by #35923). The old
"`'primary'` default for a master_detail" and "`relatedLists: ['task']`,
no page file" are removed (#35921, #35923).
- Step 6: the ⊟ right-column switch is removed (#36188); the details
column's dragged width joins the reader's choices.
- Paid for in the same file: step 1's retired layout text, step 3's "the
synthesizer fills the rest", step 5's removal release ("removed in
@objectstack/spec 18.3.0 (ADR-0087 D2)": the refusal carries its fix),
step 6's "(drawer or full page, for a drawer-mode object)" and the
deprecated `width` / `drawerWidth` aside, step 1's "the other tabs
right", step 4's "a filtered split (Open vs Closed)" and step 5's
"(`new_window`, `none` are the other members)" and "Field count never
decides".
- The `os:check` example is a quote (`sharingModel: 'private'`) with a
group listing its `fields` and a `relatedLists` entry carrying its own
label and columns.
**`skills/objectstack-data/rules/relationships.md`** (16790 → 16812 B,
4203 / 4203), Detail-page related lists: every child is a tab by
default, a `master_detail` child too; `false` hides; `'primary'` makes a
body table with no tab; a parent group naming a `master_detail` child
places its table there too (written only when asked), and its tab stays
unless a declared `relatedLists` omits it; the parent's `relatedLists`
is the tab list (pointing at objectstack-ui Record Page), with the
built-ins and the entry form; an entry's `label` / `columns` win over
`relatedListTitle` / `relatedListColumns`. Paid for by the old tri-state
bullets, the "Suppress a noisy association" comment, and a shorter
refusal aside ("bar a platform or sibling-artifact name", "one into a
package is stored, placing nothing").
**`skills/objectstack-data/references/examples-objects.md`** (6894 →
6876 B), Field Groups: a group lists its members in `fields`;
`Field.group` is the older spelling, still read; the two refusals named;
the example lists members on the groups.
**`skills/objectstack-ui/rules/navigation.md`** (10251 → 10219 B):
"`fieldGroups` + `Field.group`" is "`fieldGroups`", twice.
**Evals** (`skills/objectstack-ui/evals/record-page.json`, README;
measured, not ratcheted):
- Case 1 (tasks first) now expects the full tab list, `task` first, and
refuses `relatedLists: ['task']` and a group naming the task list. Its
old answer ("already a full-width body table") is wrong since #35921.
- Case 4: remove the attachments tab: the full list without
`'sys_attachment'`.
- Case 5: a Tax ID field after Industry in the group's own `fields`,
with no `group` on the field.
- Case 6: a quote's line items above its Amount section instead of a
tab: a group `{ key: 'lines', label, relatedList: 'quote_line' }`
between the two, and a `relatedLists` naming the tabs kept without
`quote_line` (an undeclared parent keeps a group-placed table's tab).
- `must_not_contain` tokens are code shapes (`relatedLists: ['task'],`,
`'sys_attachment',`, `group: 'basic' }` …), so an answer that names the
wrong shape in prose is not failed.
- No case's `must_not_contain` token appears in its own reference
answer; every `must_contain` token does (checked by script).
**Guide (`content/docs/ui/pages.mdx`, Record pages)**: the synthesized
default says every related list is a tab by default, the header's status
tag carries the stage with no stage bar or strip, and an unplaced
`'primary'` table sits after the field sections drawn open (it said
"after the first field section"; `bodyTablePlacement` since #35742). New
subsection "Declaring the tabs and the field groups": `relatedLists` as
the tab list with the built-ins and entries, a group's `fields`, a group
placing a child table (its tab stays unless a declared `relatedLists`
leaves it out), and epic #35896's full quote example (`os:check`, with
`sharingModel: 'private'`; a comment says `quote_line` is in both places
on purpose, so it is drawn in the details and keeps a tab with its own
columns). The layout paragraph gets its own heading, "How the page is
laid out". "A one-word change on the relationship field" now reads "a
declaration on the parent (a field group naming the list)".
**Changeset** `.changeset/35902-skills-related-lists-tabs.md`:
`'@objectstack/skills': patch`, both declaration lines.
## Small calls made in this thread
- No ratchet ceiling moves: a `scripts/check-skills-token-ratchet.mjs`
edit is outside the low-risk skills arm. All four files fit under their
current ceilings.
- The skill says "no package places its own list yet" rather than naming
the follow-up card: the published catalog refuses internal ids
(`check-doc-authoring`).
- The Inline Editing section of `relationships.md`,
`skills/objectstack-ui/rules/list-views.md:370` and
`skills/objectstack-ui/SKILL.md:48` still teach that `inlineEdit: true`
alone puts the child rows on the parent's form; since #35921 a parent
field group decides and `inlineEdit` only picks grid or form. Not in
this PR (it is form entry, not the record page's tabs, and it spans
three more files): follow-up for the seat to card.
- `content/docs/ui/field-grouping-and-order.mdx` was not touched: the
brief names the record-page section.
## Verification
(readings against `main` 48c732c, head 7b3f52e)
- Reviews on 4885e48: L1-c REWORK 7073387487 (two must-fixes, both in
7b3f52e); Fable rules L2 PASS 7073403529 (N1 narrowed in 7b3f52e, N2
closed by L1-c's fix 1, N3 = L1-c's fix 2, N4 left).
- `node scripts/check-skills-token-ratchet.mjs`: 60 authored files
within ceilings.
- `pnpm check:skill-links` (270 links, 139 fragments),
`check:skill-identifier-liveness` (549 citations), `check:doc-authoring`
(75 published skill files with no internal ids; 516 doc files clean):
green.
- `pnpm --filter @objectstack/spec check:skill-examples`: 348 marked
examples type-check across 3 surfaces (EXIT 0), the new record-page,
examples-objects and pages.mdx blocks among them.
- `pnpm --filter @objectstack/lint run check:doc-security-posture`: 41
`ObjectSchema.create` examples carry an `os validate`-clean posture (the
first head missed `sharingModel` on both quote examples; CI caught it,
fixed in 4885e48).
- The examples through `defineStack` (cross-reference validation): the
guide's quote with `quote_line`, `task` and `account` accepted; control:
the same quote without `quote_line` is refused (`relatedLists[0]
'quote_line' matches no inbound relationship of 'quote'`); the rule's
short quote with a `quote_line` child accepted; the data skill's account
accepted.
- `node scripts/pm/check-governed-merges.mjs --branch
claude/project-thread-emjngv`: skills/** ×6 (all `.md` or
`evals/*.json`), plus a changeset and one `content/docs` `.mdx`, 296
changed lines; the arm's `--pr` reading follows on the PR.
## Follow-ups
- PR B: the seven checklist items
(`docs/qa/platform-checklist/areas/records-forms.json` ×6,
`attachments-storage.json` ×1), `Fixes #36188`, in a new session after
this merges.
- #35902 stays open for the #35901 batch (extension placement), the repo
example and HotCRM.
- `inlineEdit` skills text (above).
## Human Minimum
- [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic.
(not touched)
- [x] 2. Every name I added uses the casing for its kind.
- [x] 3. No formatter ran; `pnpm lint` passes. (skills and doc gates
above)
- [x] 4. One issue, one branch off an up-to-date `main`, one pull
request.
- [x] 5. A change that publishes carries a changeset, and both
declaration lines are filled in here and in the changeset.
- [x] 6. `packages/spec` touched: n/a.
- [x] 7. No hand edits to `content/docs/references/`,
`packages/*/CHANGELOG.md` or `content/docs/releases/`.
- [x] 8. Title, body and comments are in English. (the 维护者速读 block is
the maintainer's Chinese summary)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01L6bhgWCfqdb19A74hDYnKp
<!-- signed: repo:objectstack#1 · os-sales ·
session_01L6bhgWCfqdb19A74hDYnKp -->
---------
Co-authored-by: Claude <noreply@anthropic.com>
1 parent efe4436 commit 337f435
8 files changed
Lines changed: 227 additions & 91 deletions
File tree
- .changeset
- content/docs/ui
- skills
- objectstack-data
- references
- rules
- objectstack-ui
- evals
- rules
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
185 | | - | |
186 | | - | |
187 | | - | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
188 | 192 | | |
189 | 193 | | |
190 | 194 | | |
| |||
194 | 198 | | |
195 | 199 | | |
196 | 200 | | |
197 | | - | |
198 | | - | |
199 | | - | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
200 | 264 | | |
201 | 265 | | |
202 | 266 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | | - | |
36 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
345 | 345 | | |
346 | 346 | | |
347 | 347 | | |
348 | | - | |
349 | | - | |
350 | | - | |
| 348 | + | |
| 349 | + | |
351 | 350 | | |
352 | 351 | | |
353 | 352 | | |
354 | 353 | | |
355 | | - | |
| 354 | + | |
356 | 355 | | |
357 | 356 | | |
358 | 357 | | |
359 | | - | |
360 | | - | |
361 | 358 | | |
362 | 359 | | |
363 | 360 | | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | | - | |
377 | | - | |
378 | | - | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
379 | 376 | | |
380 | 377 | | |
381 | 378 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
19 | 22 | | |
20 | 23 | | |
21 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
| 6 | + | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
15 | 19 | | |
16 | 20 | | |
17 | | - | |
18 | | - | |
| 21 | + | |
19 | 22 | | |
20 | 23 | | |
21 | 24 | | |
| |||
52 | 55 | | |
53 | 56 | | |
54 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
55 | 115 | | |
56 | 116 | | |
57 | 117 | | |
0 commit comments