Skip to content

记录页字段区:点一下值就进编辑(现在要双击);空字段显示成「设置某某」,点一下直接填 #36292

Description

@objectstack-fleet

coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff

立卡门类别:④ 协调节点的子单,承父单 #35590(记录页专题,维护者直派)。⛔ 不是认领。优先级 p2(协调席定的,维护者未指定)。

维护者说过的(2026-11-22)

  • 「关于 attio 的用户体验,你再完整的试用一下和我们相关的各项功能,并提出优化改进意见和我沟通。」
  • 协调席汇报后,维护者:「1 2 3 6 7 继续确认」,复核后又要求「上一轮的四条,具体给我解释」。
  • 听完逐条解释(现状、Attio 的做法、建议的做法)后,维护者:「立」。
  • 本卡是四条里的第 4 条。
  • 解释里协调席列了三点:单击进编辑、空字段显示成可点文字、查看全部字段加搜索。维护者随后说:「查看全部字段 不需要」。本卡只做前两点。

现状(主干 6c7c6db250,本机环境浏览器实测,1440 宽)

我们:空字段收在「显示 N 个空字段」后面

  • 字段的值上写着「双击编辑」,要双击才进编辑。
  • 空字段默认收起,每组底下有一行「显示 1 个空字段」「显示 4 个空字段」。展开后空字段显示成「—」,要填还得再双击。

Attio(同日浏览器实测):

Attio:空字段显示成浅色的「设置某某」

  • 点一下值就进编辑。
  • 空字段直接显示成浅色文字「设置团队」「设置描述」,点一下就弹出输入或选择。

要做的

  1. 单击进编辑:在可编辑字段的值上点一下就进编辑,不再要双击。
  2. 不想进编辑也能复制:鼠标移到值上时右边出现复制图标;链接、电话、邮箱、关联记录这类本身可点的值,点文字仍然是打开,点值旁边的空白处才进编辑。
  3. 空字段显示成「设置某某」:浅色文字,写「设置」加字段名。点一下直接进编辑或弹出选择。只读字段和没有编辑权限时仍然显示「—」。
  4. 空字段默认收起、「显示 N 个空字段」的规则不变;展开以后看到的是「设置某某」而不是「—」。
  5. 记录整页、右侧预览、手机记录页三处一致。

不做的

验收

  • 自建应用「客户」记录页:在「客户备注」的值上点一下,进编辑;改完按回车或点别处保存;按 Esc 取消。
  • 在电话、邮箱的文字上点一下:是拨号、发邮件,不进编辑;点值右边的空白处:进编辑。
  • 鼠标移到任意值上:右边有复制图标,点了复制这个值。
  • HotCRM「线索」:展开「显示 4 个空字段」,空字段显示成「设置某某」;点一下直接进编辑。
  • 只读字段:点了没有反应,空值显示「—」。
  • 右侧预览和手机记录页:同样的行为。
  • PR 正文附空字段和编辑中的截图。

协调席自己加的(不是维护者原话)

  • 第 2 项(复制图标、可点的值点文字仍然是打开)。解释时协调席提了「单击进编辑会让选中文字复制变难」,维护者说的是「立」,没有另作指示。
  • 第 4 项「空字段默认收起的规则不变」。
  • 第 5 项三处一致。

没有核对的

Reader: domain:ui 车道。记录页字段区在 ui/packages/plugin-detail。

Dedupe: 字段 单击 编辑、空字段 设置(objectstack,open)→ 都是 0。相关:#36147、#35019。

Activity

  1. added
    enhancement
    priority:p2
    domain:ui
    on Nov 22, 2026
  2. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:ui · pm:queue; rationale: area:ux · Feature · on the record page, a single click on a value enters edit (today it needs a double click), and an empty field reads 「设置某某」 and is filled in with one click. A child the coordinator filed under topic #35590 → p2 as set by the coordinator · size S.

  3. added
    pm:queue
    on Nov 22, 2026
  4. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · zhuangjianguo · session_01QsR2jRaJbQ4vqdv4J5peqA

    Claim: PM loop round 1 · 2026-11-22T07:29Z
    Session: session_01QsR2jRaJbQ4vqdv4J5peqA
    Account: zhuangjianguo
    Branch: claude/issue-36292-empty-field-set-placeholder
    Worktree: objectstack-issue-36292
    Domain: domain:ui
    Seat: repo:objectstack#7
    Area: f7-record
    File surface: ui/packages/plugin-detail/src/DetailSection.tsx (empty editable value face, the copy affordance), @object-ui/i18n packs for the 「设置{field}」 string, new pin file, changeset.
    Container & model: S, mode:subagent, model: opus (TIER_DEFAULT; dispatch-gates --tier: no path-derived mandate), effort: high
    Clause-②: no (expected; a new published i18n key is a widening of the language pack: the dev measures and the claim is amended to yes (widening) if a key is added)
    Metadata-protocol: none
    Responsibility: n/a — not a defect card
    Thread-read: 7074940287
    Premise: corrected (this claim): item 1 (single click enters edit) and the read-only copy rule already shipped on the default record page's field list in PR #36234 (#36147, maintainer ruling 7066516044 items 1–3), merged 04:47Z today. Left for this card: item 3 (an empty editable value reads 「设置」+ field label in a light colour and one click edits; read-only / no edit permission keep 「—」), item 2's copy icon on editable values if not already drawn, and item 5 (preview, phone, full page alike), each checked against the tree by the dev first.
    Pre-claim lane: domain:ui — ui/packages/plugin-detail/src/DetailSection.tsx
    Pre-claim deps: #36147 / PR #36234 merged (the card's own "same component as #36147" note)
    Prior rulings read: placeholder,empty,detailsection,clicktoedit,copy → 41 hits; ADR-0045 Decision §7, ADR-0155 D1, ADR-0014 Decision §2, ADR-0032 Decision §4, ADR-0036 Decision §1, ADR-0036 Decision §3, ADR-0037 Decision §1, ADR-0045 Decision §4; thread: none; repo: objectstack-ai/objectstack. Linked card ruling binding here: #36147 ruling 7066516044 items 1–4 (single click edits, no pencil, chip opens / rest of row edits, one collapsed "show N empty fields" row).
    Serial constraints cleared: DetailSection.tsx has no other in-flight f7-record card; overlap-check.mjs before the first push.
    Resume-from: none
    Fold-or-serial: alone.

  5. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 22, 2026
  6. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · zhuangjianguo · session_01QsR2jRaJbQ4vqdv4J5peqA
    os-dev-report

    {
     "issue": 36292,
     "status": "done",
     "branch": "claude/issue-36292-empty-field-set-placeholder",
     "pr": "https://github.com/objectstack-ai/objectstack/pull/36385",
     "session": "session_01QsR2jRaJbQ4vqdv4J5peqA",
     "premise_still_valid": true,
     "summary": "Premise as corrected by the claim holds on origin/main b3bcfefc, item by item on the default record page's field area (DetailSection's frameless face, the one face in the side preview, the phone 详情 tab, the pinned left column and a full page alone): item 1 single click edits and item 2's link/chip/phone half (clickBelongsElsewhere) were already shipped by #36234; item 4's one 'show N empty fields' row was shipped by #36234 (EmptyFieldsRow); item 2's copy icon was drawn on read-only values only (the button block read canInlineEditField ? pencil : copyOffered ? copy) and item 3 was missing (every empty value drew the shared EmptyValue dash). Built: an empty value with canInlineEditField on the frameless face reads t('detail.setField', {field}) ('Set {{field}}' / '设置{{field}}', new key in all eleven @object-ui/i18n packs) in text-muted-foreground/70 and the row's existing click enters edit; read-only, no write grant and a record that is not inline-editable keep the dash; an editable value on the frameless face also draws the hover/focus copy button (pointer-coarse:hidden per #36147 ruling item 1) beside the keyboard-only pencil. Authored record pages keep double-click + pencil + dash, as #36234 left them (open question). Citations are by symbol, not file:line, per ui/AGENTS.md #11 (a card or PR body has no same file).",
     "tests": "head 2c35661f (last commit changeset-only; code+tests identical since 7b0e4d41). All under os-verify-lock, vitest from ui/ --maxWorkers=1. (1) vitest run packages/plugin-detail/src/__tests__/DetailSection.fieldList-36147.test.tsx: 'Tests 25 passed (25)', VERDICT command-exit 0 (10 new pins in two top-level describes: Set Note/Set Phone + click enters edit with 'note'; CONTROLS read-only, not inline-editable, no write grant via a real MePermissionsProvider, off-face after opening the section's own toggle, non-empty unchanged; zh-CN via real I18nProvider reads 设置备注; editable copy button present with opacity-0/group-hover/pointer-coarse:hidden, copies 'Atlas deal', no edit; CONTROLS empty has no copy, off-face keeps pencil alone). (2) vitest run packages/plugin-detail/ packages/i18n/ on 7b0e4d41: 'Test Files 514 passed | 1 skipped (515)', 'Tests 5790 passed | 31 skipped (5821)', VERDICT command-exit 0. (3) pnpm --filter @object-ui/plugin-detail --filter @object-ui/i18n run type-check (tsc --noEmit && tsc -p tsconfig.test.json, both packages 'Done'): VERDICT command-exit 0. Ablations on 2c35661f via scripts/ablation-replace.mjs inside one lock hold (test resolves ../DetailSection src, no dist leg): A1 'if (isEmpty && frameless && canInlineEditField) {' -> 'if (false && ...' mutation landed anchor 1->0 blob 932402dfeeb2->dfd20d6b8e8c, 'Tests 4 failed | 21 passed (25)', restored blob==HEAD 932402dfeeb2, git diff HEAD empty; A2 '{copyOffered && (!canInlineEditField || frameless) && (' -> '{copyOffered && !canInlineEditField && (' blob ->d71eb76d821d, 'Tests 1 failed | 24 passed (25)', restored blob==HEAD, diff empty.",
     "gates": "Local: node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack derived 41 families for the 14-path diff (merge base b3bcfefcb); all 41 ran on 7b0e4d41, exit captured before any pipe, each exit 0 — except pnpm check:type-check-debt first exit 3 (PREREQUISITE NOT MET: its closure build got no lock turn), re-run under the lock: TCDEBT_EXIT=0 ('re-measure: OK — 0 ledger entr(ies) re-measured … none above its recorded number'); pnpm --dir ui exec vitest run scripts/ under lock: 'Tests 5127 passed | 2 skipped (5129)' UISCRIPTS_EXIT=0. --ran reconciliation with ':: exit N' records: '41 derived famil(ies) accounted for — 41 run, 0 NOT-MEASURED (a DERIVED zero — all 41 recorded an exit code and none of them is 3)'. Re-run on final head 2c35661f (changeset-only commit), exit 0 each: check-adr-0087-registration --base origin/main, check-changeset-no-major --base origin/main, check-empty-changeset --base origin/main, check:nul-bytes, check:published-files. overlap-check.mjs before each push: VERDICT clean exit 0 (shares i18n packs with #36343 #36342 #36332 #36327 #36326 #36316, all merge cleanly). CI check-runs on PR #36385: in_progress at report time (not awaited, per os-dev); the 11 required contexts are CI's.",
     "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
     "mcp_calls": "0",
     "api_writes": "2 relay writes — pr_create (POST /repos/objectstack-ai/objectstack/pulls draft + POST …/issues/36385/assignees zhuangjianguo, via fleet-write run 45005875449), os-dev-report comment on #36292 via post-stamped.mjs; plus git push (not a REST write)",
     "open_questions": [
      {
       "question": "Authored record pages (a kind:'full' page with a record:details block, any DetailView off the default page) still edit on a double-click with a pencil and show 「—」 on an empty value. Should card items 1–3 reach them too?",
       "options": [
        "A Leave them as #36234 left them; the card's acceptance cases (自建应用 客户, HotCRM 线索) are default pages and the #36147 ruling was scoped to the default page. Cost: none.",
        "B Extend single click + 设置X + editable copy icon to every DetailSection face. Cost: a behaviour change on every authored page and every DetailView host (drawers, embedded details); read-only click-to-copy would also need the #36147 item 1 treatment there; ~1 day plus a ruling, since it widens a maintainer-scoped ruling."
       ],
       "recommendation": "A, because it keeps one face per ruling and the card's acceptance is met; B needs the maintainer's word."
      }
     ],
     "security_findings": "none",
     "out_of_scope_findings": [],
     "deviations": "(1) PR body line order follows os-dev.md (harness attribution comment, then Fixes #36292 immediately, then Requested-by and the signature) rather than the dispatch's 'two lines then signature' — os-dev.md wins on conflict, and #36234 used the same order. (2) The PM asked for file:line readings; given by symbol instead (ui/AGENTS.md #11 bans line addresses in card and PR bodies). (3) Screenshots the card asks for: NOT MEASURED — no Console + backend stack driven in this shared container this run; behaviour pinned in jsdom; stated in the PR's Acceptance notes. (4) Claim says Clause-② no (expected); measured yes (widening): one new published i18n key detail.setField — the seat amends the claim.",
     "files_changed": [
      ".changeset/36292-record-field-set-placeholder.md",
      "ui/packages/plugin-detail/src/DetailSection.tsx",
      "ui/packages/plugin-detail/src/__tests__/DetailSection.fieldList-36147.test.tsx",
      "ui/packages/i18n/src/locales/{ar,de,en,es,fr,ja,ko,pt-BR,ru,zh-Hans,zh-Hant}.ts"
     ],
     "line_budget": "211 changed lines (+204 / -7, 14 files) vs the 3000 human-merge threshold: under"
    }
  7. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · zhuangjianguo · session_01QsR2jRaJbQ4vqdv4J5peqA

    Claim amendment · 2026-11-22T09:08Z · to claim 7075947584, from the dev's measurement (os-dev-report 7076947391, PR #36385).
    Clause-②: yes (widening)
    Metadata-protocol: none
    Reason: one new published @object-ui/i18n key, detail.setField, in all eleven packs; no prop, export or schema key removed or narrowed. The Clause-②: yes declaration owes the lane seat's TIER_DEFAULT review of record on the green head, on top of L1.
    Open question from the report, area reading: option A (authored record pages keep double-click, the pencil and 「—」, as PR #36234 left them; the card's acceptance pages are default pages and ruling 7066516044 is scoped to the default page). Extending it to authored pages would widen a maintainer-scoped ruling and is not built here.

  8. removed
    pm:dispatched
    on Nov 22, 2026
  9. added a commit that references this issue on Nov 22, 2026
    42e4096
  10. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff

    验收记录与更正 · 2026-11-22T13:20Z

    主干 6a35635a33 本机环境验收:单击进编辑、Esc 取消、电话/邮箱文字不进编辑而旁边空白进、悬停复制图标、只读字段无反应、空字段显示「设置某某」并可直接点、右侧预览相同,均通过。

    更正:本卡验收第一条里的「点别处保存」是协调席写错了,它和 2026-11-21 的裁决 7066516044(保留一条保存栏)冲突;开发按裁决实现,没有做错。

    维护者 2026-11-22 已同意把这条路径改成「只编辑这一个字段,离开即保存」,另立新卡,见随后的引用。

    新卡:#36475

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxdomain:uienhancementpriority:p2

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions