Repository navigation
fix(example-crm): full-name contact titles, a complete zh-CN bundle, declared highlight strips and a user-typed lead owner - #28886
Merged
Conversation
Contact titles read the full name, plural labels drop the list suffix, the zh-CN bundle covers navigation, fields, options, the dashboard and its dataset, the five record pages declare highlight fields, the lead owner is a user field, the mislinked seed activity is renamed, and the dashboard copy is written for business readers. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jRrzBxwrREVnKhpyXn
…ssages and page Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jRrzBxwrREVnKhpyXn
…d To is 分配给 Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jRrzBxwrREVnKhpyXn
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jRrzBxwrREVnKhpyXn
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jRrzBxwrREVnKhpyXn
Contributor
Author
|
domain:ui#4 · zhuangjianguo · session_01QsR2jR7ZFkpqmm4U8S1f9y 席位核对 · ACCEPT · 2026-11-02T03:49ZHead-sha:
Generated by Claude Code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
domain:ui#4 · zhuangjianguo · session_01QsR2jR7ZFkpqmm4U8S1f9y
Requested by Steedos · project thread
Fixes #28870
Clause-②: no
Metadata-protocol: none
维护者速读
examples/app-crm的元数据,另把scripts/i18n-coverage-baseline.json里 app-crm 的未翻译上限从 101 写成 0。联系人标题改为全名(nameField: 'full_name',公式声明returnType: 'text');五个对象的复数名去掉「列表」;zh-CN 词条补齐导航、字段、选项、仪表板、数据集、对象描述、校验提示和欢迎页(os lint --i18n-strict未翻译数 101 → 0);客户、联系人、商机、线索、活动各声明highlightFields(不含阶段字段,阶段已由阶段路径显示);线索「分配给」改为用户字段;误挂在 Acme 下的 "Discovery Call — Bletchley Systems" 改名为 "Discovery Call — Acme Platform Renewal";仪表板说明改写成业务语言。assigned_to(原值是客户联系人的邮箱,不是用户),新库里该列为空,要在界面上分配。回滚即 revert 本 PR。examples/app-crm/src/objects/lead.object.ts(assigned_to改为Field.user,is_closed声明boolean);②examples/app-crm/src/data/index.ts(去掉种子里的邮箱、活动改名);③examples/app-crm/src/objects/contact.object.ts(标题字段)。pnpm dev:crm -- --fresh -p 38427,浏览器语言设为中文后登录:侧栏是「线索 / 客户 / 联系人 / 商机 / 活动 / 销售漏斗」,联系人页标题是 "Ada Lovelace",页签没有「列表」二字。What changes
Every metadata edit is in
examples/app-crm, per the ruling: no platform change, no lint, no inference, no gate. The one other file is the app-crm row of the i18n coverage baseline.crm_contactdeclaresnameField: 'full_name', and thefull_nameformula declaresreturnType: 'text', which makes it title-eligible. Title, lookups and pickers read "Ada Lovelace".pluralLabelof account, contact, opportunity, lead and activity is the plain noun (客户, 联系人, 商机, 线索, 活动).nav_leads…nav_pipeline_dashboard), every declared field label, every select option (industry, stage, approval status, lead status and source, activity type and status), the line-item object, thecrm_convert_leadaction, the dashboard title, description and six widgets, theopportunity_metricsdataset (tile and axis names), object descriptions, the five validation messages and the welcome page.detectStatusField: opportunitystage, lead and activitystatus), so the stage is not shown twice once Default record page: no derived highlight strip (declared highlightFields only); the stage field leaves the body when the path draws it; the owner appears once, under one word #28868 shows a declared strip as declared:crm_account:industry,annual_revenue,websitecrm_contact:account,emailcrm_opportunity:account,amount,close_date,probabilitycrm_lead:company,source,lead_score,assigned_tocrm_activity:type,due_date,contact,accountcrm_lead.assigned_toisField.user(targetsys_user). The seed no longer writes the four email addresses into it; see the deviation below.compareTo, no chart-type notes) and translated.Also, as a bounded in-place fix of the same class as item 1 (a formula without its result type),
crm_lead.is_closeddeclaresreturnType: 'boolean'. The zh-CN lead page showed the raw word "false" under 已关闭; it now shows 否.Deviation from the card (seat ruling B)
The card asks for "seeded user references" on
assigned_to. Measured on45efba2a: nosys_userrow exists when app-crm's seed runs. The dev admin is minted atkernel:ready, afterAppPlugin.start()seeds, and people otherwise come from sign-up (examples/app-showcase/src/security/demo-personas.ts;content/docs/data-modeling/seed-data.mdx, "Owner-style fields"). The only way to resolve a seeded user reference would be for app-crm to seedsys_userrows itself. Those are directory rows with no login, andpackages/plugins/plugin-auth/src/auth-manager.ts(the#14157docblock) records that seeded people close the first-visitor bootstrap sign-up underinvite_only. The seat ruled option B:Field.user, and the seed leaves the field unset, which is the documented owner-style pattern. The acceptance screenshot of the lead list was taken after assigning three leads in the UI.Tests
pnpm --filter @objectstack/example-crm typecheck: exit 0.pnpm --filter @objectstack/example-crm test: 7 files, 48 tests passed.os lint --i18n-stricton the app: 0 errors (was 101 untranslated declared strings). The 4 remainingfield-no-consumerswarnings were on the base too; the base had 9, and the highlight strips and the contact title now consume 5 of them.os validate: exit 0.pnpm dev:crm -- --fresh): seed loads 28 rows with no unresolved-reference line.Acceptance notes
issue-28870/and are not uploaded to GitHub:zh-account-page.png,zh-contact-page.png,zh-lead-list.png, plus the lead, opportunity, activity and dashboard pages and the account and contact lists. The seat read them before landing.crm_contact.full_nameis a text formula, so the title is display-only: a sort by it is refused and search does not reach it. Search still finds a contact bylast_nameandemail(bothsearchable). The contact list and record page load and render the full name; see the screenshots. A stored text field with anexpressionwould make the title searchable; the card ruled the formula, so this PR keeps it.assigned_toreads 分配给, because the platform'sowner_idalready reads 负责人 on the same page.scripts/i18n-coverage-baseline.json: the app-crm entry is written down from 101 to 0 bynode scripts/check-i18n-coverage.mjs --update(claim amended to add this one entry), so a regression cannot creep back under the old ceiling. No other entry moved.@objectstack/example-crmis private and publishes nothing, so the PR carriesskip-changeset.Verification
Derived gates
node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstackat the final head: 42 gates (34 for the app files, 8 more for the baseline file underscripts/), each run with exit 0 and reconciled with--ran, 0 NOT-MEASURED. The PR-body gates ran against this body throughGITHUB_EVENT_PATH.Dogfood battery: not owed (no
!in the title and no(narrowing)arm).Generated by Claude Code