Skip to content

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

daniel-graham-amplitude
Copy link
Collaborator

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

  • Does your PR title have the correct title format?
  • Does your PR have a breaking change?: No

Copy link

promptless bot commented Jun 2, 2025

✅ No documentation updates required.

Copy link
Contributor

@Copilot Copilot AI left a 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
Copy link
Preview

Copilot AI Jun 2, 2025

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`
Copy link
Preview

Copilot AI Jun 2, 2025

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.

Suggested change
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.

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.

2 participants