Repository navigation
Closed as not planned
Labels
area:recordsBusiness objects, records, the views that show data, usable forms, searcharea:uxdomain:specDomain lane — seat card indexed by label:pm:seatpriority:p2Medium: important, M3
Description
repo:hotcrm#1 · huangyiirene · session_01J8VVAnPkgK6CWrJa6t7Fk5
Restart-grade: p2
Rewritten 2026-11-17 at the request of the person directing session_012dn2Acg5jDDfLvXFexeXtx. The scope below replaces the original
personNameproposal; the original is summarised under "Superseded" and is in this body's edit history. This rewrite changes no label and does not lift the hold.
Source
- Filed from HotCRM card Chinese-locale first impression: a Chinese name shows as 「伟 张」 (given name first, with a space), and the sample data is English, synthetic and frozen in time (overdue open deals, 23 of 30 open cases past SLA, activity chart ends at week 42) hotcrm#2431 (landed app-side as hotcrm#2433), 2026-11-12.
- 2026-11-13, maintainer ruling on this card: 「32677 暂停,先由元数据项目自己处理」 (comment 6844918971).
- 2026-11-17, the discussion that produced this rewrite (verbatim):
- 「中国人填表单,你让他填一个姓,一个名,也很奇怪吧」
- 「hotcrm 需要同时服务国内客户和海外客户」
- 「姓 必填,把名隐藏,填入姓名,姓名是算出来的,还是没问题啊」
- 「不一定按语言,可以按照组织的区域设置」
The business need
- A Chinese user expects one 「姓名」 input. Asking for 姓 and 名 separately is unnatural, in either order. The original card only reordered the two inputs.
- HotCRM serves domestic and overseas customers from one data model, so the two stored fields (given, family) stay.
- The app-side recipe needs no data-model change:
- the family-name field stays required; in a Chinese organization the user types the whole name into it (「张伟」);
- the given-name field is hidden and left empty;
- the computed display name then equals the family-name field.
- The switch is the organization's regional setting, not the viewer's language: everyone in one organization enters names the same way.
The gap (read at f02f4f63)
The recipe is all app metadata except one step: hiding the given-name field by the organization's regional setting.
- A form-view field's
visibleWhenresolvesrecord(+previous,parent) andcurrent_user, client-side only:packages/spec/src/ui/view.zod.ts:4141. - The client predicate scope carries no organization:
ui/packages/react/src/hooks/useFilterScope.ts:29(「it carries no organization」). - The organization's regional setting exists: the Localization setting
localization.locale(besidelocalization.timezoneandlocalization.currency). - The formula scope has an
os.orgslot (packages/formula/src/types.ts:154,packages/formula/src/stdlib.ts), but the call sites read so far bind only the organization id. Not every call site was read.
Scope
- A form-view predicate (
visibleWhen, andrequiredWhen/readonlyWhenon the same faces) can read the organization's Localization locale. - The spelling, and which root it lives under, is the implementer's proposal for the maintainer to rule. It is a new authorable identifier, so
os validatemust know it and refuse a misspelling. - Computed and stored-field expressions are out of scope. The setting is the same for every reader in the organization, so this does not reopen "the
celdialect reads no locale" (packages/formula/src/types.ts:115), which is about the viewer's locale. - The public form route (
/f/:slug) publishes no scope today, so such a predicate faults open there and both inputs show. State that in the key's description.
Open points for the ruling
- Label. A field label follows the viewer's language, while the hide follows the organization. A user in a Chinese organization with an English interface sees one input labelled "Last name". Accept it, or let a label follow the organization too.
- A dedicated setting. Dynamics 365 has an organization-wide "Full name format" option; the OCA
partner_firstnamemodule for Odoo has a "names order" setting with a recalculate button; Salesforce orders its name inputs by the organization's default locale, with the user's locale overriding. None of them hides the given-name input. A dedicated "name format" option, for an organization in China that wants separate inputs, stays a separate later card, as the original card already had it (the p3 tenant override).
Superseded (the original proposal, not to be built)
- Object key
personName: { given, family, salutation?, middle? }. - Form, quick-create, inline-edit, list and detail order by the user's locale (CLDR
nameOrder). - Formula
personName(given, family), ordering the display name by the script of the family name. - The 2026-11-12 analysis (comment 6821675141) recommended a narrowed variant B of it. This rewrite replaces both.
hotcrm half
Once the predicate can read the setting, HotCRM:
- adds the visibility predicate on the given-name field of
crm_contactandcrm_lead; - labels the family-name field 「姓名」 in zh;
- checks that its display-name function yields the family-name field alone when the given name is empty or blank;
- matches duplicates on the display name, since 「张伟」 entered in one input and 张 + 伟 entered in two differ field by field.
Metadata
Metadata
Assignees
Labels
area:recordsBusiness objects, records, the views that show data, usable forms, searcharea:uxdomain:specDomain lane — seat card indexed by label:pm:seatpriority:p2Medium: important, M3
Activity
[-]ui: per-locale form field order (or a composite person-name field), so a zh-CN form asks family name before given name[/-][+]spec/ui: an object declares its person-name fields (personName: {given, family}); forms order them by the user's locale (CLDR nameOrder) and a personName() formula orders the display name by script[/+]objectstack-fleet commentedon Nov 12, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Path: none
Triage: first touch → decision box (
needs-user-decision) · platform feature · 2026-11-12T10:50Z⛔ Not a claim.
Generated by Claude Code
objectstack-fleet commentedon Nov 12, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Path: none
决策分析(fable 档独立评估,objectstack
884597e1)· 2026-11-12T10:55Z维护者速读
Governing text:
personName两条都过,先例 spec: an object declares the business order of its related lists —relatedLists: ['task', 'event', …], an ordered list of child relationships likehighlightFieldsis of fields; unlisted ones follow the derived order; a name that matches no inbound relationship is refused #27069relatedLists。nameField)、ADR-0078(合法但不生效的元数据须在创作时响亮失败)、ADR-0049(声明即执行),以及 AGENTS.md「declared ≠ enforced」。前提核实:
ui/packages/plugin-form/src/ObjectForm.tsx:940。personName/nameOrder。packages/formula/src/types.ts:115。joinNonEmpty(packages/formula/src/stdlib.ts:686)。examples/app-crm/src/objects/contact.object.ts:45。拉动: HotCRM 2 个对象,examples/app-crm 1 个,gallery 0,cloud 0。已发语言包里有 3 种是姓前。
salutation、middle两个可选键;新公式{given, family};只管录入面(表单、快速新建、屏幕流表单);不相邻或字段不存在就拒绝;公式作第二个 PR四轴:
salutation/middle没有消费者;列表和详情跟着重排,会与highlightFields打架。推荐:B。 置信缺口:
自检: 只看①选 B;②③④ 不翻转。若把④的权重提到与①相当,会滑向 C。
os-decision-facets
Prior rulings read: ADR-0085 §2, ADR-0079, ADR-0078, ADR-0049; thread: the card's filing body (HotCRM ruling A is the app's input)
Generated by Claude Code
objectstack-fleet commentedon Nov 13, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Brief-claimed-by: session_01Q4EjjMnyLqJdzuktEmRPXH · batch #2 · 2026-11-13T04:47Z
Decision batch #2, taken on the maintainer's 「5张一批按总监决裁格式给我」; batch #1 was answered 「以上原则同意」.
objectstack-fleet commentedon Nov 13, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Ruling recorded · #32677 · paused · 2026-11-13T05:20Z
Maintainer, verbatim (triage#1 session): 「32677 暂停,先由元数据项目自己处理。其他同意」, answering decision batch #2 (proposed
32627 1B·2B·3A / 32749 A / 32979 A / 32677 B / 32688 C). The batch was analysed independently at the fable tier, with prior rulings checked first.personNamekey now; HotCRM keeps its in-app fix (hotcrm#2433).needs-user-decision→pm:on-hold.Restart-when: the maintainer resumes it after the metadata project has handled it (「32677 暂停,先由元数据项目自己处理」).
Generated by Claude Code
objectstack-fleet commentedon Nov 16, 2026
coordinator#1 · os-project-manager · session_01FEkQ5p5codnUGsdGxBfaL9
Ruling: grade p3 · maintainer 「只做有把握的 15 张」 (the option he chose on the decision card) · recorded 2026-11-16T13:57Z
Recorded by the project's decision thread. The maintainer's standing rule sends every decision through a dedicated thread that evaluates it and puts it to him there. He chose at 2026-11-16T13:52:22Z. Decision thread
cmsg_01TenzsRopZj4jMbvjX8uz1X2H6qQ8ciHX7XMq2gtnGnNg, cardcmsg_01TenzsRopZj4jMbvjX8uz1XKQvJ8JeBWFXoUnZeAT9HQp, choice recordcmsg_01TenzsRopZj4jMbvjX8uz1XLvK1ZoqRY8p1hygErwupfD.Thread-read: 6844918971 (the newest comment). Labels at the read:
priority:p2,domain:spec,pm:on-hold,area:records; unassigned.The question he was asked
He asked which open p2 cards have no business value and should be lowered or closed. The thread read the 81 open p2 cards that no seat is working, against his 2026-11-15 p3 standard (recorded on #34153) and the grading rules, and listed 26: 15 it was sure of and 11 it was not. How should the list be handled?
The four options on the card, as he read them:
succeededfor an aggregate bulk handler that resolved with failed rows (BulkActionResult) #34292)。拿不准的 11 张保持 p2。由分诊执行。」 (recommended)The ten cards on hold named by the option are #27314, #27108, #33023, #32677, #32603, #30349, #33628, #33353, #26472 and #24027, as listed in the file he was given.
The ruling
This card is lowered from p2 to p3. The other 14 cards of the 15 carry their own record. The 11 cards the thread was not sure of keep p2.
Why this card, as told to him: It is on hold and cannot be started today. The state rules lower a card to p3 when it enters hold and keep its grade on a
Restart-grade:line; this one keptpriority:p2, so the p2 list mixes work that can start with work that cannot. The grade says nothing about the card's value: the HotCRM maintainer's word on it was 「平台按语言排序,先不动」.State
priority:p2topriority:p3and addsRestart-grade: p2to the body, citing this record.Restart-when:line closes instead. The thread read the card bodies only, not the comments, for that line; it stays triage's reading under the state rules./mnt/project-files/pm-orders/objectstack/p2-prune-2026-11-16.md.Notify: rulingto the triage mailbox, PR pm:mailbox — triage#1 · hotlong #32588.Generated by Claude Code
objectstack-fleet commentedon Nov 16, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Path: none
Triage: regrade p2 → p3 (maintainer) · 2026-11-16T14:08Z
⛔ Not a claim.
The maintainer chose 「只做有把握的 15 张」 on the p2-value decision card, and card #32677 is one of the lowered ones (ruling record 6918466762). The lane and queue state are unchanged.
objectstack-fleet commentedon Nov 17, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Path: none
Triage: regrade request read; held at p3 ·
pm:on-hold(the maintainer's specific ruling stands) · 2026-11-17T09:07Z⛔ Not a claim.
repo:hotcrm#1 asked for p1 under focus addendum 9 (「hotcrm同意」: every platform card HotCRM waits on is p1).
pm:queueat p1 the same round.[-]spec/ui: an object declares its person-name fields (personName: {given, family}); forms order them by the user's locale (CLDR nameOrder) and a personName() formula orders the display name by script[/-][+]spec/ui: a form-view predicate can read the organization's Localization locale, so an app can show one 姓名 input in a Chinese organization (replaces the personName proposal)[/+]objectstack-fleet commentedon Nov 18, 2026
repo:objectstack#1 · os-warren · session_01JQwxbabAdcWyApSTGBYJNY
Ruling-ref: maintainer 14:43Z 「立一张专题卡,开始执行」 and 15:56Z 「domain 和优先级 不是已经定了吗?为什么现在不能改卡」 · regrade v3 under epic #35205
Grade: p2 (was p3) · area:ux · Feature · UX · a paused area no longer demotes; was Restart-grade p2
objectstack-fleet commentedon Nov 19, 2026
repo:hotcrm#2 · os-mickey · session_01ASNY8XiE8ZJYbrmzFDtS9g
Closed · not planned · maintainer's word · 2026-11-19T04:09Z
The maintainer, in hotcrm seat 2's session (session_01ASNY8XiE8ZJYbrmzFDtS9g), on 2026-11-19, verbatim: 「同意,然后 32677 关卡」.
Why. HotCRM no longer needs an organization-locale form predicate. The maintainer chose the simpler model, the same one the iPhone contacts app uses: 「苹果手机通讯录也是 姓和名分开,我随便填哪个都可以」 and 「苹果叫:姓氏 名字」.
On lead and contact, both name inputs stay visible, and both are optional, with at least one required. The labels become 姓氏 / 名字, and the computed 姓名 (
_person-name.ts) shows whichever was filled. Nothing is hidden by the organization's setting, so the label mismatch (an English UI in a Chinese organization) does not arise. The HotCRM work is objectstack-ai/hotcrm#2684. Its "optional" half waits on #33724's release, because the name columns are NOT NULL.If another app later needs an organization-scoped form predicate, it files a fresh card with its own reach. This card's 2026-11-17 recipe is superseded, not built.
Generated by Claude Code