Skip to content

Add postFeedbackWithFiles for user feedback with file attachments#19

Open
bobbyg603 wants to merge 4 commits intomasterfrom
feature/user-feedback
Open

Add postFeedbackWithFiles for user feedback with file attachments#19
bobbyg603 wants to merge 4 commits intomasterfrom
feature/user-feedback

Conversation

@bobbyg603
Copy link
Member

Summary

  • Adds postFeedbackWithFiles(title, options?) that reads files from disk and includes them as form data params
  • Delegates to inherited postFeedback from bugsplat-js (crashTypeId=36)
  • Inherits base postFeedback from bugsplat-js automatically

Test plan

  • Call postFeedbackWithFiles("Test feedback", { additionalFilePaths: ["log.txt"] }) with test database
  • Verify the report appears in BugSplat dashboard with crash type "User.Feedback"

🤖 Generated with Claude Code

bobbyg603 and others added 4 commits March 10, 2026 17:18
Adds postFeedbackWithFiles method that reads files from disk and includes
them as form data params when calling the inherited postFeedback method
from bugsplat-js (which uses crashTypeId=36, User.Feedback).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Convert file paths to BugSplatAttachment[] instead of FormDataParam[]
- Rename createAdditionalFilesFormParams to createAttachmentsFromFilePaths
- Merge file attachments with options.attachments in post/postFeedbackWithFiles
- Replace BugSplatFeedbackOptions with unified BugSplatOptions
- Update response field from crash_id to crashId

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>
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