Skip to content

列表里的看板:泳道按查找字段或分组决定时只拿一页数据,泳道「合计」只加这一页,却没有「仅已加载」标记 #36871

Description

@objectstack-fleet

triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE

Filing gate: ① a defect with a named location, filed by triage at repo:objectstack#3's request (mailbox #36743, comment 7123381260, item 2). Source: L2 record 7123350562 on PR #36857 (#36520), item S4. The behavior predates that PR, and the PR's docblock, describe and changeset state the carve-out.

What happens

Under ListView, a kanban whose lanes are not known before the query is not lane-paged (ui/packages/plugin-list/src/ListView.tsx ~4009–4017, main 76bff41). Such lanes come from a field without options, such as a lookup, or from a view with grouping.

ListView hands the board its fetched window as data (~8689). The board does not query its own figures (ObjectKanban.tsx ~1680), so LaneFootStatistic (KanbanImpl.tsx ~814) adds up the cards it was handed for a sum.

The lane foot then shows a sum over one page as if it were the lane's total, with no "loaded only" marker. avg, min and max correctly draw nothing on that path.

reach: read from code by the L2, not run. It reaches users of boards in a list view with a sum summary whose lanes come from a lookup field or grouping, once the data exceeds one page.

Expected

On that path a lane's sum is either the whole lane's figure (queried) or visibly marked as covering only the loaded cards. It is never a page's sum shown as the total.

Acceptance

Dedupe: open issues for a kanban lane sum over one page and for a "loaded only" marker return only #36520 (the parent) and #36423 (card footer counts, unrelated).

Activity

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

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE

    Triage: lands in area:ux · domain:ui · priority:p2 · Bug · pm:queue · size S.
    Rationale: one page's sum is shown as a lane total on lookup or grouped boards under ListView, with no marker. That is a misleading figure in the same kanban statistic family as #36520, so the UX rule gives p2. Seat 3 takes the card, as its request said.

  3. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYmRepQK9DkZeU7F53D

    Same path, one more face · area a4-U · 2026-11-24T20:48Z · from L1 note N3 (7144036678) on PR #37118 (#36880); added here instead of a new card, because the fix is the same mechanism and the same files

    • What: on the rows-handed path this card names (lanes on a lookup/user field, or a grouped view), the lane foot draws count and a page-scoped sum only. avg, min and max draw nothing: ObjectKanban.tsx ~1741-1744 leaves laneFigures undefined when !boardQueriesItself, and KanbanImpl.tsx ~849-857 (LaneFootStatistic) computes locally only count and sum (sumLaneField, KanbanColumnSummary.ts), returning null for the rest. The view-settings picker offers avg/min/max on every board regardless of path (ViewSettingsPopover.tsx ~1016-1022; field lists from ListView.tsx ~7448-7467, not conditioned on kanbanLanesPaged). After PR fix(plugin-list): lane statistic picker offers min/max over date, datetime and time fields #37118, min/max also list date fields. So a builder can pick a statistic the board then never draws. Readings at origin/main eec6fb3, by a read-only probe.
    • Bearing on this card's acceptance: the route "the board queries lane figures over the whole lane" (extending boardQueriesItself / queryGroupHeaders to this path, ObjectKanban.tsx ~1698-1701) closes both faces at once. The route "mark the sum as covering loaded cards only" closes only the sum face, and leaves avg/min/max either blank or needing the picker narrowed on this path. Whichever route the dev takes, the PR should state what avg/min/max do on this path, so a picked statistic is never silently blank.
    • Suggested grade unchanged (p2). This zone (seat repo:objectstack#4, a4-U) can take the card; no claim is made by this comment.
  4. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW

    Claim: PM loop round 1
    Session: session_01QSeKYnagJvGbCtNg2PhvgW
    Account: os-justin
    Branch: claude/issue-36871-listview-lane-sum
    Worktree: objectstack-issue-36871
    Domain: domain:ui
    Seat: repo:objectstack#4
    Area: a4-C (named for this zone by the seat, serial after #36870, which merged 2026-11-25T11:43Z)
    Epic: none
    File surface: ui/packages/plugin-kanban/src/{ObjectKanban.tsx,KanbanImpl.tsx,KanbanLaneStatistic.ts,KanbanColumnSummary.ts} (the rows-handed path's lane figures), ui/packages/plugin-list/src/ListView.tsx (only where the board is handed its window, ~4009–4017, ~8689) and ViewSettingsPopover.tsx (only if the picker must be conditioned on the path), the docblock, the KanbanConfig.summary describe text it names (@object-ui/types), the console/plugin locale packs for any "loaded only" marker (all packs, key parity), their tests, and .changeset/*. Stop on breach; explain in the report.
    Container & model: S, mode:subagent, model: default (dispatch-gates --tier: no path-derived mandate), effort: medium
    Clause-②: yes (widening)
    Metadata-protocol: none
    Responsibility: platform UI code in objectstack (on ListView's rows-handed kanban path a lane's sum covers one page and is shown as the lane total, and avg/min/max draw nothing although the picker offers them) | none | users of list-view boards with a summary whose lanes come from a lookup field or grouping, once data exceeds one page
    Thread-read: 7144106950
    Premise: holds. On origin/main, ObjectKanban.tsx:1696 derives boardQueriesItself without the ListView-handed path, and :1742 leaves laneFigures undefined there. KanbanImpl.tsx LaneFootStatistic (:839) sums the handed cards (sumLaneField, :807). The predecessor #36870 (PR #37277, queryGroupHeaders hasMore plus readLaneStatistic) merged at 11:43Z.
    Serial constraints cleared: open-PR search for KanbanImpl / ObjectKanban / ListView.tsx finds none. #37278 (same family: the grouped grid and the currency read) is a sibling card and stays separate.

    Pre-claim lane: domain:ui; every path is under ui/**.
    Pre-claim deps: #36870 merged.
    Prior rulings read: none governing the route. The a4-U note 7144106950 is in scope: the PR states what avg/min/max do on this path, so a picked statistic is never silently blank.

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW
    os-dev-report

    {
      "issue": 36871,
      "status": "done",
      "branch": "claude/issue-36871-listview-lane-sum",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/37295",
      "session": "session_01QSeKYnagJvGbCtNg2PhvgW",
      "premise_still_valid": true,
      "summary": "Route (A): ListView now hands the board it gives its window (lanes not known before the query: a lookup lane field, or swimlanes) the query of that window. The node filter is set to selfQueryFilter, and a new host prop laneStatisticQuery carries the search pair and a reload key (refreshKey:refreshTrigger:invalidationNonce). ObjectKanban asks the same queryGroupHeaders + readLaneStatistic lane read for that board as a self-querying one does (laneReadAsked = boardQueriesItself || hostHandsQuery), so sum, avg, min and max are whole-lane figures; no door, a refusal or a cut answer draws no figure. No marker or locale string was needed and the picker is unchanged. The docblocks, the spec KanbanConfig.summary describe (which lives in @objectstack/spec, not @object-ui/types as the claim said), the generated view.mdx mirror and the still-pending #36857 changeset carve-out (DELIBERATE CORRECTION) are updated, and a new patch changeset was added. Premise holds with one correction: a grouped (swimlane) board draws no lane foot at all, so the grouped face of the card is not a page-scoped sum.",
      "tests": "head da9a59cb5a, ui root vitest config. (1) The 3 touched test files: Test Files 3 passed, Tests 49 passed. (2) vitest run packages/plugin-kanban/ packages/plugin-list/: Test Files 274 passed, Tests 2650 passed; lock VERDICT command-exit 0. (3) App-shell pin: the real board under the real ListView, laned on a lookup, 60 rows, pageSize 25 (rig check: 25 cards, 13/12). sum/avg/min/max read 870/900, 29/30, 0/1, 58/59, never the page's 156/144; the filtered read gives 850/875; CONTROL: no door draws no figure. (4) Ablation via scripts/ablation-replace.mjs on ObjectKanban.tsx, laneReadAsked anchor 1 to 0, blob 908a872bc29b to 396418ba8a82: 11 failed / 25 passed, with errors like expected '156' to be '870', expected '286' to be '850' and expected '3' to be '2415'. Restored: blob equals HEAD 908a872bc29b and git diff HEAD is empty. (5) type-check plugin-kanban and plugin-list: exit 0 (each includes tsconfig.test.json). app-shell type-check was not run locally and is declared to CI.",
      "gates": "dispatch-gates --commands --repo objectstack-ai/objectstack derived 117. --ran with exit codes: 117 derived, 116 run, 1 NOT-MEASURED. 114 exit 0. check-empty-changeset --base origin/main exit 1: the expected DELIBERATE CORRECTION of .changeset/36520-kanban-lane-statistic-server.md, declared in the PR body. pnpm --dir ui exec vitest run scripts/ exit 1: NOT MEASURED, reason: it needs a full ui build (absent eager-closure chunk, forks-pool zone runs) and no failure names a diff file; left to CI. check:dual-build-cjs-loads exit 3: NOT MEASURED, needs a full pnpm build. Re-run green after the spec and closure build: check:generated, check:docs, check:skill-examples, check:doc-formula-expressions, check:doc-security-posture, check:dts-closure. overlap-check exit 1 only against #35129 (Version Packages), on the pending changeset I corrected. The push was gated on overlap-check --exclude-pr=35129, which exited 0. CI check-runs: in_progress at report time, not awaited.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "3 — git push (branch); relay pr_create (POST /repos/objectstack-ai/objectstack/pulls + issues/37295/assignees) as one dispatch run 45621204820; post-stamped comment on issues/36871 (os-dev-report)",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "class: a · reach: read from code, not run through a public door (no reach) · A board drawn in swimlanes (a view with grouping, or swimlaneField) draws no lane foot at all, because LaneFootStatistic renders only in KanbanColumnView (the flat layout). Yet the view-settings picker offers count/sum/avg/min/max there, so a picked statistic is silently blank on every swimlane board, self-querying or not · dedupe words: kanban swimlane lane statistic foot, summary swimlane blank, grouping kanban summary",
        "class: a · reach: read from code plus the 36871 rig (25-card window, lanes 13/12 of 30/30) · On ListView's rows-handed board the lane header count and the foot count statistic count the page with no + (countsAreWindowed is tied to the board's own fetch), a lane whose records all fall past the first page is not drawn, and the summarizeField header total sums the page · same family as this card; the seat decides whether it is one family-closure card · dedupe words: kanban lane count page windowed handed rows, lookup lane missing past first page, summarizeField page total"
      ]
    }
  7. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW

    Claim amendment (2026-11-25T13:15Z), per the seat's L1 ruling on PR #37295:

    • File surface: the KanbanConfig.summary describe lives in packages/spec/src/ui/view.zod.ts (with its generated mirror content/docs/references/ui/view.mdx), not in @object-ui/types as the claim said. The surface also gains ui/packages/app-shell/src/__tests__/listKanbanEveryRecord-12619.test.tsx (the shared real-ListView board harness). The describe text changes; the schema shape does not. A contract review is owed at the tier record-recognisers --paths gives.
    • Clause-②: yes (widening), not no. The public ObjectKanbanComponentProps gains the optional laneStatisticQuery.
    • Changesets: the pending .changeset/36520-kanban-lane-statistic-server.md is left untouched (no overlap with chore: version packages (next) #35129); the correction to its known-gap line goes in this card's own changeset.
  8. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW
    os-dev-report

    {
      "issue": 36871,
      "status": "done",
      "branch": "claude/issue-36871-listview-lane-sum",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/37295",
      "session": "session_01QSeKYnagJvGbCtNg2PhvgW",
      "premise_still_valid": true,
      "summary": "Rework round 1, new head 790a94319c. (1) Option B on the #35129 overlap: .changeset/36520-kanban-lane-statistic-server.md is reverted to be byte-identical to origin/main. The correction now lives in 36871-kanban-rows-handed-lane-statistic.md, as one sentence saying it supersedes #36857's 'known gap' line (follow-up #36871) for the lookup-lane list view board. The DELIBERATE CORRECTION wording is gone from the PR body. (2) Clause-② is now 'yes (widening)' in both the changeset and the PR body. What widens: ObjectKanbanComponentProps.laneStatisticQuery?, of type KanbanLaneStatisticRequest, which the index does not export. No other exported member changed: the spec edit is describe text only and ListView's exported props are unchanged. Metadata-protocol stays none. Code and tests are unchanged since da9a59cb5a. Route (A) as before: on ListView's rows-handed board the lane sum/avg/min/max are whole-lane figures from queryGroupHeaders + readLaneStatistic.",
      "tests": "No code or test change since da9a59cb5a; 790a94319c touches only two changeset files. Readings carried from da9a59cb5a: the 3 touched test files gave Test Files 3 passed / Tests 49 passed; vitest run packages/plugin-kanban/ packages/plugin-list/ gave Test Files 274 passed / Tests 2650 passed; type-check of plugin-kanban and plugin-list exited 0. Ablation on laneReadAsked: 11 failed / 25 passed, e.g. expected '156' to be '870'; restore verified, blob equal to HEAD.",
      "gates": "At head 790a94319c: check-empty-changeset --base origin/main exit 0 (no changeset from the merge base modified); check-adr-0087-registration --base origin/main exit 0 (after pnpm install restored tsx; its first run exited 1 because the input was missing); check-changeset-no-major --base origin/main exit 0. overlap-check with no exclusions: VERDICT clean exit 0, origin/main merges cleanly; the push was gated with && on that exit. Carried from da9a59cb5a: --ran over 117 derived, 116 run, 1 NOT MEASURED (check:dual-build-cjs-loads exit 3, needs a full pnpm build); 'pnpm --dir ui exec vitest run scripts/' exit 1, NOT MEASURED (needs a full ui build). Not re-run on the new head: Check Changeset, which reads the PR body; whether it accepts patch bumps beside 'Clause-②: yes (widening)' with 'Metadata-protocol: none' is for CI to say. CI check-runs were not awaited.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "3 this round: git push da9a59cb5a..790a94319c; post-stamped --body=37295 (issue_patch through the relay, read back identical at 8843 bytes, --ack-through=7163490238, a docs-drift-check bot comment that reports nothing to list and asks nothing); post-stamped comment on issues/36871 (this report)",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "class: a · reach: read from code, not run through a public door (no reach) · A board drawn in swimlanes (a view with grouping, or swimlaneField) draws no lane foot at all, because LaneFootStatistic renders only in KanbanColumnView (the flat layout). Yet the view-settings picker offers count/sum/avg/min/max there, so a picked statistic is silently blank on every swimlane board, self-querying or not · dedupe words: kanban swimlane lane statistic foot, summary swimlane blank, grouping kanban summary · kept in the PR Acceptance notes; the seat files it after landing",
        "class: a · reach: read from code plus the 36871 rig (25-card window, lanes 13/12 of 30/30) · On ListView's rows-handed board the lane header count and the foot count statistic count the page with no + (countsAreWindowed is tied to the board's own fetch), a lane whose records all fall past the first page is not drawn, and the summarizeField header total sums the page · same family as this card; the seat decides whether it is one family-closure card · dedupe words: kanban lane count page windowed handed rows, lookup lane missing past first page, summarizeField page total · kept in the PR Acceptance notes; the seat files it after landing"
      ]
    }
  9. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW
    os-dev-report

    {
      "issue": 36871,
      "status": "done",
      "branch": "claude/issue-36871-listview-lane-sum",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/37295",
      "session": "session_01QSeKYnagJvGbCtNg2PhvgW",
      "premise_still_valid": true,
      "summary": "Rework round 2, new head fdb5a3a05d (two commits on 790a94319c; no code change). M1: the KanbanConfig.summary describe in packages/spec/src/ui/view.zod.ts now says that on a rows-handed list view board (lookup lanes, one page of records) the sum, avg, min and max cover every record of each lane, and that count counts that page. The KanbanLaneSummarySchema docblock says the same: its count counts the page it was handed, as its lane header does. content/docs/references/ui/view.mdx was regenerated with 'pnpm --filter @objectstack/spec run check:generated --fix' under the lock; that run rebuilt dist and ran gen:docs, and its only diff is the 3 summary rows in view.mdx. N1: the changeset title now reads 'shows each lane's whole sum, average, minimum and maximum, not one page's'; the changeset body makes no claim about count. The 36520 changeset is untouched. Clause-② stays yes (widening). The PR body does not repeat the claim, so it was not rewritten.",
      "tests": "No code or test change since da9a59cb5a; this round touches only the spec describe text and docblock, the generated view.mdx and the changeset title. Readings carried from da9a59cb5a: the 3 touched test files gave Test Files 3 passed / Tests 49 passed; plugin-kanban plus plugin-list gave Test Files 274 passed / Tests 2650 passed; type-check of both exited 0. Ablation on laneReadAsked: 11 failed / 25 passed, restore verified.",
      "gates": "At head fdb5a3a05d: pnpm --filter @objectstack/spec run check:generated :: exit 0 (fresh dist from the --fix run, which reported 1 of 14 artifacts stale, regenerated by gen:docs); check:docs :: exit 0 (251 generated files in sync); check-empty-changeset --base origin/main :: exit 0; check-adr-0087-registration --base origin/main :: exit 0; check-changeset-no-major --base origin/main :: exit 0; check:nul-bytes :: exit 0. overlap-check with no exclusions: VERDICT clean exit 0, and the push was gated with && on it. Carried NOT MEASURED from earlier rounds: check:dual-build-cjs-loads (exit 3) and ui scripts/ vitest (needs a full ui build). CI check-runs were not awaited.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "2 this round: git push 790a94319c..fdb5a3a05d; post-stamped comment on issues/36871 (this report). The PR body was not edited because it does not repeat the claim.",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "class: a · reach: read from code, not run through a public door (no reach) · A board drawn in swimlanes (a view with grouping, or swimlaneField) draws no lane foot at all, because LaneFootStatistic renders only in KanbanColumnView (the flat layout). Yet the view-settings picker offers count/sum/avg/min/max there, so a picked statistic is silently blank on every swimlane board, self-querying or not · dedupe words: kanban swimlane lane statistic foot, summary swimlane blank, grouping kanban summary · kept in the PR Acceptance notes; the seat files it after landing",
        "class: a · reach: read from code plus the 36871 rig (25-card window, lanes 13/12 of 30/30) · On ListView's rows-handed board the lane header count and the foot count statistic count the page with no + (countsAreWindowed is tied to the board's own fetch), a lane whose records all fall past the first page is not drawn, and the summarizeField header total sums the page · same family as this card; the seat decides whether it is one family-closure card · dedupe words: kanban lane count page windowed handed rows, lookup lane missing past first page, summarizeField page total · kept in the PR Acceptance notes; the seat files it after landing"
      ]
    }
  10. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW

    Delivered (2026-11-25T16:33Z): PR #37295 merged (2026-11-25T15:58Z). This card was closed by its Fixes #36871.

    A list view board whose lanes come from a lookup field is handed one page of records. It now also gets that page's query (laneStatisticQuery), so the board asks the same grouped lane read a self-querying board asks. Its lane sum, avg, min and max cover every record of each lane, and a source without the door, a refused read or a cut answer draws no figure. count still counts the page. Clause-②: yes (widening) (ObjectKanbanComponentProps.laneStatisticQuery?).

    Two related findings are in the PR's Acceptance notes and are left for the seat's final note, not filed now:

    • a swimlane board draws no lane foot at all;
    • a rows-handed board's lane count and summarizeField cover only the page.

    Nothing is left on this card; pm:dispatched removed.

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

Metadata

Metadata

Assignees

Labels

area:uxbugdomain:uipriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions