-
Notifications
You must be signed in to change notification settings - Fork 7.3k
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
Add Screenshot Capture and Management Features to Chat and Workbench Components #582
Add Screenshot Capture and Management Features to Chat and Workbench Components #582
Conversation
this is so cool |
Nice job , i was also working on this a few days back. Just tested the code and looks good, i will test some more in a couple of days if work let me... Keep you posted. Anyway great job :) |
instead of manual, can it be done in the code? like it auto takes screenshot of preview instead from users side ? |
@VersaceXcodes it could be if you wanted the system to check a result, automated, or something similar. The purpose of this feature, though, is to target a specific area of the app being built visually to augment the prompt. If you haven't watched the longer linked YouTube video maybe check that out. Thanks for the input though! |
I just merged main so this can go. New video with main merged below. If we like the feature, can I get an official thumbs up and I or anyone can merge it ;) If any issue, let me know. Thanks! @coleam00 @thecodacus @wonderwhy-er Untitled.video.8.mp4 |
@emcconnell looks nice and integrates well. Saving a few steps from using the snipping tool |
Hm, I wonder if it would have been easier to send it html/css instead of image. |
maybe we can have variation for this, like inspect mode in chrome. which will get the html and sent it instead of image |
I like the idea of also having an inspect feature to add targeted context and did think about it. I went with the image clip b/c it seemed more intuitive for a non-developer to use, and for now image might hit more use cases. I am still interested in dev tool inspect. I am also generally interested in the area of functional UI/UX with the product. I've been thinking of various ideas in this vein. |
Add Screenshot Capture and Management Features to Chat and Workbench Components
This pull request introduces a new feature that allows users to take screenshots within the chat and workbench components. The most important changes include adding the
ScreenshotStateManager
andScreenshotSelector
components, and updating theBaseChat
andPreview
components to integrate these new functionalities.New Components:
app/components/chat/ScreenshotStateManager.tsx
: AddedScreenshotStateManager
component to manage the state of screenshots in the chat.app/components/workbench/ScreenshotSelector.tsx
: AddedScreenshotSelector
component to handle the screenshot selection process in the workbench.Integration with Existing Components:
app/components/chat/BaseChat.tsx
: Imported and integratedScreenshotStateManager
into theBaseChat
component to handle screenshot-related state. [1] [2]app/components/workbench/Preview.tsx
: Imported and integratedScreenshotSelector
into thePreview
component to enable screenshot selection mode. [1] [2] [3] [4]Longer video, but the shorter one below is prob. enough to get the idea: https://www.youtube.com/watch?v=cJsZVsswWnI
Untitled.video.6.mp4