Skip to content

fix(list): a data-laned kanban's footer counts the whole query, as its lanes do - #38681

Merged
objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/issue-38558-kanban-footer-count
Nov 30, 2026
Merged

objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/issue-38558-kanban-footer-count

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Warren · project thread
Fixes #38558
Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户能看到什么变化:列表里按查找字段或文本字段分道的看板,页脚现在显示整个视图的记录数(例如 70 条),与各道计数之和一致;只有看板确实只画了第一页的道时,才保留「只显示前 N 条」。
  • 为什么做:同一块看板上页脚写 25 条、各道加起来却是 70 条,两个数字互相矛盾(看板页脚计数卡)。
  • 出错会怎样:最坏是页脚数字或「只显示前 N 条」提示显示错,不影响数据本身;可直接撤回本 PR。
  • 要你做的:无。

What changes

  • ui/packages/plugin-list/src/ListView.tsx, the record-count bar under a board the list hands its window to (kanbanLaneStatisticHosted). With a numeric fetchedTotal, the count is the query's total instead of the window's length, which is the number the board's lanes add up to. The same figure feeds the view switcher's count (leadingRecordCount).
  • The "Showing first N" line is dropped only where the board reaches every record by itself (kanbanHostedBoardReachesEveryRecord): lanes from the data, a lookup or text lane field, no declared lanes, no swimlanes, and a source with queryGroupHeaders. Number, boolean and date lane fields, declared lanes, swimlanes and a source with no grouped door draw only the page's lanes, so the line stays there. i18n wording is unchanged.
  • Pin: a new top-level describe in the shared harness ui/packages/app-shell/src/__tests__/listKanbanEveryRecord-12619.test.tsx (AGENTS.md shared-harness rule). Text-laned and lookup-laned boards read "70 records" with no warning, and the text board's lane sum equals the footer figure. CONTROLs: a number-laned board and a source with no grouped door keep "Showing first 25 records".
  • Changeset .changeset/38558-kanban-footer-count.md (patch, @object-ui/plugin-list).

Tests

Head e4b485a5, after building the @object-ui/app-shell^... closure under os-verify-lock (command-exit 0):

Acceptance notes

  • The warning gate is static: if the lane read is refused or cut at runtime, the board shows page counts marked + and no lane past the page, while the footer reads the full total with no "Showing first N". The total is still true, but past-page records are not reachable on the board in that state.

Verification

Files to read first: ListView.tsx hunks at kanbanHostedBoardReachesEveryRecord and hostedBoardTotal (the risk is the warning gate).
Two-minute check: open a list-view kanban laned by a lookup field with more records than its page size. The footer should read the full count, equal to the sum of the lane badges, with no "Showing first N".

🤖 Generated with Claude Code

https://claude.ai/code/session_01JQwxbamiNxp7695qyaEYsH

@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 30, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-warren · session_01JQwxba2oTCUuCosPm6pkRu
2026-11-30T04:31Z · zone o2-U · L1 ACCEPT

速读

  • 按查找字段或文本字段分道的看板,页脚改为显示整个视图的记录数(如 70 条),与各道计数之和一致。
  • “只显示前 N 条”只在看板确实只画第一页的道时保留(数字、布尔或日期分道、声明道、泳道,或数据源没有分组计数)。
  • 只影响页脚数字和这条提示,不动数据,可直接撤回。
  • 要你做什么:无。发布冻结期内保持 draft、不入队;解冻后席位翻 ready 并入队。

席位核对 — ACCEPT · Head-sha: e4b485a

  • 形态: open · draft · base main · +161/−3 · 3 文件;首行 Fixes #38558,无其它卡的关闭词;Clause-②: no · Metadata-protocol: none;l1-face --pr 38681 CLEAN(13 项);check-governed-merges:0/3 命中,NOT governed,164 行。mergeable_state 暂为 unknown(main 前移到 4895661,GitHub 重算中);本地 merge-tree 对 4895661 干净。
  • 前提实测: 页脚由 ListView.tsx 画而非 plugin-kanban;claim 修订 1(7257034385)已把文件面扩到 ListView 与共享测试骨架。ListView.tsx 还原到 75108ea 后页脚读 25 而非 70,前提成立。
  • 门禁 check-runs @e4b485a5: 39 success / 13 预期 skip / 0 failed;Lint & Repo Gates、TypeScript Type Check、Test UI、Check Changeset 均 success。
  • 抽查读数: ListView.tsx:4092-4100(kanbanHostedBoardReachesEveryRecord)与 ObjectKanban.tsx:2002 pastPageLanes 条件一致(平铺道、道来自数据、查找或文本道字段、数据源有 queryGroupHeaders);:7117-7122 换页脚取数与提示门,:7135、:9140 改用 recordCountFigure。席位本地:共享骨架 49/49;还原修复后新增 4 例全红、原 45 例全绿,已恢复;相关记录数套件 5 文件 133/133。changeset 逐句核过。
  • 接受的偏差: 提示门是静态判断:运行时分组读失败或截断时页脚仍报总数、不显示“只显示前 N”,而看板只画本页(PR Acceptance notes 已写明);测试钉作为新顶层 describe 放进共享骨架。
  • 范围外去向: 数据源无分组计数时页脚为“70 条 · 只显示前 25 条”,各道徽标只计本页;有提示兜底,只记录不立卡。Skills-docs: none。
  • 落地条款: 发布冻结:保持 draft,不翻 ready、不入队。解冻后在当时 head 重核 check-runs 全绿 → ready → 入队(Tier S);Fixes #38558 合并即关卡。

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-warren · session_01JQwxbamiNxp7695qyaEYsH
2026-11-30T07:33Z · zone o2-U · landing #38558

probe reading
check-runs @ 7c05d1a6b3 39 success · 13 expected skip · 0 failed · 0 pending
mergeable_state clean (origin/main merged in at this head, no conflict; same patch as the ACCEPT head, record 7268869480)

State: pr_ready + auto-merge (merge queue). Release freeze: exempt as in-development work (Warren 2026-11-30 07:08Z 「目前已经开发中的不用冻结」). check-governed-merges: NOT governed.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 30, 2026 07:33
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 30, 2026
@github-actions

Copy link
Copy Markdown
Contributor

⛔ merge queue 构建失败 — 先分诊,再决定要不要重排

队列构建 46374797438 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集),
所以失败的测试可能在本 PR 没碰过的包里 —— 那不是重排能修的。每次盲目重排都会让排在后面的所有 PR 重建一轮。

分类:failure —— 按下面的日志分诊。

失败的 job(日志抽取,best effort):

  • Dogfood Regression Gate (3/3) — 失败步骤: Boot example apps and exercise real user flows

    @objectstack/dogfood:test:  FAIL   isolated  test/package-move-in.dogfood.test.ts > dogfood: POST /packages/:id/move-in, the move door (#38150) > A3 (#37468) and the set rule: flow, dataset and report
      ↳ 失败原因: @objectstack/dogfood:test: AssertionError: expected 404 to be 200 // Object.is equality
    

↳ 失败原因 是判读的关键:超时(Test timed out in … / Hook timed out in …)多半是负载/时序,不是本 PR 的回归;
断言(AssertionError: …)才指向真实的行为改变。两者的 FAIL 行长得一模一样,只有这一行能区分。

⚠️ 断言这一侧有一类例外,判据是断言在测什么,不是它是不是 AssertionError。 断言的对象是产品行为(一个值、一个形状、一次拒收)⇒ 照上面读:真实的行为改变,去查,⛔ 不要重排掉;
断言的对象是这次实验自身的有效性前提(跑完的耗时、负载下的先后、任何只在时间预算内才成立的条件)⇒ 它跟超时是同一类,同样对负载敏感,重排一次是合法的判别手段。
识别是机械的:断言的消息或它比较的值本身点名了一段时长、一个时间戳、一个耗时计数。实测过的一对 —— AssertionError: SecurityPlugin.init() ran: expected false to be true 测的是产品行为(真回归);
AssertionError: this run took over a second, so second-precision stamps could have differed too: expected 1006 to be less than 1000 测的是实验前提:它守护的那条不变式当时是绿的,同一个 head 原样重排一次即成功。
穿着 AssertionError 外衣的时间测量,仍然是时间测量。(⛔ 这只改「怎么读一次红」,不改「哪些测试可以重排」——后者由别处管。)

跨 PR 相同签名(24h,按失败测试文件聚合):

历史信号:

  • 本 PR 过去 24h 无队列失败记录(首次)。
  • 过去 24h 队列共有 10 个失败构建(不含本次)。

分诊清单:

  1. 失败测试在本 PR 改动的包里 → 真回归,修 PR。
  2. 失败测试与本 PR 无关 → 看上面的「跨 PR 相同签名」;已有汇总 issue ⇒ flaky/环境问题实锤,去那张 issue 上谈,修好前重排只会再烧一轮全队列。
  3. 两者都不是 → 可能与同组 PR 语义冲突;等前面的 PR 落地或失败出队后再重排一次即可,不要连续重排。

Generated by Claude Code · merge-queue-triage workflow (#4859)

Merged via the queue into main with commit 830ff8b Nov 30, 2026
53 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-38558-kanban-footer-count branch November 30, 2026 08:05
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/m 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.

kanban: the footer counts the loaded page while data lanes count the whole query

2 participants