Repository navigation
feat(studio): the Records tab keeps Add field on screen, a header click opens the field, the name field leads, the inspector puts the label first - #34926
Conversation
…n leads, field inspector order (WIP) Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufziunkXbDT7wUWqfmWz
…the new inspector and grid Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufziunkXbDT7wUWqfmWz
…ck opens Developer info first, celGate removes through the confirm Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufziunkXbDT7wUWqfmWz
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufziunkXbDT7wUWqfmWz
|
repo:objectstack#3 · os-support-ai · session_01WGufzhshTXCAmv9KJXRZkB L1 review · 2026-11-17T16:33ZL1: ACCEPT What I read at this head: all 20 files (+814/−54), the PR body, the card #34794, claim 6947836360 (corrected 6947879967), the seat amendment 6948353285, dev report 6954122169, and the check-runs on this sha. Checklist:
Must-fixNone. Should-fixNone. Notes / nits
CI at review timeThere are 56 check-runs on this sha: 19 success, 13 skipped, 24 in progress, 0 failed. The in-progress runs are Test UI 1–16, Type Check UI, Lint UI, Build & E2E UI and five Lint lanes. Landing needs every run on the landing head green. RoutingL1 ACCEPT. Next is the seat's L2 at |
Lint UI on d2e0c11 failed with object-ui/no-unused-imports on `tFormat` in ObjectFieldInspector.displayPatchReason-28986.test.tsx and `within` in external-object.test.tsx, left over after the moved Remove control's reads were re-pointed. Imports only; no test logic changes. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufziunkXbDT7wUWqfmWz
|
repo:objectstack#3 · os-support-ai · session_01WGufzhshTXCAmv9KJXRZkB L1 delta review · 2026-11-17T16:38ZL1: ACCEPT This supersedes the ACCEPT in 6954262589 at d2e0c11. The delta from d2e0c11 is one commit, 8239a21: two test files, +2/−2.
These are the two Must-fixNone. Should-fixNone. CI at review timeThe run on this sha just started: 19 check-runs registered, 1 success, 3 skipped, 15 in progress, 0 failed. The UI lanes (Lint UI, Test UI, Build & E2E UI) are not registered yet. Landing needs every run on the landing head green, Lint UI included. RoutingThe seat's L2 at |
|
repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG Contract reviewServed-tier: What I read: card #34794 (body and all six comments: triage 6947138136, claim 6947836360 and its correction 6947879967, the blocked report 6948315503, the seat amendment 6948353285, the done report 6954122169); PR #34926 (body, 20-file list, the net diff against merge-base Head move: CI when I wrote this: NOT CONCLUDED. CI had just started on Seat check of the condition above: at 2026-11-17T17:05Z every check-run on ① Derived judgments
② Semver level
③ Boundary flags
M1 (must-fix on Must-fix still open: none. Should-fix: none.
Merge standard: only the nits N1 to N3 remain open, and nits may stay open at landing. Landing needs every check-run on the landing head green, and on this head they had not concluded when I wrote this (see above). Implemented-by: VERDICT: PASS |
|
repo:objectstack#3 · os-support-ai · session_01WGufziunkXbDT7wUWqfmWz Landing · area o3-C · head 8239a21
The queue build re-runs the data-table and DataPillar pins on the landing head beside #34851's |
Requested by Yibo Wang · project thread
Fixes #34794
Clause-②: yes (widening) — an optional
columnMenuLabelmember on the exportedGridFieldAuthoringcontext type of@object-ui/components, and new keys in the lazystudionamespace of@object-ui/i18n; nothing that worked before is refusedMetadata-protocol: none
维护者速读
StudioDesignSurface.tsx(列头捕获点击选中字段的那段,以及gridColumnsComputed里leadWithNameField排序那段)、ObjectFieldInspector.tsx(FieldMoreMenu与DeveloperSection)、data-table.tsx(columnMenuLabel小箭头按钮)。What changes
Studio Data pillar, Records tab (
ui/packages/app-shell):StudioGridAddFieldButtonsits at the start of the records grid's own toolbar row (ListView'stoolbarLeading). It opens the sameAddFieldPopover, with the pillar's ownaddField, taken names and extension mode. It draws only when the grid's field-authoring context carriesonAddColumn, which is exactly whencanAddFieldsholds, so the toolbar entry and the kept trailing "+" column cannot disagree.ColumnHeaderSelectpattern, and selects that field (its properties open; the header is outlined). It does not sort. Controls inside the header keep their own click. A column the author's buffer does not declare (the injectedowner_id) keeps the grid's click. Sort and hide are one click away: the host sets the newcolumnMenuLabel, and every header draws a caret that opens the table's existing column menu (the right-click menu).gridColumnsComputednow orders the columns through the sharedleadWithNameField(ADR-0079 D4) over the author's fields, then the served-only columns. The name field is the frozen first column (ObjectGrid's defaultfrozenColumns).owner_idfollows the business fields. Only the Studio grid's columns change; runtime list views are not touched.titleProps.title(the object's name) instead ofapiName, so the mono chip beside the title is gone.Field inspector (
ObjectFieldInspector):DeveloperSection), collapsed by default, with a one-line hint. The body ishidden, not unmounted, so its state and the inspector's existing readers keep working.FieldMoreMenuat the end of the header actions holds "Remove FIELD", which opens anAlertDialog(title, body, Cancel, Delete) beforeremoveFieldruns. The trigger is disabled on a locked inspector (display-patch or read-only), and there is no menu on an external object, matching the old footer exactly.@object-ui/components:GridFieldAuthoring.columnMenuLabel(optional). When set,data-tabledraws a caret in every column header, named by the value, that toggles the table's own column menu. The caret's click never reaches the header (no sort). Without a provider, or without the member, the header is unchanged.@object-ui/i18n(lazystudionamespace only, en + zh):designer.field.section.developer,designer.field.section.developerHint,designer.field.removeConfirmTitle,designer.field.removeConfirmBody,engine.studio.data.columnMenu.Changeset:
.changeset/34794-studio-records-tab-authoring.md, patch for@object-ui/app-shell,@object-ui/i18nand@object-ui/components.Before / after (live, 1280×800, zh-CN, CRM fresh boot)
#, owner_id 负责人 (frozen), name, …title= huiyi_jiyao_meeting, no chipTests
ui/packages/components/src/renderers/complex/__tests__/data-table-header-column-menu-34794.test.tsx(4): no provider or no member ⇒ header HTML byte-identical to a plain table, and with the member the carets are the only added nodes; the caret's name,aria-expanded, menu entries, toggle, no sort on caret click; the menu sorts desc, asc, and hides; the header's own click still sorts.ui/packages/app-shell/src/views/studio-design/DataPillar.recordsTab-34794.test.tsx(6, real grid): column order and sticky name column; toolbar Add field inlist-toolbar-leadingthat creates a field; read-only rail draws neither entry; header click opens the inspector without sorting, caret menu has 3 entries; the servedowner_idheader selects nothing; title tooltip, no chip.ObjectFieldInspector.test.tsx(shared harness) gains 4 cases: order and collapse; rename from the opened section and the taken-name refusal; ⋯ → Remove → dialog, Cancel keeps / Delete removes; read-only ⇒ trigger disabled, external ⇒ no menu.DataPillar.authoredBuffer-29793(new column order),DataPillar.celGate,DataPillar.readOnlyRailReason-12303,ObjectFieldInspector.displayPatchReason-28986,external-object,StudioItemHeader.statusPlace-12524,StudioDesignSurface.heldDataCreate-26845/heldDataLeave-26705/heldFlowCreate-26845(title tooltip in place of the chip). Edited suites that reach a dynamic@objectstack/lint/@objectstack/formulaload now pay it at collection (check:test-source-alias).Acceptance notes
com.objectstack.platform-objects(code packages,writable: false), both Add field entries are offered, because the pillar authors an extension there (canAddFieldswithextendsBase, already true of the "+" column). Oncom.objectstack.setupneither is drawn. The toolbar entry agrees with the "+" column in all three.DESTRUCTIVE_CHANGE), and the pillar shows its existing "更改未保存" banner. This change only adds the confirmation beforeremoveField; it does not change what the save sends.leadWithNameField, so an object that declares no name field keeps its declared order with the served-only columns after it.GridFieldAuthoringmember and touchesdata-table.tsx; overlap-check merges both cleanly.Verification
i18n-locale-en reading (console build, eager-closure budget)
vite buildofui/apps/consoleat 44f9722, thennode scripts/check-eager-closure-budget.mjs: exit 0.The new strings land only in the lazy
i18n-ns-studio-enchunk: "Developer info", "Sort and hide" and "Delete the field “" each count 0 ini18n-locale-en-*.jsand 1 ini18n-ns-studio-en-*.js. The ceiling is untouched.Tests (under os-verify-lock)
Test Files 19 passed (19),Tests 170 passed (170), VERDICT command-exit 0.packages/i18n/src),Tests 3007 passed | 1 failed | 13 skipped. The one failure (DataPillar.readOnlyRailReason-12303, a reader of the old footer Remove) is fixed in 44f9722:Tests 4 passed (4).pnpm --dir ui exec vitest run scripts/at d2e0c11:Test Files 171 passed | 2 skipped,Tests 5077 passed.@object-ui/componentsexit 0,@object-ui/app-shellexit 0,@object-ui/i18nexit 0 (each runstsc --noEmitandtsc -p tsconfig.test.json).Ablations (one behaviour each; mutate through scripts/ablation-replace.mjs, anchor hit and blob change verified on disk, restore verified by blob == HEAD and empty git diff HEAD)
{columnMenuLabel && (→{false && …): 3 of 4 cases in the data-table suite red; the header-sorts case stays green, as it should.return;): "a header click selects the field…" red.return ordered→return all.map(…)): "the name field leads…" red.onSelect={() => setConfirming(true)}→onRemove()): "…asks first — Cancel keeps the field…" red.return null;): "Add field sits in the grid's toolbar row…" red.Gates
node scripts/pm/dispatch-gates.mjs --commandsat d2e0c11: 38 commands. All 37 local ones exit 0. The 38th,pnpm --dir ui exec vitest run scripts/, is green (see Tests).--ranreconciliation: 38 derived, 38 run, 0 UNRUN.check:test-source-aliasfailed (exit 1) on the first pass for the edited suites' dynamic loads; after the collection-time imports it exits 0.node scripts/check-new-cross-file-line-citations.mjs: 0 new citations, exit 0.node scripts/check-platform-checklist.mjs --changed-from origin/main: exit 0 (no anchored file).pnpm check:nul-bytes: exit 0.node scripts/pm/overlap-check.mjs: VERDICT clean exit 0 against origin/main, feat(studio): the Studio AI panel matches the console's AI assistant #34851 and feat(studio): switch an installed app's action on or off on the action, in Studio; retire Setup's Packaged Actions #34799.Live readings (1280×800, zh-CN, objectstack dev --seed-admin --fresh on examples/app-crm, console vite dev)
A new package 会议纪要 and object 会议 with 会议日期, 会议地点, 主持人, 参会人, 会议纪要, 备注, published and seeded with 4 rows.
name:名称(sticky), huiyi_riqi, huiyi_didian, zhuchiren, canhui_ren, huiyi_jiyao, beizhu, owner_id:负责人, _actions(sticky).titlehuiyi_jiyao_meeting, chip absent.{x:256,y:157,w:87,h:28}insidelist-toolbar-leading; the "+" column is at x=1659 in a 680-wide body (scrollWidth 1447). The click opens the popover.field-label-input=会议地点; API name not visible; toggle reads 开发者信息. Opened: API name visible and enabled (huiyi_didian). No footer 删除 button.DESTRUCTIVE_CHANGEfor a field with rows; see Acceptance notes).com.objectstack.setup: no toolbar Add field, no "+" column, no carets. CRM and platform-objects: both Add field entries, as the "+" column already was (extension authoring). A header click opens the display-patch inspector with the ··· trigger disabled./apps/com.example.crm/crm_account: columnsname, industry, annual_revenue, website; no toolbar Add field, no caret, no "+" column.external-object.test.tsxand the inspector suite (no ··· menu).pnpm installfor the two new workspace links main added. The console ran from source.🤖 Generated with Claude Code
https://claude.ai/code/session_01WGufziunkXbDT7wUWqfmWz