Repository navigation
fix(examples): lay out the inert internal create/edit forms as fieldGroups and drop their advisory allowlist rows - #37966
Conversation
The showcase (project, business unit, contact) and the CRM (lead, opportunity, activity) still declared internal create/edit forms the Console no longer loads. Their sections move into each object's fieldGroups as group member lists, the contact's sparse create form becomes showOnCreate: false on the five fields it left out, and the inert forms are deleted. The advisories allowlist loses its four form-view-internal-not-loaded rows. Claude-Session: https://claude.ai/code/session_01L9qibzpqH1nQTsbGckLspg Co-authored-by: Claude <noreply@anthropic.com>
packages/cli's i18n-section-coverage pin now reads the contact object's fieldGroups, so the declared input joins the registry and turbo.json. Claude-Session: https://claude.ai/code/session_01L9qibzpqH1nQTsbGckLspg Co-authored-by: Claude <noreply@anthropic.com>
📓 Docs Drift CheckNothing in this diff resolved to a documentable surface (no symbol, route or SDK anchor derived from 0 changed package(s)), so this run has no opinion about the docs. What this run could not see
Coarse fallback — 0 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): |
|
repo:objectstack#3 · os-tesla · session_01L9qibzpqH1nQTsbGckLspg Final green head for L1 · zone
|
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 L1 ACCEPT at Face. Against card #36553's Ask.
Edits past the card, all declared.
Sentence read. Noted, not owed here. The report's stale |
|
repo:objectstack#3 · os-tesla · session_01L9qibzpqH1nQTsbGckLspg Landing · zone
|
…oups' members showcase_project now serves a `budget_schedule` field group to the client liaison: its heading stays, and FLS drops the withheld budget and spent from its member list. The served-document scan matched the group key as a substring, so it now matches `budget` as a whole word and pins the group members separately. Claude-Session: https://claude.ai/code/session_01L9qibzpqH1nQTsbGckLspg Co-authored-by: Claude <noreply@anthropic.com>
⛔ merge queue 构建失败 — 先分诊,再决定要不要重排队列构建 46010642886 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集), 分类: 失败的 job(日志抽取,best effort):
跨 PR 相同签名(24h,按失败测试文件聚合):
历史信号:
分诊清单:
Generated by Claude Code · merge-queue-triage workflow (#4859) |
|
repo:objectstack#3 · os-tesla · session_01L9qibzpqH1nQTsbGckLspg Red-check reading · zone
|
…heading
The previous round matched `budget` as a whole word, which treats `_` as a
word character and so misses a leaked `budget_amount`. Restore the original
/budget|"spent"/ scan and remove only the served heading's exact JSON tokens
("budget_schedule", "Budget & Schedule") from the haystack. Pin that the
scan still catches each withheld field and the lookalikes once the heading
is out.
Claude-Session: https://claude.ai/code/session_01L9qibzpqH1nQTsbGckLspg
|
repo:objectstack#3 · os-tesla · session_01L9qibzpqH1nQTsbGckLspg Final green head for L1 delta · zone
|
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 L1 ACCEPT (delta) at The cause. The queue's Dogfood (3/3) red at Is the leak scan as wide as before? Yes, with one exact token less.
Nits (do not block).
The other two reds in this PR's CI history are not this PR's: |
|
repo:objectstack#3 · os-tesla · session_01L9qibzpqH1nQTsbGckLspg Re-landing · zone
|
⛔ merge queue 构建失败 — 先分诊,再决定要不要重排队列构建 46027441436 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集), 分类: 失败的 job(日志抽取,best effort):
跨 PR 相同签名(24h,按失败测试文件聚合):
历史信号:
分诊清单:
Generated by Claude Code · merge-queue-triage workflow (#4859) |
|
repo:objectstack#3 · os-tesla · session_01L9qibzpqH1nQTsbGckLspg Re-queue · zone
|
Fixes #36553
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
The examples still declared internal create/edit forms that the Console stopped loading with the internal-form retirement (#36425). Each form's sections become the object's
fieldGroups, and the inert forms are deleted.examples/app-showcase
showcase_project: newfieldGroupsproject(name, account, status, health, owner) andbudget_schedule(budget, spent, start_date, end_date), written as groupfieldslists. The five fields the old form never listed (budget_remaining, labels, team_members, task_count, total_estimate) fall into the trailing untitled section. They render there today too, flat, because the form has been inert since 内部的新建和编辑表单作废:平台不再加载表单定义,弹窗一律按字段分组和字段规则排;字段加一个「新建时显示」的开关(对外表单不受影响) #36425.showcase_business_unit: newfieldGroupsunit(all five fields).showcase_contact: it already had the four groups.showOnCreate: falsenow goes on the five fields the sparse create form left out (title, account, stage, lead_score, notes), so create asks for name, email, phone and company, as before. The header comment and the objectdescription(and its zh-CN mirror) stop teaching the sparse create override.ui/views/{project,business-unit,contact}.view.ts: the defaultformand contact'sformViews.createare deleted. Theshowcase_taskform stays: threetype: 'form'actions open it by name (After #36425: a default / OBJECT.create form opened by name from a form-type action is flagged "internal" (lint + Studio rail), and stale resolveFormViewLayout comments remain #36545).system/translations/index.ts:_sections.who_is_thisand_views.create(its title and thank-yousubmitBehavior) are removed from the contact block. The_sectionscomments for project, business_unit and contact now namefieldGroupsas their source.test/author-time-advisories.test.ts: the 4form-view-internal-not-loadedrows and theINERT_INTERNAL_FORMreason are removed. The section comment keeps the task-form explanation.test/seed.test.ts: the two contact pins are re-anchored. The first holds_sectionsequal to the object's derived group keys and_viewsequal todefault. The second pins the four derived edit sections with their members, the create projection (name, email, phone, company), and that the container declares noformorformViews.coverage.ts: no change.task.view.tsalone covers simple, tabbed and wizard, and no form type's only coverage was a deleted form.examples/app-crm
crm_lead: newfieldGroupslead_information, qualification, conversion and notes, as groupfieldslists. The list keeps the form's order (company second) without moving field declarations. Field definitions are unchanged, so the public Web-to-Lead resolve stays byte-equal.crm_activity: newfieldGroupsactivity_details, related_records and notes.crm_opportunity: it already declares the sameopportunitygroup (every field) pluslines, so only the form is deleted.test/i18n-sections.test.ts: the sweep now covers every titledfieldGroupsheading as well as named form sections. Its vacuity guard holds each sweep separately: at least 1 form section and at least 10 group headings, including lead, opportunity and activity.Authorized beyond the examples (surface amendment on the card, option A)
packages/cli/test/i18n-section-coverage.test.ts, the "showcase app, walked for real" pin only: it passesContactbesideContactViewsand expects the four contact group keys withoutwho_is_this.examples/app-showcase/src/data/objects/contact.object.tsis declared as a cli test input inscripts/cross-package-test-inputs.mjsand inturbo.json(@objectstack/cli#test).check:cross-package-test-inputsgoes red without both.docs/qa/platform-checklist/areas/access-security.json(access-security.fls-mask-and-strip, revision 9) andareas/i18n.json(i18n.surface-matrix, revision 17): the steps, the clause and the known gap that read the deleted forms now read the field groups. Each item gets a new history entry. The older history entries are kept as dated records, not rewritten.content/docs/ui/field-grouping-and-order.mdx: one runnable-example line saidcontact.view.tsholds "sections that materialise those groups". The view no longer has them, so the line says it is the list and declares no form.No changeset: both examples are
private: true, andpackages/clipublishes onlydist,README.mdandCHANGELOG.md, nevertest/. Labelledskip-changeset.Tests
All readings below are at head 7bf4784.
Example suites, cli pin, typechecks (lock VERDICT command-exit 0)
author-time-advisories.test.ts"validate --json reports exactly the allow-listed advisories" is green with the 4 rows gone, so no internal-form warning remains and no other advisory appeared. app-crmobjectstack validate --jsonreturns"warnings": [].Package tests that read these example files live (run on 37892e4; the later commit touches only turbo.json)
Ablation of the create-projection pin
I removed
showOnCreate: falsefrom contacttitleandaccounton disk and ranseed.test.ts -t 'lays the contact': lock VERDICT command-exit 1,expected [ 'name', 'email', 'phone', …(3) ] to deeply equal [ 'name', 'email', 'phone', 'company' ](+ title, + account). I then restored the file from HEAD (git restore --source=HEAD --staged --worktree), and the porcelain status was clean.Derived gates (dispatch-gates --commands, 103 families)
dispatch-gates --ranreconciliation: 103 derived, 100 run, 3 NOT-MEASURED, 0 UNRUN. The three NOT MEASURED exited 3 on a prerequisite this worktree lacks, and none of them reads these files:check-plugin-teardown-shape --self-test(its pinned commit is not in the shallow clone),spec check:skill-examples(client-react has no build),check:dual-build-cjs-loads(no repo-wide dist). CI runs all three.check:cross-package-test-inputswent red untilturbo.jsondeclared the new input, then OK. The others includecheck:platform-checklistOK (448 items),check:i18n-coverageOK (none new),check:examples-live-importsOK,check:nul-bytesOK,check:turbo-task-graphOK andcheck:issue-citationsexit 0.Acceptance notes
columns: 2on the old sections, and the contact create form'stitle: 'New contact'and thank-yousubmitBehavior, have nofieldGroupsequivalent and are dropped. All of them were already inert.i18n.surface-matrixstill describes the task's New/Edit form as "its default form'stasksection". Since 内部的新建和编辑表单作废:平台不再加载表单定义,弹窗一律按字段分组和字段规则排;字段加一个「新建时显示」的开关(对外表单不受影响) #36425 the task's New/Edit is also laid out by its field groups, and its default form loads only where a form action opens it. This card did not touch that, and it was already stale before.describe('validateTranslationReferences — the showcase contact surface (#5415)')in packages/lint says the contact object declares nofieldGroups[]. That has been stale since showcase:showcase_contact的九个字段声明了group却没有fieldGroups—— 文档级示例自己的注释承诺了平台并不提供的自动分组 #5443 and is outside this card's packages surface. The tests pass.Verification
Read first, by risk:
examples/app-showcase/test/seed.test.ts: the two re-anchored contact pins. They replace a comparison against the deleted form.examples/app-crm/test/i18n-sections.test.ts: the extended sweep and its split vacuity guard.packages/cli/test/i18n-section-coverage.test.ts: the one authorized hunk.Two-minute check:
grep -n "form-view-internal-not-loaded" examples/app-showcase/test/author-time-advisories.test.tsprints nothing.Generated by Claude Code