feat: useFeedback hook for user feedback submission#17
Open
feat: useFeedback hook for user feedback submission#17
Conversation
Adds useFeedback() React hook that wraps the bugsplat-js postFeedback method (crashTypeId=36, User.Feedback). Provides loading/response/error state. Also re-exports BugSplatFeedbackOptions type from bugsplat-js. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Replace FormDataParam/additionalFormDataParams with BugSplatAttachment/attachments - Component stack trace now sent as attachment instead of form data param - Replace BugSplatFeedbackOptions with unified BugSplatOptions - Export BugSplatAttachment instead of FormDataParam Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add FeedbackDialog component to example app with title, description, attachment, submit and cancel buttons - Unify Fallback component for both crash and feedback submission links - Update React and react-dom peer deps to ^19.0.0 - Update vite, vitest, testing-library, typescript, and other dev deps - Fix ErrorBoundary types for React 19 (JSX namespace, componentStack) - Resolve all npm audit vulnerabilities Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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
useFeedback()React hook withpostFeedback,loading,response, anderrorstateBugSplatFeedbackOptionstype from bugsplat-jsclient.postFeedback()directly (inherited from bugsplat-js)Test plan
useFeedback()hook in a React component and callpostFeedback("Test feedback")🤖 Generated with Claude Code