Skip to content

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

Closed

Description

@objectstack-fleet

repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC

Found while fixing PR #36461 (card #36256, a dashboard or page-block drill opens a filtered list) on 2026-11-22, and measured there by its dev. Filed by the seat, not claimed. Parent: #36256.

What happens

Open a drill, then open a record from its list. The record page's counter, 「第 1 条,共 N 条」, counts only the rows drawn on screen, not the drill's total, and the previous / next steps stop at the last drawn row. Measured: a drill whose read reports a total of 40 drew 2 rows, and the record page received those 2 rows as its siblings.

Why

In plugin-list, ListViewBlock spreads the host's props and then sets onTotalChange={reportTabCount} after them, so a host's own onTotalChange (the drill's) is overwritten and never called. The drill then has no total to hand to openRecord.

To do

  1. Let a host's onTotalChange reach the list: call both (the host's and reportTabCount), or let the host's win where it is given.
  2. Hand the drill's total and its condition to the record page, so 「共 N 条」 and previous / next walk the drill's whole result, paging as needed.
  3. Pin it: a drill whose read reports 40 rows opens a record that reads 「第 1 条,共 40 条」; a list outside a drill keeps its tab count.

Done when

A record opened from a drill shows the drill's total and can step through every record of the drill, not only the rows drawn.

Blocked-by: #36461

Grade

p2 · area:ux · domain:ui (same reach as #36256).


Generated by Claude Code

Activity

  1. added
    bug
    priority:p2
    domain:ui
    on Nov 22, 2026
  2. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:ui (record page counter and previous/next after a drill) · pm:queue; rationale: area:ux · Bug · a record opened from a drill counts only the drawn rows: 「第 1 条,共 N 条」 and previous/next ignore the drill's filter, so the counter is wrong. Measured by the PR #36461 dev → p2 as filed · size S. Linked under topic #36230 (报表与仪表盘).

  3. added
    pm:queue
    on Nov 22, 2026
  4. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj

    Claim: PM loop round 4 · 2026-11-23T08:47Z
    Session: session_01JQwxbZeHNsF3RWcWpj7rGj
    Thread session: session_01JQwxbZkNEjKLHtTo4edMVH
    Account: os-warren
    Branch: claude/project-thread-6cpam2 (off main 3cf6a44b, named in the thread's first report)
    Worktree: objectstack-issue-36554
    Domain: domain:ui
    Seat: repo:objectstack#1
    Area: card thread #36256 (w4-D; this card rides along)
    Dispatch: the maintainer's ruling in this seat's project thread, 2026-11-23 06:15Z (decision card 「只接 p1,体验类也接」) and 06:16Z verbatim 「ux 直接 p1 和 专题卡」: this seat takes area:ux p1 cards and ux epic children (area:ux bug, the one open defect against #36256 item 6, which seat 2 released to this seat in 7093588482).
    File surface: ListViewBlock (drill onTotalChange) and the record page 「第 N 条,共 M 条」 / previous-next in ui/packages/app-shell/**; one changeset per moved package (stop on breach; explain in the report)
    Container & model: S, mode:thread, model: opus — dispatch-gates --tier: no path-derived mandate, default tier; the thread's first report states the served tier, effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: the drill dialog list (PR #36461) overrides the drill's total | a record opened from a drill | every reader who opens a record from a dashboard or report drill
    Thread-read: 7087064258
    Premise: holds as filed (measured by the PR #36461 dev); the card thread reproduces on current main before code
    Serial constraints cleared: no open PR names #36554

  5. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 23, 2026
  6. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbZkNEjKLHtTo4edMVH
    os-dev-report

    {
     "issue": 36554,
     "status": "done",
     "branch": "claude/project-thread-6cpam2",
     "pr": "https://github.com/objectstack-ai/objectstack/pull/36658",
     "session": "session_01JQwxbZkNEjKLHtTo4edMVH",
     "premise_still_valid": true,
     "summary": "Head dc1c6c89. The #36256 remainder: a record opened from a drill now counts and steps through the drill's whole result, not only the rows drawn, and the 「上季度」 acceptance line is re-read on data that has last-quarter values. ListViewBlock no longer shadows a host's onTotalChange with the tab badge (it calls both), so the drill hears the count. ListView gains a host prop onFindParamsChange that reports the query behind the rows it draws, answered where onRowsChange answers with rows and null otherwise. DrillRecordList keeps that query and, when the count exceeds the rows drawn or they are a later page, re-reads the whole result for ids alone (drillRecordOrigin, new drillRecordSteps.ts), window by window up to 1000, and hands the record page those ids and the drill's count. A drill all drawn opens the record at once with no read and no promise; a failed read, a record past 1000, or a result moved under the list keeps the rows drawn. No record page, DrillRecordOrigin or history-state change; no plugin-list fetch-path change beyond the new callback.",
     "tests": "All under os-verify-lock, ui/ vitest --maxWorkers=2. New pins: drillDialogStandardList-36256 #36554 describe (drill matches 40 draws 2 → openRecord gets 40 ids in order + total 40, every id read carries the drill filter, no write; control: 3 all-drawn → {siblings:[d1,d2,d3],total:3}, no id read); ListView.harness onFindParamsChange-36554 (paged grid reports the exact read params; calendar reports null); drillRecordSteps-36554 (query kept+stripped, later page from start, 1000 cap walked in windows, wider list window, no read/no promise when all drawn, drawn rows kept on no-query/no-count/failed-read/moved-result). Red leg: three source files restored from base 3cf6a44b (tests committed) → the two harness describes Tests 4 failed | 133 skipped (137): 'expected undefined to be 40'; control without total; onFindParamsChange never called. Restored git checkout HEAD --, git diff HEAD empty. Full runs on the first head: plugin-dashboard + plugin-list + plugin-report + app-shell drill/pageBlockDrill/useOpenRecordList/DashboardView/ReportView + page-tabs-list-count-26613 = Test Files 1 failed | 468 passed (469); the one red was DrillDownDialog-36256 'opens its page with the shown rows', which asserts openRecord synchronously — the drill now opens at once when no read is owed, assertion unedited; that file + the 4 drill suites re-run 5 files / 24 tests passed. type-check exit 0 for plugin-list, plugin-dashboard, app-shell after the app-shell^... closure build. eslint on the changed files: 0 errors.",
     "gates": "Local on dc1c6c89: 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 is 3)'. vitest run scripts/ Test Files 172 passed | 2 skipped (174). check:new-line-citations 0 new; check:nul-bytes OK; check-closing-keyword-parity --body: Fixes #36554 only. overlap-check VERDICT clean exit 0 vs origin/main 3cf6a44b, 0 open PR head shares a file. CI on the PR head belongs to the seat to read.",
     "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm (Clause-②: yes (widening))",
     "mcp_calls": "0 — no MCP GitHub calls",
     "api_writes": "2 — relay pr_create (fleet-write run 45149781963, POST /repos/objectstack-ai/objectstack/pulls, draft true, no assignees/labels sent; read-back identical at 8744 bytes, PR #36658) and this os-dev-report comment POST /repos/objectstack-ai/objectstack/issues/36554/comments. git push not counted (3 pushes, one ref).",
     "open_questions": [],
     "security_findings": "none",
     "files_changed": [
      ".changeset/36554-drill-record-steps-whole-result.md",
      "ui/packages/plugin-list/README.md",
      "ui/packages/plugin-list/src/ListView.tsx",
      "ui/packages/plugin-list/src/ListViewBlock.tsx",
      "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/app-shell/src/views/drillDialogStandardList-36256.test.tsx",
      "ui/packages/plugin-list/src/__tests__/ListView.harness.test.tsx"
     ],
     "deviations": [
      "This is a card-thread dispatch on the project branch claude/project-thread-6cpam2, not a claude/issue-* branch; the PR body carries the project-thread attribution lines the harness requires.",
      "The browser walk ran objectstack dev in examples/app-showcase directly (pnpm dev:crm/showcase refused by check-dev-prereqs for missing dists) with the Console vite dev server on 5291; both stopped afterwards. 48 invoices were created in the throwaway --fresh database for the 60-row #36554 walk and discarded with it.",
      "The PR body footer uses the session-URL form plus the AGENTS.md _Generated by_ block."
     ],
     "out_of_scope_findings": [
      "class: a · reach: public UI — the object list page's record pager also steps only through the rows the list has loaded, the same shape #36554 fixes for the drill; untouched here · carrier: none · noted, not filed · dedupe words: record page stepper loaded rows only, objectViewRecordNavigation listTotal, siblings loaded window"
     ],
     "screenshots": "/mnt/project-files/issue-36554/ — 1-last-quarter-dashboard.png, 2-last-quarter-drill-chips.png, 3-last-quarter-record-1-of-4.png, 4-drill-60-record-50-of-60.png, 5-drill-60-next-51-of-60.png",
     "head": "dc1c6c89"
    }

    Generated by Claude Code

  7. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj

    Claim amendment · 2026-11-23T09:53Z — amends claim 7095870800.
    Branch: claude/project-thread-6cpam2
    PR: #36658 (draft, head dc1c6c89), Fixes #36554
    Clause-②: yes (widening)
    Metadata-protocol: none
    Reading (dev report 7097104419): one new host prop, onFindParamsChange on ListView (additive); no spec, schema or server change; changeset patch for @object-ui/plugin-dashboard and @object-ui/plugin-list. The claim said no; the widening owes an L2 at TIER_DEFAULT, which the seat runs before ACCEPT.

  8. removed
    pm:dispatched
    on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:uxbugdomain:uipriority:p2

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions