Repository navigation
fix(plugin-grid): over the 5000-record cap, the select-all-matching bulk bar says only the first 5000 matching records will be processed - #28606
Merged
Conversation
…ord cap when the match set is larger resolveBulkRows and the bulk bar now read one constant, BULK_SELECT_ALL_MATCHING_CAP. Over it, the select-all button, the banner, the count chip and the selection's context-menu label name the cap and the total; at or under it they keep today's text. Three new grid.* strings in all ten packs. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jTrUjyA3Jhqgsi86rz
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jTrUjyA3Jhqgsi86rz
Contributor
Author
|
domain:ui#4 · zhuangjianguo · session_01QsR2jR7ZFkpqmm4U8S1f9y Contract reviewServed-tier: ① Derived judgments
② Semver level
③ Boundary flags
Implemented-by: VERDICT: PASS Generated by Claude Code |
Contributor
Author
|
domain:ui#4 · zhuangjianguo · session_01QsR2jR7ZFkpqmm4U8S1f9y 席位核对 · ACCEPT · 2026-11-01T08:02ZHead-sha:
Generated by Claude Code |
This was referenced Nov 15, 2026
scbdzhwl
pushed a commit
to scbdzhwl/objectstack-analysis
that referenced
this pull request
Nov 16, 2026
…eep readings (objectstack-ai#33990) <!-- claude-projects-attribution: {"github_login":"os-steve"} --> _Requested by **Steve** · [project thread](https://claude.ai/code/project/chan_01FdL1XeUyvVNxLreh3F4Qi9?thread=cmsg_01FdL1XeUyvVNxLreh3F4Qi9LUUQvBoFyjm7sUdButadF7)_ Fixes objectstack-ai#33963 Clause-②: no Metadata-protocol: none ## 维护者速读 - 改了什么:只改 `records-forms.json` 一个清单文件,把 v18.5.0 测试轮记下的 26 行文字问题落到 21 个条目上,每个条目 revision +1 并加一行 history。 - 为什么改:测试员按旧文字操作会走错入口、用错数据或误判结果(比如以为某缺陷还没修、以为某条只能挂起),下一轮测试会重复踩坑。 - 风险与回滚:只是测试清单文字,不动产品代码,不改任何验收判据的结论;回滚就是撤掉这一个提交。 - 先看:`records-forms.json` 里 `gantt-interactions`(只改前两步的操作说明,依赖一半按裁决保持 blocked)、`record-discussion-mentions`(changes_only 一项的原因改写)、`field-unique-enforcement`(复合唯一索引的提示语)。 - 两分钟验证:`pnpm check:platform-checklist`,应看到 `check-platform-checklist: OK — 16 areas, 429 items`。 - 需要你做的:无,席位落地。 ## What changes Batch A of the v18.5.0 sweep close-out (anchor objectstack-ai#33761, ledger comment 6896511848): every item-text re-point row that lands in `docs/qa/platform-checklist/areas/records-forms.json`. Each row was re-read at `origin/main` `895783a1` and the edit starts from the residue measured there, not from the parked text. 26 rows, 21 items; rows 143 and 224 are one edit, as are 141/219/220 (one item, three clauses) and 148/149, 221/222. Every edited item: `revision` +1 and one `history` row (ref `#PENDING-33963`, swapped for this PR's number in the second commit). The file is not canonical `JSON.stringify` output, so it was edited as text spans by a script that asserts each old span occurs once inside its item, then proves the parsed document equals the old one except in the declared fields of the 21 items (other items and the area-level fixtures value-equal). `coverage.json` was not regenerated: `check:platform-checklist` wrote nothing. | Ledger row | Item | Clause | What changed (or why not) | |:--|:--|:--|:--| | 9 | crud-roundtrip | steps[5] | The 1440 px tab row draws a panel tab only for a related panel with records; empty ones wait in the `+N` dropdown, so a fresh account reads `Overview / Activity N` (RecordPageColumns.tsx `partitionRecordTabsByRecords`; QA run objectstack-ai#33784). | | 13 | object-hook-lifecycle | automated.ref | Names `packages/verify/src/harness.hook-refusal-door.test.ts` (exists at the base) as evidence of its own layer. The locale-coverage half is new coverage, left to a checklist-author card. | | 14 | field-unique-enforcement | acceptance[0] | A declared composite unique index whose fields all carry labels is now named by those labels (objectstack-ai#33348, `duplicate_record_fields`); the generic sentence is left for what matches no such index. No step drives a composite, so no verdict moves. | | 126 | action-preflight-panel | steps[0] | The probe action may sit under the record header's overflow menu once three actions are inline (QA run objectstack-ai#33861). | | 128 | bulk-select-all-matching | knownGaps[1] | "expected FAIL until objectstack-ai#28552" retired: the defect closed in d5da45b (objectstack-ai#28606), and the three `*Capped` strings name the 5000 cap. acceptance[5] never said FAIL; unchanged. | | 131 | cascading-options | steps[0] | The New form is `.../showcase_cascade/new`; the bare object URL lands on the list. | | 133 | conditional-rules-header | steps[1], steps[7] | Date input is typed text in the locale format; the invoice form saves through `POST /api/v1/batch` (MasterDetailForm). steps[7] reads paid_on's absence on INV-1004 because steps[1]-[2] leave INV-1002 sent (the same parked note). | | 135 | encrypted-field-behavior | steps[1] | The field-zoo POST body carries the required `f_master_detail`; said for every POST of the item, so steps[4]'s fail-closed probe reads the crypto refusal, not a validation one. | | 137 | field-history-tracking | knownGaps[1] | The flag half is driven on a scratch object of the named shape (QA run objectstack-ai#33861 did); the code read is the fallback. | | 140 | form-view-gallery | steps[6] | The record page's Edit opens a `?form=ID` modal, so page routes are reached by URL; a deep-linked page form no longer leaves the document on save (`goBack` replaces to the record or list). | | 141, 219, 220 | gantt-interactions | steps[0], steps[1] | Switch to Month first (opens at Day on today); grab a bar near its top edge, off the progress handle. Row 219 left as it stands: under the objectstack-ai#33351 ruling the dependency half is blocked(fixture) by design, and a runtime overlay onto the notes textarea does not measure a real dependency field. | | 142 | grid-personalization | steps[1], steps[3] | Density is one cycling button; a runtime group-by lives in the URL (`uf__group`), not in the user's list preference, so a bare-URL reload drops it by design. | | 143, 224 | home-amount-preview-states | steps[2], fixtures.provisioning.why | The member's recipe invoice needs a line (admin POST) and a currency (member PATCH to USD) before the preview mounts. | | 144 | kanban-drag-persistence | steps[3] | The client lane gate stops an illegal drop before any request; reaching the server 400 needs a stale board. Both legs recorded. | | 146 | master-detail-atomic-save | steps[1] | Driver note: fill the trailing blank row; `Add line` beside it submits an all-null line that the batch refuses. | | 148, 149 | record-discussion-mentions | fixtures.requires[1], steps[0], steps[5], steps[13], knownGaps[3] | Off showcase_task (no discussion surface, no stream on its authored page) onto showcase_project's panel or showcase_account's stream; the interleave is read on the panel or on showcase_field_zoo's stream; the private note is created with its required `title`; changes_only is offered only on a synthesized page, which an authored panel never sits on (RecordDetailView `historyPage`). | | 150 | related-list-server-pagination | steps[1] | At 1440 px the top-level tab row draws over the columns; a role=tab strip there is expected. | | 151 | saved-view-management | steps[3] | Unsetting a packaged prior default goes through ensure-customization, then PUT `?package=com.example.showcase.custom`. | | 153 | setup-recycle-bin-page | steps[0] | Nav label is `Recycle Bin` (setup-nav.contributions.ts); the page title stays `Recycle bin`. | | 200 | named-import-mapping | acceptance[1] | States the precondition: idempotent with the request's `writeMode` unset; an explicit `writeMode` overrides the mapping's upsert by design (import-prepare.ts). | | 221, 222 | delete-toast-undo-restore | steps[0], negative[1] | Delete is under the header's More actions menu; the absence of Undo is observable as the `showcase_ops` member that `qa-fixture.mjs contributor-member --position showcase_ops` mints. | No row was already right at the base and no row moved to another carrier. ## Tests Docs-only ledger change; no test files touched, none forced. Gates on the final head are listed under Verification. ## Acceptance notes - **gantt-interactions, row 219:** answered without an edit; the seat read the objectstack-ai#33351 ruling as keeping the dependency half blocked(fixture), so QA run objectstack-ai#33914's overlay route is not written into the item. - **record-discussion-mentions, row 149.** At the base the panel offers `changes_only` only from `RecordFieldHistoryContext`, which RecordDetailView fills only for a synthesized page, and a `record:discussion` panel always sits on an authored page, so no fixture can open that leg. acceptance[7].verify still says the leg needs such a panel on a field-history object; it was left as is (it reads blocked(fixture) either way). Whether an unreachable FeedFilterMode value is a product gap is for the seat. - **conditional-rules-header steps[7]** was not a ledger row of its own; it is the same parked note as row 133 (INV-1002 is sent by then), so it rides the same edit. - Out of the ledger rows, not edited: related-list-server-pagination steps[1]'s last sentence ("only below 760 px is the page tabbed ... `?tab=related`") was not re-measured by any run; RecordPageColumns' `stack` tier docblock says no tabs. Noted for the next sweep. ## Verification Final-head gate run, every family `dispatch-gates --commands` derived, each with its exit captured before any pipe; `--ran` reconciliation: 16 derived, 16 run, 0 NOT-MEASURED, 0 UNRUN. `check:doc-formula-expressions` ran after building `@objectstack/formula` and `@objectstack/lint` under the verify lock (VERDICT command-exit 0). <details><summary>gates (patch-round head `e13f5b0c`; `a9ca4037` merges origin/main, file unchanged)</summary> ```text node scripts/check-adr-links.mjs :: exit 0 node scripts/check-adr-links.mjs --self-test :: exit 0 node scripts/check-closing-keyword-parity.mjs :: exit 0 node scripts/check-closing-keyword-parity.mjs --self-test :: exit 0 node scripts/check-comment-mask-corpus.mjs :: exit 0 node scripts/ci/plan-test-core-shards.mjs --self-test :: exit 0 pnpm --filter @objectstack/lint run check:doc-formula-expressions :: exit 0 pnpm check:ci-filter-parity :: exit 0 pnpm check:cross-package-test-inputs :: exit 0 pnpm check:doc-authoring :: exit 0 pnpm check:driver-memory-census :: exit 0 pnpm check:gitlink-declared :: exit 0 pnpm check:nul-bytes :: exit 0 pnpm check:platform-checklist :: exit 0 pnpm check:refd-timer-probe :: exit 0 pnpm check:watch-hint-literal :: exit 0 ``` `check:platform-checklist`: OK — 16 areas, 429 items (421 active, 3 planned); symbol anchors 1675/1685 resolved, 10 on the named residual. </details> --- _Generated by [Claude Code](https://claude.ai/code/session_01ADHkmSznyicZWEGxRp5gh5)_ <!-- signed: domain:devx#2 · os-steve · session_01ADHkmQTVjryTSkqydKVS6z --> --------- Co-authored-by: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Steedos · project thread
Fixes #28552
Clause-②: yes (widening)
Metadata-protocol: none
维护者速读
resolveBulkRows)读同一个常量BULK_SELECT_ALL_MATCHING_CAP。grid.*文案;取数逻辑、上限数值、接口都不变。回滚即还原本 PR。ui/packages/plugin-grid/src/components/BulkActionBar.tsx(overCap三处分支)、ui/packages/plugin-grid/src/bulkSelectAllMatchingCap.ts、BulkActionBar.selectAllMatchingCap-28552.test.tsx。pnpm --dir ui exec vitest run packages/plugin-grid/src/__tests__/BulkActionBar.selectAllMatchingCap-28552.test.tsx packages/plugin-grid/src/__tests__/bulkFanoutHostParams.test.tsx,预期 2 个文件、16 个测试全绿。What changes
ui/packages/plugin-grid/src/bulkSelectAllMatchingCap.tsholdsBULK_SELECT_ALL_MATCHING_CAP(5000) andexceedsBulkSelectAllMatchingCap(totalMatching).resolveBulkRowsinObjectGrid.tsxstops its paged fan-out at that constant (it was a local literal), and every string below reads the same constant. The module is not exported from the package entry.BulkActionBar): the select-all button readsgrid.bulkSelectAllMatchingCapped("Select the first 5000 of 7200 matching"), the banner after selecting readsgrid.bulkAllMatchingSelectedCapped("Only the first 5000 of 7200 matching records will be processed."), and the count chip readsgrid.bulkSelectedAllMatchesCapped("5000 selected (of 7200 matches)").SelectionContextMenuItemsinRowContextMenu.tsx) countedtotalMatchingwith the samegrid.bulkSelectedAllMatcheskey; over the cap it now reads the same capped key. This is the same defect on the second surface that renders the count, so it is fixed here.count, as before.@object-ui/i18n,gridnamespace, all ten built-in packs): three new keys interpolatingcapandtotal. They take nocount, so they are not i18next count families. Inruandarthe total stands alone (in parentheses or after a preposition with no noun) so no noun has to agree with it; the cap is always 5000.@object-ui/plugin-gridpatch,@object-ui/i18npatch. Nopackages/spec/**, no server change, no metadata key.Why
Ruling 6545938831 on #28345, item ④, verbatim: 「bulk-select-all-matching: file a product defect card — the banner names the cap (e.g. 「将处理前 5000 条」); the checklist gains one criterion pinning it.」 The checklist criterion rides #28551, not this PR.
Clause-② reading (measured on the built declaration closure, objectstack
a2e75562,turbo run build --filter='@object-ui/plugin-grid^...', 49/49 tasks): plugin-grid exports no language pack (itspackage.jsonhas only the.entry). The grid strings live in@object-ui/i18n, which publishes./localesand./locales/*and re-exportsenandtype TranslationKeys(typeof en) from its.entry; the builtdist/locales/en.d.tsdeclares each leaf as a readonly string literal. So the three new keys widen the published declaration ofenandTranslationKeys:Clause-②: yes (widening), as amended on the card's Claim. Nothing is narrowed and no metadata author surface moves:Metadata-protocol: none, patch.Tests
ui/packages/plugin-grid/src/__tests__/BulkActionBar.selectAllMatchingCap-28552.test.tsx, nine cases, strings read from the packs and the cap from the constant:zhthe banner reads thezhpack; the selection's context menu reads the capped key;bulkFanoutHostParams.test.tsx, "still honours HARD_CAP over a match set larger than the cap": in the same ObjectGrid run that delivers 5000 of 6000 records to the bulk delete, the banner now reads the capped key filled withBULK_SELECT_ALL_MATCHING_CAPand 6000, and the delivered length equals the constant. So the number shown and the number delivered are pinned in one run.Acceptance notes
canOfferSelectAllMatching), unchanged.Verification
All at head
a9224125(this branch mergedorigin/maincd065d36; the merge touched none of this diff's packages, and the delta against main is still these 17 files, +246 / -15), in a worktree, every build and test underscripts/pm/os-verify-lock.sh.Tests, ablations, type-check, lint
Tests 9 passed (9).node scripts/ablation-replace.mjs,BulkActionBar.tsx, anchorconst overCap = exceedsBulkSelectAllMatchingCap(totalMatching);replaced byconst overCap = false && exceedsBulkSelectAllMatchingCap(totalMatching);, anchor x1 to x0) over the new file andbulkFanoutHostParams.test.tsx:Tests 4 failed | 12 passed (16), the three bar cases over the cap and the fan-out case; the context-menu case stays green because it reads the cap on its own. Restored: blob equal to HEAD.RowContextMenu.tsx, anchor? exceedsBulkSelectAllMatchingCap(totalMatching)replaced by? false && exceedsBulkSelectAllMatchingCap(totalMatching)) over the new file:Tests 1 failed | 8 passed (9), the context-menu case. Restored: blob equal to HEAD.pnpm --dir ui exec vitest run packages/plugin-grid/(before the merge of main, at08c376a5):Test Files 270 passed (270),Tests 2349 passed (2349).pnpm --dir ui exec vitest run packages/i18n/(at08c376a5):Test Files 94 passed (94),Tests 1438 passed | 13 skipped (1451); this includescount-families-11445andall-locales-key-parity.a9224125: the new file,bulkFanoutHostParams,BulkActionBarandrowContextMenu-28434:Test Files 4 passed (4),Tests 41 passed (41).pnpm --filter @object-ui/plugin-grid run type-check && pnpm --filter @object-ui/i18n run type-check:VERDICT command-exit 0; plugin-grid'stsconfig.test.jsonlists both touched test files.enandzhpacks: 0 errors; the 30 warnings are existinganys, and this diff adds noany.pnpm check:new-line-citations(fromui/):0 new citation(s).Derived dispatch gates
node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstackderived 35 commands over the 17 paths, the same list before and after the merge of main; every one exited 0, the 29 that are neither a suite nor a PR-body gate re-run ata9224125.--ran: 35 derived, 35 run, 0 NOT-MEASURED. The PR-body gates (check-closing-keyword-parity,check-adr-0087-registration --base origin/main,check-changeset-no-major --base origin/main,check-empty-changeset --base origin/main) ran against this body throughGITHUB_EVENT_PATH.pnpm --dir ui exec vitest run scripts/(at08c376a5; the merge of main changed no ui script):Test Files 169 passed | 2 skipped (171),Tests 4900 passed | 2 skipped (4902).node scripts/check-sdui-manifest.mjs: present and intact (106 components); CI's Build & E2E UI regenerates and compares it.pnpm check:type-check-debt(ata9224125):0 raw tsc error(s) total, none above its recorded number.🤖 Generated with Claude Code
https://claude.ai/code/session_01QsR2jTrUjyA3Jhqgsi86rz
Generated by Claude Code