Repository navigation
Commit 8db60b1
docs(spec): a lookup-lane board's lane count is the whole lane's, not the page's (#38279)
<!-- claude-projects-attribution: {"github_login":"os-tesla"} -->
_Requested by **Tesla** · [project
thread](https://claude.ai/code/project/chan_01AXsQkLFKRdQCqQ3RTr6Jao?thread=cmsg_01AXsQkLFKRdQCqQ3RTr6JaoFAW3Y9BBmgxJwzSTjuLS1X)_
Fixes #37941
repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU
Clause-②: no
Metadata-protocol: none
## 维护者速读
- 在 Studio
或文档里读看板「道底统计」说明的作者,现在读到的是:按查找字段分道的列表看板,道底的计数数的是整条泳道,和看板上显示的一致;以前说明写的是只数一页。
- 看板体验专题:运行时早已改成数整条泳道,说明没跟上,这次只改说明文字。
- 不改任何行为和元数据形状,出错最多是说明措辞不准,可以直接撤回。
- 无
## What changes
- `packages/spec/src/ui/view.zod.ts`, `KanbanLaneSummarySchema` doc
comment: the sentence "Its `count` counts the page it was handed"
becomes: since objectstack#37327 the same grouped read answers each
lane's record count, so `count` counts the whole lane, as the lane
header does; only a read that cannot answer (no grouped door, a refusal,
a cut answer) leaves the page's count, marked `+`.
- Same file, `kanban.summary` describe: "its `sum`, `avg`, `min` and
`max` still cover every record of each lane, and its `count` counts that
page" becomes "its `count`, `sum`, `avg`, `min` and `max` still cover
every record of each lane (where the source cannot answer that read,
`count` counts the page, marked `+`)". With `count` now in that list,
the next sentence's "the other three" would read ambiguously, so it
names them: "`avg`, `min` and `max` show nothing".
- `content/docs/references/ui/view.mdx`: regenerated by `pnpm --filter
@objectstack/spec gen:docs`. The same describe appears three times there
(`KanbanConfig` is expanded in three places), and all three rows change.
No other generated file moved.
- `.changeset/37941-kanban-lane-count-whole-lane.md`:
`@objectstack/spec` patch. The describe ships in `files[]`, so this is a
patch changeset, not `skip-changeset`.
- Scope is the lookup-lane sentences only (seat ruling S1 in the claim).
Swimlane and no-option boards are not rewritten here.
## Tests
No new test (seat ruling P1 in the claim). The card's second box, "a
lookup-lane board's `count` is the lane's, not the page's", is already
pinned at runtime on main:
-
`ui/packages/app-shell/src/__tests__/listKanbanEveryRecord-12619.test.tsx:527`,
"a foot `count` reads the whole lane too": a lookup-laned list view
board is handed one page of 25 of 70 deals, and its foot `count` reads
30 and 30.
- Its contrast at `:535`, "CONTROL: over a source with no grouped door
each count is the page's, marked `+`": 13+ and 12+.
Describe wording is not pinned: os-dev pins no prose unless a consumer
parses it.
<details><summary>Local runs at 04ae2ae</summary>
- `pnpm --filter @objectstack/spec build` + `gen:docs`: exit 0 (lock
VERDICT command-exit 0).
- `pnpm --filter @objectstack/spec exec vitest run --maxWorkers=2
src/ui`: Test Files 194 passed (194), Tests 6694 passed (6694). `pnpm
--filter @objectstack/spec typecheck`: exit 0. This is narrowed to
`src/ui`, the directory of the edited file. The full spec suite runs in
CI.
- Derived gate list (`dispatch-gates.mjs --commands`): 109 commands. 102
exit 0. 7 exited 3 (PREREQUISITE NOT MET: an unbuilt workspace closure,
plus one shallow-clone fixture) and are re-run after the closure build.
The report records the re-run.
- `overlap-check`: clean against origin/main e2a0e90 and #38168 (same
two files, disjoint lines).
</details>
## Acceptance notes
- The runtime facts behind the new text, read on main f19350b:
`KanbanLaneStatistic.ts` (`LANE_COUNT_ALIAS`, the #37327 section of its
header); `ObjectKanban.tsx`, which adds `laneCount: true` to the lane
read when the host hands the query (`hostLaneRead`); and
`KanbanImpl.tsx` `LaneFootStatistic`, whose `count` is the lane header's
count (`hostCount`). `ListView.tsx` `kanbanLaneStatisticHosted` hands
that query for a board it does not page by lane.
- Prior rulings read: lane summary, kanbanlanesummary, lanecounts,
lookup lane → 0 hits; none; thread: none.
## Verification
Read first: `packages/spec/src/ui/view.zod.ts`, the `summary` describe
of `KanbanConfigSchema`. Two-minute check: `git grep -n "counts that
page" -- packages/spec content/docs` answers nothing.
---
_Generated by [Claude
Code](https://claude.ai/code/session_01L9qibwT22DXnLz8V1Bgcxs)_
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01L9qibwT22DXnLz8V1Bgcxs
Co-authored-by: Claude <noreply@anthropic.com>1 parent ab339d7 commit 8db60b1
3 files changed
Lines changed: 22 additions & 8 deletions
File tree
- .changeset
- content/docs/references/ui
- packages/spec/src/ui
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
829 | 829 | | |
830 | 830 | | |
831 | 831 | | |
832 | | - | |
| 832 | + | |
833 | 833 | | |
834 | 834 | | |
835 | 835 | | |
| |||
1191 | 1191 | | |
1192 | 1192 | | |
1193 | 1193 | | |
1194 | | - | |
| 1194 | + | |
1195 | 1195 | | |
1196 | 1196 | | |
1197 | 1197 | | |
| |||
1660 | 1660 | | |
1661 | 1661 | | |
1662 | 1662 | | |
1663 | | - | |
| 1663 | + | |
1664 | 1664 | | |
1665 | 1665 | | |
1666 | 1666 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2389 | 2389 | | |
2390 | 2390 | | |
2391 | 2391 | | |
2392 | | - | |
2393 | | - | |
| 2392 | + | |
| 2393 | + | |
| 2394 | + | |
| 2395 | + | |
| 2396 | + | |
2394 | 2397 | | |
2395 | 2398 | | |
2396 | 2399 | | |
| |||
2518 | 2521 | | |
2519 | 2522 | | |
2520 | 2523 | | |
2521 | | - | |
2522 | | - | |
| 2524 | + | |
| 2525 | + | |
| 2526 | + | |
2523 | 2527 | | |
2524 | | - | |
| 2528 | + | |
2525 | 2529 | | |
2526 | 2530 | | |
2527 | 2531 | | |
| |||
0 commit comments