Remove screenshot tool and footer controls#509
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
bef8f78 to
0577e6d
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
This PR removes the (previously integrated) screenshot capture feature across the web chat shells and the desktop bridge surface area that supported it, along with the now-unused html-to-image dependency.
Changes:
- Removes screenshot UI elements (tool/overlay/button), footer controls, and the chat shell keyboard shortcut.
- Deletes screenshot-related state/helpers/tests and drops the
html-to-imagedependency. - Removes the desktop
captureWindowbridge/IPC handler and updates contracts accordingly; adds a regression test ensuring screenshot affordances aren’t present in the chat shell/widget shell sources.
Reviewed changes
Copilot reviewed 12 out of 13 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| packages/contracts/src/ipc.ts | Removes captureWindow from the DesktopBridge contract. |
| bun.lock | Removes html-to-image from the lockfile. |
| apps/web/src/screenshotStore.ts | Deletes the Zustand store backing screenshot selection mode. |
| apps/web/src/routes/-_chat.test.ts | Adds a regression test asserting screenshot UI/shortcuts aren’t present in chat/widget shells. |
| apps/web/src/routes/_chat.tsx | Removes screenshot imports, shortcut handling, and UI render points (tool + floating footer button). |
| apps/web/src/lib/screenshotCapture.ts | Deletes DOM/native capture helper logic (now unused). |
| apps/web/src/lib/screenshotCapture.test.ts | Deletes tests for the removed capture helpers. |
| apps/web/src/components/widget/ChatWidgetShell.tsx | Removes screenshot tool/button from the widget shell. |
| apps/web/src/components/settings/SettingsUi.tsx | Minor import formatting change (no functional impact). |
| apps/web/src/components/ScreenshotTool.tsx | Deletes screenshot overlay/tool/button component implementation. |
| apps/web/package.json | Removes html-to-image dependency from the web app. |
| apps/desktop/src/preload.ts | Removes captureWindow from the exposed desktop bridge implementation. |
| apps/desktop/src/main.ts | Removes the desktop:capture-window IPC channel/handler. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Summary
Testing