Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: chrome extension build #1386

Merged
merged 6 commits into from
Aug 25, 2024
Merged

Conversation

subzero10
Copy link
Member

@subzero10 subzero10 commented Aug 19, 2024

Status

READY

Description

Creates a new chrome extension build that excludes the "Collect User Feedback Form" feature that would cause chrome extensions to be rejected.
The excluded code is isolated in a file feedback-form.ts and the removal is done using rollup-plugin-strip-code.
The additional build file is honeybadger.ext.min.js and is also uploaded on CDN.

Closes: #1383

Todos

  • Move code to be excluded for extension build in a separate file
  • Add new extension build: honeybadger.ext.min.js
  • Update the example app to use the new build
  • Add the new extension build on CDN
  • Documentation - point to new extension build and add a callout for the removed feature
  • Manual Test
  • Fix integration tests

@subzero10 subzero10 added the js @honeybadger-io/js label Aug 19, 2024
@subzero10 subzero10 self-assigned this Aug 19, 2024
Copy link
Member Author

Choose a reason for hiding this comment

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

No code change here, just moved to its own file.


private getUserFeedbackSubmitUrl() {
return getUserFeedbackScriptUrl(this.getVersion())
const form = new BrowserFeedbackForm(this.config, this.logger, this.getVersion());
Copy link
Member Author

Choose a reason for hiding this comment

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

I moved feedback form code to its own file to reduce chances of breaking the code removal by rearranging methods.

Copy link
Member Author

Choose a reason for hiding this comment

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

This refactor broke the integration tests. I am working on fixing them.

@subzero10 subzero10 requested review from joshuap and stympy August 24, 2024 06:57
@subzero10 subzero10 merged commit c2a8f34 into master Aug 25, 2024
17 checks passed
@subzero10 subzero10 deleted the feature-chrome-extension-build-1383 branch August 25, 2024 06:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
js @honeybadger-io/js
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Includes remotely-hosted code, so cannot be used within a Chrome extension
2 participants