Skip to content

Conversation

KarmaKamikaze
Copy link
Owner

This pull request removes the campaign snapshot feature from the ChatRPG project, including its associated functionality, UI elements, and dependencies. It simplifies the codebase by eliminating methods, services, and configuration settings related to snapshots.

Removal of snapshot functionality:

Code cleanup and dependency removal:

Additional cleanup:

@KarmaKamikaze KarmaKamikaze added the bug Something isn't working label May 1, 2025
@KarmaKamikaze KarmaKamikaze requested a review from Copilot May 1, 2025 07:51
@KarmaKamikaze KarmaKamikaze self-assigned this May 1, 2025
Copy link

@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 removes snapshot-related functionality from the ChatRPG codebase to simplify the project by eliminating features, methods, and dependencies that are no longer needed.

  • Removed DeepCopy methods from several model classes (Campaign, NarrativeGraph, Message, Character).
  • Eliminated snapshot saving functionality from persistence services and the related UI components.
  • Cleaned up and removed unused dependencies and configuration settings associated with snapshot functionality.

Reviewed Changes

Copilot reviewed 9 out of 10 changed files in this pull request and generated no comments.

Show a summary per file
File Description
ChatRPG/Services/ScenarioDocumentService.cs Removed logger dependency and the snapshot copy method.
ChatRPG/Services/IPersistenceService.cs Removed the SaveSnapshotAsync method signature.
ChatRPG/Services/EfPersistenceService.cs Removed snapshot saving logic and dependency on ScenarioDocumentService.
ChatRPG/Pages/CampaignPage.razor.cs Removed snapshot save method and unused injections (UserManager, Configuration).
ChatRPG/Pages/CampaignPage.razor Removed the 'Save Campaign Snapshot' button from the UI.
ChatRPG/Data/Models/NarrativeGraph.cs Removed the DeepCopy method associated with snapshot creation.
ChatRPG/Data/Models/Message.cs Removed the DeepCopy method used for snapshotting messages.
ChatRPG/Data/Models/Character.cs Removed the DeepCopy method used for snapshotting characters.
ChatRPG/Data/Models/Campaign.cs Removed the DeepCopy method used for snapshotting campaigns.
Files not reviewed (1)
  • ChatRPG/appsettings.json: Language not supported

@KarmaKamikaze KarmaKamikaze requested a review from Sarmisuper May 1, 2025 07:52
@KarmaKamikaze KarmaKamikaze merged commit 392f04b into dev May 1, 2025
14 checks passed
@KarmaKamikaze KarmaKamikaze deleted the feature/remove_test_specifics branch May 1, 2025 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants