Skip to content

feat: add JavaScript API demo#20

Merged
neonwatty merged 1 commit intomainfrom
feat/javascript-api-demo
Jan 28, 2026
Merged

feat: add JavaScript API demo#20
neonwatty merged 1 commit intomainfrom
feat/javascript-api-demo

Conversation

@neonwatty
Copy link
Copy Markdown
Collaborator

Summary

  • Add "🐛 Report Bug" link in the navigation that demonstrates BugDrop.open() API
  • Update documentation comments with full JavaScript API reference
  • Update explainer callout to link to JS API docs

Demo

The navigation now includes a "Report Bug" link that opens the BugDrop feedback modal programmatically using the JavaScript API instead of the floating button.

This demonstrates how developers can integrate BugDrop into their own UI (menus, buttons, etc.) rather than relying solely on the floating button.

Dependencies

Requires BugDrop v1.2.0 (currently in PR #19 on bugdrop repo).

Test plan

  • Click "Report Bug" in navigation opens the feedback modal
  • Modal works the same as clicking the floating button
  • Keyboard accessible (Enter key triggers modal)

- Add "Report Bug" link in navigation that calls BugDrop.open()
- Update documentation comments with JavaScript API reference
- Update explainer callout to link to JS API docs

Demonstrates programmatic control of BugDrop widget from custom UI.
@neonwatty neonwatty merged commit 1d3b597 into main Jan 28, 2026
3 checks passed
@neonwatty neonwatty deleted the feat/javascript-api-demo branch January 28, 2026 20:40
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