Repository navigation
feat(app-shell): select loose items on Studio's cross-package list and move them into a package; the Packages page counts them (#38150 PR-A2) - #38389
Conversation
…d move them into a package; the Packages page counts them (#38150 PR-A2) Claude-Session: https://claude.ai/code/session_01L9qibyHmxFV4bTFZ5BKnUz Co-authored-by: Claude <noreply@anthropic.com>
… the select column has a header (#38150 PR-A2) Claude-Session: https://claude.ai/code/session_01L9qibyHmxFV4bTFZ5BKnUz Co-authored-by: Claude <noreply@anthropic.com>
…-j4n4b0 # Conflicts: # ui/packages/app-shell/src/views/metadata-admin/ResourceListPage.tsx # ui/packages/app-shell/src/views/metadata-admin/metadataListState.ts
…nt load at collection (#38150 PR-A2) Claude-Session: https://claude.ai/code/session_01L9qibyHmxFV4bTFZ5BKnUz Co-authored-by: Claude <noreply@anthropic.com>
…t a clickable span The click-without-keyboard census counts a span with an onClick as a new clickable non-control. The guard now sits on the checkbox, a real button. Claude-Session: https://claude.ai/code/session_01L9qibyHmxFV4bTFZ5BKnUz Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 L1-a: ACCEPT for PR #38389 ( Scope. 15 files, +1369 −11, all under Declarations.
Code read against the A1 door.
Nits (non-blocking):
Evidence (
CI at this head: 46 success, 15 expected skips, 0 failed, 1 pending ( K = 35, over the hold of 15. Landing waits on a merge of |
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 Contract reviewServed-tier: PR #38389, card #38150 PR-A2. Claim 7234216673, amendment 4 7239673373, and the dev report at Why TIER_DEFAULT. The only face is the declaration. The 15 files hold no ① Derived judgments
② Semver level
③ Boundary flags
No must-fix, no should-fix. Implemented-by: VERDICT: PASS |
|
repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU Recorded 2026-11-29T04:10Z. 维护者速读
席位意见:可以合。 席位核对 — ACCEPT · repo:objectstack#3 · head
|
repo:objectstack#3 · os-tesla · session_01L9qibyHmxFV4bTFZ5BKnUz
Requested by Tesla · project thread
Part of #38150. This is PR-A2, the console's half of the move door, by the seat's claim (comment 7234216673) and its branch ruling of 16:02Z: PR-A1 (#38185, the server door) is merged, and #38149 (#38204, the package ask this PR reuses) merged at 16:01Z. PR-B1 (the retirement of
adopt-orphansand its two console entries, parked as #38364 at head1852bb898) lands after this PR, so no prerelease ships a console with no way to move loose items. PR-B2 (Studio~org, the redirects to?source=loose, the Q-f E classifier #38061, the ADR marks) follows.Clause-②: yes (widening)
Metadata-protocol: none
Skills-docs: none — no skill under
skills/**or.claude/skills/**teaches the console's lists or loose items; theobjectstack-platformpassage on package-less Setup rows is about overlays of shipped items, which are not loose (searched at this head)Size: 1,380 lines (additions + deletions, generated files included: 1,369 added, 11 deleted, 15 files;
git diff --numstat eef1cbfe4 be8e0d5dc, base maineef1cbfe4). With A1's 1,947 and B1's 3,123 the card is past 3,000 (#38280's per-card line), so this PR is Tier H.维护者速读
/studio/~all/metadata/<类型>)里,来源下拉多了「散落项」。选它后,有编辑权限的人可以逐行勾选或全选,点「移入软件包…」,选好软件包后先看一次试运行:每一项移入后地址怎么变,或者为什么被拒。确认后整批移入。设置的「软件包」页上会提示「有 N 个散落项,不属于任何软件包」,按类型列出,点进去就是那种类型的散落项列表。What changes
The "Loose" source value (
metadataListState.ts,ResourceListPage.tsx,useListOrderedNames.ts).?source=loosejoins the list's address state. On the cross-package leg (allLeg: an area host with no package, outside the environment scope) the list offers it, as "Loose (N)" in both the Studio and the Setup toolbars.isPackageLessItemon its served_packageId(absent,'', or thesys_metadatasentinel), the card's "neverclassifyProvenance": that classifier also files a.custompair item and a served overlay as runtime, so "Modified and new" holds them and "Loose" does not.loosemember. Absent, as on a package's own leg,source=loosereads as every source, the way an unoffered filter does. The detail's ‹ › order reads the same member, so prev and next agree with the list.Select and move (
ResourceListPage.tsx,looseMove.ts,LooseMoveDialog.tsx).useCanAuthorMetadata, and not walled) gets a select column first in the table and a selection bar above it: "Select all (N)" over the rows the filter shows, the count selected, and "Move into package…". A reader who may not author sees the loose rows with no select box and no bar.PackageCreateAsktakes an optionaltitleanddescription; the create's are unchanged). "New package…" in the ask works as it does for a create.POST /api/v1/packages/:id/move-inwithdryRun: true) and draws its answer:would_move: each item,(draft only)where only a draft moves, the address change (_env/NAME→NAMESPACE/NAME) and the AI face name change where the door reports them. Two notes follow. The first is the dry-run caveat: some save checks run only on the real move, and if one refuses, nothing moves. The second is L2's N4 (record 7236830081): reverting the move's package commit takes the items out of the package and does not make them loose again.refused: each refused item with the door's own code and sentence. ForREFERENCE_LEFT_BEHIND, "Add the loose items they use and check again" adds thereferencesto the selection, which may be of other types, and asks the dry run again.movedcloses the dialog, says "Moved into PACKAGE: N." and re-reads the list.moveLooseItemsresolves it as the door's answer (error.detailswithoutcome: 'refused'), and every other failure throws with the server's sentence, which the dialog draws with Try again.The Packages page banner (
LooseItemsBanner.tsx,PackagesPage.tsx)./studio/~all/metadata/TYPE?source=loose. That is the acceptance's "from the Setup → Packages banner, a person reaches a flow's Loose list in the UI, with no typed address".GET /meta/:typeper type that takes a runtime write (allowRuntimeCreateorallowEnvironmentOverlay; a type that takes none holds no loose item), with the type's own hide hook applied, the same rows its list counts. On the showcase boot that is 30 of the 40 served types, and the 30 reads in parallel took 366 ms. A type whose read fails is named as not counted, never folded into a smaller total.i18n. 31 keys in
@object-ui/i18n's studio namespace, en and zh:engine.list.sourceFilter.loose,engine.looseMove.*,engine.looseItems.*. No other locale carries the studio namespace.Changeset.
38150-move-loose-items-console.md:@object-ui/app-shelland@object-ui/i18npatch,Clause-②: yes (widening),Metadata-protocol: none, as #38204 declared for the same kind of console widening.Tests
New, each with its control:
ResourceListPage.looseMove-38150.test.tsx(7)?source=looseon~alllists exactly the package-less rows (none,'',sys_metadata), never a.custompair item or an overlay; with no filter every row is listed. The select column and bar appear for an author, not for a reader who may not author. Select all → the ask opens with nothing picked and the move's question → the dry run carries the three items,dryRun: true→ the confirm names the package by its name and shows the address change → Move resends the same items withoutdryRun. One row selected moves that row alone. A package's own leg ignores?source=looseand draws no selection.LooseMoveDialog-38150.test.tsx(5)REFERENCE_LEFT_BEHINDoffers to add the dataset, the next check carries it, and Move moves both. A refusal with noreferencesoffers nothing to add. A refusal on the real move reads as nothing moved, andonMovedis not called. A failure that is not an answer shows its sentence and Try again.looseMove-38150.test.ts(8)source=loosecodec round-trips, and an unknown value reads as all.loosekeeps package-less rows whereruntimealso keeps the.customrow. With noloosemember every row is kept. The 422 resolves as the answer; a 403 throws the server's sentence; the body carriesdryRunonly on a dry run. References are added once each.LooseItemsBanner-38150.test.tsx(5)/studio/~all/metadata/flow?source=loose). A type with no runtime write, andpackage, are not read. A failed read is named. Nothing is drawn or read for a non-author, and nothing is drawn at zero.Ablation. With the list's
loosereader set torow.source === 'runtime'(the classifier the card forbids), two cases ofResourceListPage.looseMove-38150go red: the exact-rows case and the select-all move (its dry run then carried the pair item and the overlay). Restored, 7 of 7 pass.Verification
Local, on this branch, after a declaration build of
./packages/**and@object-ui/app-shell's dependencies:@object-ui/app-shelland@object-ui/i18n(pnpm --dir ui exec vitest run packages/app-shell packages/i18n), before the merge of main: 2,570 files, 2,569 passed and 1 skipped; 25,917 tests passed and 22 skipped. After the two display fixes, the touched files (everyResourceListPage*, the four new files,PackageCreateAsk*, all ofpackages/i18n) passed: 132 files, 2,048 tests passed and 13 skipped. After the merge of main and the collection imports, the four new files pass 25 of 25.@object-ui/app-shelltype-check(tsc --noEmitandtsc -p tsconfig.test.json) passes after the merge of main. The first run failed onlooseMove-38150.test.ts's untypedvi.fntuple, and that was fixed.node scripts/pm/dispatch-gates.mjs --commandsderives 39 families for this tree, the same 39 before and after the merge of main. 38 passed on the first run.check:test-source-aliasfailed on three of the new test files, which reachedcelAuthoring's dynamic@objectstack/lintimport throughpackageActions.tsx. Each now has the module-top import, and the gate passes. After the merge, the four gates that read the diff againstorigin/main(check-adr-0087-registration,check-changeset-no-major,check-empty-changeset,check:test-source-alias) andcheck:undeclared-dep-importsandcheck:type-check-coveragewere run again and pass.dispatch-gates --ran: 39 derived, 39 run, 0 NOT-MEASURED.overlap-check.mjsbefore the first push:origin/mainconflicted inResourceListPage.tsx(the lucide import, beside feat(plugin-grid,app-shell): save the import wizard's column mapping as a shared mapping, and Manage it in Studio #38357'sX) andmetadataListState.ts(beside feat(plugin-grid,app-shell): save the import wizard's column mapping as a shared mapping, and Manage it in Studio #38357'stargetObjectfilter). Both are resolved in the merge, keeping both sides. feat(studio): App Studio's package overview gets Export as a button, a Publish history tab with the revert, and is where opening a package lands #38318 shares the two i18n files and merges cleanly.Walkthrough (a real stack)
At
c27f9ab24(the two display fixes in; the merge of main after it touches neither surface),pnpm console:build, then the showcase booted withobjectstack dev --ui --seed-adminon a fresh database. Through the API: an installed writable packagecom.probe.zeta(name Zeta, namespacezeta), two loose flows (probe_loose_flow,probe_loose_flow2) and a loose objectprobe_widget, each saved with no package. Then, in the browser (Playwright, 1400×900):?face=admin) draws "4 items belong to no package" with Flow (2), Object (1), Datasource (1). The datasource is the showcase's own loose row./_console/studio/~all/metadata/flow?source=loose: two rows, the select column, "Select all (2)"._env/probe_loose_flow→zeta/probe_loose_flow, the caveat and the undo note._packageId: com.probe.zeta,GET /meta/flow/zeta/probe_loose_flowanswers 200 andGET /meta/flow/_env/probe_loose_flow409, with no restart.probe_widgetinto Zeta: refusedNAMESPACE_PREFIX, "Object 'probe_widget' is missing the package namespace prefix. Rename it to 'zeta_probe_widget' (namespace = 'zeta').", Move disabled.Screenshots, at device scale 2: in the project files under
card-38150/a2-walkthrough/,1-packages-banner.png…7-banner-after.png.Owed before landing
1852bb898's commits.🤖 Generated with Claude Code
https://claude.ai/code/session_01L9qibyHmxFV4bTFZ5BKnUz