Send reports from your own form

vSDK 0.0.40Novo recursoDenis Povarov

If your app already has a "Report a problem" dialog, you no longer have to swap it for BugDump's panel. Initialize the SDK with hideButton: true and send what your form collected:

TypeScript
const { taskPublicId } = await bugdump.submit({
  description: 'I clicked Pay and nothing happened',
  reporterEmail: 'jane@example.com',
  priority: 'High',
  files: Array.from(fileInput.files ?? []),
});

Only description is required. The report still arrives with everything the widget would have attached — console logs, network requests, the user's recent actions, the page and browser, your identify() and setContext() data, and a session replay when your plan includes one.

Update to @bugdump/sdk 0.0.40 to use it. Sending reports from your own form has React and Angular examples, and bugdump-custom-form-react is a small demo app you can clone.

Saiba mais