Skip to content

feat(studio): one detail header and tool tabs for a metadata item - #36977

Merged
objectstack-fleet[bot] merged 8 commits into
mainfrom
claude/issue-36901-detail-header-tabs
Nov 24, 2026
Merged

objectstack-fleet[bot] merged 8 commits into
mainfrom
claude/issue-36901-detail-header-tabs

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Yibo Wang · project thread

repo:objectstack#3 · os-support-ai · session_01WGufziBCAytAzzCu3iPBFR

Fixes #36901
Part of #36890
Clause-②: no
Metadata-protocol: none

维护者速读

  • 在 Studio 里打开任意一个元数据条目(以及邮件模板、翻译的表单编辑器),顶部换成统一的详情头:关闭回到列表、上一条/下一条翻阅、类型与来源包标签;原来右侧弹出的六个抽屉改成页面里的标签页(详情、预览、相关、被引用、历史、源码),草稿审阅变成头部的状态标签。
  • 属于 Studio 重构总计划的第二阶段第一步,替维护者和搭建者解决"抽屉层层叠、找不到工具、刷新后丢失位置"的问题;共享标签组件留给后续三个设计器卡直接挂载。
  • 出错时最可能是某个标签打不开或地址里的标签没生效,数据不会丢,保存逻辑未改;本 PR 可整体撤回,旧的抽屉地址仍能打开对应标签。
  • 无。

What changes

Studio's generic item page (ResourceEditPage) and the area's form editor (StudioBundleItemEditor: email templates, translations) now draw the shared StudioDetailHeader (#36892), and the six side sheets are tabs of the page.

Decision 4 — canvas types

A canvas type opens on Preview. Details shows the whole-item form with the canvas-owned keys hidden as before. Both edit one draft, and one Save (header button, ⌘S, autosave) saves it whichever tab is open. Consequence: a tab switch keeps every unsaved edit, so the generic page does not prompt on a tab switch. ItemToolTabStrip has a confirmSwitch prop for a host whose tabs would drop a buffer (the designers may need it).

Decision 15 — the "from Studio" marker

Not added. This page is Studio's own address, so × always returns to Studio's list; the marker governs pages that open inside an app.

Carrier notes from #36896

  • Same-name rows (bundle members, two-holder permission sets) are one ‹ › step; the step opens the canonical member (member is dropped).
  • On ~all, a row link carries ?package=X and areaLocationRedirect re-roots onto X's leg, so ‹ › and × follow X's list. Rows of a .custom pair keep ?package=BASE; rows with no package carry no package param.

Deviations from the dispatch wording

  • Tab switches on the generic page do not go through confirmUnsavedLeave (one shared buffer, nothing is lost — see decision 4); × and ‹ › do.
  • The form editor has no Preview tab: its preview is a live rendering beside the form, not a canvas.
  • Test files outside the claim's literal surface were edited because this change turned them red (they opened the retired sheets): metadataAreaHost.gates-28561, trailDoorsGate-12475, walledCatalogReadOnly-12183, StudioBundleItemEditor.customize-28569, StudioDesignSurface.itemTools-28239 (test only — StudioDesignSurface.tsx untouched), StudioMetadataArea.routes-28561. ResourceDetailHeader.tsx is a new file beside the page.

Tests

New and updated suites
  • item-tools/ItemToolTabs.test.tsx (new): offered tabs and order, decision-4 default, address round-trip incl. legacy values, hook + strip (seed, write, default drops ?tab=, unknown dropped, counts, confirmSwitch), the three panels.
  • metadata-admin/ResourceDetailHeader.test.tsx (new): pure hrefs, ‹ › with and without list context, ×, leave guard declines and accepts, create page has no pager.
  • metadata-admin/ResourceEditPage.detailTabs-36901.test.tsx (new): plain type opens on Details; canvas type opens on Preview and a canvas edit is in the draft Source reads; ?review=1 opens the review through the chip (and CONTROL with no draft); N2 — Esc during the non-Radix canvas fullscreen leaves fullscreen and the page stays, the next Esc is the header ×.
  • ResourceEditPage.tabDeepLink-12496.test.tsx rewritten for the tabs; StudioBundleItemEditor.customize-28569 adds the shared-buffer + × case; StudioMetadataArea.routes-28561 pins the redirect and both CONTROLs.
Ablation (N2)

node scripts/ablation-replace.mjs --anchor "closeOnEscape={!isFullscreen}" --replacement "closeOnEscape={true}" on ResourceEditPage.tsx at 4de0ca7: mutation landed (anchor 1 → 0, blob 0aa6c362 → ad96efcc), the N2 case went red (1 failed | 4 passed), restore proven (blob == HEAD, git diff HEAD empty). A first attempt with replacement closeOnEscape was refused by the tool as a no-op (replacement count did not rise) and ran nothing. The suite imports the page from src (no dist hop).

Acceptance notes

Verification

All readings at head be293d754 (branch merged with origin/main 0212714; 2,198 changed lines, under the 3,000 Tier H line).

Local readings
  • Affected set (156 files, ui vitest, --maxWorkers=2, under the verify lock): Test Files 156 passed (156), Tests 1407 passed (1407).
  • pnpm --dir ui exec vitest run scripts/: Test Files 172 passed | 2 skipped (174), Tests 5126 passed | 2 skipped (5128).
  • pnpm --filter @object-ui/app-shell run type-check (src + tsconfig.test.json): exit 0, after @objectstack/spec rebuilt on the merged tree.
  • dispatch-gates.mjs --commands: 39 families, all run, all exit 0 (check:test-source-alias was red on the first pass — new and edited suites reached a dynamic @objectstack/lint / editor import inside a case clock — fixed in be293d7, then exit 0). --ran: 39 derived, 39 run, 0 NOT-MEASURED, 0 UNRUN.
  • ui i18n: check:i18n-keys 0, check:i18n-drift 0, check:i18n-dead-keys 0 (it reported engine.edit.related dead after this change; removed). check:new-line-citations: 0 new, exit 0.
Browser walk (showcase, Chromium, private port)

Built the showcase closure and the console from this branch, booted objectstack dev --ui --seed-admin on a private port, signed in as the seeded admin, and walked:

  • hook item: header (title, api name, type, package, 6 / 8), Details pressed, no Preview tab; History writes tab=history, Audit view; Source → Layers writes tab=layers; References; › opened the next hook with tab=references kept; × returned to …/metadata/hook?package=….
  • old address …/hook/NAME/history?package=… opened the item on the History tab (…?package=…&tab=history).
  • email template: the form editor under the header, tabs Details / Referenced by / History / Source; Source opens.
  • a page (canvas type) in the environment scope: the generic page opened on Preview.
  • 0 page errors. Translation: NOT MEASURED in the browser — the showcase ships no translation item; the bundle path is covered by StudioBundleItemEditor.customize-28569.

Two-minute check: open /studio/PKG/metadata/hook/NAME/history — expect the item page with the History tab pressed and the address rewritten to …/hook/NAME?package=PKG&tab=history.

Read first (by risk): ResourceEditPage.tsx (the renderFrame / toolTabBody hunks and closeOnEscape), item-tools/ItemToolTabs.tsx (useItemToolTab address writes), studio-design/StudioMetadataArea.tsx (AreaHistoryRedirect).

Session: https://claude.ai/code/session_01WGufziBCAytAzzCu3iPBFR

🤖 Generated with Claude Code

… page for designer items

The suites that opened the retired side sheets now open the tabs (layers
inside Source, audit inside History). The area's old history address
opens the History tab only where the item page has one: a type with its
own editor (the permission matrix) or an item a pillar's designer opens
keeps the standalone page. Changeset added.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufziBCAytAzzCu3iPBFR
…s fullscreen

A canvas type opens on Preview and its edit is in the one draft the
Source tab reads; ?review=1 opens the review through the header chip;
while the non-Radix canvas fullscreen is up Esc leaves it and the page
stays, and the next Esc is the header's close.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufziBCAytAzzCu3iPBFR
…dress

The header computed one segment up from the route it was mounted
under; a form editor mounted outside that route (and any host route
shape) now reads the parent from the address itself. Pins the bundle
editor's shared buffer across tabs and its close. Drops the studio
string the retired Related sheet was the last reader of.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufziBCAytAzzCu3iPBFR
Monaco's loader is stubbed offline, as the item-tools suite does, so the
Source tab's editor is its textarea under a loaded box too.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufziBCAytAzzCu3iPBFR
…suites

check:test-source-alias: the suites this card adds or edits reach a
dynamic import of @objectstack/lint (or the editor plugin) from the
page; each now loads it at module top (or stubs the editor), so no
case's clock pays the first transform.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufziBCAytAzzCu3iPBFR
@github-actions github-actions Bot added size/xl documentation Improvements or additions to documentation tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 24, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzgv4KRPATgwPAzKKMU

席位核对 — ACCEPT · repo:objectstack#3 · head be293d7 · 2026-11-24T13:30Z

L1: ACCEPT
Head-sha: be293d7541adfa11948ba9f95354ba793093d3c1
Reviewer: L1-b (seat 3, area ux-E). No contract review is owed: Clause-②: no, Metadata-protocol: none, no packages/spec/src/**, no governed rule text.
Tier: not Tier H. The PR is card #36901's only PR: 21 files, 2,198 changed lines, under the 3,000-line per-card line. check-governed-merges --pr 36977: not governed.

Read

Checklist

  • Shape. Draft, base main, Fixes #36901, plus Part of #36890.
  • Header. ResourceDetailHeader wraps StudioDetailHeader. Its × keeps the list context (q, source, customized, status, sort) and the scope (package, scope), and never carries item-only params. ‹ › walk useListOrderedNames and keep the open tab. Both go through confirmUnsavedLeave. This is card item 1, and it uses Studio 重构(1-1a):元数据列表的搜索、筛选、排序和滚动位置写进地址,并提供「当前筛选下的有序名字列表」给详情页的 ‹ › 用 #36896's hook as intended.
  • Tabs, one shared component. item-tools/ItemToolTabs.tsx holds the offer, the default, useItemToolTab (?tab=, replace-only), the strip and the panel. The existing References, History (with Audit) and Source (with Layers) panels are wrapped unchanged. It is mounted by both ResourceEditPage and StudioBundleItemEditor, and left for Studio 重构(3-1):流程设计器在元数据地址上右侧全屏打开,去掉流程左侧列表,流程类型切到新地址 #36903–Studio 重构(3-3):权限集矩阵在元数据地址上右侧全屏打开,组织级默认共享总览有自己的路由,权限集类型切到新地址 #36905 (card item 4).
  • History offer. History is offered by canReadTrail, and the audit view sits inside it, so one gate decides both.
  • Kept, per card item 5.
    • The embedded branch is unchanged: no tabs, review chip and actions in its slot. Every !embedded guard is still in place.
    • Canvas-owned keys, diagnostics and the draft conflict guard are kept.
    • Rollback is still behind Save's gate. ResourceEditPage passes onRolledBack only with canWrite, and the bundle editor only with !readOnly && canAuthor. walledCatalogReadOnly-12183 still pins the walled tenant with no rollback.
    • ResourceEditPage is restructured in place (+202/−331), not rewritten.
  • Decision 4. A canvas type opens on Preview. Details and the canvas edit one draft, and one Save saves it from any tab. So a tab switch loses nothing and does not prompt. × and ‹ › do prompt. The PR states this, as the card asks.
  • Decision 15. No "from Studio" marker. That is right: this is Studio's own address, so × always returns to Studio's list.
  • Legacy addresses. ?review=1 still opens the review and is consumed. /history redirects (replace) to ?tab=history with the query kept. A type with its own EditPage and a designer-opened item keep the standalone page (deviation b).
  • i18n. engine.studio.itemTabs.* exists in en and zh. The dead engine.edit.related is removed, and check:i18n-dead-keys is green.
  • Test edits outside the literal surface (deviation a). I read the six edited suites. Each is re-pointed from the retired sheet buttons to the tab test ids with the same assertions, so none is weakened. For example, trailDoorsGate-12475 still asserts that History and Audit are both absent or both present under each gate. StudioDesignSurface.tsx itself is untouched. Accepted.
  • Card acceptance.
    • Walk one plain type, one canvas type and one StudioBundleItemEditor type: header, tabs, address, refresh, ‹ ›. Met. The browser walk on the showcase covers the hook, a page (canvas, on Preview) and the email template (the bundle editor). The translation type is covered by StudioBundleItemEditor.customize-28569 and runs through the same component (see N1).
    • ?review=1 and the old /history address open their tabs: met. This is pinned, and /history was also walked in the browser.
    • The detail-page suites pass: met. Locally 156 files and 1,407 tests passed, and Test UI is green on the head.

Findings

No must-fix, no should-fix.

Note to the seat

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufziBCAytAzzCu3iPBFR

Landing · 2026-11-24T13:31Z · ACCEPT 7132930177 at head be293d7

reading value
check-governed-merges.mjs --pr 36977 NOT governed · +1701/−497 (2,198 ≤ 3000; card total 2,198, one PR)
landing-k.mjs --pr 36977 CAN'T ANSWER (UI-only head, no Test Core planner ran in run 45399897993). K read via merge-base instead: base 0212714, main ahead by 8 (to 57445a6). The file sets of those 8 commits and this PR do not intersect (comm of the two git diff --name-only lists is empty), so K = 8 < 15
contract review none owed: Clause-②: no, Metadata-protocol: none, no path face (L1 7132930177)
checks at be293d7 45 success, 13 expected skip, 0 failed, 0 pending; mergeable clean

Open findings are nits only:

State: ready + auto-merge (Tier S). On MERGED, #36901 closes by Fixes, and area ux-E removes pm:dispatched.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 24, 2026 13:31
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 24, 2026
Merged via the queue into main with commit c75453e Nov 24, 2026
59 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-36901-detail-header-tabs branch November 24, 2026 13:52
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
… base lands in its .custom pair (objectstack-ai#36978)

<!-- claude-projects-attribution: {"github_login":"os-support-ai"} -->
_Requested by **Yibo Wang** · [project
thread](https://claude.ai/code/project/chan_01BVUyyPie8gHwoPM18iABwB?thread=cmsg_01BVUyyPie8gHwoPM18iABwB2BRcLs2zJH6mZWG94VVuew)_
Fixes objectstack-ai#36897
Part of objectstack-ai#36890

Clause-②: yes (widening)
Metadata-protocol: none

The widening: `ObjectGridComponentProps`, exported from
`@object-ui/plugin-grid`'s entry, gains two optional members,
`hostCells` and `rowTint`. Nothing existing is narrowed, and no metadata
an author writes changes.

## 维护者速读

-
用户能看到什么变化:设置和工作室「全部元数据」里每种元数据的列表都换成同一张表格(排序、分页跟着地址走,「修改时间」列也在其中);在只读的安装应用(如
HotCRM)上点「新建」,对象和流程会建到它配套的定制包里。
- 为什么做:这是「工作室统一列表」专题的列表一侧,让所有类型的列表长一个样,并让只读应用也能直接新建定制内容。
- 出错会怎样:管理员可能看到列表排序或分页不对、或在只读应用上新建失败并看到原因;改动只在界面层,撤回本次合并即可恢复原表格。
- 要你做什么:无。

## What changes

- **`@object-ui/plugin-grid`** — two generic host props on
`ObjectGrid`'s table view: `hostCells` (a host draws a column's cells,
keyed by the column's field) and `rowTint` (a palette name per row; it
wins over `rowColor`, and only palette names tint — `rowTintClass` in
`useRowColor.ts`). No product-named component.
- **The metadata list is an `ObjectGrid`** (`ResourceListPage.tsx`,
adapter `metadataListGrid.ts`):
- the grid gets a schema DECLARED from the list's columns
(`MetadataListSource` answers it; nothing is guessed from the first
row), and each row is only its key plus its column values — the item,
its package, lock and diagnostics are looked up by that key, never
selected through the grid;
- rows reach the grid already filtered and sorted by `applyListState`
(the one implementation `orderedListNames` reads), in host mode (`data`
+ `manualPagination` + `rowCount` + `onPageChange`), so the grid never
re-sorts and its visible order IS the detail's ‹ › order (pinned);
- header sort → the list's `sort` param (only the API-name/label column
sorts; a label-first identity column sorts by label), page → a `page`
param, cleared on every list-state write;
- diagnostics tint (`rowTint` red/amber), the lock, identity cell,
served/console-rendered columns, the Active switch (with its holder
confirmation, `CatalogActiveCell` unchanged) and sharing-rule Clone are
the page's host cells. Active and Clone share ONE right-pinned controls
column, because the grid gives every right-pinned column `sticky
right-0`;
- the grid's search box, selection, inline edit, column resize/reorder
(so no personal column layout) and export are off for this list.
- **List 「新建」 on a read-only base lands in the paired `.custom`
package** (ADR-0146 D3):
- new module `MetadataListCreateDialog.tsx`: object (with the
organization-wide sharing default; joins its package's app menu only
when NOT in a pair, as the Data pillar does) and flow (starting-point
presets, Advanced trigger list, born off). On a read-only base both ask
`ensureCustomizationPackage` and write to the answered
package/namespace; a quick submit reads the namespace first instead of
writing unprefixed;
- `StudioMetadataArea`: `AreaCreate` on a read-only base with a
customization opens the pair's create (ensure once, then
`/studio/PAIR/metadata/TYPE/new`; a refusal is shown in place); the area
tells the list `host.pairCreate` exactly where it does that, so the list
never offers a dead 「新建」. A walled door offers none, as today;
- `StudioDesignSurface.tsx` and the pillar files split out of it are
untouched (helpers imported from standalone studio-design modules only).
Dashboard/report 「新建」 is not here.
- `builtinComponents.tsx`, `anchors.ts`, `servedListColumns.tsx` are
read only.

### Since the first version of this body (head `1137895` → `f1f10706`)

- **Kernel packages get no list create.** A kernel package (manifest
scope `system` or `cloud`) has no pair: the ensure door refuses it (409,
ADR-0146 D3). The area now reads that scope from the listed manifests.
It sets `host.pairCreate` only for a read-only, non-kernel base whose
door is not walled. `AreaCreate` opens the pair's create only under that
same flag, so a kernel package's `/new` lands on the list. Pinned in
`StudioMetadataArea.routes-28561.test.tsx`; it was CI's red on `Test UI
(7/16)`, `StudioDesignSurface.metadataArea-28561`.
- **The create-dialog enumeration test.**
`CreateItemDialog.oneLabel-11787.test.ts` enumerates every
`CreateItemDialog` site from source. An object and a flow are now
created from their pillar AND from the list, so its CONTROL now asks
that each live title is reached by one site or more, instead of exactly
once. This was CI's red on `Test UI (2/16)`.
- **Merge of objectstack-ai#36977** (one detail header and tool tabs). It conflicted
in `StudioMetadataArea.tsx`; the resolution keeps its
`AreaHistoryRedirect` and this PR's `AreaCreate` side by side.
- **objectstack-ai#36898 re-hosted on the grid table.** After objectstack-ai#36983 merged, its
「修改时间」 cell (`ListChangedCell`, `listChangedAt`, `listDraftMarks`) is a
page column (`__changed`) drawn by a host cell. It sits before Source,
keeps the item's change time and its 「有未发布的改动」 mark (person vs AI), and
looks up the bundle member by row key.
- The page's own columns are now drawn under their place in the column
list, not by index arithmetic.
- The Modified header sorts by the list's `changed` key. A new pin in
`ResourceListPage.changedColumn-36898.test.tsx` checks that a header
click orders oldest first with the code-shipped item last. Its existing
cases read the grid's DOM, reaching the row by `closest('tr')`.
- The ‹ › order pin is unchanged: the rows still come from
`applyListState`, which now also sorts by `changed`.
- **`metadataAreaHost.customizations-28568`** waited for the "only
customizations" filter and then read rows synchronously. The grid draws
its rows once its table is ready ("Loading grid…" first), so the test
now awaits the row before reading its marks (3 cases).

## Tests

Final local run at `00e524f13`. `f1f10706` after it changes only the
changeset's `Clause-②` line.

<details><summary>Every suite naming ResourceListPage + the objectstack-ai#36898
helpers + adapter + create + area + grid + the enumeration test — 43
files / 508 tests pass; type-check green</summary>

```
pnpm --dir ui exec vitest run --maxWorkers=2 FILES   (the 36 test files `git grep -l ResourceListPage` names, plus listChangedAt-36898, listDraftMarks-36898, metadataListGrid, MetadataListCreateDialog.pairCreate-36897, rowAdornment-13330, CreateItemDialog.oneLabel-11787)
 Test Files  43 passed (43)
      Tests  508 passed (508)
pnpm --filter @object-ui/app-shell --filter @object-ui/plugin-grid type-check
ui/packages/plugin-grid type-check: Done
ui/packages/app-shell type-check: Done
os-verify-lock: VERDICT command-exit 0
```
</details>

The earlier runs on this branch, kept for the record. Run at
`490aad241`:

<details><summary>ResourceListPage family + adapter + create + area +
grid — 72 files / 544 tests pass</summary>

```
pnpm --dir ui exec vitest run --maxWorkers=2 packages/app-shell/src/views/metadata-admin/ResourceListPage packages/app-shell/src/views/metadata-admin/metadataListGrid packages/app-shell/src/views/metadata-admin/MetadataListCreateDialog packages/app-shell/src/views/metadata-admin/metadataAreaHost packages/app-shell/src/views/studio-design/StudioMetadataArea packages/plugin-grid/src/__tests__/rowAdornment packages/plugin-grid/src/__tests__/ObjectGrid
 Test Files  72 passed (72)
      Tests  544 passed (544)
os-verify-lock: VERDICT command-exit 0
```
Earlier on this branch the whole `plugin-grid/src` tree ran green with
the metadata-admin suites (329 files).
</details>

<details><summary>type-check — app-shell + plugin-grid green</summary>

```
pnpm --filter @object-ui/app-shell --filter @object-ui/plugin-grid type-check
ui/packages/plugin-grid type-check: Done
ui/packages/app-shell type-check: Done
os-verify-lock: VERDICT command-exit 0
```
</details>

New pins:
- `metadataListGrid.test.ts` — the declared schema (a stray first-row
key is not a field), the grid flags off, sortable only where the list
sorts, sort round-trip, page clamp.
- `ResourceListPage.listStateInUrl-36896.test.tsx` (new describe) — the
rows the table draws, in order, equal the detail's ‹ › names; a Label
header click writes `sort=label` and the detail follows; `page=2` of 53
rows shows the last 3, a new search returns to page 1.
- `MetadataListCreateDialog.pairCreate-36897.test.tsx` — read-only base:
ensure asked, pair package + pair namespace written, OWD carried, no
menu join; CONTROL writable package: no ensure, menu join; flow preset
into the pair, born off; a preset needing an object writes nothing.
- `ResourceListPage.pairCreate-36897.test.tsx` — 新建 offered on a
read-only base (object/flow dialog, other type → area create), none
without `pairCreate`; CONTROL Setup unchanged.
- `StudioMetadataArea.routes-28561.test.tsx` (new describe) — the pair's
create opens from the ensure answer, a refusal shows in place, a walled
door never asks, `pairCreate` set exactly then.
- `rowAdornment-13330.test.tsx` (new describe) — a host cell replaces
its column only; `rowTint` tints palette names only; CONTROL without
either prop.
- Changed only where a test pinned the old table's DOM: the row test id
now sits on the identity cell (`closest('tr')` reaches the row) in 5
suites; the declared-sharing-rules pins read the one shared controls
cell; the nightly live spec `declared-sharing-rules-reach-13091` reads
the grid's `data-table-scroll-box` and its seam shadow (measured on the
booted app below: Clone and Active inside the 1440 px viewport and box,
overflow 1588/1390, shadow drawn).

## Acceptance notes

- **Size** (against `origin/main`, at `00e524f13`): 2195 changed lines
(1771+, 424-):
  - src 1509, tests 673, changeset 13, generated 0;
- merging objectstack-ai#36898 and re-hosting it on the grid added 68 of them (2127
before);
  - this is the card's only PR, under the 2500 stop line.

- **Largest type under `~all`** (HotCRM booted, `GET /api/v1/meta/TYPE`
for all 34 types): `object` **136** rows (then `email_template` 128,
`view` 125, `hook` 88, `flow` 54). The grid holds them in memory and
pages 50 at a time — `/studio/~all/metadata/object?page=3` shows 36
rows, "Page 3 of 3".
- On the booted HotCRM the list showed "Couldn't read customizations: …
answered a body its declaration refuses" — the server is the published
`@objectstack/cli` 18.6.0 HotCRM pins, the console is this tree's `ui/`
(version skew between a released server and `main`'s reader); the create
path itself does not read it.
- `ObjectGrid` gives every `pinned: 'right'` column `sticky right-0`, so
two right-pinned columns overlap; this list pins one. Noted, not filed
(no second producer measured).
- The live HotCRM run made no approvals/lock API calls (network log of
both creates: ensure → PUT draft → POST publish → user-preference PATCH
only).

**Declared deviations.**
- The screenshots live on a no-PR, images-only branch,
`claude/issue-36897-list-objectgrid-shots` (`3c488ba2`), and are
embedded below by raw URL. The relay has no attachment upload.
- HotCRM was verified with its pinned published server
(`@objectstack/cli` 18.6.0) and this tree's console on Vite, the dogfood
skill's authoritative-console route. The screenshots predate the objectstack-ai#36898
re-host, so they show no 「修改时间」 column.
- Most of the 39 locally derived gate families ran at `2c60bdf3a`. The
ratchet subset re-ran later (`test-source-alias`, `type-check-debt`,
`type-check-coverage`, `undeclared-dep-imports`,
`cross-package-test-inputs`, `published-files`, `nul-bytes`), and CI
runs the farm on the head.
- One push went out while `overlap-check` reported conflicts with the
then-open PRs objectstack-ai#36983 and objectstack-ai#36977, not with main. Both have since merged
into this branch.

## Verification

Booted HotCRM (`objectstack dev --seed-admin -p 4517`, its own DB) with
this tree's console on Vite (`VITE_SERVER_URL`), Chromium at
deviceScaleFactor 2:

| | |
|---|---|
| Object list on HotCRM (read-only base) — grid, 新建 offered | ![object
list](https://raw.githubusercontent.com/objectstack-ai/objectstack/3c488ba27808fafe6ead8655bfef05212a81bc14/issue-36897/hotcrm-object-list.png)
|
| New object on HotCRM — saved as `crm_custom_site_visit`, OWD picker |
![create
dialog](https://raw.githubusercontent.com/objectstack-ai/objectstack/3c488ba27808fafe6ead8655bfef05212a81bc14/issue-36897/hotcrm-object-create-dialog.png)
|
| Landed: "In app.objectstack.hotcrm.custom" (`POST
…/hotcrm/ensure-customization 201`, `PUT
/meta/object/crm_custom_site_visit?package=app.objectstack.hotcrm.custom`)
| ![object
created](https://raw.githubusercontent.com/objectstack-ai/objectstack/3c488ba27808fafe6ead8655bfef05212a81bc14/issue-36897/hotcrm-object-created.png)
|
| New flow on HotCRM — presets | ![flow
dialog](https://raw.githubusercontent.com/objectstack-ai/objectstack/3c488ba27808fafe6ead8655bfef05212a81bc14/issue-36897/hotcrm-flow-create-dialog.png)
|
| Landed: flow in `app.objectstack.hotcrm.custom`, switched off, Start =
manual | ![flow
created](https://raw.githubusercontent.com/objectstack-ai/objectstack/3c488ba27808fafe6ead8655bfef05212a81bc14/issue-36897/hotcrm-flow-created.png)
|
| Sharing rules under `~all`: Active switch + Clone in the pinned
controls column | ![sharing
rules](https://raw.githubusercontent.com/objectstack-ai/objectstack/3c488ba27808fafe6ead8655bfef05212a81bc14/issue-36897/all-sharing-rule-list.png)
|
| `~all` objects, page 3 of 3 (136 rows) | ![page
3](https://raw.githubusercontent.com/objectstack-ai/objectstack/3c488ba27808fafe6ead8655bfef05212a81bc14/issue-36897/all-object-list-page3.png)
|
| Self-built package `com.acme.fieldops`: object `fops_work_order` and
flow `dispatch_tech` written to it (no ensure call) | ![self-built
object](https://raw.githubusercontent.com/objectstack-ai/objectstack/3c488ba27808fafe6ead8655bfef05212a81bc14/issue-36897/selfbuilt-object-created.png)
![self-built
flow](https://raw.githubusercontent.com/objectstack-ai/objectstack/3c488ba27808fafe6ead8655bfef05212a81bc14/issue-36897/selfbuilt-flow-created.png)
|

Read first (by risk): `ResourceListPage.tsx` (the host cells +
`cellDrawsRef` — the table keeps columns as state, so cells must be
stable and read the latest draw through a ref), `ObjectGrid.tsx`
(`hostCelledColumns`, `rowClassName`), `MetadataListCreateDialog.tsx`
(`createTarget`).

Two-minute check: `pnpm --dir ui exec vitest run --maxWorkers=2
packages/app-shell/src/views/metadata-admin/ResourceListPage.listStateInUrl-36896.test.tsx`
— expect 11 passed, including "the rows the table draws, in order, are
the names the detail steps through".

CI on `00e524f13`: 40 success, 13 skipped, mergeable `clean`. Local
gates: the 39 families `dispatch-gates --commands` derives all exit 0
(`--ran`: 39 derived, 39 run, 0 NOT-MEASURED, derived zero);
`check:test-source-alias` was red once on this branch and fixed by
paying the `@objectstack/lint` / `@object-ui/plugin-detail` loads at
collection in 6 suites; the vitest `scripts/` family was OOM-killed once
beside the booted app and re-ran green (172 files). CI runs the farm.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01WGufzgNtKtppbRbXmHGH8x
<!-- signed: repo:objectstack#3 · os-support-ai ·
session_01WGufzgNtKtppbRbXmHGH8x -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/xl tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

2 participants