Skip to content

Tests: the inbox transcript fixture sizes elements by client box too - #390

Merged
ayushin merged 1 commit into
mainfrom
feature/inbox-test-client-box
Oct 18, 2026
Merged

ayushin merged 1 commit into
mainfrom
feature/inbox-test-client-box

Conversation

@ayushin

@ayushin ayushin commented Oct 17, 2026

Copy link
Copy Markdown
Member

Unblocks the stack check, which has been red on main and on every open PR since 2026-10-17 around 11:20 UTC.

What broke. addons/angee/nexus/web/src/inbox/attachments.native.test.tsx › "an attachment in the conversation previews in Related" can't find the renewal-2.pdf button. Main's own commit e93cd60 fails it on a rerun now.

Why.

  • @tanstack/virtual-core 3.19.6, published 2026-10-16 11:18 UTC (fix(virtual-core): measure the visible scroll viewport TanStack/virtual#1326, "Measure the scroll viewport using client dimensions"), changed getRect from offsetWidth/offsetHeight to clientWidth/clientHeight.
  • The test gave happy-dom elements a 640 × 640 viewport by stubbing only the offset box. Under 3.19.6 the transcript's scroll element measures 0 × 0 and renders no rows.
  • The stack check runs pnpm install --no-frozen-lockfile, and pnpm 11 waits one day before using a new release. So 3.19.6 reached CI about 24 hours after publication, between a passing run at 10:43 UTC and the first failure at 13:37 UTC.
  • How I found it: I resolved a fresh lockfile, kept the versions published 24 hours before the window, and found only @tanstack/react-virtual 3.14.21 and @tanstack/virtual-core 3.19.6.

Change. The fixture stubs the client box as well as the offset box, so it models a viewport whichever box the virtualizer measures. The framework's own lockfile still has the older version.

Product code is unaffected: browsers report real client sizes, and the change improves end-aligned rows.

Tests: this PR's own stack check runs the test against 3.19.6.

https://claude.ai/code/session_01VvRPgo3mVuL9ULgDSeZGBV

@tanstack/virtual-core 3.19.6 (TanStack/virtual#1326) measures the scroll
viewport with clientWidth/clientHeight instead of offsetWidth/offsetHeight. The
inbox attachments test gave happy-dom elements a 640 x 640 viewport through the
offset box only, so under 3.19.6 the transcript measured 0 x 0, rendered no rows,
and "an attachment in the conversation previews in Related" could not find the
attachment. The stack lane resolves dependencies fresh (pnpm 11's one-day
minimum release age made 3.19.6 eligible on 2026-10-17 ~11:20 UTC), so the lane
went red on main and on every open PR from then on.

The fixture now sizes both boxes, so it models a viewport whichever one the
virtualizer measures. Browsers report real client sizes; product code is
unaffected.

Claude-Session: https://claude.ai/code/session_01VvRPgo3mVuL9ULgDSeZGBV
@ayushin
ayushin merged commit d77764d into main Oct 18, 2026
15 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 18, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant