Skip to content

Renamed ReplayManager.add to ReplayManager.capture#1337

Merged
matux merged 2 commits into
matux/leading-replayfrom
matux/rename-add-to-capture
Oct 1, 2025
Merged

Renamed ReplayManager.add to ReplayManager.capture#1337
matux merged 2 commits into
matux/leading-replayfrom
matux/rename-add-to-capture

Conversation

@matux

@matux matux commented Oct 1, 2025

Copy link
Copy Markdown
Contributor

Description of the change

Note

PR Description by Copilot

This pull request refactors the session replay functionality by renaming the primary method from add to capture throughout the codebase for better clarity and consistency. The change improves code readability by using a more descriptive method name that better reflects the purpose of capturing replay sessions.

@matux matux requested a review from Copilot October 1, 2025 12:54
@matux matux self-assigned this Oct 1, 2025

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request refactors the session replay functionality by renaming the primary method from add to capture throughout the codebase for better clarity and consistency. The change improves code readability by using a more descriptive method name that better reflects the purpose of capturing replay sessions.

  • Renamed ReplayManager.add() to ReplayManager.capture() with updated documentation
  • Updated all production code references to use the new method name
  • Enhanced code comments for replay coordination and telemetry export logic

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/browser/replay/replayManager.js Renamed method from add to capture and added clarifying comments
src/queue.js Updated method call to use capture instead of add
test/replay/unit/replayManager.test.js Updated test calls to use new method name
test/replay/unit/queue.replayManager.test.js Updated mock method and test assertions
test/replay/integration/sessionRecording.test.js Updated spy variables and assertions
test/replay/integration/replayManager.test.js Updated test method calls
test/replay/integration/queue.replayManager.test.js Updated mock and test assertions
test/replay/integration/e2e.test.js Updated spy variables and test assertions

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread src/browser/replay/replayManager.js Outdated
@matux matux force-pushed the matux/rename-add-to-capture branch from ec0c489 to 1461143 Compare October 1, 2025 12:57
@matux matux force-pushed the matux/rename-add-to-capture branch from 1461143 to 13789ae Compare October 1, 2025 12:58
@matux matux merged commit a8b76b6 into matux/leading-replay Oct 1, 2025
4 checks passed
@matux matux deleted the matux/rename-add-to-capture branch October 1, 2025 15:45
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.

3 participants