Repository navigation
feat(studio): a dataset is a data type; datasets and positions are always listed in the menu - #37599
objectstack-fleet[bot] wants to merge 3 commits into
Conversation
…osition The registry row for dataset moves from domain ui to data, the menu's placement list places dataset directly after object and position directly after permission in the common tier, and ADR-0084's type-to-group rows are rewritten in the same change, as its 2026-11-26 amendment asks. Claude-Session: https://claude.ai/code/session_01Utp6CbgELiNQU6e7me1RQy Co-authored-by: Claude <noreply@anthropic.com>
…d; changeset Claude-Session: https://claude.ai/code/session_01Utp6CbgELiNQU6e7me1RQy Co-authored-by: Claude <noreply@anthropic.com>
The command palette draws the left menu's entries. With position placed in the common tier it is listed on a package that holds none, directly after permission, and its list is read when the palette opens. Claude-Session: https://claude.ai/code/session_01Utp6CbgELiNQU6e7me1RQy Co-authored-by: Claude <noreply@anthropic.com>
📓 Docs Drift CheckThis PR changes 1 package(s): 3 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:
What this run could not see
Coarse fallback — 177 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 0de8ec66935fd6446b02257104e3dfe32611c430 && git checkout 0de8ec66935fd6446b02257104e3dfe32611c430
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 0f6a1e518f3c4639b03f86a8c07d9d08d91bddb6 c2e09545974c9dfc737e2f477258ebeea777bd8c && git checkout -B drift-repro 0f6a1e518f3c4639b03f86a8c07d9d08d91bddb6 && git merge --no-ff c2e09545974c9dfc737e2f477258ebeea777bd8c
node scripts/docs-audit/affected-docs.mjs --json 0f6a1e518f3c4639b03f86a8c07d9d08d91bddb6
|
Requested by Bill · project thread
repo:objectstack#5 · os-bill · session_01Utp6CbgELiNQU6e7me1RQy
Fixes #37564
Clause-②: no
Metadata-protocol: none
Container & model:
M,mode:thread,model: CONTRACT_REVIEW_TIER (dispatch-gates --tier: MANDATORY docs/adr/**; served at tier, read from the thread's session record),effort: xhigh (reason: ADR-0084 revision plus a spec registry value, standing ADR-revision order)维护者速读
What changes
Nine files, +192 / −34 against merge base
41164656. This PR carries out ADR-0084's Amendment (2026-11-26), "Placements, and what moves to Setup" for two rows,datasetandposition, and decides nothing.packages/spec/src/kernel/metadata-plugin.zod.tsdatasetrow ofDEFAULT_METADATA_TYPE_REGISTRYreadsdomain: 'data'; it was'ui'. A comment above the row says why. The row keeps its place in the block and itsloadOrder(55).ui/packages/app-shell/src/views/studio-design/studioMenuPlacement.tsdatasetandpositionmove into the common rows, by name:datasetdirectly afterobject,positiondirectly afterpermission. Each row carries its reason in a comment: a dataset's schema requires one object, and a position is one slot per name in the environment (ADR-0150 D7), so the rule's tests alone would sort each of them advanced. Twelve common rows, twenty advanced.docs/adr/0084-application-builder-information-architecture.mddatasetis row 2 of 数据 Data, tier 常用, and the five data types behind it are each one place later; its 界面 UI row is gone;positionkeeps its place and its tier reads 常用. One note under the table and one mark on the amendment's "not redrawn today" paragraph say the two rows are rewritten and thatdatasourceandformstill wait for their own changes. Nit N8 of the contract record on PR #37470: the 2026-11-24 top note's 2026-11-26 mark now links#amendment-2026-11-26-position. Still 32 rows of the pinned shape, in one table.ui/packages/app-shell/src/views/studio-design/andpackages/spec/src/kernel/metadata-plugin.test.ts.changeset/37564-dataset-data-domain-common-tier.md@objectstack/specpatch,@object-ui/app-shellpatch.What follows from the registry value, with no edit. The menu, the type directory and the type page's group badge read the served
domain, so all three show datasets under 数据 Data.studioMenuModel.tsandStudioMenu.tsxare not touched: the model reads the placement list and needs no special case.A served value changes.
GET /api/v1/meta/typesanswersdomain: "data"for thedatasetentry, and the listing is ordered by domain and then by type, so the entry now sits first among the data types. Read on a live showcase backend built from this branch:data:dataset data:field data:hook data:mapping data:object …. Code that finds the entry bytypesees no difference. The changeset says this in the release note.Why
Clause-②: noandMetadata-protocol: none. No accepted set widens or narrows: thedomainenum keeps its six values, no author writes the registry, and a*.dataset.tsitem validates and loads as it did. No export, key or type is added, and the constant's declared type is the same.pnpm --filter @objectstack/spec check:generatedreads "All 14 generated artifacts are up to date", so neither the API surface nor the authorable surface moved.Not touched, as the card says. The
datasourcerow, andform(ADR-0159):formis not registered at this base, so it has no row. Thetypescript-serializer.tsentry that mapsdatasetto['Dataset', 'ui']is the spec subpath the schema is imported from, not the domain; the schema still lives inui/dataset.zod.ts.Read first, by risk:
packages/spec/src/kernel/metadata-plugin.zod.ts, the one-value hunk on thedatasetrow: it changes a served value.docs/adr/0084-application-builder-information-architecture.md, the table hunk: governed text, and the order of the 数据 Data rows is what the pin test compares to the placement list.ui/packages/app-shell/src/views/studio-design/studioMenuPlacement.ts, the two rows that move into the common block.Two-minute verification: after
pnpm --filter @objectstack/spec build, runpnpm --dir ui exec vitest run packages/app-shell/src/views/studio-design/studioMenuPlacement.test.tsand expectTests 17 passed (17). It reads the registry, the placement list and ADR-0084's table, and fails if any two of the three disagree.Tests
packages/spec/src/kernel/metadata-plugin.test.ts: a new case pinsdatasetunderdata,dashboardandreportunderui, and the six-value domain set. 41 of 41.studioMenuPlacement.test.ts: the literal lists (twelve common, twenty advanced), a case for the two placements by name, and a new block that reads the three groups this change touches as ADR-0084 lists them. The existing block that compares the list with the ADR's Order and Tier columns, row by row, passes against the rewritten rows. 17 of 17.studioMenuModel.test.tsandStudioMenu.test.tsx: the served fixture gainsdatasetunderdata; the common tier, the always-listed set and the fold are pinned with both types above the fold; a new block inStudioMenu.test.tsxasserts that 数据 draws object then dataset, 访问 draws permission then position, neither is inside the fold, and each links to its type page on an empty package, with a control (hookstays in the fold).StudioPaletteGroups.surfaceScope-36900.test.tsx: the command palette draws the menu's entries, sopositionnow followspermissionthere and its list is read. Two expectations, test only.Reverse verification, each mutation made with
scripts/ablation-replace.mjson a committed tree and restored toHEAD(blob equal toHEAD,git diff HEADempty after each):datasetback todomain: 'ui', spec rebuilt,distread back asuistudioMenuPlacement.test.ts: 5 failed, 12 passed (the ADR's group against the served domain, the order inside the group, and the new group block).positionback toadvanceddatasetback toadvancedAfter the registry leg the package was rebuilt from the restored source and
scripts/ablation-dist-preflight.mjs … --absentread the marker gone from all 614 built files; both pins passed again (41 of 41, 17 of 17).Acceptance notes
数据: 对象 24 · 数据集 4,访问: 权限集 9 · 岗位 10; the opened fold lists 18 entries and neither of the two). The dataset page's group badge reads 数据. The pin test is green against the rewritten rows. A spec test covers the registry value.objectstack-seat5/topic-37424/cards/shots-37564/and attached in the project thread; the relay cannot upload images to a PR.StudioPaletteGroups.surfaceScope-36900.test.tsx, which pins the entries a package always lists. The area confirmed it is inside the claim's class before the edit was pushed.os-dev.mdsays a dispatched executor writes no claim and no assignee, and that file wins over an order.StudioMenu.test.tsxtoo, andoverlap-check.mjsreads a conflict there against its head. This branch mergesmainonce after that PR lands and before its final head, as the claim says. Card App Studio 改版(3-2):「全部软件包」目录 ~all 搬到设置的访问分组,Studio 不再有这个入口 #37565, which retires the all-packages entry, overlaps instudioMenuModel.test.ts; whichever lands second mergesmain.docs/adr/**(AGENTS.md Prime Directive feat: Comprehensive CRM example demonstrating all ObjectStack protocol features #14): approvers os-zhuang and hotlong, and the maintainer merges. The PR stays a draft. TheRule-changeline is left out, as the template asks for a diff that does not touch.claude/**.content/docs/, no skill and no README placesdatasetin a Studio group or describes the menu's tiers.Verification
c2e09545:node scripts/pm/dispatch-gates.mjs --commandsprints 98 commands (9 paths against merge base41164656); the same 98 as on the commit before it.--ranreconciliation:98 derived famil(ies) accounted for — 98 run, 0 NOT-MEASURED.947362fd; the last commit (c2e09545, the palette test, +4 / −1) landed part-way through it. The 28 script gates were run again onc2e09545, all 0, and the remaining 70 are being run again onc2e09545; the report on the card carries that reading.check-plugin-teardown-shape.mjs --self-testneeds a pinned fixture commit that a shallow clone lacks (fetched, then 48 cases pass);pnpm --dir ui exec vitest run scripts/was killed by the container's memory limit while another test run shared the box (alone: 172 files passed, 2 skipped).pnpm --filter @objectstack/spec run typecheck,pnpm --filter @object-ui/app-shell run type-check,eslinton the seven changed source and test files, andpnpm --dir ui run check:new-line-citations: each exit 0 onc2e09545.overlap-check.mjsonc2e09545: merges cleanly withorigin/main0f6a1e51; conflicts with PR feat(studio): 概览 package overview page — Info and Pending tabs, ⋯ menu in its header #37546's head inStudioMenu.test.tsx(above).dispatch-gates --tier:docs/adr/**is the mandatory contract tier; changed lines 226 against the human-merge threshold 3000: under.check-prior-rulings --pathson the ADR, the registry file and the placement list: the 2026-11-24, 2026-11-25 and 2026-11-26 amendments of ADR-0084 are the rulings in force; this PR changes no decision of any of them.test:repo, the dogfood battery, the always-runs tail) are this PR's check-runs.🤖 Generated with Claude Code
https://claude.ai/code/session_01Utp6CbgELiNQU6e7me1RQy