Skip to content

feat: useFeedback hook for user feedback submission#17

Open
bobbyg603 wants to merge 6 commits intomainfrom
feature/user-feedback
Open

feat: useFeedback hook for user feedback submission#17
bobbyg603 wants to merge 6 commits intomainfrom
feature/user-feedback

Conversation

@bobbyg603
Copy link
Member

@bobbyg603 bobbyg603 commented Mar 10, 2026

Summary

  • Adds useFeedback() React hook with postFeedback, loading, response, and error state
  • Re-exports BugSplatFeedbackOptions type from bugsplat-js
  • Users can also call client.postFeedback() directly (inherited from bugsplat-js)

Test plan

  • Use useFeedback() hook in a React component and call postFeedback("Test feedback")
  • Verify loading/response/error state transitions
  • Verify the report appears in BugSplat dashboard with crash type "User.Feedback"

🤖 Generated with Claude Code

bobbyg603 and others added 6 commits March 10, 2026 17:20
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>
@bobbyg603 bobbyg603 changed the title Add useFeedback hook for user feedback submission feat: useFeedback hook for user feedback submission Mar 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant