Repository navigation
fix(dash0): bug report screenshot shows the viewport, not the top of the page - #516
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…the page html-to-image sized the capture from <html>'s client box, so it rendered the first viewport at scroll 0, and cropToViewport then cut a strip from it at scrollY (or gave up and returned the top of the page). Capture exactly the viewport and turn the window scroll into a negative margin on the cloned root; fixed and sticky elements stay in place. Scrolled inner containers are flattened for the capture and restored after. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #516 +/- ##
==========================================
- Coverage 82.76% 82.75% -0.01%
==========================================
Files 1175 1175
Lines 121450 121450
==========================================
- Hits 100513 100510 -3
- Misses 20930 20933 +3
Partials 7 7 🚀 New features to boost your workflow:
|
fclairamb
enabled auto-merge (squash)
October 11, 2026 10:27
Merged
fclairamb
added a commit
that referenced
this pull request
Oct 11, 2026
🤖 I have created a release *beep* *boop* --- ## [0.38.2](v0.38.1...v0.38.2) (2026-10-11) ### Bug Fixes * **dash0:** bug report screenshot shows the viewport, not the top of the page ([#516](#516)) ([114c547](114c547)) * **dash0:** center the auth card on mobile ([#490](#490)) ([ca250f6](ca250f6)) * **dash0:** name a tunneled check's bastion even when it is not on the page ([#512](#512)) ([d1bb246](d1bb246)) * **deps:** update github.com/dop251/goja digest to 73dc7ed ([#503](#503)) ([d2f7bfa](d2f7bfa)) * **deps:** update github.com/dop251/goja digest to a4bedf5 ([#499](#499)) ([638a4bb](638a4bb)) * **deps:** update go dependencies (non-major) ([#517](#517)) ([9f6cbbc](9f6cbbc)) * **security:** address open code scanning and Dependabot alerts ([#514](#514)) ([84dc69d](84dc69d)) * **status-pages:** fast staged loading for public status pages ([#504](#504)) ([a269baa](a269baa)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On a scrolled page the bug report screenshot was a strip taken from the top of the page. On
/checksscrolled by 500px it was 2048x536 instead of 2048x1536, with the bottom half of the sidebar. At the bottom of a page it fell back to the top of the page.Cause: html-to-image sizes the capture from
<html>'s client box, so it rendered the first viewport at scroll 0.cropToViewportthen cut that image fromscrollYdown.Fix (
useFeedback.ts):overflow-autotables) are set to scroll 0 and their children are translated by the old offset during the capture, then restored. The page looks the same while this happens.cropToViewportremoved. The report context now includesscroll.Tests: 4 new Playwright tests in
bug-report.spec.ts(scrolled page with a scroll-0 control, bottom of the page, scrolled inner box with a control, mobile). They inject colored bands at known offsets and sample the preview image. All 4 fail on the previous code and pass with the fix. The 11 existing bug report tests and the dash0 unit tests (2484) pass.Spec:
specs/done/2026/10/2026-10-11-01-bug-report-screenshot-captures-top-of-page.md🤖 Generated with Claude Code