-
Notifications
You must be signed in to change notification settings - Fork 47
chore: fix documentation + remove unused code #1117
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
base: main
Are you sure you want to change the base?
Conversation
…tocapture to network capture
✅ No documentation updates required. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR cleans up unused code and updates the documentation for the network-capture plugin.
- Removed unused imports and types in the plugin source
- Updated README to reflect network capture functionality instead of autocapture
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
File | Description |
---|---|
packages/plugin-network-capture-browser/src/network-capture-plugin.ts | Removed unused ElementInteractionsOptions import and associated type alias |
packages/plugin-network-capture-browser/README.md | Updated plugin description and usage instructions |
Comments suppressed due to low confidence (1)
packages/plugin-network-capture-browser/README.md:11
- Remove the TODO header now that the README has been updated to properly reflect the plugin functionality.
## TODO: Re-write this README.md to match plugin-network-capture
@@ -26,9 +26,9 @@ yarn add @amplitude/plugin-network-capture-browser@beta | |||
|
|||
## Usage | |||
|
|||
This plugin works on top of the Amplitude Browser SDK, generating auto-tracked events and sending to Amplitude. | |||
This plugin works on top of the Amplitude Browser SDK, and tracks network request events |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] Remove the comma before 'and' for smoother readability: '...Browser SDK and tracks network request events.'
Copilot uses AI. Check for mistakes.
|
||
To use this plugin, you need to install `@amplitude/analytics-browser` version `v1.9.1` or later. | ||
To use this plugin, you need to install `@amplitude/plugin-network-capture-browser` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] Add a period at the end of this sentence for consistency with other usage instructions.
To use this plugin, you need to install `@amplitude/plugin-network-capture-browser` | |
To use this plugin, you need to install `@amplitude/plugin-network-capture-browser`. |
Copilot uses AI. Check for mistakes.
resulting from copy-pasting autocapture to network capture
Summary
This plugin was created by copying autocapture-browser and then renaming some stuff and re-writing. Some of the docoumentation wasn't updated properly. And there was a bit of unused code.
Checklist