Repository navigation
feat(spec)!: actions that act on many records are placed at selection; a list view's bulkActions is retired - #38550
objectstack-fleet[bot] wants to merge 11 commits into
Conversation
Claude-Session: https://claude.ai/code/session_01FEkQ5oz5vp6AYi9MqMxvmK Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5oz5vp6AYi9MqMxvmK Co-Authored-By: Claude <noreply@anthropic.com>
…ocation Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5oz5vp6AYi9MqMxvmK
…s, i18n bundles Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5oz5vp6AYi9MqMxvmK
…-19 tombstone Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5oz5vp6AYi9MqMxvmK
…d keeps the selection arm as held Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5oz5vp6AYi9MqMxvmK
…data-form bundles after the main merge Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5oz5vp6AYi9MqMxvmK
…LOCATIONS has seven words) Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5oz5vp6AYi9MqMxvmK
…out.selection row Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5oz5vp6AYi9MqMxvmK
📓 Docs Drift CheckThis PR changes 3 package(s): 33 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: ⛔ 8 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails. What this run could not see
Coarse fallback — 181 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 832cd9f0481a56052235d2e3d73a7595eea8a215 && git checkout 832cd9f0481a56052235d2e3d73a7595eea8a215
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 4a43d6c33ab0528cabefdc42af7e81fdbb79daf4 6fee5a08a9ae2f18077d52a3ac86cdf66e404de6 && git checkout -B drift-repro 4a43d6c33ab0528cabefdc42af7e81fdbb79daf4 && git merge --no-ff 6fee5a08a9ae2f18077d52a3ac86cdf66e404de6
node scripts/docs-audit/affected-docs.mjs --json 4a43d6c33ab0528cabefdc42af7e81fdbb79daf4
|
|
repo:objectstack#5 · os-project-manager · session_01FEkQ5oz5vp6AYi9MqMxvmK CI on head What blocks the fix: the bar's |
Requested by Leehom · project thread
Fixes #36496
Clause-②: yes (narrowing)
Metadata-protocol: narrowed
Skills-docs: #38552
维护者速读
What changes
selection(one dispatch per selected record). New third arm on the object'sactionLayout:selection: { pinned, more }orders the multi-select bar.view.list.bulkActionsandobject.listViews.*.bulkActionsare retired withretiredKey()tombstones (parse andtscrefuse them with the prescription).bulkActionDefsstays on the view, unchanged.view-bulk-actions-to-action-selection(adds'selection'to each listed action'slocations, strips the key, writes theselectionarm only when the lists' order differs from the default order); twoRETIRED_KEYS_BY_MAJORentries; D3 semantic entryview-bulk-actions-declared-on-the-action; liveness rows (viewlist.bulkActionsdead/REMOVED, objectactionLayout.selection.*added); generated baselines, docs, metadata form and i18n bundles regenerated.action-dispatch-contract-mismatchjudges actions placed atselectionagainstexecution;validate-object-action-layoutchecks theselectionarm;validate-action-name-refs/validate-action-locationsstop walking the retired key.selectionBarActions()builds the bar from the object's actions placed atselection, ordered by the arm (pinned, then more, thenorderand served order); an authoredbulkActionDefsentry claims its name first.ObjectGrid,SelectionBar,ListView(non-grid bar) and the app-shell header/toolbar/tabs read it.ListViewSchema.bulkActionsisnever; thelist-viewblock'sbulkActionsinput is removed. Studio's location dropdown offersselection.object-gridpage component'sbulkActions/batchActionskeys, now on their ownz.array(z.string())schema (same describe) instead of a reference to the retired view slot.Per-object list: views that gained the bar
showcase_task: 8 grid views, none setsselection, so multi-select is on for all. The 7 views other thanbulk_actions(default,in_progress,urgent,done,legacy_row_actions,tabular,grid) now drawshowcase_mark_doneandshowcase_recalc_estimate;bulk_actionsdraws the same two in the same order as before.showcase_field_zoo:inline_bulk_defsgains the 10 predicate-gate actions;showcase_zoo_visible_stringis drawn once, by that view's aggregatebulkActionDefsentry, which claims the name.Tests
Head
6fee5a08aunless a line names another.@objectstack/spectest: 913/913 files, 28895 passed (1 todo). Typecheck 0.@objectstack/linttest: 246/246 files, 9959 passed. Typecheck 0.@objectstack/platform-objectstest: 130/130 files, 2218 passed.@objectstack/example-showcasetest: 49/49 files, 546 passed.--maxWorkers=2fromui/. The package sweep (plugin-grid, plugin-list, types, i18n, plugin-view, plugin-detail) ran before the main merges: 1493 files passed and 7 failed, all stale pins of the retired key. Those 7 plus app-shellObjectView.*/objectView*/ ActionPreview / inspectors / layout pins, the console registry parity test anduseConsoleActionRuntime.bulkPausedScreenswere then rerun: all green after the fixes in this PR. The last rerun was at189a59bbf(332 tests in the 6 census files).type-check(dependency closure built first): types, core, i18n, plugin-grid, plugin-list, plugin-view, plugin-detail, app-shell all exit 0. The consoletype-checkwas not measured: its dependency closure was not built here, so CI runs it.applyMetaMigrations(stack, 18)on the showcase source gives 15 applied edits. The 12 listed actions gainselection, no list keepsbulkActions, and no arm is written. The output equals the hand edits in this PR.pnpm --filter @objectstack/dogfood test, under the verify lock, no shard, no path) at189a59bbf: VERDICT command-exit 0, Test Files 495 passed / 3 skipped (498), Tests 4183 passed / 68 skipped (4251). Two commits landed after it: the checklist JSON and two count lines in the platform-objects tests. Neither is a dogfood input.Gates (derived by dispatch-gates --commands, 137 families)
137/137 exit 0, first run at
189a59bbf. Six were rerun atfb3430877f:check-plugin-teardown-shape --self-test: 3 → 0, after fetching its pinned fixture commit.ui vitest scripts/andcli migrate-meta-engine-guidance: 99 (the lock was busy) → 0.check:skill-examplesandcheck:dual-build-cjs-loads: 3 (a prerequisite was missing) → 0, after building client-react, client, scenarios and studio.check:platform-checklist: 1 → 0, after the matrix item was revised (see Acceptance notes).dispatch-gates --ran: 137 derived, 137 run, 0 NOT-MEASURED, 0 UNRUN. Also green:check-platform-checklist --changed-from origin/main(53 anchors, 0 lost),check-nul-bytes,check:i18n,check:i18n-stale-fill, andcheck-sdui-manifestafter regenerating.Acceptance notes
actionLayout.selection.pinnedwith Delete left out moves it into 「More」. The alternative, actions placed atselectionsuppressing the implicit Delete the way an authoredbulkActionDefsentry does, was not taken.pinnedset, a view's ownbulkActionDefsentries sort into 「More」.operations.delete/onDelete). Census of authored views that relied on this: no non-grid list view lists anybulkActions, so none namesdeleteand none loses bulk Delete. objectstack has 0 (at9e5be7bb4612; all 3 lists are on grid views) and HotCRM has 0 (at2b74490b9f25; all 8 lists are on grid views).bulkActionsstays in the objectui#5097 host-composition exemption (27 keys, a maintainer ruling), relayed off the host node only. ListView no longer reads it. Dropping it changes the ruled count; that question is carried by ListView no longer reads bulkActions after #36496, but it stays on the objectui#5097 host-composition exemption list (OBJECT_VIEW_HOST_COMPOSITION_KEYS) #38554.selectionarm (new test). Arranging the selection arm in Studio is not in this PR.records-forms.action-location-matrixgains theselectionvariant (revision 20,enumSource.expect7). The new leg has not been run in a browser.selection(seat repo:objectstack#5 ruling A, 2026-11-29 09:36 UTC). The bar accepts the same set as before Bulk actions declared on the action (selection) with a selection arm in the object action layout, moved from view bulkActions #36496. After fix(spec,studio): a record:quick_actions bar's location refusesrecord, and Studio stops offering it (#38045) #38541 merges, this branch merges main and growsRecordQuickActionsLocationSchema's exclusion to['record', 'selection'], with a prescription that names the single places a bar can use. The Studio dropdown and the SDUI manifest follow, and the bar's Clause-② is unchanged. Until then CI is red onblock-config.test.ts:365.record, and Studio stops offering it (#38045) #38541 and feat(objectql): a record in a closed state, and its lines, are closed to change (closedStates, ADR-0162) — trunk #38497 conflict with this branch on generated artefacts and on two census count lines. Whichever lands second regenerates or re-counts; the other side was left untouched.Verification
Files to read first (by risk):
ui/packages/plugin-grid/src/resolveBulkActions.ts—selectionBarActions(), the ordering and the name-claim rule.packages/spec/src/conversions/entries/19/view-bulk-actions-to-action-selection.ts— when the arm is written, and the TODO cases.ui/packages/plugin-list/src/ListView.tsx— the non-grid bar now built fromselectionplus a permitted Delete.Two-minute check:
pnpm --filter @objectstack/spec exec vitest run src/conversionsshould report the conversion fixture passing; in the showcase, open Tasks → any grid view, select two rows: the bar shows Mark Done and Recalc Estimate.🤖 Generated with Claude Code
https://claude.ai/code/session_01FEkQ5oz5vp6AYi9MqMxvmK