-
Notifications
You must be signed in to change notification settings - Fork 6.5k
fix(preview): preserve browser snapshot page context #15643
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Bil0000
wants to merge
13
commits into
pingdotgg:main
Choose a base branch
from
Bil0000:fix/snapshot-scroll-context
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+3,373
−290
Open
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
0d153eb
fix(desktop): preserve browser snapshot scroll context
Bil0000 81a1546
fix(desktop): keep snapshot collector private
Bil0000 dc6b8e6
test(preview): fix Windows snapshot path assertion
Bil0000 c5c5b48
fix(desktop): include image-only snapshot scroll areas
Bil0000 2ef814f
fix(desktop): respect snapshot paint clipping
Bil0000 a5e9eb1
feat(preview): export all loaded snapshot text
Bil0000 1963e68
fix(preview): clean up undelivered text exports
Bil0000 b0abd4b
fix(preview): omit fully clipped scroll containers
Bil0000 03dfef2
refactor(preview): let snapshot service own saved artifacts
Bil0000 4c6cfc1
fix(preview): preserve text export recovery guidance
Bil0000 a4edfe0
fix(preview): report uncertain transformed clipping
Bil0000 8bf11c4
fix(preview): keep text exports tied to their page
Bil0000 af4cb63
fix(desktop): make snapshot scroll targets unique
Bil0000 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| name: Preview snapshot tests | ||
|
|
||
| on: | ||
| pull_request: | ||
| paths: | ||
| - .github/workflows/preview-snapshot-tests.yml | ||
| - apps/desktop/src/preview/** | ||
| - apps/server/src/mcp/** | ||
| - apps/server/src/preview/Snapshot*.ts | ||
| - packages/contracts/src/preview*.ts | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| test: | ||
| name: Snapshot tests (${{ matrix.os }}) | ||
| runs-on: ${{ matrix.os }} | ||
| timeout-minutes: 15 | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| os: [ubuntu-24.04, windows-2025, macos-15] | ||
| steps: | ||
| - uses: actions/checkout@v6 | ||
| with: | ||
| persist-credentials: false | ||
| sparse-checkout: | | ||
| /* | ||
| !/.repos/ | ||
| sparse-checkout-cone-mode: false | ||
| - uses: voidzero-dev/setup-vp@v1 | ||
| with: | ||
| node-version-file: package.json | ||
| cache: false | ||
| run-install: false | ||
| - run: vp install | ||
| - run: >- | ||
| vp test run | ||
| apps/desktop/src/preview/SnapshotPage.test.ts | ||
| apps/desktop/src/preview/Manager.test.ts | ||
| apps/server/src/mcp/McpHttpServer.test.ts | ||
| apps/server/src/mcp/PreviewAutomationBroker.test.ts | ||
| apps/server/src/preview/Snapshot.test.ts | ||
| apps/server/src/mcp/toolkits/preview/tools.test.ts | ||
| packages/contracts/src/previewAutomationSnapshot.test.ts | ||
| packages/contracts/src/preview.test.ts | ||
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.