Repository navigation
Commit ec087c2
fix(kanban): a list view board laned by a text field draws its Uncategorized lane past the first page and loads the rest of a lane's cards (#38500)
repo:objectstack#5 · os-project-manager ·
session_01FEkQ5pH8MaBBP5T2dVcTHL
Fixes #38120
Clause-②: no
Metadata-protocol: none
## 维护者速读
-
列表视图里按文本字段分道的看板,空值记录全在第一页之后时,以前没有「未分类」这一道;现在这一道画在最后,带整道计数和「未加载的卡片」提示,各道(含未分类)都能点「加载更多」补齐卡片。按选项分道的看板本来就逐道分页,行为不变。
- 接在「看板按查找字段分道时补画未分类道、逐道加载更多」那两轮之后,替用文本字段分组看板的用户找回这部分记录的入口。
- 只多画一道、多给一个按钮,不改任何数据和配置;数据源不支持分组读、或分组读被拒绝或截断时,照旧只画第一页,可以直接撤回。
- 无。文本字段里某个值的记录全在第一页之后时为它补画一道,已另立 #38506。
## What changes
- `ui/packages/plugin-kanban/src/ObjectKanban.tsx`: the past-page gate
(`pastPageLanes`, which drives `keepUncolumned` and the host lane paging
`hostLanePagingOn`) now opens over a text lane field (`laneIsText`) as
well as over a lookup (`laneTargetObject`). The rest of the gate is
unchanged: a host-handed page with a lane read (`hostLaneRead`), flat
lanes, lanes from the data, and the null-count rule — a partial
(`hasMore`), refused or absent grouped read answers no counts, so
nothing is drawn or offered from it.
- On a text lane the "Uncategorized" lane's "Load more" reads records
whose value is null OR blank (`''`), because the page buckets both into
that lane and the lane read counts both under it; a lookup lane keeps
`emptyLaneQueryFilter` (null only).
- `extraLaneIds` (a lane whose records all sit past the page) is NOT
widened: a text value past the page still draws no lane of its own. That
is a visible-behaviour choice outside the card's asks; the seat ruled it
and filed #38506 for it.
- Option lanes: no code change. Measured: under a list view, a board
laned by a field with options takes the per-lane paging path
(`kanbanLanesPaged` in `ListView.tsx`, objectui#12619), which queries
the "Uncategorized" lane on its own (`uncolumnedQueryFilter`: not in the
lanes, or null). It already draws that lane with its cards and count
when every such record sits past the list's first page. The host-handed
path only carries option lanes on a swimlane board, which the flat-lane
gate excludes. A pin for this is added (below).
- `patch` changeset for `@object-ui/plugin-kanban`.
Read first (by risk): `pastPageLanes` / `laneIsText` in
`ObjectKanban.tsx`; the `emptyIsBlank` filter branch in
`loadMoreHostLane`; the new `objectstack#38120` pins in
`listKanbanEveryRecord-12619.test.tsx`.
## Tests
All in
`ui/packages/app-shell/src/__tests__/listKanbanEveryRecord-12619.test.tsx`
(the shared ListView + ObjectKanban rig the #37516 / #37517 pins live
in; a new pin for a component with a shared harness goes into that file,
ruling record 6583487846):
- text lane (`tier`; deals 60–64 null, 65–69 blank, all past page one of
25): "Uncategorized" drawn last, badge `10`, zero cards, `Cards not
loaded: 10`;
- its "Load more" loads all 10 (null and blank), filter
`["or",["tier","is_null"],["tier","=",""]]`, `$skip: 0`, `$top: 50`,
`$count: true`;
- a text lane on the page (`gold`, 13 of 30) loads the other 17 from
`$skip: 13`, none twice, filter `"tier","=","gold"`;
- CONTROL ×3: no grouped door, a refused read, a cut read (`hasMore`)
draw no "Uncategorized" and offer no "Load more" (`gold` reads `13+`);
- option lane (`stage` select; 6 null-stage and 4 unknown-stage records
past the list's first 25): "Uncategorized" drawn with its 10 cards,
badge `10`; rig self-check that the list's 25-row window holds none of
them. This pins existing behaviour (premise reading); it passes before
and after this change, so it carries no ablation.
- Replaced: `CONTROL: a board laned by a text field offers no "Load
more"`, which pinned exactly the branch this PR changes. Kept: `a board
laned by a text field counts each whole lane but draws no lane past the
page`.
<details><summary>Readings (head 311312f, base origin/main
7e1b222)</summary>
- Rig file: `Test Files 1 passed (1)`, `Tests 44 passed (44)`.
- `pnpm --filter @object-ui/plugin-kanban type-check` exit 0; `pnpm
--dir ui exec vitest run --maxWorkers=2 packages/plugin-kanban/`: `Test
Files 91 passed (91)`, `Tests 623 passed (623)`.
- `pnpm --filter @object-ui/app-shell type-check` exit 0 (its
`tsconfig.test.json` includes `src/**/*.test.tsx`).
- Ablation 1 through `scripts/ablation-replace.mjs`:
`(!!laneTargetObject || laneIsText)` to `(!!laneTargetObject /* ABLATED
*/)`: `Tests 3 failed | 41 passed (44)` — the three text-lane pins
(Uncategorized drawn, its load, the `gold` load); every control green.
Restored: blob == HEAD, `git diff HEAD` empty.
- Ablation 2: `: held.emptyIsBlank` to `: false /* ABLATED */`: `Tests 1
failed | 43 passed (44)` — the Uncategorized load pin (the blank records
are not read). Restored: blob == HEAD.
- (The first ablation 1 attempt was refused by the tool before running:
the replacement text already sat inside the anchor, so its count could
not rise; re-run with a distinct replacement.)
- Derived local gates (`dispatch-gates.mjs --ran`): 38 derived, 38 run,
0 NOT-MEASURED. 37 exit 0; `pnpm --dir ui exec vitest run scripts/` was
SIGKILLed by the shared box's memory limit (exit 1, no test verdict),
re-run as `pnpm --dir ui exec vitest run --maxWorkers=2 scripts/`: `Test
Files 172 passed | 2 skipped (174)`, exit 0. `pnpm
check:new-line-citations`: 0 new citations.
</details>
## Acceptance notes
- Acceptance "a text-field kanban and an option kanban both show
Uncategorized with its count" holds: the text half by this change, the
option half by the per-lane paging path already on main (pinned here).
- Not drawn by this PR: a text value whose records all sit past page one
(in the rig, `bronze`). Filed #38506.
- No browser walk: NOT MEASURED in a running app. The rig mounts the
real `ListView` over the real `ObjectKanban` with a `ValueDataSource`
that evaluates `$filter` / `$skip` / `$top` and a grouped-aggregate
door.
- No docs page describes the lookup-lane past-page behaviour this
extends, so no docs change.
## Verification
Two minutes: `pnpm --dir ui exec vitest run
packages/app-shell/src/__tests__/listKanbanEveryRecord-12619.test.tsx -t
"text-laned"` — expect 5 passed (the Uncategorized draw, its load, and
the three controls), 0 failed.
---
_Generated by [Claude
Code](https://claude.ai/code/session_01FEkQ5pH8MaBBP5T2dVcTHL)_
Co-authored-by: Claude <noreply@anthropic.com>1 parent 6c5a317 commit ec087c2
3 files changed
Lines changed: 137 additions & 12 deletions
File tree
- .changeset
- ui/packages
- app-shell/src/__tests__
- plugin-kanban/src
| 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 | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
93 | | - | |
| 92 | + | |
| 93 | + | |
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
168 | 199 | | |
169 | 200 | | |
170 | 201 | | |
| |||
847 | 878 | | |
848 | 879 | | |
849 | 880 | | |
850 | | - | |
851 | | - | |
852 | | - | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
853 | 890 | | |
854 | | - | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
855 | 953 | | |
| 954 | + | |
856 | 955 | | |
857 | 956 | | |
858 | 957 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| |||
1980 | 1981 | | |
1981 | 1982 | | |
1982 | 1983 | | |
1983 | | - | |
1984 | | - | |
| 1984 | + | |
| 1985 | + | |
| 1986 | + | |
1985 | 1987 | | |
1986 | 1988 | | |
1987 | 1989 | | |
| |||
2005 | 2007 | | |
2006 | 2008 | | |
2007 | 2009 | | |
| 2010 | + | |
| 2011 | + | |
| 2012 | + | |
| 2013 | + | |
| 2014 | + | |
| 2015 | + | |
| 2016 | + | |
2008 | 2017 | | |
2009 | | - | |
| 2018 | + | |
| 2019 | + | |
2010 | 2020 | | |
2011 | 2021 | | |
2012 | 2022 | | |
| |||
2044 | 2054 | | |
2045 | 2055 | | |
2046 | 2056 | | |
| 2057 | + | |
2047 | 2058 | | |
2048 | 2059 | | |
2049 | 2060 | | |
| |||
2061 | 2072 | | |
2062 | 2073 | | |
2063 | 2074 | | |
| 2075 | + | |
2064 | 2076 | | |
2065 | 2077 | | |
2066 | 2078 | | |
| |||
2087 | 2099 | | |
2088 | 2100 | | |
2089 | 2101 | | |
2090 | | - | |
2091 | | - | |
2092 | | - | |
| 2102 | + | |
| 2103 | + | |
| 2104 | + | |
| 2105 | + | |
| 2106 | + | |
| 2107 | + | |
| 2108 | + | |
2093 | 2109 | | |
2094 | 2110 | | |
2095 | 2111 | | |
| |||
0 commit comments