Skip to content

design mode 6/9: record field groups and highlights are edited in place, committed with header pins and tabs as one write per object #39376

Description

@objectstack-fleet

repo:objectstack@hotlong · hotlong · session_2d709547c1624199b93584a53fbaaca2

Part of epic #39368 (rulings and invariants there).

Depends on child 0. Default and slotted record pages only. Fully-authored kind: 'full' pages are out of scope (maintainer: 「记录页 ,不考虑 ① 自定义的 full 记录页」).

Today

  • Header pins and record tabs are already two staged keys writing the same object document (layout/designModeHeaderPinsSave.ts:167, views/RecordTabsConfig.tsx → recordTabsConfigSave.ts:162).
  • Field groups link out to Studio's ObjectFormDesigner (RecordTabsConfig.tsx:38-39,114,656).
  • Highlights are edited only in Studio.

Change

  1. In design mode, a default or slotted record page's field groups and highlight fields are editable in place. Reuse ObjectFormDesigner / HighlightFieldsEditor rather than building another editor.
  2. Pins, tabs, field groups and highlights for one object stage into one change that commits once. Unverified: whether today's second commit re-reads the document the first one wrote. Fix that as part of merging.
  3. Installed (read-only) objects keep writing through .custom / object_extension as tabs do today.

Acceptance

  • Change pins, a tab and a field group on one object, then save: one publish, and all three are visible.
  • A kind: 'full' record page shows no new affordance.

Activity

  1. objectstack-fleet commented on Dec 3, 2026

    @objectstack-fleet
    ContributorAuthor

    triage@hotlong · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:ux · domain:ui · Feature · p2 · pm:blocked · size M, touched 2026-12-03T16:20Z. Rationale: The maintainer approved the epic's rulings, scope and card split on 2026-12-03 (「按建议整体通过,立专题卡」), so the feature is pre-authorised. Runtime design mode is how the app looks and is used in place (area:ux ①②), and the grade is the epic's p2. Per the epic, this child is released only after child 0 lands and child 2 is verified in the browser.
    Blocked-by: #39369, #39371
    Grade: area:ux · Feature · p2 · admins in design mode · read (epic #39368).

  2. added
    domain:ui
    pm:blocked
    priority:p2
    on Dec 3, 2026
  3. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4cypQd6ZDPDmXL5MaWR

    2026-12-04T01:01Z · dm-39368 records a maintainer ruling on this card's gate.

    Maintainer ruling (Elon, 2026-12-04T00:56Z, this account's fleet project, zone dm-39368 thread, decision card 「设计模式专题要不要放宽子卡的等待顺序来提速?」, chose 「A 三路并行(推荐)」, whose stated consequence reads: 「#39371 仪表盘现在就在 #39369 分支上开工;#39369 一合并就开 #39376 记录页、#39377 共享视图;#39374/#39375/#39378 仍等仪表盘浏览器验收。」)

    Blocked-by: #39369
    This card now waits on child 0 (#39369) only; the gate on child 2 (#39371)'s browser verification is lifted for this card by the ruling above. It stays pm:blocked until #39369 merges, then returns to pm:queue for zone dm-39368.

  4. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4cypQd6ZDPDmXL5MaWR

    2026-12-04T01:55Z · Unblocked: Blocked-by: #39369 is closed (PR #39433 merged). Back to pm:queue for zone dm-39368.

  5. added
    pm:queue
    and removed
    pm:blocked
    on Dec 4, 2026
  6. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4cypQd6ZDPDmXL5MaWR

    Claim: PM loop round 1
    Session: session_016WV4cypQd6ZDPDmXL5MaWR
    Account: os-elon-musk
    Area: dm-39368
    Branch: claude/issue-39376-wip
    Worktree: objectstack-issue-39376
    Domain: domain:ui
    Seat: repo:objectstack@os-elon-musk
    File surface: ui/packages/app-shell/src/views/RecordTabsConfig.tsx, ui/packages/app-shell/src/views/recordTabsConfigSave.ts, ui/packages/app-shell/src/views/RecordDetailView.tsx (design-mode affordance only), ui/packages/app-shell/src/layout/designModeHeaderPinsSave.ts, ui/packages/app-shell/src/layout/DesignModeHeaderPins.tsx, ui/packages/app-shell/src/layout/DesignModeHeaderPinsPanel.tsx, ui/packages/app-shell/src/views/studio-design/ObjectFormDesigner.tsx and HighlightFieldsEditor.tsx (props for in-place reuse only), ui/packages/i18n/src/locales/*.ts (new keys only, zh-Hant through gen:zh-hant), new tests *-39376.test.tsx
    Container & model: M, mode:subagent, model: default (dispatch-gates --tier: no path-derived mandate; design judgement in what stages through the mode), effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — not a defect card
    Thread-read: 7398390239
    Premise: holds (origin/main after #39433: pins and tabs stage as two keys writing the same object document; field groups link out to Studio's ObjectFormDesigner)
    Serial constraints cleared: #39371 (same zone, PR not open) touches designMode.tsx; this card does not. #39377 (same zone) disjoint files except the locale packs (new keys only, ordinary concurrency). Zone em-admin (same seat) #39351 claims views/**: notified, ordinary concurrency. #39459 (menu / tabs selection refusal) queues behind this card on recordTabsConfigSave.ts.
    Prior rulings read: check-prior-rulings.mjs --card 39376: RecordTabsConfig.tsx:9 (#36737, 「照 Twenty 归类」, a record page's layout belongs to the mode) and :42 (#36363 ruling 4, the name field) stand; the maintainer's epic ruling 「记录页 ,不考虑 ① 自定义的 full 记录页」 binds (default and slotted pages only).
    Pre-claim lane: domain:ui (ui/**).
    Pre-claim deps: Blocked-by: #39369 closed (PR #39433 merged); the #39371 gate lifted by the maintainer's ruling recorded on this card.

  7. added
    pm:dispatched
    and removed
    pm:queue
    on Dec 4, 2026
  8. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4cypQd6ZDPDmXL5MaWR
    os-dev-report
    Reported 2026-12-04T03:50Z

    {
      "issue": 39376,
      "status": "done",
      "branch": "claude/issue-39376-wip",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/39492",
      "head_sha": "41a3226f2587beeb13f0ecbb34d3c448cd917bc7",
      "session": "session_016WV4cypQd6ZDPDmXL5MaWR",
      "premise_still_valid": true,
      "summary": "An object's header buttons, record tabs, field groups and highlight fields now stage as ONE design-mode change keyed designModeItemKey('object', NAME) (L1-a; the object-pins:/record-tabs: keys and designModeItemName's prefix knowledge are gone). saveObjectChange writes them as one read, one draft and one publish (own object: the authored layer; installed object: one object_extension in the .custom pair, highlights refused there). A Field layout control at the end of the record tab row opens a non-modal panel that reuses ObjectFormDesigner and HighlightFieldsEditor through their existing props (no prop changes), refuses at selection, and stages the fieldGroups/highlights parts. The record previews the staged layout because RecordDetailView feeds tabsObjectDef to its sections and record context. Measured at BASE 91f131b690 with that commit's own modules: the second commit DID re-read what the first wrote (layered after the first publish, first actionLayout kept), but pins+tabs cost two drafts and two publishes; now one of each. A kind:'full' page shows no new affordance.",
      "tests": "Final head 41a3226f25. From ui/ under os-verify-lock: `pnpm exec vitest run --maxWorkers=2` over 29 files (every app-shell test importing the changed modules, the 2 new -39376 files, i18n all-locales-key-parity / en-zh-key-parity / zh-hant-generated) → 'Test Files 29 passed (29) · Tests 421 passed (421)', VERDICT command-exit 0. After moving the panel to layout/ and reordering two locale lines: 4 files/22 tests and 6 files/81 tests green on the final head. New: layout/__tests__/designModeObjectSave-39376.test.tsx (ACCEPTANCE calls ['layered','save object','publish object'] with pins+tab+field group in one document; installed pair; pending draft; unknown pin; composeFieldGroups/withoutGroupMarks) and views/RecordDetailView.designModeFieldLayout-39376.test.tsx (ACCEPTANCE through the real page: preview shows 'Essentials' before any write, Save sends exactly save+publish with all three in one body; CONTROL; kind:'full' shows none). Natural ablation: before objectSchema={tabsObjectDef} the ACCEPTANCE preview step failed ('expected ... to contain Essentials', page still 'Main'); with it green. type-check (src + tsconfig.test.json) @object-ui/i18n + @object-ui/app-shell exit 0; app-shell tsc --noEmit re-run after the move exit 0. eslint --no-inline-config on 17 changed app-shell files: 0 errors (the one new warning, unused t, fixed). check:i18n-keys exit 0.",
      "gates": "dispatch-gates --commands --repo objectstack-ai/objectstack: 41 commands; all 41 run on 2e6c376e13 with exit 0 captured before any pipe (each run with its output redirected to a file first, then ec=$? read), incl. check:query-options-erasure and check:type-check-debt (both timed out at an earlier 300s budget = NOT MEASURED, then re-run green), and `pnpm --dir ui exec vitest run scripts/` (172 passed, 2 skipped). --ran: '41 derived, 41 run, 0 NOT-MEASURED, 0 UNRUN'. Final head 41a3226f25 differs only by a two-line reorder in 11 locale packs; re-run there: check:nul-bytes, check:role-word, check:where-matcher, check:type-check-coverage, check:i18n-keys, i18n parity tests, all exit 0; the other derived families not re-run on that head (declared narrowing, CI owns). overlap-check: VERDICT clean (origin/main, #39487, #39479, #39063); it first reported a locale conflict with #39487 (same insertion point after results.tabs), fixed by placing the two result keys after results.other. check-platform-checklist --changed-from origin/main: 0 anchored files. CI check-runs on PR #39492: NOT MEASURED, reason: report delivered at local completion, CI convergence is the PM's.",
      "line_budget": "29 files, +1820/-417 (2237 changed lines), under the 3000 human-merge line. RecordTabsConfig.tsx 662 → 730 lines; RecordDetailView.tsx (5726 lines, over 1000) only edits existing code in place (one memo argument, one context prop, comments); new concerns went into new modules.",
      "files_changed": [
        ".changeset/39376-design-mode-object-one-write.md",
        "ui/packages/app-shell/src/layout/DesignModeHeaderPins.tsx",
        "ui/packages/app-shell/src/layout/DesignModeHeaderPinsPanel.tsx",
        "ui/packages/app-shell/src/layout/RecordFieldLayoutPanel.tsx (new)",
        "ui/packages/app-shell/src/layout/designMode.tsx",
        "ui/packages/app-shell/src/layout/designModeHeaderPinsModel.ts",
        "ui/packages/app-shell/src/layout/designModeHeaderPinsSave.ts",
        "ui/packages/app-shell/src/layout/designModeObjectChange.ts (new)",
        "ui/packages/app-shell/src/layout/designModeObjectSave.ts (new)",
        "ui/packages/app-shell/src/views/RecordDetailView.tsx",
        "ui/packages/app-shell/src/views/RecordTabsConfig.tsx",
        "ui/packages/app-shell/src/views/recordTabsConfigSave.ts",
        "tests: layout/__tests__/{ConsoleLayout.stagedPins-36820, designMode-39369, designModeHeaderPinsModel-36366, designModeObjectSave-39376 (new)}, views/RecordDetailView.designModeFieldLayout-39376.test.tsx (new), views/__tests__/RecordTabsConfig-36499.test.tsx",
        "ui/packages/i18n/src/locales/{ar,de,en,es,fr,ja,ko,pt-BR,ru,zh-Hans,zh-Hant}.ts (new keys only; zh-Hant via gen:zh-hant)"
      ],
      "deviations": [
        "File surface breach, reported not hidden: the claim's line does not list layout/designMode.tsx or layout/designModeHeaderPinsModel.ts, but the dispatch's L1-a ruling requires both (designModeItemName loses the prefixes and its pin test changes; the pins model read the old key). Conflict between L1-a and the claim's surface, resolved in favour of the ruling.",
        "Also beyond the surface: two new light modules (layout/designModeObjectChange.ts, layout/designModeObjectSave.ts), the panel layout/RecordFieldLayoutPanel.tsx (moved out of views/** because zone em-admin claims it), four existing tests updated to the new key (designMode-39369, designModeHeaderPinsModel-36366, ConsoleLayout.stagedPins-36820, RecordTabsConfig-36499), and the changeset.",
        "ObjectFormDesigner.tsx and HighlightFieldsEditor.tsx (on the surface for props) were NOT changed: their existing props sufficed.",
        "recordTabsConfigSave.ts (where #39459 queues next): saveRecordTabs is now a wrapper over saveObjectChange; resolveRecordTabsSaveTarget and the read helpers are kept unchanged; none of #39459's work done.",
        "Published declaration closure: @object-ui/i18n is published and its exported locale packs gain the new keys (additive strings only); @object-ui/app-shell is private. Nothing added to @objectstack/spec.",
        "Session attribution reminder asked to request os-elon-musk's review on the PR; not done: os-dev rule 2 / ruling A on #29828 put the claim's Account on pr_create as assignee only, reviewer hand-over is the seat's.",
        "The first WIP commit 3bdbb9fb52 was pushed earlier in this run before the gates ran; later commits b4864e9466, 2e6c376e13, 41a3226f25."
      ],
      "mcp_calls": "0",
      "api_writes": "2 relay strokes: POST /repos/objectstack-ai/objectstack/dispatches for pr_create (executed as POST /repos/objectstack-ai/objectstack/pulls + POST /repos/objectstack-ai/objectstack/issues/39492/assignees, run 47261925925, read-back identical); post-stamped.mjs os-dev-report comment on #39376 (POST /repos/objectstack-ai/objectstack/issues/39376/comments). Plus git push (not REST). Read-only: git fetch of pull/39487/head for the overlap.",
      "classifier_refusals": [],
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "class: none (not filed) · now-unused locale keys left in place because the fence allows new keys only: designMode.pins.notListed/pendingDraft/pairNotWritable, designMode.recordTabs.notListed/pendingDraft/notWritable/pairNotWritable/adjustFieldGroups · carrier: none · dedupe words: unused locale keys, designMode.pins, designMode.recordTabs, dead pack keys",
        "class: none (not filed, now fixed by this diff) · the pre-PR record-tabs save wrote the object's served (translated) layer back as the draft body, so a translated label could be stored as the authored one; the new save writes authoredPublished (overlay ?? code) · carrier: none",
        "class: none (noted) · in the design mode a drag that only reorders ungrouped field declarations is not written (field order is the object's definition, edited in Studio) · carrier: none",
        "class: none (noted) · saveObjectPins and saveRecordTabs are now wrappers that only their tests call · carrier: #39459 (queues on recordTabsConfigSave.ts)"
      ]
    }
  9. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4cypQd6ZDPDmXL5MaWR

    2026-12-04T03:52Z · Claim amendment (same session, nothing else changes): File surface, as PR #39492 touches it.
    Added: ui/packages/app-shell/src/layout/designMode.tsx and layout/designModeHeaderPinsModel.ts (required by the L1-a ruling: one key per object, designModeItemName loses the object-pins: / record-tabs: prefixes); new layout/designModeObjectChange.ts, layout/designModeObjectSave.ts, layout/RecordFieldLayoutPanel.tsx (kept out of views/**, which zone em-admin holds); four existing tests moved to the new key; the changeset.
    Not changed after all: ObjectFormDesigner.tsx, HighlightFieldsEditor.tsx (their existing props were enough).
    Serial note: recordTabsConfigSave.ts now wraps saveObjectChange; #39459 still queues on it.

  10. added a commit that references this issue on Dec 4, 2026
  11. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4cypQd6ZDPDmXL5MaWR

    2026-12-04T04:30Z · Final head for L1: 661554e20b3cab3732f6f7b7f85bccd95c9db7f9 (zone dm-39368, card #39376, PR #39492; dev report 7400537276, surface amendment above). It is the dev's 41a3226f25 plus one seat commit: CI Test UI (7/16) failed on recordDetailSections.agreement-12442.test.ts, a source pin that required deriveRecordDetailSections(objectDef,; the PR passes tabsObjectDef (the staged object, objectDef outside the mode). The pin now accepts either name and still refuses splitPrimarySecondary. Check runs on the final head: 45 success, 15 expected skip, 0 failure. check-governed-merges: NOT governed, 2241 changed lines. L1 requested from thread L1-a.

  12. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4cypQd6ZDPDmXL5MaWR

    2026-12-04T05:03Z · Closed by PR #39492 (merged as bc67b32139, Fixes #39376). Next: the record-page browser check on main; #39459 and #39497 return to pm:queue.

  13. removed
    pm:dispatched
    on Dec 4, 2026
  14. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-elon-musk · os-elon-musk · session_016WV4cypQd6ZDPDmXL5MaWR

    2026-12-04T05:45Z · Browser verification of #39376 on main bc67b32139 (PR #39492's merge commit): all 5 lines PASS; one minor UX bug filed as #39503.

    Boot: fresh worktree, pnpm build + pnpm console:build, objectstack dev --ui --seed-admin on examples/app-crm with a fresh DB, admin, headless Chromium 1280×800. CRM's package is read-only, so a local-only fixture package com.verify.fl (writable) with vfl_account / vfl_contact / vfl_note, two record actions and a kind: 'full' page drove the writable path. No tracked files changed.

    Line Verdict Evidence
    Field layout control opens a non-modal panel, field area not covered PASS panel x704–1280, field column x304–704, no intersection; record stays interactive; no horizontal scroll
    Pins + tabs + field group staged together; record previews before Save PASS "Main" → "Essentials" shown before Save; header and tabs previewed; 0 writes before Save
    One bar Save = one draft + one publish PASS exactly PUT …/meta/object/vfl_account?mode=draft + POST …/publish; the one body held actionLayout, relatedLists, fieldGroups, highlightFields; all three changes after reload
    Bar Cancel discards PASS preview reverted; no save/publish requests
    kind: 'full' page shows no control PASS record-field-layout, record-tabs-editor, design-header-pins all 0

    Console: only a 401 on the first get-session before the scripted sign-in (harness). Not driven: the installed-object (.custom) path.

    Bug: the Field layout panel (top=0) covers the bar's Save and Cancel; the user must close it first → #39503.

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