Repository navigation
Commit a1ffa77
test(desktop): pin virtualization spec to rendered-window truth
Tests-only fix for PR-D2 per Astra review of the revised candidate
(approved 4b2a046b; the original 4d9add22 candidate was rejected and
not applied). No production change: both edits land in the existing
members-sidebar virtualization spec in channels.spec.ts.
## Summary
- First-window endpoint: generated members have no display name, so
the roster sorts them by their npub fallback label; sequential
pubkeys with a shared `npub1qqq...` prefix order by checksum tail,
not numeric position. Resolving the first generated row from the
pubkeys the initial window actually rendered replaces the unstable
`pubkeys[0]` assumption.
- Tail endpoint: the fully-scrolled tail check no longer samples
`pubkeys.at(-1)` (subject to window luck). The sidebar's own
"Members - N" header must equal the fixture-known roster total
(3 seeded + 500 generated), and the final row is located by
VirtualizedList's stamped `data-index` on the last item, a fixed
target a virtualizer clamped mid-roster can never render.
Validation at this exact delta (tests-only, evidence reused from the
approved candidate; no full suite run, no re-review): focused
virtualization spec 1/1 green, members-sidebar shard 12/12 green,
biome and e2e build/typecheck clean. A midpoint negative control
(skipping to the middle of the roster) fails the new tail endpoint.
Co-authored-by: Larry <627498bd4bd1f281a16431e3c6cce3b5c25b6692798c78672298aefbf2f8f8b5@buzz.block.builderlab.xyz>
Signed-off-by: Logan Johnson <[email protected]>1 parent 4763cbe commit a1ffa77
1 file changed
Lines changed: 37 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4176 | 4176 | | |
4177 | 4177 | | |
4178 | 4178 | | |
| 4179 | + | |
| 4180 | + | |
| 4181 | + | |
| 4182 | + | |
| 4183 | + | |
| 4184 | + | |
| 4185 | + | |
| 4186 | + | |
| 4187 | + | |
| 4188 | + | |
| 4189 | + | |
| 4190 | + | |
| 4191 | + | |
| 4192 | + | |
| 4193 | + | |
| 4194 | + | |
| 4195 | + | |
| 4196 | + | |
4179 | 4197 | | |
4180 | | - | |
| 4198 | + | |
4181 | 4199 | | |
4182 | 4200 | | |
4183 | 4201 | | |
| |||
4214 | 4232 | | |
4215 | 4233 | | |
4216 | 4234 | | |
4217 | | - | |
4218 | | - | |
| 4235 | + | |
| 4236 | + | |
| 4237 | + | |
| 4238 | + | |
| 4239 | + | |
| 4240 | + | |
| 4241 | + | |
| 4242 | + | |
| 4243 | + | |
| 4244 | + | |
| 4245 | + | |
| 4246 | + | |
| 4247 | + | |
| 4248 | + | |
| 4249 | + | |
| 4250 | + | |
| 4251 | + | |
| 4252 | + | |
4219 | 4253 | | |
4220 | 4254 | | |
4221 | 4255 | | |
| |||
0 commit comments