Skip to content

Snap shot#860

Merged
kryputh merged 10 commits into
Stellar-Mail:mainfrom
shadrach68:snapShot
Jun 20, 2026
Merged

Snap shot#860
kryputh merged 10 commits into
Stellar-Mail:mainfrom
shadrach68:snapShot

Conversation

@shadrach68

Copy link
Copy Markdown
Contributor

Title: feat(dashboard): Implement Campaign Draft Snapshot Management

Description:

This pull request introduces a snapshot management system for campaign drafts within the Demo Admin Dashboard. This feature enables demo administrators to save, list, restore, and delete point-in-time snapshots of campaign draft datasets, improving the efficiency of managing different demo scenarios.

All work is scoped to the src/features/demo-admin-dashboard/ directory as per the requirements.

Key Changes:

  • Snapshot UI (CampaignSnapshots.tsx): A new component has been added under the "Campaigns" tab that provides an interface for all snapshot operations (create, restore, delete).
  • Data Persistence: Snapshots are persisted in the browser's localStorage, ensuring they are retained across sessions while remaining isolated to the demo environment.
  • State Management: The campaignDraftDataset state is now initialized with a default snapshot and can be updated by restoring other snapshots.
  • Component Encapsulation (CampaignsContent.tsx): The logic and state for the "Campaigns" tab, including the sub-view toggle between "Assignments" and "Snapshots", have been refactored into a dedicated CampaignsContent component for improved modularity and clarity.
  • Types and Fixtures: Added the CampaignSnapshot type definition and default fixture data to support the new functionality.

@kryputh kryputh merged commit 517577d into Stellar-Mail:main Jun 20, 2026
5 checks passed
@grantfox-oss grantfox-oss Bot mentioned this pull request Jun 20, 2026
5 tasks
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.

Add rollback snapshot manager

2 participants