Skip to content

记录页字段区:点一下只编辑这一个字段,回车或点别处就保存(现在是整条记录变成表单、要点「保存」);页头「编辑」按钮保持整页表单 #36475

Description

@objectstack-fleet

coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff

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

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

所以本卡改掉 7066516044 里「unchanged: one save bar」对「点字段值进入编辑」这条路径的约束;「编辑」按钮那条路径不变。

现状(主干 6a35635a33,本机环境浏览器实测,1440 宽,自建应用「CRM客户管理」的客户记录)

点一下「客户备注」后,所有字段一起变成输入框,底部出现取消/保存

Attio(此前实测):只有点的那个字段变成输入框,回车或点别处保存,其他字段不动。

要做的

  1. 点一个可编辑字段的值:只有这个字段进入编辑,其他字段保持查看状态,页面不跳,底部不出现保存栏。
  2. 保存和取消:
  3. 保存不成功(必填为空、格式不对、校验规则不通过、没有权限):留在编辑状态,输入不丢,原因显示在这个字段下面。
  4. 保存成功后,依赖这个字段的显示/只读/必填条件重新计算,字段区按新结果显示。
  5. 页头的「编辑」按钮不变:整条记录变成表单,底部「取消」「保存」。
  6. 空字段的「设置某某」、电话和邮箱文字点了是拨号和发邮件、关联记录小块点了是打开那条记录、只读字段点了没反应,这些都不变。
  7. 范围:右侧预览、手机记录页、宽屏左栏、没有其他页签的整页,凡是默认记录页的字段区都改。作者自己画的记录页不动。

不做的

  • 不改「编辑」按钮的整页表单。
  • 不改列表格内编辑。
  • 不动作者自己画的记录页(那里仍是双击、铅笔)。

验收

  • 自建应用「客户」记录页:点「客户备注」的值,只有它变成输入框,其他四个字段不变,底部没有保存栏;改内容后点别处,值保存了(看到一次写请求),回到查看状态。
  • 同一页:点「联系电话」值右边的空白进编辑,改了按回车保存;再进编辑改了按 Esc,值没变,没有写请求。
  • 点「所属行业」:直接弹出选项,选一项后立即保存。
  • 把一个必填字段清空后点别处:仍在编辑,字段下面有原因,没有保存。
  • 点页头「编辑」:整条记录变成表单,有「取消」「保存」,和改动前一样。
  • 右侧预览、手机宽度各重复第一条。预览里编辑一个字段时按 Esc:只取消这次编辑,预览还开着(和 右侧预览里正在编辑时按 Esc:整个预览被关掉,应该只取消编辑 #36472 对齐)。
  • HotCRM「线索」:点「设置称谓」直接弹出选项,选了就保存。
  • PR 正文附改动前后的截图,并写明作废或改写了哪些测试。

协调席自己加的

Activity

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

    @objectstack-fleet
    ContributorAuthor

    coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff

    通知记录 · 2026-11-22T13:20Z

    维护者 2026-11-22 对协调席的建议答复「同意」;此前:「后续 ux 专题立卡之后都通知 7号座位。」本卡按此通知席位 repo:objectstack#7,随后在它的信箱 #36199 里发一条。

  3. 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 field area, one click edits only that field and Enter or clicking away saves it; the header 「编辑」 keeps the whole-page form. A child the coordinator filed under #35590 → p2 as set by the coordinator · size M.

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmNmMEXS4EzeVz9RjvD

    Claim: PM loop · 2026-11-22T18:32Z · area s2-A (record page and forms) of seat repo:objectstack#2; the maintainer gave area:ux p1/p2 topic children to this seat (2026-11-22)
    Area: s2-A
    Session: session_01ADHkmNmMEXS4EzeVz9RjvD
    Account: os-steve
    Branch: claude/project-thread-mbgr6u
    Worktree: objectstack-issue-36475
    Domain: domain:ui
    Seat: repo:objectstack#2
    File surface: ui/packages/plugin-detail/src/** (field-area click → single-field edit, commit on Enter/blur, Esc cancels, per-field error, re-evaluated visible/readonly/required conditions after save; the header 「编辑」 whole-record form path unchanged), the shared per-type cell editors in ui/packages/fields/src/** only where reused from the list cell edit, the drawer/phone hosts in ui/packages/app-shell/src/views/** only if they own the save bar, their tests, .changeset/. No packages/spec/**. (Stop on breach; explain in the report.)
    Container & model: M, mode:subagent, model: default (dispatch-gates --tier at 0b2118f4: no path-derived mandate), effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — not a defect card
    Thread-read: 7080072257
    Premise: holds — on main 0b2118f4 a click on an editable value calls onEnterInlineEdit(field.name) (ui/packages/plugin-detail/src/DetailSection.tsx:988), which DetailView.tsx wires to handleEnterInlineEditField (:2052 ff.), the whole-record edit with one save bar. The dev re-measures before writing.
    Pre-claim lane: domain:ui — every named path is under ui/packages/**; no spec, no governed face.
    Pre-claim deps: the card names no Blocked-by:; it waited on seat 7's #36478, merged 2026-11-22T18:09Z. Open record-page PRs that may share files: #36438 (seat 7, draft; RecordDetailView.tsx, RelatedList.tsx), #36517 (this seat; buildDefaultPageSchema.ts), #36357 / #36392 / #36351 (grid and fields cell editors). overlap-check.mjs runs before every push; a textual overlap queues this PR behind the named one.
    Prior rulings read: check-prior-rulings.mjs --card 36475 at 0b2118f4. 7066516044 (#36147, 2026-11-21) held "unchanged: one save bar"; the maintainer's 「同意」 recorded in this card's body lifts it for the click-a-value path only, and keeps it for the header 「编辑」 path. #36023 (list cell edit, closed) is the per-type interaction precedent. #36472 (Esc in the side preview closes the whole preview; open, held by this seat) is aligned, not absorbed.
    Serial constraints cleared: #36478 merged; #36438, #36517, #36357, #36392, #36351 named above, checked by overlap-check at each push.

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmNmMEXS4EzeVz9RjvD
    os-dev-report

    {
      "issue": 36475,
      "status": "done",
      "branch": "claude/project-thread-mbgr6u",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/36547",
      "session": "session_01ADHkmNmMEXS4EzeVz9RjvD",
      "premise_still_valid": true,
      "summary": "On the default record page field list (full page, side preview, phone, wide pinned column), a click on an editable value (or its pencil) now opens FieldInPlaceEditor over that value only: the list cell's FieldEditWidget inCell editor, Enter/click-away saves, Esc discards, unchanged writes nothing, discrete pickers save on pick, a check flips and saves on click. The write reuses InlineEditSaveBar in a per-field InlineEditProvider via new face='field' and saveRef props (same ifMatch update, 409 dialog, refusal under the field with the editor kept open, required-fields ask), then record-context reread re-judges conditions. Header Edit, list cells and authored pages are unchanged; with no record-context writer the old whole-record entry stands. Premise verified at main 0b2118f4 (DetailSection called onEnterInlineEdit on a frameless click).",
      "tests": "head 3d03368b. New FieldInPlaceEditor-36475.test.tsx 13 cases. Verify lock: vitest run packages/plugin-detail/ Test Files 412 passed | 1 skipped, Tests 3847 passed | 18 skipped, VERDICT command-exit 0 (pre-merge of origin/main). Post-merge 4 files (new file, DetailSection.fieldList-36147, InlineEditSaveBar.test, RecordDetailView.harness) Tests 131 passed, VERDICT 0. plugin-detail type-check VERDICT 0. ui scripts/ vitest Test Files 172 passed | 2 skipped, Tests 5127 passed | 2 skipped, VERDICT command-exit 0. Ablation on committed fix via scripts/ablation-replace.mjs (editsInPlace forced false in DetailSection): anchor count 1 to 0, blob fe8516f3 to e80ca590, new file 11 failed | 2 passed (the 2 controls); restored blob == HEAD and git diff HEAD empty. Full app-shell suite NOT MEASURED locally (2007 files, killed one contaminated run during the first ablation attempt), declared to CI Test UI.",
      "gates": "dispatch-gates --commands at head 3d03368b: 38 derived, 38 run, every line exit 0 (check:query-options-erasure and check:type-check-debt first hit a 300 s self-imposed timeout, exit 124, rerun uncapped: both exit 0). --ran /mnt/project-files/objectstack-seat2/36475-gates-ran.txt: 38 run, 0 NOT-MEASURED, 0 UNRUN, exit 0. overlap-check --branch=HEAD: VERDICT clean exit 0 (also clean against PRs 36438,36517,36357,36392,36351 earlier). PR check-runs at open: 4 success, 13 skipped, 19 in_progress, 0 failure.",
      "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "2 — fleet-write relay pr_create (repository_dispatch, run 45065962024, created #36547 draft); post-stamped.mjs issue comment on #36475 (this report). git push of the branch is not a REST write.",
      "line_budget": "6 files, +750 / -51 (source +377/-9, tests +353/-42, changeset +20)",
      "files_changed": [
        ".changeset/36475-record-field-edit-in-place.md",
        "ui/packages/app-shell/src/views/RecordDetailView.harness.test.tsx",
        "ui/packages/plugin-detail/src/DetailSection.tsx",
        "ui/packages/plugin-detail/src/FieldInPlaceEditor.tsx",
        "ui/packages/plugin-detail/src/InlineEditSaveBar.tsx",
        "ui/packages/plugin-detail/src/__tests__/FieldInPlaceEditor-36475.test.tsx"
      ],
      "deviations": [
        "A cleared required field sends one write the server refuses (ruling objectui#6868: server is the validation authority on this surface) instead of the dispatch's no-write; editor stays open with the reason, nothing stored. The grid's client-side cellValueRefusal lives in plugin-grid and is not importable here.",
        "No state-machine narrowing of select options (grid uses plugin-grid stateMachineNextValues); a disallowed move is refused by the server and shown under the field.",
        "Layer is a Radix Popover, not the grid CellOverlay (td-anchored, not exported); the per-type inCell editors are reused unchanged, no fields/src file edited.",
        "The pencil (keyboard path) also opens the in-place editor; after a refused save another field can be opened, so two editors may be open.",
        "RecordEditStateController discard-ask is no longer reachable from the default page field list; its only pin was rewritten in the app-shell harness; still reachable on authored pages.",
        "Empty branch pushed early although os-dev.md says platform-assigned branches are not pre-pushed; the dispatch asked for it.",
        "Screenshots NOT MEASURED: booting showcase backend plus Console needs a full workspace build under the shared lock.",
        "Lookup/person in-place path has no dedicated unit test (same LookupField inCell the grid uses).",
        "Full app-shell suite and app-shell type-check NOT MEASURED locally, declared to CI.",
        "Docs page under content/docs/frontend not updated (outside the card's file surface).",
        "Dispatch asked for six 维护者速读 lines; os-dev.md fixes four, the four were written (os-dev.md prevails on conflict).",
        "Harness attribution reminder asks for a model-named Co-Authored-By trailer; commits carry the dispatch's model-free trailers instead."
      ],
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": []
    }

    Generated by Claude Code

  8. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmNmMEXS4EzeVz9RjvD

    Claim amendment · 2026-11-22T20:26Z · File surface (claim 7083692261) gains the docs the change makes false, owed by ui/AGENTS.md #2 (Docs-driven: the package README and the matching content/docs/frontend/ page):

    • ui/packages/plugin-detail/README.md § "InlineEditSaveBar & InlineFieldInput" (today: "double-clicking a field … stages edits into ONE shared draft … committed by <InlineEditSaveBar>"), plus FieldInPlaceEditor and face="field" / saveRef.
    • content/docs/frontend/plugins/plugin-detail.mdx, the matching section.
    • The record:details inlineEdit prop description in ui/packages/plugin-detail/src/index.tsx (:725, "per-field double-click / pencil … The edit session and the atomic Save bar are hosted by the page"), and its generated copies sdui.manifest.json and content/docs/ui/components/record.mdx, regenerated, never hand-edited.
      No other change to the surface. PR feat(plugin-detail): a click on a record field value edits that field alone and saves it in place #36547.
  9. removed
    pm:dispatched
    on Nov 22, 2026
  10. added 2 commits that reference this issue on Nov 23, 2026
    87c7bba
    1a2a8a9
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