Add screenshot functionality to HelpAiChat and HelpAiDraftCard#7003
Open
Parsh wants to merge 2 commits into
Open
Add screenshot functionality to HelpAiChat and HelpAiDraftCard#7003Parsh wants to merge 2 commits into
Parsh wants to merge 2 commits into
Conversation
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.
This pull request adds support for attaching screenshots to public GitHub issues submitted via the Help AI chat flow. Users can now optionally add up to three screenshots when confirming a draft issue, and these images are uploaded with the issue report. The UI is updated to allow selecting, previewing, and removing screenshots before submission, and the backend request is updated to handle file uploads.
Feature: Screenshot Attachment to Help Issues
ScreenshotAssettype to represent screenshot files, and updated relevant interfaces and props to support passing screenshots throughout the Help AI chat and draft confirmation flow. [1] [2] [3] [4]HelpAiDraftCardcomponent to allow users to select up to three screenshots from their device, preview thumbnails, and remove any before confirming submission. UI warnings are included to remind users about sharing sensitive information. [1] [2] [3] [4]HelpAiChatflow to track and pass selected screenshots when submitting or retrying a draft issue, ensuring screenshots are included with the issue if provided. [1] [2] [3] [4] [5]Backend Integration
Relay.submitHelpIssuemethod to accept screenshots, constructing amultipart/form-datapayload that includes both the JSON issue data and the attached image files, and updated error handling for robustness. [1] [2]