Skip to content

feat: add UserFeedback crash type and feedback submission helper#162

Merged
bobbyg603 merged 5 commits intomainfrom
feat/user-feedback-report-type
Mar 9, 2026
Merged

feat: add UserFeedback crash type and feedback submission helper#162
bobbyg603 merged 5 commits intomainfrom
feat/user-feedback-report-type

Conversation

@bobbyg603
Copy link
Member

@bobbyg603 bobbyg603 commented Mar 4, 2026

Summary

  • Add CrashType.userFeedback (User.Feedback / 36)
  • Add postUserFeedback() helper that builds <feedback> XML and uploads with correct crash type
  • Add UserFeedbackOptions interface with title, description, user, email, attachments, and generic attributes
  • Upload file named feedback.json
  • Add buildFeedbackJson) unit tests

Test plan

  • Run npm test — all 216 specs pass
  • Verify postUserFeedback() sends correct crash type and attributes

🤖 Generated with Claude Code

bobbyg603 and others added 2 commits March 4, 2026 13:38
Add CrashType.userFeedback, CrashTypeId.userFeedback enum value,
and a new postUserFeedback() helper that constructs XML callstack
from a title and submits via the existing crash post pipeline.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link
Member

@daveplunkett daveplunkett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we consider a standard package to escape XML?

bobbyg603 and others added 3 commits March 5, 2026 20:20
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Replace hand-rolled XML builder and escapeXml() with JSON.stringify(),
which handles all escaping natively. Addresses PR review feedback.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@bobbyg603
Copy link
Member Author

Good call — switched to feedback.json with JSON.stringify() which handles all escaping natively. The escapeXml function and XML builder have been removed entirely.

@bobbyg603 bobbyg603 merged commit a50c684 into main Mar 9, 2026
4 checks passed
@bobbyg603 bobbyg603 deleted the feat/user-feedback-report-type branch March 9, 2026 17:26
bobbyg603 pushed a commit that referenced this pull request Mar 9, 2026
# [14.5.0](v14.4.0...v14.5.0) (2026-03-09)

### Features

* add UserFeedback crash type and feedback submission helper ([#162](#162)) ([a50c684](a50c684))
@bobbyg603
Copy link
Member Author

🎉 This PR is included in version 14.5.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants