Skip to content

fix(plugin-dashboard): a record opened from a drill counts and steps through the whole drill - #36658

Merged
objectstack-fleet[bot] merged 4 commits into
mainfrom
claude/project-thread-6cpam2
Nov 23, 2026
Merged

objectstack-fleet[bot] merged 4 commits into
mainfrom
claude/project-thread-6cpam2

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Warren · project thread

Fixes #36554
Clause-②: yes (widening) — one additive member, ListViewProps.onFindParamsChange (@object-ui/plugin-list); nothing is removed or renamed
Metadata-protocol: none

The remainder of the drill-dialog card #36256 (after PR #36461): the one open defect against its item 6, and the 「上季度」 acceptance line re-read on data that has last-quarter values. Card #36256 stays open on this merge; whether it ends once this lands is the seat's call (the re-check below reads as passed).

维护者速读

  • 从仪表盘或报表的明细弹窗点进一条记录后,记录页顶上的「第几条,共几条」和上下翻,现在按明细的全部记录算,不再只算弹窗里已经画出来的那一页。
  • 属于「仪表盘和报表的使用体验」专题,补完「点记录进整页并能在明细里上下翻」这一点。
  • 出错时最多回到以前的样子(只在已画出的行里翻);只多了一次只读取编号的查询,随时可以撤回。
  • 无

What changes

  • The count reaches the drill. The list-view page block handed the list its own tab-badge reporter as onTotalChange after spreading the host's props, so a host's onTotalChange (the drill's) was never called. The block now calls both: the host's and the tab badge's.
  • The list reports the query behind its rows. ListView gains a host prop, onFindParamsChange(findParams), called with the params of the read that drew the rows onRowsChange reports, each time that query settles with a different answer, keyed on its content. It answers where onRowsChange answers with rows (a paged grid that draws the rows it fetched) and answers null for any other kind.
  • The drill hands the record page the whole drill. DrillRecordList keeps that query and, when a record name is clicked and the count exceeds the rows drawn (or the rows drawn are a later page), re-issues it for ids alone (drillRecordOrigin, new drillRecordSteps.ts): the same filter, sort and search, $select: ['id'], window by window at the list's own window or 100, whichever is wider, up to 1,000 ids. The record page gets those ids as its step set and the drill's count, so 「N of M」 says where the record sits in the whole drill and ↑ ↓ walk all of it. No record page, history-state shape or DrillRecordOrigin change.
  • The read is stable and the open is live (review round 2). The windows are read side by side, so the read's $orderby is the list's sort with id appended as the last tiebreaker (id alone when the list sends no sort; a sort already ending on id is kept), and the ids are deduplicated in order. The deferred open checks that the drill is still open and mounted and that no later click has started another open; otherwise it is dropped, so Esc or an outside click while the ids are read navigates nowhere and does not close a drill opened since. A failed read is logged once (console.warn) and keeps the rows drawn.
  • Unchanged when nothing more is owed. A drill whose rows drawn are its whole result opens the record at once, with no read and no promise (the existing 仪表盘和报表「查看明细」改成居中弹窗:所有图表都能点,弹窗里是带条件的标准列表(现在是右侧抽屉,全部字段、不能排序) #36256 pins hold unedited). A failed read, a record past the first 1,000, or a result that changed under the list keeps the rows drawn as the step set, as before.
  • Docs: ui/packages/plugin-list/README.md (the block's two count listeners, the new host prop). Changeset: .changeset/36554-drill-record-steps-whole-result.md (patch, @object-ui/plugin-dashboard and @object-ui/plugin-list).

Tests

Base 3cf6a44b, head named in the hand-off; all runs under os-verify-lock, from ui/ with vitest run --maxWorkers=2.

  • New pins:
    • drillDialogStandardList-36256.test.tsx (the real list-view in the real drill dialog), new describe for A record opened from a drill counts only the drawn rows: 「共 N 条」 and previous / next ignore the drill's total #36554: a drill whose read matches 40 and draws 2 opens a record with all 40 ids, in order, and total: 40; every id read carries the drill's condition and no write is made. Control: a drill whose 3 rows are its whole result hands { siblings: [d1, d2, d3], total: 3 } and makes no id read.
    • ListView.harness.test.tsx, new describe ListView.onFindParamsChange-36554: a paged grid reports exactly the params of the read that drew its rows; a calendar reports null.
    • drillRecordSteps-36554.test.ts: the query kept and stripped, a later page read from the start, the 1,000 cap walked in windows, the list's wider window, no read (and no promise) when all is drawn, and the drawn rows kept on no query, no count, a failed read or a moved result.
  • Red leg: with the three source files restored from base (git restore --source=3cf6a44b, tests committed), the two harness describes read Tests 4 failed | 133 skipped (137) (expected undefined to be 40; the control expected { siblings: [ 'd1', 'd2', 'd3' ] } without total; onFindParamsChange never called). Restored with git checkout HEAD --; git diff HEAD empty.
  • Full runs: packages/plugin-dashboard/ packages/plugin-list/ packages/plugin-report/ plus app-shell drill*, pageBlockDrill*, useOpenRecordList*, DashboardView*, ReportView* and page-tabs-list-count-26613: Test Files 1 failed | 468 passed (469) on the first head. The failure was DrillDownDialog-36256 "the record's name opens its page with the shown rows", which asserts openRecord synchronously; the drill now opens at once when no read is owed (no assertion edited), and the file plus the four drill suites read Test Files 5 passed (5), Tests 24 passed (24).
  • type-check (tsc --noEmit and tsconfig.test.json): @object-ui/plugin-list, @object-ui/plugin-dashboard, @object-ui/app-shell, each exit 0, after the @object-ui/app-shell^... closure build.
  • eslint on the changed files: 0 errors.

Round 2 (contract review 7097462049)

  • New pins, red at dc1c6c89 (the three source files restored from it, new tests kept: Tests 8 failed | 9 passed (17)), green at the new head (17 passed (17)):
    • drillDialogStandardList-36256.test.tsx: with the id reads held, closing the drill (open → false) and then answering the reads opens no record and closes nothing; the same after the drill unmounts; two clicks while the read is held open only the second record, with the whole step set.
    • drillRecordSteps-36554.test.ts: 150 rows tied on the list's sort across two 100-row windows, from a source that answers ties in a different order per window unless id settles them: every window carries [amount desc, id asc] and the step set is each id once, in order; id alone when there is no sort, an id sort kept as written; a boundary row two windows both answer is counted once; a failure is warned once over two failed reads. The first test's exact-params expectation now names the appended tiebreaker.
  • Full run: packages/plugin-dashboard/ packages/plugin-list/ packages/plugin-report/ plus the app-shell DashboardView*, ReportView*, drill*, pageBlockDrill*, useOpenRecordList* tests: Test Files 468 passed (468), Tests 4742 passed | 13 skipped (4755).

Gates

  • dispatch-gates --commands derived 38 families; all run, each :: exit 0; --ran: "38 derived famil(ies) accounted for — 38 run, 0 NOT-MEASURED (a DERIVED zero — all 38 recorded an exit code and none of them is 3)". vitest run scripts/: Test Files 172 passed | 2 skipped (174).
  • check:new-line-citations: 0 new. check:nul-bytes: OK. overlap-check: VERDICT clean exit 0 against origin/main 3cf6a44, no open PR head shares a file.

Verification

Browser, the showcase app (objectstack dev --fresh on a random port, the Console vite server on another, both stopped after), 1440×900. Screenshots are in the project thread's files (issue-36554/), not inline: this branch is the only ref the session may push.

  1. 「上季度」 re-check (the open acceptance line of 仪表盘和报表「查看明细」改成居中弹窗:所有图表都能点,弹窗里是带条件的标准列表(现在是右侧抽屉,全部字段、不能排序) #36256). Revenue Pulse, date range Last quarter (2026-07-01 to 2026-09-30 on 2026-11-23): the Invoices tile reads 4. Clicking it opens the dialog with the chips 「Issued On: ≥ 2026-07-01」 and 「Issued On: ≤ 2026-09-30」, 4 records, and the read is filter=["and",["issued_on",">=","2026-07-01"],["issued_on","<=","2026-09-30"]]. No non-GET request was sent from opening the drill. The record name opens the invoice page, which reads 「1 of 4 · Revenue Pulse」; Next gives 「2 of 4」.
  2. A record opened from a drill counts only the drawn rows: 「共 N 条」 and previous / next ignore the drill's total #36554. With 48 extra invoices created in the throwaway database (60 in all), All time, the Invoices drill draws 50 rows and says 60 records. Opening the 50th drawn row: the page reads 「50 of 60」, one id read went out (top=100&select=id), and Next steps to a record the drill never drew, 「51 of 60」. On main the drill never hears the count and hands only the drawn rows, which the red leg above measures in the harness; main itself was not walked in the browser.

Two-minute check: run the drillDialogStandardList-36256 file; the #36554 describe expects 40 ids and total: 40 from a drill that draws 2.

Acceptance notes

  • The id read asks for max(list window, 100) rows per request, and its last window reaches $skip 900 for a 1,000-id read. Neither limit is set by default (packages/types/src/query-read-limits.ts: OS_DATA_MAX_PAGE_SIZE "no maximum", OS_DATA_QUERY_ROW_BUDGET "no budget"); a deployment that sets the page size below 100 or the row budget below the walk refuses the read, and the record page then keeps the rows drawn (as before) with one console warning, not an error.
  • A drill matching more than 1,000 records steps through the first 1,000; the count still says the full number, and a record opened past the first 1,000 keeps the rows drawn.
  • The object list page has the same shape (its record page steps only through the rows it loaded); it is untouched here and noted, not filed.

Human Minimum

  • 1. Schemas start as Zod; packages/spec holds no runtime logic. (No spec change.)
  • 2. Every name I added uses the casing for its kind.
  • 3. No formatter ran; pnpm lint passes (changed files: 0 errors).
  • 4. One issue, one branch off an up-to-date main, one pull request.
  • 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset.
  • 6. packages/spec touched: n/a.
  • 7. No hand edits to content/docs/references/, packages/*/CHANGELOG.md or content/docs/releases/.
  • 8. Title, body and comments are in English.
  • The Before Submitting list in CONTRIBUTING.md is done.

🤖 Generated with Claude Code

https://claude.ai/code/session_01JQwxbZkNEjKLHtTo4edMVH


Generated by Claude Code

… whole drill

ListViewBlock no longer shadows a host's onTotalChange with the tab count;
ListView reports the query behind its rows (onFindParamsChange); the drill
reads its whole result's ids with that query for the record page's stepper.

Claude-Session: https://claude.ai/code/session_01JQwxbZkNEjKLHtTo4edMVH
Co-authored-by: Claude <noreply@anthropic.com>
…e the whole drill

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

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj

Contract review

Served-tier: TIER_DEFAULT
Head-sha: dc1c6c89f7ce570ea7157649d931344f83e30003
Local-runs: none
Scope: the 9 files of git diff 3cf6a44b..pr36658 (.changeset/36554-drill-record-steps-whole-result.md, ui/packages/plugin-dashboard/src/DrillRecordList.tsx, ui/packages/plugin-dashboard/src/drillRecordSteps.ts, ui/packages/plugin-dashboard/src/__tests__/drillRecordSteps-36554.test.ts, ui/packages/plugin-list/src/ListView.tsx, ui/packages/plugin-list/src/ListViewBlock.tsx, ui/packages/plugin-list/README.md, ui/packages/plugin-list/src/__tests__/ListView.harness.test.tsx, ui/packages/app-shell/src/views/drillDialogStandardList-36256.test.tsx) + cited: ui/packages/plugin-list/src/index.tsx, ui/packages/plugin-dashboard/src/index.tsx, ui/packages/plugin-dashboard/src/DrillDownDrawer.tsx, ui/packages/plugin-dashboard/src/__tests__/DrillDownDialog-36256.test.tsx, ui/packages/react/src/context/DrillNavigationContext.tsx, ui/packages/app-shell/src/views/useOpenRecordList.ts, ui/packages/app-shell/src/views/objectViewRecordNavigation.ts, ui/packages/app-shell/src/views/recordDrawerStack.tsx, packages/types/src/query-read-limits.ts, scripts/check-changeset-no-major.mjs, .github/workflows/pr-automation.yml, AGENTS.md, ui/AGENTS.md, cards #36554 and #36256
Security-touching: yes
Rule-change-verified: none

① Derived judgments

The published surface is exactly the one additive prop. No index file is in the diff. ui/packages/plugin-list/src/index.tsx exports the type ListViewProps, and the only change inside it is the new member. ui/packages/plugin-dashboard/src/index.tsx exports neither DrillRecordList nor the new module, so drillRecordOrigin and DRILL_RECORD_STEP_CAP stay internal. DrillRecordOrigin in @object-ui/react is untouched, so the host contract openRecord carries is unchanged.

The prop is truly optional. It is declared onFindParamsChange?: (findParams: Readonly<Record<string, unknown>> | null) => void. Adding an optional member to an interface breaks no caller. ListViewBlock reads props as declared with no cast, so the member had to be declared for it to compile, and it is.

The declarations are true. Nothing in the diff is under packages/. No Zod schema, no spec file, no JSON Schema, no authorable-surface/ or authorable-defaults/ baseline. The only non-ui/ path is the changeset itself. The new prop is runtime state, not an authorable key, and both the README and the prop's doc comment say so in words ("A HOST prop, never a schema key").

② Semver level

Correct. The changeset grades @object-ui/plugin-dashboard and @object-ui/plugin-list patch, and declares Metadata-protocol: none. Under scripts/check-changeset-no-major.mjs a declared none must grade every entry it introduces patch and may not move an authorable baseline. Both hold. No major is introduced, so the launch-window guard is quiet.

Clause-②: yes (widening) beside Metadata-protocol: none is not one of the contradictions the script names. It names only added beside Clause-②: no, and narrowed beside a line without the (narrowing) arm. The WHICH LEVEL table in pr-automation.yml puts a non-authorable internal type under none → patch, which is what a host prop is.

@object-ui/app-shell gets a test-only change, so it owes no entry.

③ Boundary flags

must-fix — the deferred open has no live guard, so a cancelled drill still navigates. DrillRecordList.tsx onRowClick now does void origin.then(open).finally(...), and open calls openRecord(objectName, id, origin). Nothing checks that the component is still mounted. DrillDownDrawer renders the list inside a Radix Dialog open=..., which unmounts its content when open goes false, so Esc, an outside click or the ✕ while the id read is in flight unmounts DrillRecordList and the promise still fires. The user is then navigated to a record they cancelled — and if they have meanwhile clicked another number, the late navigation destroys the drill they are looking at. The opening ref guards only a second click, not unmount. The same file already uses the right pattern 60 lines above (let live = true in the getObjectSchema effect). Before this PR the open was synchronous, so the window did not exist. Three lines fix it.

should-fix — the windowed replay has no unique tiebreak and no dedupe. readWholeResult issues Math.ceil(wanted / window) reads in parallel, offset by $skip, carrying the list's $orderby as it stands. ListView.tsx:4214 sets $orderby to undefined when the list has no server sort, and a drill sorted on a non-unique column (a stage, a date) is ordinary. Offset windows over a query with no unique order can return the same row twice and skip another, and the ids are concatenated with flatMap and no dedupe. The only staleness guard is ids.includes(recordId), which catches the opened record going missing but not a duplicate or another record's omission. The result is a sibling list that can make ↑ ↓ revisit a record or miss one, with the wrong index under it — the failure the card exists to remove, in a new place. Appending id to the replay's $orderby and de-duplicating the ids would close it. It bites only above 100 matches, where several windows are read.

note — the filter, sort and search are carried exactly. The replay copies findParams, deletes $top, $skip, $select, $expand, $count, and re-adds $select: ['id'] plus its own window. $filter, $orderby, $search and $searchFields survive untouched, and $filter is the list's fully composed finalFilter (view filter, chips, user filters, queue conditions). setLastFindParams(findParams) runs past the stale-request guard in the same batch as setData, so what is reported is the query behind the rows drawn, not an in-flight one.

note — row-level permissions are unchanged, no widened grant. The ids come from the same adapter, the same object and the same filter the list already ran, with $select: ['id'], which is strictly narrower than the projection the list read. No server, REST, driver or permission code is touched.

note — the cap and the fallbacks. Over 1,000 matches the walk stops at the first 1,000; a record past the cap, a read that throws, or a result that moved under the list all return the drawn rows with the full total. The user then sees 「第 N 条,共 M 条」 with ↑ ↓ stopping before M. That is the platform's established shape, not a new one: listOriginOf in objectViewRecordNavigation.ts hands total whenever total >= siblings.length, and recordDrawerStack draws Math.max(total, siblings.length), so the console object list page already reads this way. The PR body declares it.

note — cost, and a degradation nothing records. Up to ten parallel find calls per record open, repeated on every open with no memo across clicks. The catch is bare: no warn, no telemetry, so a refusal is invisible to the console and to the reader. MIN_STEP_WINDOW = 100 can exceed a host's OS_DATA_MAX_PAGE_SIZE, and $skip + $top up to 1,000 can exceed OS_DATA_QUERY_ROW_BUDGET; packages/types/src/query-read-limits.ts refuses rather than clamps, so the fix goes silently inert on such a host while emitting one 400 and one server log line per window. The PR's acceptance notes name the page-size half. The module comment's reason for the floor — that 100 is "the list's own fetch batch, which a host already serves to the list itself" — holds for the calendar walk, not for a paged grid whose $top is its page size.

note — the click has no pending affordance. The row click now does nothing visible until the read settles, and a second click on another row in that window is dropped by opening with no feedback, after which the first row's record opens.

Double onTotalChange: correct, and no loop. ListViewBlock calls the host's reporter and then the tab badge, so both hear the count and neither shadows the other, which is the card's item 1. The new arrow has a fresh identity on every render, but it cannot re-fire anything: ListView copies onTotalChange into onTotalChangeRef in an effect with no deps, and the report effect keys on [settledTotal] alone. DrillRecordList's own onTotalChange writes a ref, not state, so there is no render to loop on. onFindParamsChange follows the same discipline — callback behind a ref, deps [shownFindParamsKey, shownRowsSettled], the key a JSON digest of the params' content — so ui/AGENTS.md #10 is honoured on both sides.

DrillDownDialog-36256: the assertion is untouched, and it passes for the right reason. git diff on that path is empty; line 122's synchronous expect(openRecord).toHaveBeenCalledWith('opportunity', 'o2', ...) stands as written. It is not a loosening: the stub never calls onFindParamsChange, so findParams is undefined, and its three drawn rows equal its total of three, so drillRecordOrigin returns a plain object and never a promise. The new drillRecordSteps-36554 control pins that branch directly (expect(origin).not.toBeInstanceOf(Promise)).

No test weakened. Both touched test files are additions only — a new top-level describe in each, which is what the shared-harness ruling asks for. The new unit file covers a new module. The app-shell pin also asserts create, update, delete and bulk were never called.

Server write authority and data authority are unchanged. No server, REST, driver, permission or spec code is in the diff. The only new behaviour on the wire is an id-only read of a query the viewer had already run.

④ Design judgment

Against card #36554 and item 6 of #36256 the fix lands. Item 1 is done where the card said the defect was, in ListViewBlock. Item 3's pin exists at the real-list layer: a drill matching 40 and drawing 2 opens a record with 40 ids and total: 40, and the tab-badge path keeps its own test. "Done when" is met.

Item 2 asked for the drill's total and its condition to reach the record page, "paging as needed". The PR does not do that: it pre-reads the ids in the drill and hands a flat sibling list, leaving DrillRecordOrigin, the history state and the record page untouched. That is the smaller blast radius and it is the right call for a patch, but it front-loads the whole cost on every record open and caps the walk at 1,000 where "paging as needed" would not have. The divergence and the cap are both declared in the PR body, so this is a judgment, not a hidden change.

One cross-surface effect is worth keeping in view: the drill's record page now steps further than the console object list page's does, which still walks only the rows it loaded. The PR notes it and does not file it. That is the right disposition for now.

The shape of the work is good — narrow, additive, reversible, read-only, documented in the README and in the prop's own comment, with a red leg measured. What keeps it from passing is the async seam it introduces: an open that can fire after the user cancelled, and a windowed replay that is not ordered well enough to be the authoritative record sequence it is handed off as.

Implemented-by: claude/project-thread-6cpam2
Reviewed-by: session_01JQwxbZeHNsF3RWcWpj7rGj

VERDICT: FAIL

…oses; read its step set in a stable order

Review round 2 on the drill's whole-result step set:

- The deferred open checks that the drill is still open and mounted and
  that no later click started another open; otherwise it is dropped, so
  Esc or an outside click while the ids are read navigates nowhere.
- The id read appends `id` as the last tiebreaker to the list's sort
  (`id` alone when there is none) and deduplicates the ids, so parallel
  windows over a sort with ties neither repeat nor skip a record.
- A failed read is warned once.

Claude-Session: https://claude.ai/code/session_01JQwxbZkNEjKLHtTo4edMVH
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj

Contract review

Served-tier: TIER_DEFAULT
Head-sha: 2e22264bfbc9c2ae1c993b137d681b6df3590a90
Local-runs: none
Scope: delta dc1c6c89..2e22264b (ui/packages/plugin-dashboard/src/DrillRecordList.tsx, ui/packages/plugin-dashboard/src/DrillDownDrawer.tsx, ui/packages/plugin-dashboard/src/drillRecordSteps.ts, ui/packages/plugin-dashboard/src/__tests__/drillRecordSteps-36554.test.ts, ui/packages/app-shell/src/views/drillDialogStandardList-36256.test.tsx), the whole PR diff from base 3cf6a44b re-read at the new head, the PR body's Round 2 section + cited: .changeset/36554-drill-record-steps-whole-result.md, ui/packages/plugin-dashboard/src/__tests__/DrillDownDialog-36256.test.tsx, packages/types/src/query-read-limits.ts, the round 1 record (FAIL 7097462049)
Security-touching: yes
Rule-change-verified: none

① Derived judgments

Unchanged from round 1, and still true. The delta touches only plugin-dashboard source and two test files. It adds open?: boolean to DrillRecordListProps, but DrillRecordList is not exported from ui/packages/plugin-dashboard/src/index.tsx, so it is no published surface. DrillDownDrawer is the only caller. The published surface stays exactly ListViewProps.onFindParamsChange, optional. Nothing is under packages/; no spec, schema or baseline.

② Semver level

Unchanged. The changeset is byte-identical to round 1: both entries patch, Metadata-protocol: none, Clause-②: yes (widening). The delta adds no published member, so patch stays right and check-changeset-no-major.mjs has nothing new to judge.

③ Boundary flags

Round 1 must-fix (open after cancel): closed. Every path that navigates or calls onClose now runs through one function, open, in onRowClick. It returns unless the click is the latest (click !== lastOpen.current) and the drill is live. live is set from the dialog's open in a useLayoutEffect and set false in its cleanup, so it goes false both when open flips to false and on unmount. The sync path runs through the same guard, which passes at click time. The only other branch, setOpened(record) for a host with no record page, is a local dialog and navigates nowhere. DrillDownDrawer passes open from one shared body, so the dialog and the phone sheet are both covered. React StrictMode's mount-cleanup-mount leaves live true. Pinned in drillDialogStandardList-36256, against the real list: closed with the reads held, unmounted with the reads held, and two clicks during the read. The first two assert neither openRecord nor onClose is called; the third asserts only the second record opens, once, with all 40 ids. The PR body reports these red at dc1c6c89.

Round 1 should-fix (unstable windows): closed. stableOrder appends { field: 'id', order: 'asc' } to the list's sort, uses id alone when there is none, and keeps a sort whose last key is already id as written. The ids are de-duplicated by first sighting (new Set keeps insertion order) before the cap. Pinned: 150 rows tied on the sort across two 100-row windows, from a fake that answers ties in a different order per window unless id settles them; every window carries [amount desc, id asc] and each id comes back once, in order. A boundary row both windows return is counted once.

Descending id sort: handled. The check is on the last key's field alone, so [{ field: 'id', order: 'desc' }] is kept as written, not overridden to asc. It is pinned. An id key earlier in the list but not last gets a second id key appended, which is harmless.

Id field named differently: no new exposure. The tiebreak always names id. idOf reads id ?? _id, and round 1's $select: ['id'] already assumed id; ObjectStack's record id is id on every driver. A sort the list did not write as an array is kept as written, with no tiebreak, but ListView only ever writes $orderby as an array of { field, order } or undefined (ListView.tsx:4214).

Changed exact-param assertions: only this PR's own. The one edited expectation, $orderby in the first drillRecordSteps-36554 test, is in a file this PR added. The mountPaged helper edits in drillDialogStandardList-36256 sit inside the #36554 describe this PR added; the file's original #36256 describe is untouched. DrillDownDialog-36256.test.tsx still has no diff from base, so its synchronous openRecord assertion stands. Measured against base, every test file in the PR is additions only.

note — within a tie, the step set's order can differ from the screen's. The list draws its page with no tiebreak, and the read-back sorts ties by id. Where two drawn rows tie, the record page's 「第 N 条」 and ↑ ↓ can order them differently from the drill's rows. Every record still appears exactly once, so this is cosmetic.

note — the failure warning. Round 1's bare catch now writes one console.warn per page load (failureLogged, module scope), pinned as once over two failures. That fits AGENTS.md's degradation rule: a read-side functional degradation, said once, at warn.

note — the page-size and row-budget limits. The module comment and the Round 2 acceptance notes now say what round 1 noted: OS_DATA_MAX_PAGE_SIZE below 100, or a row budget below the walk, refuses the read, and the drawn rows stay the step set. Neither limit is set by default (query-read-limits.ts).

note — the changeset body. It still says the read-back uses "the same filter, sort and search", without naming the appended id tiebreak. It is accurate enough for a release line, and nothing needs changing.

Everything round 1 confirmed still holds at the new head. Filter, sort and search are carried; the read is the same query, ids only, so no grant widens; there is no render loop; and no server write or data authority changes. The PR body's Round 2 section matches the code.

④ Design judgment

Round 1's judgment stands. The fix meets #36554's "Done when" and #36256 item 6 by pre-reading ids, a declared, bounded divergence from the card's "paging as needed". The rework is narrow and correct. It replaces the drop-the-second-click guard with "the last click wins, and nothing opens once the drill is closed or gone", which is the better rule. It gives the windowed read a total order and an exact-once guarantee. And it says the failure once. No new surface, no new state shared beyond the component.

Implemented-by: claude/project-thread-6cpam2
Reviewed-by: session_01JQwxbZeHNsF3RWcWpj7rGj

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj

维护者速读

从仪表盘下钻的明细里点开一条记录,记录页上的「第几条 / 共几条」和上一条、下一条现在按整个下钻结果来算,不再只算第一页。
弹窗关掉之后不会再突然跳去记录页;连点两条只打开后点的那条;同值排序也不会漏条或重复。
复核两轮通过,CI 全绿,非受管面,席位落地。合并后,下钻弹窗那张总卡 #36256 一起关闭(「上季度」复查已通过)。
要你做的:无。

席位核对 — ACCEPT (L1) · repo:objectstack#1 · head 2e22264b · 2026-11-23T11:33Z

  • Shape: Fixes #36554. @object-ui/plugin-dashboard (the drill record list and dialog), one additive member ListViewProps.onFindParamsChange in @object-ui/plugin-list, tests, and patch changesets. Not governed: 0 of 10 paths, 660 lines.
  • Contract review: Clause-②: yes (widening), TIER_DEFAULT.
    • Round 1, 7097462049 at dc1c6c89, was a FAIL. Must-fix: a deferred open had no live guard after the dialog closed. Should-fix: the $skip replay needed an id tiebreak and dedupe.
    • Round 2, 7099322671 at this head, is a PASS. Every navigate and onClose path goes through one guarded open, keyed on the latest click and the dialog's open/unmount; closing, unmounting and two quick clicks are pinned. The read-back orders by the list sort plus id asc (id alone when unsorted) and dedupes by first-seen id; this is pinned over 150 tied rows across two windows.
    • The published surface is still only onFindParamsChange. The new open prop sits on the unexported DrillRecordList.
  • Evidence (thread):
    • Red/green: the three source files at dc1c6c89 with the new tests gave 8 failed / 9 passed; this head gives 17/17.
    • plugin-dashboard, plugin-list, plugin-report and the app-shell drill suites: 468 files / 4742 tests.
    • type-check exit 0.
    • eslint 0 errors.
    • dispatch-gates 38/38.
    • overlap-check clean against main 6a731859.
  • Gates: 57 check-runs on 2e22264b: 42 success, 15 skipped, 0 failed. Every Test UI shard is green. K = 6 first-parent commits behind main (< 15).
  • Landing: ready + auto-merge now. On merge, A record opened from a drill counts only the drawn rows: 「共 N 条」 and previous / next ignore the drill's total #36554 closes. The seat then closes 仪表盘和报表「查看明细」改成居中弹窗:所有图表都能点,弹窗里是带条件的标准列表(现在是右侧抽屉,全部字段、不能排序) #36256 as completed: the 「上季度」 re-check in the PR body reads as passed, and this was its last open defect.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 23, 2026 11:34
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 23, 2026
Merged via the queue into main with commit 4034a6d Nov 23, 2026
58 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-6cpam2 branch November 23, 2026 12:06
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/l tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

A record opened from a drill counts only the drawn rows: 「共 N 条」 and previous / next ignore the drill's total

2 participants