Commit 990a4de
Backup: fix DataViews list row separators, zebra, selection, pagination
Three layout fidelity fixes after wiring DataViews:
1. Pagination was rendered but inert — DataViews treats `data` as the
already-paginated page when `paginationInfo` is passed. Slice
`data` ourselves by `view.page` / `view.perPage` and forward the
totals; row count now matches the per-page setting and the next/prev
arrows actually advance the list.
2. Row separators, zebra striping, and the selected-row highlight all
need to target the per-item `<div>` DataViews wraps each list entry
in (not the `.dataviews-view-list__item-wrapper`, which is nested
one level deeper and is therefore always `:nth-child(1)` of its
parent). The selected state lands on that wrapping div as
`.is-selected`.
3. The earlier `:global(...)` SCSS escape leaked literally into the
compiled CSS (these files aren't CSS Modules), so none of the
DataViews-class selectors were matching. Drop `:global` and write
the descendant selectors directly under `.jpb-activity-list`.
Also adds in-memory search filtering so the DataViews search box
narrows the visible list before pagination kicks in.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 8c362b7 commit 990a4de
2 files changed
Lines changed: 59 additions & 8 deletions
Lines changed: 30 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
100 | 105 | | |
101 | 106 | | |
102 | 107 | | |
| |||
106 | 111 | | |
107 | 112 | | |
108 | 113 | | |
109 | | - | |
| 114 | + | |
110 | 115 | | |
111 | 116 | | |
112 | 117 | | |
| |||
165 | 170 | | |
166 | 171 | | |
167 | 172 | | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
168 | 194 | | |
169 | 195 | | |
170 | 196 | | |
171 | | - | |
| 197 | + | |
172 | 198 | | |
173 | 199 | | |
174 | 200 | | |
175 | 201 | | |
176 | | - | |
177 | | - | |
| 202 | + | |
| 203 | + | |
178 | 204 | | |
179 | 205 | | |
180 | 206 | | |
| |||
Lines changed: 29 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
11 | 36 | | |
12 | 37 | | |
13 | 38 | | |
| |||
0 commit comments